blob: 6c7de3e38d8c9574967a53d8cc500c29ecc948c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: Makefile,v 1.4 2005/04/11 21:47:52 tv 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
USE_PKGINSTALL= YES
NO_BUILD= YES
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
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 "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|