7eeb51b534
Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time.
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2014/05/29 23:37:56 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= bannerfilter-1.31
|
|
PKGREVISION= 3
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://phroggy.com/files/unix/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://phroggy.com/bannerfilter/
|
|
COMMENT= Blocks advertising banners as squid redirector script
|
|
|
|
NO_BUILD= YES
|
|
USE_TOOLS+= perl:run
|
|
|
|
SHAREDIR= ${PREFIX}/share/bannerfilter
|
|
CONF_FILES= ${SHAREDIR}/bannerfilter.conf ${PKG_SYSCONFDIR}/bannerfilter.conf
|
|
REPLACE_PERL= redirector.pl
|
|
|
|
SUBST_CLASSES+= bf
|
|
SUBST_STAGE.bf= post-patch
|
|
SUBST_FILES.bf= bannerfilter.conf
|
|
SUBST_SED.bf= -e s,@SHAREDIR@,${SHAREDIR},g
|
|
|
|
INSTALLATION_DIRS= bin ${SHAREDIR}/www ${SHAREDIR}/doc ${SHAREDIR}/data
|
|
|
|
CHECK_PORTABILITY_SKIP+= update.sh
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/www/* ${DESTDIR}${SHAREDIR}/www/
|
|
${INSTALL_DATA} ${WRKSRC}/*.data ${DESTDIR}${SHAREDIR}/data/
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/COPYING ${WRKSRC}/README ${DESTDIR}${SHAREDIR}/doc/
|
|
${INSTALL_DATA} ${WRKSRC}/bannerfilter.conf ${DESTDIR}${SHAREDIR}/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/redirector.pl ${DESTDIR}${PREFIX}/bin/bannerfilter-redirector.pl
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|