1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- OPTIONS-ify

- Fix typo in Spamcontrol author's name in pkg-descr
- Quell install_spamcontrol.sh's desire to install anything into PREFIX
  during configure phase

PR:		ports/78813
Submitted by:	Renato Botelho (maintainer)
This commit is contained in:
Sergei Kolobov 2005-03-14 14:01:46 +00:00
parent b93a513a18
commit 7cf8cdf2cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=131200
2 changed files with 34 additions and 45 deletions

View File

@ -21,6 +21,17 @@ QMAIL_DIST= ${PORTNAME}-${QMAIL_VERSION}${EXTRACT_SUFX}
SPAMCONTROL_DIST= spamcontrol-${SPAMCONTROL_VERSION}_tgz.bin
SPAMCONTROL_VERSION= 2312
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(PRE_MK_INCLUDED)
.include <bsd.port.pre.mk>
@ -49,22 +60,22 @@ MD5_FILE= ${.CURDIR}/distinfo
EXTRA_MAN8= qmail-badloadertypes.8 qmail-badmimetypes.8 qmail-recipients.8
MAN8+= ${EXTRA_MAN8}
DOCFILES+= ${WRKSRC}/FILES.spamcontrol ${WRKSRC}/HISTORY.spamcontrol \
${WRKSRC}/INSTALL.spamcontrol ${WRKSRC}/LICENSE.spamcontrol \
${WRKSRC}/LOGGING.spamcontrol ${WRKSRC}/Makefile.djbdns \
${WRKSRC}/README.auth ${WRKSRC}/README.bigtodo \
${WRKSRC}/README.bouncemaxbytes ${WRKSRC}/README.djbdns \
${WRKSRC}/README.doublebouncetrim ${WRKSRC}/README.moreipme \
${WRKSRC}/README.qmailqueue ${WRKSRC}/README.recipients \
${WRKSRC}/README.spamcontrol ${WRKSRC}/README.wildmat \
${WRKSRC}/README_spamcontrol.html \
${WRKSRC}/RELEASE_22.spamcontrol \
${WRKSRC}/RELEASE_23.spamcontrol \
${WRKSRC}/SMTPREPLY.spamcontrol ${WRKSRC}/TESTING.spamcontrol \
${WRKSRC}/TODO.spamcontrol ${WRKSRC}/badloadertypes \
${WRKSRC}/badmailfrom ${WRKSRC}/badmimetypes \
${WRKSRC}/badrcptto ${WRKSRC}/conf-spamcontrol \
${WRKSRC}/install_spamcontrol.sh ${WRKSRC}/tarpitcount
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
@ -123,48 +134,26 @@ SELECTED_OPTIONS+= bigtodo=yes
SELECTED_OPTIONS+= bigtodo=no
.endif
slaveport-pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} "WITH_RELAYMAILFROM Permit to open relay based"
@${ECHO_MSG} " on mailfrom (may be dangerous)"
@${ECHO_MSG} "WITH_QUITASAP Close SMTP session in case of a"
@${ECHO_MSG} " filter condition (violates SMTP RFC)"
@${ECHO_MSG} "WITHOUT_REQBRACKETS Disable function that requires"
@${ECHO_MSG} " brackets in <addresses>"
@${ECHO_MSG} "WITHOUT_VERP Disable VERP addresses for recipients"
@${ECHO_MSG} "WITH_RECIPIENTS550 In case of non existing"
@${ECHO_MSG} " recipients get a direct 550 reply"
@${ECHO_MSG} " instead of a deferred bounce (via 450)"
@${ECHO_MSG} "WITH_LOCALMFREQAUTH Require authentication when"
@${ECHO_MSG} " mailfrom is @ your local-domains"
@${ECHO_MSG} "WITH_AUTHCRAM Aditional CRAM-MD5 support; needs"
@${ECHO_MSG} " a CRAM-MD5 supporting PAM (ie. cmd5chkpw)"
@${ECHO_MSG} "WITH_MOREIPME Scott Gifford's additional control"
@${ECHO_MSG} " files moreipme and notipme"
@${ECHO_MSG} "WITH_BIGTODO Bruce Guenter's BigToDo patch consider"
@${ECHO_MSG} " raising conf-split in the first place"
@${ECHO_MSG} ""
post-extract:
@cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${SPAMCONTROL_DIST}
slaveport-post-patch:
cd ${WRKSRC} && ${PATCH} < ${.CURDIR}/files/patch-qmail-smtpd.c.patch
@cd ${WRKSRC} && \
${PATCH} -s < ${.CURDIR}/files/patch-qmail-smtpd.c.patch
post-configure:
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
@${MKDIR} ${PREFIX}/scripts
@cd ${WRKSRC} && ./install_spamcontrol.sh
post-install:
@${MKDIR} ${PREFIX}/scripts
.for script in ${SCRIPTS}
@${INSTALL_SCRIPT} ${WRKSRC}/${script} ${PREFIX}/scripts
@${INSTALL_SCRIPT} ${WRKDIR}/scripts/${script} ${PREFIX}/scripts
.endfor
.include "${MASTERDIR}/Makefile"

View File

@ -1,5 +1,5 @@
SpamControl is a collection of patches for qmail developed and maintained
by Erwin Hoffman (feh@fehcom.de).
by Erwin Hoffmann (feh@fehcom.de).
Some SpamControl features: smtp-auth (plain, login and cram-md5),
requirement of brackets on addresses, qmail-queue, bigtodo, moreipme,