diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-07-10 21:05:53 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-07-10 21:05:53 +0800 |
commit | 5c216ef85d64cf1287eff8e6ea2d41531b02a0b3 (patch) | |
tree | 3ec0407aea6ec7e075646606ffd4c17536ed6756 /mail | |
parent | 1d49a06ccfc4d95bf96dad6a9cd2978debd4f9a1 (diff) | |
download | freebsd-ports-gnome-5c216ef85d64cf1287eff8e6ea2d41531b02a0b3.tar.gz freebsd-ports-gnome-5c216ef85d64cf1287eff8e6ea2d41531b02a0b3.tar.zst freebsd-ports-gnome-5c216ef85d64cf1287eff8e6ea2d41531b02a0b3.zip |
1: Stagify.
2: use options helper.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/anomy-sanitizer/Makefile | 41 | ||||
-rw-r--r-- | mail/anomy-sanitizer/pkg-plist | 6 |
2 files changed, 22 insertions, 25 deletions
diff --git a/mail/anomy-sanitizer/Makefile b/mail/anomy-sanitizer/Makefile index f7aa137133df..adee6898c8f1 100644 --- a/mail/anomy-sanitizer/Makefile +++ b/mail/anomy-sanitizer/Makefile @@ -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> diff --git a/mail/anomy-sanitizer/pkg-plist b/mail/anomy-sanitizer/pkg-plist index ab0a7bc834fe..2646f5e9276a 100644 --- a/mail/anomy-sanitizer/pkg-plist +++ b/mail/anomy-sanitizer/pkg-plist @@ -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/ |