pkgsrc/pkgtools/pkgclean/Makefile
gutteridge b26fda5d98 pkgclean: check that PKGSRCDIR is a valid directory
For those of us who have multiple pkgsrc trees, or move them around,
and forget the path gets hard-coded into the shell script, or make a
typo when supplying an alternate PKGSRCDIR, and then wonder why nothing
gets cleaned.
2020-01-19 03:31:30 +00:00

28 lines
734 B
Makefile

# $NetBSD: Makefile,v 1.23 2020/01/19 03:31:30 gutteridge Exp $
PKGNAME= pkgclean-20200119
CATEGORIES= pkgtools
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Quickly clean up all work directories in pkgsrc
LICENSE= 2-clause-bsd
NO_BUILD= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-extract:
${RUN}${CP} -R ${FILESDIR} ${WRKSRC}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkgclean.sh ${DESTDIR}${PREFIX}/bin/pkgclean
${INSTALL_MAN} ${WRKSRC}/pkgclean.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pkgclean.1
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_FILES.path= pkgclean.sh pkgclean.1
SUBST_VARS.path= SH
SUBST_VARS.path+= PKGSRCDIR
SUBST_MESSAGE.path= Adjusting pkgsrc directory.
.include "../../mk/bsd.pkg.mk"