Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2014 14:23:26 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366766 - head/mail/postfix-postfwd
Message-ID:  <201408311423.s7VENQ23067465@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Sun Aug 31 14:23:26 2014
New Revision: 366766
URL: http://svnweb.freebsd.org/changeset/ports/366766
QAT: https://qat.redports.org/buildarchive/r366766/

Log:
  - add stage support
  - add pkg-plist
  - fix LICENSE
  - use shebangfix

Added:
  head/mail/postfix-postfwd/pkg-plist   (contents, props changed)
Modified:
  head/mail/postfix-postfwd/Makefile
  head/mail/postfix-postfwd/pkg-descr

Modified: head/mail/postfix-postfwd/Makefile
==============================================================================
--- head/mail/postfix-postfwd/Makefile	Sun Aug 31 14:13:33 2014	(r366765)
+++ head/mail/postfix-postfwd/Makefile	Sun Aug 31 14:23:26 2014	(r366766)
@@ -3,58 +3,49 @@
 
 PORTNAME=	postfwd
 PORTVERSION=	1.35
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://www.${PORTNAME}.org/old/
 PKGNAMEPREFIX=	postfix-
 
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Postfix firewall policy daemon
 
-LICENSE=	BSD
+LICENSE=	BSD3CLAUSE
 
 RUN_DEPENDS=	p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
 		p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
 		p5-Storable>=0:${PORTSDIR}/devel/p5-Storable \
 		p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
 
-PORTDOCS=	*
-PORTEXAMPLES=	request.sample postfwd.plugins.sample
-
-PLIST_FILES=	bin/${PORTNAME} etc/${PORTNAME}.conf.sample
 SUB_FILES=	pkg-message
 
 USE_RC_SUBR=	${PORTNAME}
-USES=		perl5
+USES=		perl5 shebangfix
+SHEBANG_LANG=	perl
+SHEBANG_FILES=	sbin/* tools/*.pl tools/hapolicy/*
 USE_PERL5=	run
 NO_BUILD=	yes
 
-MAN8=		${PORTNAME}.8 ${PORTNAME}2.8
-
 OPTIONS_DEFINE=	EXAMPLES DOCS POSTFWD2
 POSTFWD2_DESC=	Install postfwd v2 rather than v1
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 do-install:
 .if ${PORT_OPTIONS:MPOSTFWD2}
-	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME}2 ${PREFIX}/bin/${PORTNAME}
+	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME}2 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 .else
-	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${PREFIX}/bin/
+	@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 .endif
-	@${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${PREFIX}/etc/${PORTNAME}.conf.sample
-	@${INSTALL_MAN} ${WRKSRC}/man/man8/* ${MANPREFIX}/man/man8/
+	@${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${STAGEDIR}${ETCDIR}
+	@${INSTALL_MAN} ${WRKSRC}/man/man8/* ${STAGEDIR}${MANPREFIX}/man/man8
 
 post-install:
-.if !empty(PORT_OPTIONS:MDOCS)
-	@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
-	@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
-.if !empty(PORT_OPTIONS:MEXAMPLES)
-	@${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR}
-	@${INSTALL_DATA} ${WRKSRC}/tools/request.sample ${EXAMPLESDIR}
-	@${INSTALL_DATA} ${WRKSRC}/plugins/postfwd.plugins.sample ${EXAMPLESDIR}
-.endif
-	@${CAT} ${PKGMESSAGE}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/tools/request.sample ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/plugins/postfwd.plugins.sample ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/mail/postfix-postfwd/pkg-descr
==============================================================================
--- head/mail/postfix-postfwd/pkg-descr	Sun Aug 31 14:13:33 2014	(r366765)
+++ head/mail/postfix-postfwd/pkg-descr	Sun Aug 31 14:23:26 2014	(r366766)
@@ -5,4 +5,4 @@ allows you to choose an action (e.g. rej
 several smtp parameters (like sender and recipient address, size or the 
 client's TLS fingerprint).
 
-WWW:	http://www.postfwd.org/
+WWW: http://www.postfwd.org/

Added: head/mail/postfix-postfwd/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/postfix-postfwd/pkg-plist	Sun Aug 31 14:23:26 2014	(r366766)
@@ -0,0 +1,24 @@
+bin/postfwd
+etc/postfwd
+man/man8/postfwd.8.gz
+man/man8/postfwd2.8.gz
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/arch.html
+%%PORTDOCS%%%%DOCSDIR%%/hapolicy.html
+%%PORTDOCS%%%%DOCSDIR%%/hapolicy.txt
+%%PORTDOCS%%%%DOCSDIR%%/postfwd-ARCH.png
+%%PORTDOCS%%%%DOCSDIR%%/postfwd.CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/postfwd.html
+%%PORTDOCS%%%%DOCSDIR%%/postfwd.txt
+%%PORTDOCS%%%%DOCSDIR%%/postfwd2-chroot.html
+%%PORTDOCS%%%%DOCSDIR%%/postfwd2-chroot.txt
+%%PORTDOCS%%%%DOCSDIR%%/postfwd2.CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/postfwd2.html
+%%PORTDOCS%%%%DOCSDIR%%/postfwd2.txt
+%%PORTDOCS%%%%DOCSDIR%%/quick.html
+%%PORTDOCS%%%%DOCSDIR%%/versions.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/postfwd.plugins.sample
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/request.sample
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
+



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