2002-02-20 08:03:34 -05:00
|
|
|
# New ports collection makefile for: tmpwatch
|
|
|
|
# Date created: Feb 20, 2002
|
|
|
|
# Whom: Mark Pulford <mark@kyne.com.au>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tmpwatch
|
2006-04-18 07:30:48 -04:00
|
|
|
PORTVERSION= 2.9.6
|
2002-02-20 08:03:34 -05:00
|
|
|
CATEGORIES= sysutils
|
2003-12-12 08:20:29 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_FEDORA_LINUX}
|
2006-04-18 07:30:48 -04:00
|
|
|
MASTER_SITE_SUBDIR= 5/source/SRPMS
|
|
|
|
EXTRACT_SUFX= -1.2.1.src.rpm
|
2002-02-20 08:03:34 -05:00
|
|
|
|
2007-06-29 15:33:24 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 01:14:21 -05:00
|
|
|
COMMENT= A utility for removing files based on when they were last accessed
|
2002-02-20 08:03:34 -05:00
|
|
|
|
2004-01-25 21:57:36 -05:00
|
|
|
EXTRACT_DEPENDS=rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
|
2003-07-13 22:53:03 -04:00
|
|
|
|
|
|
|
USE_GETOPT_LONG=yes
|
2002-02-20 08:03:34 -05:00
|
|
|
|
2003-07-13 22:53:03 -04:00
|
|
|
CFLAGS+= ${CPPFLAGS} -DVERSION=\"${PORTVERSION}\"
|
2002-02-20 08:03:34 -05:00
|
|
|
MAN8= tmpwatch.8
|
2004-02-06 08:12:53 -05:00
|
|
|
PLIST_FILES= sbin/tmpwatch
|
2002-02-20 08:03:34 -05:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
cd ${WRKDIR} && \
|
2003-12-12 08:43:05 -05:00
|
|
|
${LOCALBASE}/bin/rpm2cpio.pl ${DISTDIR}/${DISTFILES} | \
|
2002-02-20 08:03:34 -05:00
|
|
|
${CPIO} -iud
|
|
|
|
cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
|
|
|
${WRKDIR}/${DISTNAME}.tar.gz ${EXTRACT_AFTER_ARGS}
|
|
|
|
|
2003-12-12 08:20:29 -05:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -E "s/^#include.+mntent.h.+//g" ${WRKSRC}/tmpwatch.c
|
|
|
|
|
2002-02-20 08:03:34 -05:00
|
|
|
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
|
|
|
|
|
2007-10-04 02:10:15 -04:00
|
|
|
.include <bsd.port.mk>
|