summaryrefslogtreecommitdiff
path: root/pkgtools/pkgclean/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-06-22 20:02:41 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-06-22 20:02:41 +0000
commitcfa234c781b126bc4d5fe67a80daa22c883d4a73 (patch)
tree0210f4664e01d5318eafc563992326825580893b /pkgtools/pkgclean/Makefile
parent17e9870aafb32e0054ae9d38f5e81cd71cc0fa32 (diff)
downloadpkgsrc-cfa234c781b126bc4d5fe67a80daa22c883d4a73.tar.gz
Initial import of pkgclean-20040622 from pkgsrc-wip, written by
Peter Postma. pkgclean cleans up your pkgsrc by removing the work directories. It's a fast alternative for ``cd /usr/pkgsrc && make clean''.
Diffstat (limited to 'pkgtools/pkgclean/Makefile')
-rw-r--r--pkgtools/pkgclean/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgtools/pkgclean/Makefile b/pkgtools/pkgclean/Makefile
new file mode 100644
index 00000000000..7a07d7fc781
--- /dev/null
+++ b/pkgtools/pkgclean/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/22 20:02:41 xtraeme Exp $
+
+DISTNAME= pkgclean-20040622
+CATEGORIES= pkgtools
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= peter@pointless.nl
+COMMENT= Quickly clean up all work directories in pkgsrc
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+NO_BUILDLINK= yes
+NO_CONFIGURE= yes
+NO_CHECKSUM= yes
+
+INSTALLATION_DIRS= bin man/cat1 man/man1
+
+NROFF= nroff -mandoc
+
+do-extract:
+ @${CP} -Rp ${FILESDIR} ${WRKSRC}
+
+do-build:
+ ${CC} ${CFLAGS} -o ${WRKSRC}/pkgclean ${WRKSRC}/pkgclean.c
+ ${NROFF} ${WRKSRC}/pkgclean.1 > ${WRKSRC}/pkgclean.cat1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pkgclean ${PREFIX}/bin/pkgclean
+ ${INSTALL_MAN} ${WRKSRC}/pkgclean.1 ${PREFIX}/man/man1/pkgclean.1
+ ${INSTALL_MAN} ${WRKSRC}/pkgclean.cat1 ${PREFIX}/man/cat1/pkgclean.0
+
+SUBST_CLASSES= path
+SUBST_STAGE.path= post-patch
+SUBST_FILES.path= pkgclean.c pkgclean.1
+SUBST_SED.path= -e "s,@PKGSRCDIR@,${_PKGSRCDIR},g"
+SUBST_MESSAGE.path= "Adjusting pkgsrc directory."
+
+.include "../../mk/bsd.pkg.mk"