Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2016 15:56:36 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r412565 - head/mail/anomy-sanitizer
Message-ID:  <201604051556.u35Fub69053700@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Apr  5 15:56:36 2016
New Revision: 412565
URL: https://svnweb.freebsd.org/changeset/ports/412565

Log:
  - Add LICENSE
  - Add NO_ARCH
  - Switch to options helpers

Modified:
  head/mail/anomy-sanitizer/Makefile
  head/mail/anomy-sanitizer/pkg-plist

Modified: head/mail/anomy-sanitizer/Makefile
==============================================================================
--- head/mail/anomy-sanitizer/Makefile	Tue Apr  5 15:48:36 2016	(r412564)
+++ head/mail/anomy-sanitizer/Makefile	Tue Apr  5 15:56:36 2016	(r412565)
@@ -10,11 +10,16 @@ MASTER_SITES=	http://mailtools.anomy.net
 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>

Modified: head/mail/anomy-sanitizer/pkg-plist
==============================================================================
--- head/mail/anomy-sanitizer/pkg-plist	Tue Apr  5 15:48:36 2016	(r412564)
+++ head/mail/anomy-sanitizer/pkg-plist	Tue Apr  5 15:56:36 2016	(r412565)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604051556.u35Fub69053700>