diff options
author | dinoex <dinoex@FreeBSD.org> | 2007-01-13 12:16:24 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2007-01-13 12:16:24 +0800 |
commit | 39703ae41786868784e04b282862fc0866f2d7d7 (patch) | |
tree | 95a8a5f8eebd33afcb144264b9aaeee6a8421d5a /mail/spamilter | |
parent | 44fd51006809b35e7b92415f49a6d5df498af1fa (diff) | |
download | freebsd-ports-gnome-39703ae41786868784e04b282862fc0866f2d7d7.tar.gz freebsd-ports-gnome-39703ae41786868784e04b282862fc0866f2d7d7.tar.zst freebsd-ports-gnome-39703ae41786868784e04b282862fc0866f2d7d7.zip |
- use milter framework
Diffstat (limited to 'mail/spamilter')
-rw-r--r-- | mail/spamilter/Makefile | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/mail/spamilter/Makefile b/mail/spamilter/Makefile index c0790f5fc02c..627c4d0b795f 100644 --- a/mail/spamilter/Makefile +++ b/mail/spamilter/Makefile @@ -15,15 +15,6 @@ EXTRACT_SUFX= .tgz MAINTAINER= dinoex@FreeBSD.org COMMENT= A Sendmail LibMilter filter to block spam -.if !defined(SENDMAIL_MILTER_IN_BASE) -.if defined(SENDMAIL_WITH_SHARED_MILTER) -LIB_DEPENDS+= milter.3:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT} -.else -BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT} -.endif -.endif - -SENDMAIL_MILTER_PORT?= sendmail WRKSRC= ${WRKDIR}/${PORTNAME} HAS_CONFIGURE= yes CFLAGS+= ${PTHREAD_CFLAGS:S=""==} @@ -37,8 +28,9 @@ DOCSFILES= Changelog INSTALL LICENSE docs/docs.html docs/docs.txt \ .include <bsd.port.pre.mk> -.if !defined(SENDMAIL_MILTER_IN_BASE) -LDFLAGS+= -L${LOCALBASE}/lib +.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" + +.if defined(WITH_SENDMAIL_PORT) CONFIGURE_ARGS+= --sendmail-dir "${LOCALBASE}" .endif @@ -66,14 +58,6 @@ PLIST_FILES+= %%DOCSDIR%%/policy.html %%DOCSDIR%%/spamilter.rc PLIST_DIRS+= %%DOCSDIR%% .endif -.if defined(SENDMAIL_WITHOUT_MILTER) -pre-fetch: - @${ECHO_MSG} - @${ECHO_MSG} You must unset variable SENDMAIL_WITHOUT_MILTER, - @${ECHO_MSG} and rebuild sendmail in the ports - @${FALSE} -.endif - pre-configure: @${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/spamilter.sh \ > ${WRKSRC}/spamilter.sh |