ports/93109: [MAINTANER] mail/dspam: fix build; fix CONFLICTS

Ion-Mihai IOnut Tetcu itetcu at people.tecnik93.com
Thu Feb 9 22:50:04 UTC 2006


>Number:         93109
>Category:       ports
>Synopsis:       [MAINTANER]  mail/dspam: fix build; fix CONFLICTS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 09 22:50:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Ion-Mihai "IOnut" Tetcu
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
Tecnik'93 
>Environment:


System: FreeBSD 6.0-STABLE #1: Mon Jan 23 00:45:10 EET 2006



>Description:


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.

Diff also at:
people.tecnik93.com/~itetcu/FreeBSD/ports/dspam/port/dspam.diff

Tinderbox build logs at:
people.tecnik93.com/~itetcu/FreeBSD/ports/dspam/build_logs/



>How-To-Repeat:





>Fix:


--- dspam.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/dspam/Makefile,v
retrieving revision 1.48
diff -u -r1.48 Makefile
--- Makefile	6 Feb 2006 12:36:50 -0000	1.48
+++ Makefile	9 Feb 2006 22:21:20 -0000
@@ -3,7 +3,7 @@
 # Whom:					Dominic Marks <dom at wirespeed.org.uk>
 #
 # $FreeBSD: ports/mail/dspam/Makefile,v 1.48 2006/02/06 12:36:50 erwin Exp $
-# $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 @@
 
 PKGMESSAGE=	 ${WRKSRC}/src/README.FreeBSD
 
-CONFLICTS=	dspam-[0-9]*
+CONFLICTS=	dspam-devel-[0-9]*
 
 SIGNATURE_LIFE?=	15
 
@@ -124,15 +124,6 @@
 
 .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 @@
 .	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 @@
 	@${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
@@ -681,5 +640,13 @@
 	@${ECHO_CMD} "If you haven't defined NOPORTDOCS you can review this"
 	@${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>
Index: files/UPDATING
===================================================================
RCS file: /home/ncvs/ports/mail/dspam/files/UPDATING,v
retrieving revision 1.20
diff -u -r1.20 UPDATING
--- files/UPDATING	4 Feb 2006 13:26:43 -0000	1.20
+++ files/UPDATING	9 Feb 2006 22:21:23 -0000
@@ -1,5 +1,5 @@
 # $FreeBSD: ports/mail/dspam/files/UPDATING,v 1.20 2006/02/04 13:26:43 garga Exp $
-# $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 
Index: files/dspam.sh.in
===================================================================
RCS file: /home/ncvs/ports/mail/dspam/files/dspam.sh.in,v
retrieving revision 1.4
diff -u -r1.4 dspam.sh.in
--- files/dspam.sh.in	4 Feb 2006 13:26:43 -0000	1.4
+++ files/dspam.sh.in	9 Feb 2006 22:21:23 -0000
@@ -1,7 +1,7 @@
 #!/bin/sh
 # $FreeBSD: ports/mail/dspam/files/dspam.sh.in,v 1.4 2006/02/04 13:26:43 garga Exp $
 # 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
--- dspam.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list