1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: use options helper.
This commit is contained in:
Vanilla I. Shu 2014-07-10 13:05:53 +00:00
parent 5294742b7b
commit 89f13a0869
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361449
2 changed files with 22 additions and 25 deletions

View File

@ -3,42 +3,39 @@
PORTNAME= anomy-sanitizer
PORTVERSION= 1.76
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= mail security
MASTER_SITES= http://mailtools.anomy.net/dist/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Sanitize and clean incoming/outgoing mail
USES= perl5
USES= perl5 shebangfix
SHEBANG_FILES= bin/sanitizer.pl bin/simplify.pl
NO_BUILD= yes
WRKSRC= ${WRKDIR}/anomy
DOCS= CHANGELOG.sanitizer CREDITS README.sanitizer sanitizer.html
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
do-install:
@${MKDIR} ${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/HTMLCleaner.pm ${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Log.pm ${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/MIMEStream.pm ${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer.pm ${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/FProt.pm ${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/FileTypes.pm ${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/MacroScanner.pm ${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/Scoring.pm ${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_SCRIPT} ${WRKSRC}/bin/sanitizer.pl ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/simplify.pl ${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/HTMLCleaner.pm ${STAGEDIR}${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Log.pm ${STAGEDIR}${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/MIMEStream.pm ${STAGEDIR}${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer.pm ${STAGEDIR}${SITE_PERL}/Anomy
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/FProt.pm ${STAGEDIR}${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/FileTypes.pm ${STAGEDIR}${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/MacroScanner.pm ${STAGEDIR}${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/Scoring.pm ${STAGEDIR}${SITE_PERL}/Anomy/Sanitizer/
${INSTALL_SCRIPT} ${WRKSRC}/bin/sanitizer.pl ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/simplify.pl ${STAGEDIR}${PREFIX}/bin
post-install:
${INSTALL_DATA} ${FILESDIR}/sanitizer.cfg.sample ${PREFIX}/etc/
${INSTALL_DATA} ${FILESDIR}/sanitizer.cfg.sample ${STAGEDIR}${PREFIX}/etc/
@${ECHO_MSG} ""
@${ECHO_MSG} "Sample config installed at ${PREFIX}/etc/sanitizer.cfg.sample"
@${ECHO_MSG} ""
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
bin/sanitizer.pl
bin/simplify.pl
etc/sanitizer.cfg.sample
@sample etc/sanitizer.cfg.sample
%%SITE_PERL%%/Anomy/HTMLCleaner.pm
%%SITE_PERL%%/Anomy/Log.pm
%%SITE_PERL%%/Anomy/MIMEStream.pm
@ -9,10 +9,10 @@ etc/sanitizer.cfg.sample
%%SITE_PERL%%/Anomy/Sanitizer/FileTypes.pm
%%SITE_PERL%%/Anomy/Sanitizer/MacroScanner.pm
%%SITE_PERL%%/Anomy/Sanitizer/Scoring.pm
@dirrm %%SITE_PERL%%/Anomy/Sanitizer/
@dirrm %%SITE_PERL%%/Anomy/
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.sanitizer
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/README.sanitizer
%%PORTDOCS%%%%DOCSDIR%%/sanitizer.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%SITE_PERL%%/Anomy/Sanitizer/
@dirrm %%SITE_PERL%%/Anomy/