0f5bb1b8ae
Check for PATCHFILES as well
35 lines
855 B
Makefile
35 lines
855 B
Makefile
# $NetBSD: Makefile,v 1.2 2009/01/06 10:28:38 adrianp Exp $
|
|
|
|
DISTNAME= pkg_distinst-0.02
|
|
CATEGORIES= pkgtools
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= adrianp@NetBSD.org
|
|
COMMENT= Remove any distfiles not belonging to an installed package
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_TOOLS+= perl:run
|
|
NO_CHECKSUM= yes
|
|
NO_BUILD= yes
|
|
USE_LANGUAGES= # none
|
|
AUTO_MKDIRS= yes
|
|
|
|
SUBST_CLASSES+= di
|
|
SUBST_STAGE.di= do-configure
|
|
SUBST_FILES.di= pkg_distinst.pl
|
|
SUBST_SED.di= -e 's,@PERL5@,${PERL5},g'
|
|
SUBST_SED.di+= -e 's,@PKGSRCDIR@,${PKGSRCDIR},g'
|
|
SUBST_SED.di+= -e 's,@MAKE@,${MAKE},g'
|
|
SUBST_MESSAGE.di= Fixing script for installation.
|
|
|
|
do-extract:
|
|
cd ${FILESDIR} && cp pkg_distinst.pl ${WRKSRC}/
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkg_distinst.pl \
|
|
${DESTDIR}${PREFIX}/bin/pkg_distinst
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|