Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2017 03:24:38 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r444342 - head/mail/postfix-postfwd
Message-ID:  <201706260324.v5Q3Oc8F071995@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Mon Jun 26 03:24:38 2017
New Revision: 444342
URL: https://svnweb.freebsd.org/changeset/ports/444342

Log:
  Remove Perl core modules
  
  - Add LICENSE_FILE
  - Add NO_ARCH
  - Convert to options target helper
  - Remove blank line in PLIST
  - Bump PORTREVISION for dependency change

Modified:
  head/mail/postfix-postfwd/Makefile
  head/mail/postfix-postfwd/pkg-plist

Modified: head/mail/postfix-postfwd/Makefile
==============================================================================
--- head/mail/postfix-postfwd/Makefile	Mon Jun 26 03:24:33 2017	(r444341)
+++ head/mail/postfix-postfwd/Makefile	Mon Jun 26 03:24:38 2017	(r444342)
@@ -12,12 +12,12 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Postfix firewall policy daemon
 
 LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/doc/LICENSE
 
 RUN_DEPENDS=	p5-Net-DNS>=0:dns/p5-Net-DNS \
-		p5-Net-Server>=0:net/p5-Net-Server \
-		p5-Storable>=0:devel/p5-Storable \
-		p5-Time-HiRes>=0:devel/p5-Time-HiRes
+		p5-Net-Server>=0:net/p5-Net-Server
 
+NO_ARCH=	yes
 SUB_FILES=	pkg-message
 
 USE_RC_SUBR=	${PORTNAME}
@@ -29,23 +29,23 @@ NO_BUILD=	yes
 OPTIONS_DEFINE=	EXAMPLES DOCS POSTFWD2
 POSTFWD2_DESC=	Install postfwd v2 rather than v1
 
-.include <bsd.port.options.mk>
-
 do-install:
-.if ${PORT_OPTIONS:MPOSTFWD2}
-	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME}2 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-.else
-	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-.endif
 	@${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${STAGEDIR}${ETCDIR}
 	@${INSTALL_MAN} ${WRKSRC}/man/man8/* ${STAGEDIR}${MANPREFIX}/man/man8
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+
 post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/tools/request.sample ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/plugins/postfwd.plugins.sample ${STAGEDIR}${EXAMPLESDIR}
+
+do-install-POSTFWD2-on:
+	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME}2 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+do-install-POSTFWD2-off:
+	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 
 .include <bsd.port.mk>

Modified: head/mail/postfix-postfwd/pkg-plist
==============================================================================
--- head/mail/postfix-postfwd/pkg-plist	Mon Jun 26 03:24:33 2017	(r444341)
+++ head/mail/postfix-postfwd/pkg-plist	Mon Jun 26 03:24:38 2017	(r444342)
@@ -19,4 +19,3 @@ man/man8/postfwd2.8.gz
 %%PORTDOCS%%%%DOCSDIR%%/versions.html
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/postfwd.plugins.sample
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/request.sample
-



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