aboutsummaryrefslogtreecommitdiffstats
path: root/mail/anomy-sanitizer
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-04-05 23:56:36 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-04-05 23:56:36 +0800
commit7cf3c7fdab79b3cc7f8369806d52e2845dd973d3 (patch)
tree05931a304ac9d1af1989051ba895633fdea2b109 /mail/anomy-sanitizer
parent7d7ae7babb4352821faffd22de7889cd176439b1 (diff)
downloadfreebsd-ports-gnome-7cf3c7fdab79b3cc7f8369806d52e2845dd973d3.tar.gz
freebsd-ports-gnome-7cf3c7fdab79b3cc7f8369806d52e2845dd973d3.tar.zst
freebsd-ports-gnome-7cf3c7fdab79b3cc7f8369806d52e2845dd973d3.zip
- Add LICENSE
- Add NO_ARCH - Switch to options helpers
Diffstat (limited to 'mail/anomy-sanitizer')
-rw-r--r--mail/anomy-sanitizer/Makefile16
-rw-r--r--mail/anomy-sanitizer/pkg-plist4
2 files changed, 9 insertions, 11 deletions
diff --git a/mail/anomy-sanitizer/Makefile b/mail/anomy-sanitizer/Makefile
index 25cb76afacae..cc38f00b9316 100644
--- a/mail/anomy-sanitizer/Makefile
+++ b/mail/anomy-sanitizer/Makefile
@@ -10,11 +10,16 @@ MASTER_SITES= http://mailtools.anomy.net/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Sanitize and clean incoming/outgoing mail
+LICENSE= GPLv2+
+
USES= perl5 shebangfix
SHEBANG_FILES= bin/sanitizer.pl bin/simplify.pl
NO_BUILD= yes
+NO_ARCH= yes
WRKSRC= ${WRKDIR}/anomy
-DOCS= CHANGELOG.sanitizer CREDITS README.sanitizer sanitizer.html
+
+PORTDOCS= CHANGELOG.sanitizer CREDITS README.sanitizer sanitizer.html UNICODE.TXT
+
OPTIONS_DEFINE= DOCS
do-install:
@@ -29,13 +34,10 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/bin/Anomy/Sanitizer/Scoring.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/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 ${STAGEDIR}${PREFIX}/etc/
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Sample config installed at ${PREFIX}/etc/sanitizer.cfg.sample"
- @${ECHO_MSG} ""
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/mail/anomy-sanitizer/pkg-plist b/mail/anomy-sanitizer/pkg-plist
index 5e90a8900f97..10fb366729c2 100644
--- a/mail/anomy-sanitizer/pkg-plist
+++ b/mail/anomy-sanitizer/pkg-plist
@@ -9,7 +9,3 @@ bin/simplify.pl
%%SITE_PERL%%/Anomy/Sanitizer/FileTypes.pm
%%SITE_PERL%%/Anomy/Sanitizer/MacroScanner.pm
%%SITE_PERL%%/Anomy/Sanitizer/Scoring.pm
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.sanitizer
-%%PORTDOCS%%%%DOCSDIR%%/CREDITS
-%%PORTDOCS%%%%DOCSDIR%%/README.sanitizer
-%%PORTDOCS%%%%DOCSDIR%%/sanitizer.html