pkgsrc/www/bannerfilter/Makefile
jlam dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00

35 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2005/12/29 06:22:21 jlam Exp $
#
DISTNAME= bannerfilter-1.31
CATEGORIES= www
MASTER_SITES= http://phroggy.com/files/unix/
MAINTAINER= tech-pkg@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
do-install:
${INSTALL_DATA_DIR} ${SHAREDIR}/www ${SHAREDIR}/doc ${SHAREDIR}/data
${INSTALL_DATA} ${WRKSRC}/www/* ${SHAREDIR}/www/
${INSTALL_DATA} ${WRKSRC}/*.data ${SHAREDIR}/data/
${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/COPYING ${WRKSRC}/README ${SHAREDIR}/doc/
${INSTALL_DATA} ${WRKSRC}/bannerfilter.conf ${SHAREDIR}/
${INSTALL_SCRIPT} ${WRKSRC}/redirector.pl ${PREFIX}/bin/bannerfilter-redirector.pl
.include "../../mk/bsd.pkg.mk"