aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postgrey
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-05-12 22:29:46 +0800
committermadpilot <madpilot@FreeBSD.org>2013-05-12 22:29:46 +0800
commit2da975f7a89ed215c5b8cfe466093a4e6c976ca0 (patch)
tree1504714af800881bf93850e9773578004caa19de /mail/postgrey
parent1165803cc9b22c1db920ae0805f159a76809015e (diff)
downloadfreebsd-ports-gnome-2da975f7a89ed215c5b8cfe466093a4e6c976ca0.tar.gz
freebsd-ports-gnome-2da975f7a89ed215c5b8cfe466093a4e6c976ca0.tar.zst
freebsd-ports-gnome-2da975f7a89ed215c5b8cfe466093a4e6c976ca0.zip
- 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@mail.lifanov.com>
Diffstat (limited to 'mail/postgrey')
-rw-r--r--mail/postgrey/Makefile16
-rw-r--r--mail/postgrey/pkg-descr2
2 files changed, 11 insertions, 7 deletions
diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile
index 60ffff362199..c0a50a646b84 100644
--- a/mail/postgrey/Makefile
+++ b/mail/postgrey/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: postgrey
-# Date created: 24 August 2004
-# Whom: Will Andrews <will@FreeBSD.org>
-#
+# Created by: Will Andrews <will@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
diff --git a/mail/postgrey/pkg-descr b/mail/postgrey/pkg-descr
index 81b7e45c3212..3e77eeb50c74 100644
--- a/mail/postgrey/pkg-descr
+++ b/mail/postgrey/pkg-descr
@@ -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/