summaryrefslogtreecommitdiffstats
path: root/mail/qmail-spamcontrol/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/qmail-spamcontrol/Makefile')
-rw-r--r--mail/qmail-spamcontrol/Makefile126
1 files changed, 4 insertions, 122 deletions
diff --git a/mail/qmail-spamcontrol/Makefile b/mail/qmail-spamcontrol/Makefile
index 04df5aa..3814421 100644
--- a/mail/qmail-spamcontrol/Makefile
+++ b/mail/qmail-spamcontrol/Makefile
@@ -7,6 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${SPAMCONTROL_VERSION}
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES+= http://www.fehcom.de/qmail/spamcontrol/:spamcontrol
PKGNAMESUFFIX= -spamcontrol
@@ -16,138 +17,19 @@ 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
+EXTRA_PATCHES+= ${MASTERDIR}/files/patch-install.c
# Distfiles
QMAIL_DIST= ${PORTNAME}-${QMAIL_VERSION}${EXTRACT_SUFX}
SPAMCONTROL_DIST= spamcontrol-${SPAMCONTROL_VERSION}_tgz.bin
SPAMCONTROL_VERSION= 2313
-PREFIX?= ${QMAIL_PORT_PREFIX}
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
-OPTIONS= RELAYMAILFROM "Open relay based on mailfrom" off \
- QUITASAP "Close session in case of a filter condition" off \
- REQBRACKETS "Require brackets in <addresses>" on \
- VERP "VERP addresses for recipients" on \
- RECIPIENTS550 "Get a 550 reply instead of a deferred bounce" off \
- LOCALMFREQAUTH "Require auth when from is @ your domains" off \
- AUTHCRAM "Aditional CRAM-MD5 support" off \
- MOREIPME "Additional control files moreipme & notipme" off \
- BIGTODO "Bruce Guenter's BigToDo patch" off
-
-.if !defined(_PREMKINCLUDED)
-.include <bsd.port.pre.mk>
-.endif
+SLAVE_SPAMCONTROL= yes
+# Local overrides
MASTERDIR= ${.CURDIR}/../qmail
PATCHDIR= ${.CURDIR}/files
-# Using default from master port, i.e., /var/qmail
-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
-MAIN_QMAIL_PORT_SENDMAIL_F_PATCH_BARRIER= yes
-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}
-
-# Local overrides
DESCR= ${.CURDIR}/pkg-descr
-PLIST= ${.CURDIR}/pkg-plist
-MD5_FILE= ${.CURDIR}/distinfo
-
-EXTRA_MAN8= qmail-badloadertypes.8 qmail-badmimetypes.8 qmail-recipients.8
-MAN8+= ${EXTRA_MAN8}
-DOCFILES+= ${WRKDIR}/doc/FILES.spamcontrol ${WRKDIR}/doc/HISTORY.spamcontrol \
- ${WRKDIR}/doc/INSTALL.spamcontrol ${WRKDIR}/doc/LICENSE.spamcontrol \
- ${WRKDIR}/doc/LOGGING.spamcontrol ${WRKDIR}/doc/Makefile.djbdns \
- ${WRKDIR}/doc/README.auth ${WRKDIR}/doc/README.bigtodo \
- ${WRKDIR}/doc/README.bouncemaxbytes ${WRKDIR}/doc/README.djbdns \
- ${WRKDIR}/doc/README.doublebouncetrim ${WRKDIR}/doc/README.moreipme \
- ${WRKDIR}/doc/README.qmailqueue ${WRKDIR}/doc/README.recipients \
- ${WRKDIR}/doc/README.spamcontrol ${WRKDIR}/doc/README.wildmat \
- ${WRKDIR}/doc/README_spamcontrol.html \
- ${WRKDIR}/doc/RELEASE_22.spamcontrol \
- ${WRKDIR}/doc/RELEASE_23.spamcontrol \
- ${WRKDIR}/doc/SMTPREPLY.spamcontrol ${WRKDIR}/doc/TESTING.spamcontrol \
- ${WRKDIR}/doc/TODO.spamcontrol ${WRKDIR}/doc/badloadertypes \
- ${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 \
- qmail-users2recipients qmail-vpopmail2recipients
-
-# Fill SELECTED_OPTIONS with options to write conf-spamcontrol
-.if defined(WITH_RELAYMAILFROM)
-SELECTED_OPTIONS+= relaymailfrom=yes
-.else
-SELECTED_OPTIONS+= relaymailfrom=no
-.endif
-
-.if defined(WITH_QUITASAP)
-SELECTED_OPTIONS+= quitasap=yes
-.else
-SELECTED_OPTIONS+= quitasap=no
-.endif
-
-.if !defined(WITHOUT_REQBRACKETS)
-SELECTED_OPTIONS+= reqbrackets=yes
-.else
-SELECTED_OPTIONS+= reqbrackets=no
-.endif
-
-.if !defined(WITHOUT_VERP)
-SELECTED_OPTIONS+= verp=yes
-.else
-SELECTED_OPTIONS+= verp=no
-.endif
-
-.if defined(WITH_RECIPIENTS550)
-SELECTED_OPTIONS+= recipients550=yes
-.else
-SELECTED_OPTIONS+= recipients550=no
-.endif
-
-.if defined(WITH_LOCALMFREQAUTH)
-SELECTED_OPTIONS+= localmfreqauth=yes
-.else
-SELECTED_OPTIONS+= localmfreqauth=no
-.endif
-
-.if defined(WITH_AUTHCRAM)
-SELECTED_OPTIONS+= authcram=yes
-.else
-SELECTED_OPTIONS+= authcram=no
-.endif
-
-.if defined(WITH_MOREIPME)
-SELECTED_OPTIONS+= moreipme=yes
-.else
-SELECTED_OPTIONS+= moreipme=no
-.endif
-
-.if defined(WITH_BIGTODO)
-SELECTED_OPTIONS+= bigtodo=yes
-.else
-SELECTED_OPTIONS+= bigtodo=no
-.endif
-
-post-extract:
- @cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${SPAMCONTROL_DIST}
-
-pre-configure:
- @${ECHO_CMD} ${WRKDIR} > ${WRKSRC}/conf-qmail
- @${ECHO_CMD} "# Generated by qmail-spamcontrol FreeBSD port" \
- > ${WRKSRC}/conf-spamcontrol
-.for option in ${SELECTED_OPTIONS}
- @${ECHO_CMD} ${option} >> ${WRKSRC}/conf-spamcontrol
-.endfor
- @cd ${WRKSRC} && ./install_spamcontrol.sh
.include "${MASTERDIR}/Makefile"
OpenPOWER on IntegriCloud