blob: 1eed5d980508979e29801e4be1d1ce5cb39f87ec (
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
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.2 2000/05/20 13:32:13 sommerfeld Exp $
#
DISTNAME= adzap
PKGNAME= ${DISTNAME}-20000509
CATEGORIES= www perl
MASTER_SITES= http://www.zip.com.au/~cs/adzap/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.zip.com.au/~cs/adzap/index.html
MESSAGE_FILE= ${WRKDIR}/MESSAGE
NO_WRKSUBDIR= YES
NO_BUILD= YES
USE_PERL5= YES
do-configure:
.for file in squid_redirect wrapzap
${CP} ${WRKSRC}/${file} ${WRKSRC}/${file}.orig
${SED} -e "s:/usr/bin/perl:${PREFIX}/bin/perl:g" \
-e "s:@@PREFIX@@:${PREFIX}:g" \
<${WRKSRC}/${file}.orig >${WRKSRC}/${file}
.endfor
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/squid_redirect ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKSRC}/wrapzap ${PREFIX}/libexec/adzap
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/adzap
.for file in adzap.conf proxy-cisra.pac proxy-home.pac proxy-zip.pac \
closepopup-clear.html no-op-clear.html closepopup.html no-op.html \
no-op-clear.js no-op.js ad-clear.gif ad.gif
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/examples/adzap
.endfor
post-install:
${SED} -e 's#@@PREFIX@@#${PREFIX}#g' < ${PKGDIR}/MESSAGE \
>${WRKDIR}/MESSAGE
.include "../../mk/bsd.pkg.mk"
|