Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2015 18:50:15 +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: r396029 - head/mail/postfix-policyd-spf-python
Message-ID:  <201509031850.t83IoFvv097900@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Sep  3 18:50:14 2015
New Revision: 396029
URL: https://svnweb.freebsd.org/changeset/ports/396029

Log:
  - Add LICENSE_FILE
  - Add NO_ARCH
  - Switch to options helpers
  - Switch to @sample
  
  Approved by:	portmgr blanket

Modified:
  head/mail/postfix-policyd-spf-python/Makefile
  head/mail/postfix-policyd-spf-python/pkg-plist

Modified: head/mail/postfix-policyd-spf-python/Makefile
==============================================================================
--- head/mail/postfix-policyd-spf-python/Makefile	Thu Sep  3 18:50:11 2015	(r396028)
+++ head/mail/postfix-policyd-spf-python/Makefile	Thu Sep  3 18:50:14 2015	(r396029)
@@ -12,6 +12,7 @@ MAINTAINER=	me@mortis.eu
 COMMENT=	Pure Python Postfix policy daemon for SPF checking
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipaddr>0:${PORTSDIR}/devel/py-ipaddr \
 		${PYTHON_PKGNAMEPREFIX}spf>0:${PORTSDIR}/mail/py-spf \
@@ -20,6 +21,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipad
 USES=		python
 USE_PYTHON=	distutils
 PYDISTUTILS_PKGNAME=	pypolicyd-spf
+NO_ARCH=	yes
 
 PORTDOCS=	CHANGES \
 		COPYING \
@@ -47,8 +49,8 @@ post-patch:
 		-e "s|/etc/pypolicyd-spf/|${PREFIX}/etc/postfix-policyd-spf-python/|" \
 		${WRKSRC}/policyd-spf.peruser.5
 
-post-install:
-	@${INSTALL} -d ${STAGEDIR}/${DOCSDIR}
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/mail/postfix-policyd-spf-python/pkg-plist
==============================================================================
--- head/mail/postfix-policyd-spf-python/pkg-plist	Thu Sep  3 18:50:11 2015	(r396028)
+++ head/mail/postfix-policyd-spf-python/pkg-plist	Thu Sep  3 18:50:14 2015	(r396029)
@@ -1,6 +1,4 @@
-@unexec if cmp -s %D/%%ETCDIR%%/policyd-spf.conf.sample %D/%%ETCDIR%%/policyd-spf.conf; then rm -f %D/%%ETCDIR%%/policyd-spf.conf; fi
-%%ETCDIR%%/policyd-spf.conf.sample
-@exec if [ ! -f %D/%%ETCDIR%%/policyd-spf.conf ] ; then cp -p %D/%F %B/policyd-spf.conf; fi
+@sample %%ETCDIR%%/policyd-spf.conf.sample
 bin/policyd-spf
 man/man1/policyd-spf.1.gz
 man/man5/policyd-spf.conf.5.gz



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