pkgsrc/pkgtools/pkgclean/Makefile
tv 049d18c583 Don't "cp -p" for *source* files. Builds are usually done as an unprivileged
user, so it's not nice to try to use an option that will try to chown if
the repository isn't owned by the builder.

(Some OS's do in fact cause an error when the chown in "cp -p" fails.)
2005-01-06 05:32:29 +00:00

39 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2005/01/06 05:32:29 tv Exp $
DISTNAME= pkgclean-20041014
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} -R ${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"