aboutsummaryrefslogtreecommitdiff
path: root/mail/postgrey
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-08-06 15:20:07 +0000
committerJohn Marino <marino@FreeBSD.org>2014-08-06 15:20:07 +0000
commit7a5ff75482c2b766333c69f2e2078cce0ed59d98 (patch)
tree553b869a32ef856a554cb0797be959b601b51291 /mail/postgrey
parentacd3c19d081c09990c0ec35456af3bb186857175 (diff)
Notes
Diffstat (limited to 'mail/postgrey')
-rw-r--r--mail/postgrey/Makefile47
-rw-r--r--mail/postgrey/pkg-plist7
2 files changed, 27 insertions, 27 deletions
diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile
index 3ce75b205e90..f3b22ca0e475 100644
--- a/mail/postgrey/Makefile
+++ b/mail/postgrey/Makefile
@@ -34,45 +34,42 @@ PGY_DIR?= /var/db/postgrey
USERS= ${PGY_USERNAME}
GROUPS= ${PGY_GROUPNAME}
-MAN1= ${PORTNAME}.1 policy-test.1 postgreyreport.1
+MPAGES= postgrey.1 policy-test.1 postgreyreport.1
USES= shebangfix perl5
-SHEBANG_FILES= ${WRKSRC}/postgrey
-
-NO_STAGE= yes
+SHEBANG_FILES= postgrey policy-test contrib/postgreyreport
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
- @${REINPLACE_CMD} -e 's#nogroup#${PGY_GROUPNAME}#' ${WRKSRC}/postgrey
- @${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_*
- @${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PGY_DIR}#' ${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport
-
-pre-install:
- @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+ @${REINPLACE_CMD} -e 's#nogroup#${PGY_GROUPNAME}#' \
+ -e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey
+ @${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \
+ ${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_*
+ @${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PGY_DIR}#' \
+ ${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport
do-install:
- @${POD2MAN} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1
- @${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1
- @${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1
- @${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin
- @${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${PREFIX}/sbin
- @${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport ${PREFIX}/sbin
- @${INSTALL} -d ${PREFIX}/etc/postfix
+ ${POD2MAN} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1
+ ${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1
+ ${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1
+ ${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport \
+ ${STAGEDIR}${PREFIX}/sbin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}/${PGY_DIR}
.for i in ${ETCFILES}
- ${INSTALL_DATA} ${WRKSRC}/postgrey_${i} ${PREFIX}/etc/postfix/dist-postgrey_${i}
+ ${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \
+ ${STAGEDIR}${PREFIX}/etc/postfix/dist-postgrey_${i}
.endfor
.if ${PORT_OPTIONS:MDOCS}
- @${INSTALL} -d ${DOCSDIR}
- @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
- @cd ${WRKSRC} && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
-
-post-install:
- @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @cd ${WRKSRC} && \
+ ${INSTALL_MAN} ${MPAGES} ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/mail/postgrey/pkg-plist b/mail/postgrey/pkg-plist
index 6bb75d12dfc9..0f06b0f655bf 100644
--- a/mail/postgrey/pkg-plist
+++ b/mail/postgrey/pkg-plist
@@ -1,9 +1,12 @@
@unexec if cmp -s %D/etc/postfix/dist-postgrey_whitelist_recipients %D/etc/postfix/postgrey_whitelist_recipients; then rm -f %D/etc/postfix/postgrey_whitelist_recipients; fi
@unexec if cmp -s %D/etc/postfix/dist-postgrey_whitelist_clients %D/etc/postfix/postgrey_whitelist_clients; then rm -f %D/etc/postfix/postgrey_whitelist_clients; fi
+etc/postfix/dist-postgrey_whitelist_recipients
+etc/postfix/dist-postgrey_whitelist_clients
+man/man1/policy-test.1.gz
+man/man1/postgrey.1.gz
+man/man1/postgreyreport.1.gz
sbin/postgrey
sbin/policy-test
sbin/postgreyreport
-etc/postfix/dist-postgrey_whitelist_recipients
-etc/postfix/dist-postgrey_whitelist_clients
@dirrmtry etc/postfix
@unexec rmdir /var/db/postgrey 2>/dev/null || true