aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail-spamcontrol/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/qmail-spamcontrol/Makefile')
-rw-r--r--mail/qmail-spamcontrol/Makefile25
1 files changed, 10 insertions, 15 deletions
diff --git a/mail/qmail-spamcontrol/Makefile b/mail/qmail-spamcontrol/Makefile
index 80949b73bcc6..04df5aa02274 100644
--- a/mail/qmail-spamcontrol/Makefile
+++ b/mail/qmail-spamcontrol/Makefile
@@ -16,6 +16,9 @@ EXTRACT_ONLY= ${QMAIL_DIST}
MAINTAINER= freebsd@galle.com.br
COMMENT= Qmail MTA with SpamControl patches
+EXTRA_PATCHES+= ${QMAIL_PORT_PATCHDIR}/patch-aa ${QMAIL_PORT_PATCHDIR}/patch-ab \
+ ${QMAIL_PORT_PATCHDIR}/patch-ac
+
# Distfiles
QMAIL_DIST= ${PORTNAME}-${QMAIL_VERSION}${EXTRACT_SUFX}
SPAMCONTROL_DIST= spamcontrol-${SPAMCONTROL_VERSION}_tgz.bin
@@ -33,14 +36,15 @@ OPTIONS= RELAYMAILFROM "Open relay based on mailfrom" off \
MOREIPME "Additional control files moreipme & notipme" off \
BIGTODO "Bruce Guenter's BigToDo patch" off
-.if !defined(PRE_MK_INCLUDED)
+.if !defined(_PREMKINCLUDED)
.include <bsd.port.pre.mk>
.endif
+MASTERDIR= ${.CURDIR}/../qmail
+PATCHDIR= ${.CURDIR}/files
# Using default from master port, i.e., /var/qmail
-QMAIL_PORT= ${PORTSDIR}/mail/qmail
-QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
-MASTERDIR= ${QMAIL_PORT}
+QMAIL_PORT_PREFIX!= cd ${MASTERDIR} && ${MAKE} -V PREFIX
+QMAIL_PORT_PATCHDIR!= cd ${MASTERDIR} && ${MAKE} -V PATCHDIR
# Block some patches because SpamControl contain the same patches inside
MAIN_QMAIL_PORT_DNS_PATCH_BARRIER= yes
@@ -49,6 +53,7 @@ MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER= yes
MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER= yes
MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER= yes
MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER= yes
+MAIN_QMAIL_PORT_RFC2821_PATCH_BARRIER= yes
ALL_TARGET+= ${EXTRA_MAN8}
@@ -75,7 +80,7 @@ DOCFILES+= ${WRKDIR}/doc/FILES.spamcontrol ${WRKDIR}/doc/HISTORY.spamcontrol \
${WRKDIR}/doc/badmailfrom ${WRKDIR}/doc/badmimetypes \
${WRKDIR}/doc/badrcptto ${WRKDIR}/doc/conf-spamcontrol \
${WRKDIR}/doc/install_spamcontrol.sh ${WRKDIR}/doc/tarpitcount
-SCRIPTS= qmail-alias2recipients qmail-pwd2recipients \
+SCRIPTS+= qmail-alias2recipients qmail-pwd2recipients \
qmail-users2recipients qmail-vpopmail2recipients
# Fill SELECTED_OPTIONS with options to write conf-spamcontrol
@@ -136,10 +141,6 @@ SELECTED_OPTIONS+= bigtodo=no
post-extract:
@cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${SPAMCONTROL_DIST}
-slaveport-post-patch:
- @cd ${WRKSRC} && \
- ${PATCH} -s < ${.CURDIR}/files/patch-qmail-smtpd.c.patch
-
pre-configure:
@${ECHO_CMD} ${WRKDIR} > ${WRKSRC}/conf-qmail
@${ECHO_CMD} "# Generated by qmail-spamcontrol FreeBSD port" \
@@ -149,10 +150,4 @@ pre-configure:
.endfor
@cd ${WRKSRC} && ./install_spamcontrol.sh
-post-install:
- @${MKDIR} ${PREFIX}/scripts
-.for script in ${SCRIPTS}
- @${INSTALL_SCRIPT} ${WRKDIR}/scripts/${script} ${PREFIX}/scripts
-.endfor
-
.include "${MASTERDIR}/Makefile"