freebsd-ports/sysutils/tmpwatch/Makefile
FUJISHIMA Satsuki b185046be2 get rid of libgnugetopt dependency for -CURRENT,
use USE_GETOPT_LONG instead.
2003-07-14 02:53:03 +00:00

42 lines
1 KiB
Makefile

# New ports collection makefile for: tmpwatch
# Date created: Feb 20, 2002
# Whom: Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#
PORTNAME= tmpwatch
PORTVERSION= 2.8.1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX}
MASTER_SITE_SUBDIR= updates/7.2/en/os/SRPMS
EXTRACT_SUFX= -1.src.rpm
MAINTAINER= markp@FreeBSD.org
COMMENT= A utility for removing files based on when they were last accessed
BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio
USE_GETOPT_LONG=yes
CPIO?= /usr/bin/cpio
CFLAGS+= ${CPPFLAGS} -DVERSION=\"${PORTVERSION}\"
MAN8= tmpwatch.8
do-extract:
${MKDIR} ${WRKDIR}
cd ${WRKDIR} && \
${LOCALBASE}/bin/rpm2cpio ${DISTDIR}/${DISTFILES} | \
${CPIO} -iud
cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${WRKDIR}/${DISTNAME}.tar.gz ${EXTRACT_AFTER_ARGS}
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -o tmpwatch tmpwatch.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tmpwatch ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/tmpwatch.8 ${MAN8PREFIX}/man/man8
.include <bsd.port.mk>