diff options
author | garga <garga@FreeBSD.org> | 2006-02-11 01:06:24 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-02-11 01:06:24 +0800 |
commit | 996da8315c252751ac86f66969f9eb59529f0154 (patch) | |
tree | 017cb424656c02783258fc1042bbb53f5fa850de /mail/dspam | |
parent | 5c6724e2b5b8719948a20f47960a9f7e2af8a74e (diff) | |
download | freebsd-ports-gnome-996da8315c252751ac86f66969f9eb59529f0154.tar.gz freebsd-ports-gnome-996da8315c252751ac86f66969f9eb59529f0154.tar.zst freebsd-ports-gnome-996da8315c252751ac86f66969f9eb59529f0154.zip |
- Rewrite minimum OPTIONS version check, the old way was broken if the OPTIONS
where set in /var/db/ports/PORTNAME/options.
- Drop old knobs check, hard to maintain and conflicting with KNOBS.
- Fix brain-dead CONFLICTS from MFD.
PR: ports/93109
Submitted by: maintainer
Diffstat (limited to 'mail/dspam')
-rw-r--r-- | mail/dspam/Makefile | 55 | ||||
-rw-r--r-- | mail/dspam/files/UPDATING | 2 | ||||
-rw-r--r-- | mail/dspam/files/dspam.sh.in | 2 |
3 files changed, 13 insertions, 46 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile index bf3fb7366b4f..8cc422994002 100644 --- a/mail/dspam/Makefile +++ b/mail/dspam/Makefile @@ -3,7 +3,7 @@ # Whom: Dominic Marks <dom@wirespeed.org.uk> # # $FreeBSD$ -# $Tecnik: ports/mail/dspam/Makefile,v 1.7 2006/02/03 09:57:32 itetcu Exp $ +# $Tecnik: ports/mail/dspam/Makefile,v 1.10 2006/02/09 22:20:22 itetcu Exp $ # # Note to commiters: If don't commit a maintainer patch and as a result PKGNAME @@ -106,7 +106,7 @@ STRIP= PKGMESSAGE= ${WRKSRC}/src/README.FreeBSD -CONFLICTS= dspam-[0-9]* +CONFLICTS= dspam-devel-[0-9]* SIGNATURE_LIFE?= 15 @@ -124,15 +124,6 @@ DSPAM_HOME_MODE?= 0770 .include <bsd.port.pre.mk> - -MIN_OPTIONS_VER= dspam-devel-3.6.3 -.ifdef(_OPTIONS_READ) -OPTIONS_CMP!= ${PKG_VERSION} -t ${_OPTIONS_READ} ${MIN_OPTIONS_VER} -. if ${OPTIONS_CMP} == "<" -OPTIONS_MESSAGE= "You have unsupported (old) OPTIONS, please do a 'make config; make'" -. endif -.endif - CONFIGURE_ARGS+= --with-logdir=${LOG_DIR} PLIST_SUB+= LOG_DIR=${LOG_DIR} @@ -469,13 +460,7 @@ post-fetch: . endif .endif -pre-extract: -.ifdef(OPTIONS_MESSAGE) - @${ECHO_CMD} "" - @${ECHO_CMD} ${OPTIONS_MESSAGE} - @${ECHO_CMD} "" - exit 1 -.endif +pre-extract: check-options-version @${ECHO_CMD} "" @${ECHO_CMD} "Define vars below before make-ing if you need:" @${ECHO_CMD} "" @@ -496,32 +481,6 @@ pre-extract: @${ECHO_CMD} "" @sleep 5 -.for old_opt in MAILDROP PROCMAIL TRAD_BAYES ALT_BAYES SPAM_SUBJ \ - USER_LOGGING SYSTEM_LOGGING WEBMAIL OPT_IN SAT PARSE_TO_HEADERS \ - BROKEN_MTA BROKEN_ERR_CODES SIGNATURE_HEADERS SIGNATURE_ATACH \ - HOMEDIR_DOT SIGNATURE_LIFE SQLITE QUARANTINE_AGENT WHITELIST \ - POSTGRESQL73 POSTGRESQL74 GRAHAM_BAYES BURTON_BAYES RNB \ - TEST_COND NO_BIAS CHI_SQUARE RPV -. if defined(WITH_${old_opt}) || defined(WITHOUT_${old_opt}) - @${ECHO_CMD} "" - @${ECHO_CMD} "******************************************************************" - @${ECHO_CMD} "******************************************************************" - @${ECHO_CMD} "Either:" - @${ECHO_CMD} "an old option ${old_opt} or an old" - @${ECHO_CMD} "OPTIONS config-file ${_OPTIONS_READ} has been detected !!!" - @${ECHO_CMD} "Trying to prevent self-shooting this port's make ends here." - @${ECHO_CMD} "You shold always read ${PORTSDIR}/UPDATING before installing/updating" - @${ECHO_CMD} "any port. Please remove/adjust your pkgtools.conf, environment and" - @${ECHO_CMD} "your make command-line and/or do 'make rmconfig' as appropiate." - @${ECHO_CMD} "But before read ${FILESDIR}/UPDATING" - @${ECHO_CMD} "as a lot of things have changed. - @${ECHO_CMD} "******************************************************************" - @${ECHO_CMD} "******************************************************************" - @${ECHO_CMD} "" - @${FALSE} -. endif -.endfor - post-patch: @${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \ ${WRKSRC}/src/tools.mysql_drv/purge.sql @@ -682,4 +641,12 @@ post-install: @${ECHO_CMD} "message in ${DOCSDIR}/README.FreeBSD" @${ECHO_CMD} +check-options-version: +.ifdef(_OPTIONS_READ) + @(if ${PKG_VERSION} -t ${_OPTIONS_READ} ${MIN_OPTIONS_VER} | ${GREP} -q '<'; \ + then ${ECHO_CMD} "You have unsupported (old) OPTIONS, please do a 'make config; make'\n" \ + exit 1; \ + fi) +.endif + .include <bsd.port.post.mk> diff --git a/mail/dspam/files/UPDATING b/mail/dspam/files/UPDATING index a0220779f887..42057a77b059 100644 --- a/mail/dspam/files/UPDATING +++ b/mail/dspam/files/UPDATING @@ -1,5 +1,5 @@ # $FreeBSD$ -# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.6 2006/02/03 10:18:25 itetcu Exp $ +# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.8 2006/02/09 19:52:34 itetcu Exp $ # # for each PKGNAME or user option change an entry should be added in this file # each entry diff --git a/mail/dspam/files/dspam.sh.in b/mail/dspam/files/dspam.sh.in index 290f7ce602bf..1d35cf670382 100644 --- a/mail/dspam/files/dspam.sh.in +++ b/mail/dspam/files/dspam.sh.in @@ -1,7 +1,7 @@ #!/bin/sh # $FreeBSD$ # formerly $ FreeBSD: ports/mail/dspam/files/dspam,v 1.1 2005/05/05 21:03:37 pav Exp $ -# $Tecnik: ports/mail/dspam/files/dspam.sh.in,v 1.5 2006/02/03 10:13:00 itetcu Exp $ +# $Tecnik: ports/mail/dspam/files/dspam.sh.in,v 1.6 2006/02/09 19:14:29 itetcu Exp $ # # PROVIDE: dspam |