aboutsummaryrefslogtreecommitdiff
path: root/mail/postgrey
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2013-05-12 14:29:46 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2013-05-12 14:29:46 +0000
commit9222f67275ea7cd77babdc9e2ffbbcad2a0edc66 (patch)
tree1504714af800881bf93850e9773578004caa19de /mail/postgrey
parent7cfabb83af261edeca3821dd21565ce06d7b81e0 (diff)
downloadports-9222f67275ea7cd77babdc9e2ffbbcad2a0edc66.tar.gz
ports-9222f67275ea7cd77babdc9e2ffbbcad2a0edc66.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>
Notes
Notes: svn path=/head/; revision=317962
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/