summaryrefslogtreecommitdiffstats
path: root/sysutils/tmpwatch/Makefile
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2002-02-20 13:03:34 +0000
committermarkp <markp@FreeBSD.org>2002-02-20 13:03:34 +0000
commitccc273cfd989c5328cde65e7887492e1b347562e (patch)
treef094023b900113bdbc77e68afc627c08d32f5d45 /sysutils/tmpwatch/Makefile
parentac4786c8faf7933469eda25bc2d399f68e058741 (diff)
downloadFreeBSD-ports-ccc273cfd989c5328cde65e7887492e1b347562e.zip
FreeBSD-ports-ccc273cfd989c5328cde65e7887492e1b347562e.tar.gz
Add tmpwatch 2.8.1, a utility for removing files based on when they
were last accessed.
Diffstat (limited to 'sysutils/tmpwatch/Makefile')
-rw-r--r--sysutils/tmpwatch/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/sysutils/tmpwatch/Makefile b/sysutils/tmpwatch/Makefile
new file mode 100644
index 0000000..f554bae
--- /dev/null
+++ b/sysutils/tmpwatch/Makefile
@@ -0,0 +1,39 @@
+# 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
+CATEGORIES= sysutils
+MASTER_SITES= ftp://updates.redhat.com/7.2/en/os/SRPMS/
+EXTRACT_SUFX= -1.src.rpm
+
+MAINTAINER= markp@FreeBSD.org
+
+BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio
+LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+CPIO?= /usr/bin/cpio
+CFLAGS+= -I${LOCALBASE}/include -DVERSION=\"${PORTVERSION}\"
+LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
+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>
OpenPOWER on IntegriCloud