mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
7c47779cb9
${PERL5} points to a specific version of perl, say, perl5.22.1, it is fine to use it in a ports Makefile to do Perly things, but ports using it must use ${PERL}, that points to /usr/local/bin/perl so that if the minor version is updated, the shebang keep working. While there, make some ports use shebangfix, regen a few patches, and bump PORTREVISION where a shebang went from PERL5 to PERL. PR: 205367 With hat: portmgr Sponsored by: Absolight
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# Created by: Kris Kennaway <kris@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= adzap
|
|
PORTVERSION= 20110915
|
|
PORTREVISION= 2
|
|
CATEGORIES= www perl5
|
|
MASTER_SITES= http://adzapper.sourceforge.net/
|
|
|
|
MAINTAINER= horia@racoviceanu.com
|
|
COMMENT= Filter out animated ad banners from web pages
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= perl5 shebangfix
|
|
SHEBANG_FILES= scripts/squid_redirect-nodata scripts/wrapzap scripts/zapchain
|
|
NO_BUILD= yes
|
|
USE_PERL5= run
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PORTDOCS= index.html update-instructions.txt TODO my-bsd-license.html
|
|
PORTEXAMPLES= *
|
|
SUB_FILES= adzap.conf pkg-message
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/scripts/wrapzap
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/squid_redirect-nodata ${STAGEDIR}${PREFIX}/libexec/squid_redirect
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/wrapzap ${STAGEDIR}${PREFIX}/libexec/adzap
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/zapchain ${STAGEDIR}${PREFIX}/libexec/
|
|
|
|
${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/zaps ${STAGEDIR}${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/rc ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/adzap.conf ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|