svn commit: r317962 - head/mail/postgrey
Guido Falsi
madpilot at FreeBSD.org
Sun May 12 14:29:47 UTC 2013
Author: madpilot
Date: Sun May 12 14:29:46 2013
New Revision: 317962
URL: http://svnweb.freebsd.org/changeset/ports/317962
Log:
- Add USES=shebangfix
- Convert to new options framework
- Use space for WWW line in pkg-descr
- Trim Makefile headers
PR: ports/178400
Submitted by: Nikolai Lifanov <lifanov at mail.lifanov.com>
Modified:
head/mail/postgrey/Makefile (contents, props changed)
head/mail/postgrey/pkg-descr (contents, props changed)
Modified: head/mail/postgrey/Makefile
==============================================================================
--- head/mail/postgrey/Makefile Sun May 12 14:05:52 2013 (r317961)
+++ head/mail/postgrey/Makefile Sun May 12 14:29:46 2013 (r317962)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: postgrey
-# Date created: 24 August 2004
-# Whom: Will Andrews <will at FreeBSD.org>
-#
+# Created by: Will Andrews <will at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= postgrey
PORTVERSION= 1.34
@@ -41,6 +37,14 @@ USERS= ${PGY_USERNAME}
GROUPS= ${PGY_GROUPNAME}
MAN1= ${PORTNAME}.1 policy-test.1 postgreyreport.1
+USES= shebangfix
+SHEBANG_FILES= ${WRKSRC}/postgrey
+
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' ${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_*
@@ -61,7 +65,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} ${PREFIX}/etc/postfix/dist-postgrey_${i}
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
Modified: head/mail/postgrey/pkg-descr
==============================================================================
--- head/mail/postgrey/pkg-descr Sun May 12 14:05:52 2013 (r317961)
+++ head/mail/postgrey/pkg-descr Sun May 12 14:29:46 2013 (r317962)
@@ -1,4 +1,4 @@
Postgrey is a program which implements greylisting and is
designed to work with the Postfix MTA.
-WWW: http://postgrey.schweikert.ch/
+WWW: http://postgrey.schweikert.ch/
More information about the svn-ports-head
mailing list