From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Dec 7 01:20:30 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49BDC16A4CE for ; Tue, 7 Dec 2004 01:20:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB79043D5E for ; Tue, 7 Dec 2004 01:20:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB71KTvP036957 for ; Tue, 7 Dec 2004 01:20:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB71KTpL036956; Tue, 7 Dec 2004 01:20:29 GMT (envelope-from gnats) Resent-Date: Tue, 7 Dec 2004 01:20:29 GMT Resent-Message-Id: <200412070120.iB71KTpL036956@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ion-Mihai " IOnut " Tetcu" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94DB616A4CE for ; Tue, 7 Dec 2004 01:14:50 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5718F43D49 for ; Tue, 7 Dec 2004 01:14:49 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 26042 invoked by uid 89); 7 Dec 2004 01:19:15 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 7 Dec 2004 01:19:15 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 81FFC11887 for ; Tue, 7 Dec 2004 03:14:46 +0200 (EET) Message-Id: <1102382086.0@it.buh.tecnik93.com> Date: Tue, 7 Dec 2004 03:14:46 +0200 From: "Ion-Mihai " IOnut " Tetcu" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4 Subject: ports/74796: [MAINTAINER-UPDATE] mail/dspam: bug-fixes, update and more X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 01:20:30 -0000 >Number: 74796 >Category: ports >Synopsis: [MAINTAINER-UPDATE] mail/dspam: bug-fixes, update and more >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: Tue Dec 07 01:20:29 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Ion-Mihai "IOnut" Tetcu >Release: FreeBSD 5.3-STABLE i386 >Organization: Tecnik'93 >Environment: System: FreeBSD 5.3-STABLE #11: Thu Nov 18 16:11:29 EET 2004 >Description: Update to 20041203.1245 cvs snap-shot and: - add support for MYSQL50 and handle MYSQL cases right [1] - add support for exim [2] which we build with the same database back-end as dspam if possible - fix PREF_EXT and BDB4 cases as well in our Makefile - also small vendor bug-fixes (pgp signed mails, pgsql driver) [1] based on ports/74761 by Gea-Suan Lin [2] suggested, incorrectly, in ports/74762 by Shahbaz Javeed >How-To-Repeat: >Fix: --- dspam_3.2.3_to_3.2.3.20041203.1245.diff begins here --- diff -urN dspam.cvs/Makefile dspam/Makefile --- dspam.cvs/Makefile Wed Dec 1 22:34:40 2004 +++ dspam/Makefile Tue Dec 7 03:00:25 2004 @@ -9,14 +9,14 @@ PORTVERSION= 3.2.3${SNAP_DATE} CATEGORIES= mail MASTER_SITES= http://people.tecnik93.com/~itetcu/FreeBSD/ports/dspam/sources/ -#DISTFILES= dspam.3.2.3.cvs.stable${SNAP_DATE}.tar.gz +DISTFILES= dspam.3.2.3.cvs.stable${SNAP_DATE}.tar.gz MAINTAINER= itetcu@people.tecnik93.com COMMENT= Bayesian spam filter - development version -#WRKSRC= ${WRKDIR}/dspam-cvs-stable${SNAP_DATE} +WRKSRC= ${WRKDIR}/dspam-cvs-stable${SNAP_DATE} -#SNAP_DATE= .20041201.0000 +SNAP_DATE= .20041203.1245 ## debug / log / admin options OPTIONS= DEBUG "Enable debugging logging" on @@ -26,6 +26,7 @@ #OPTIONS+= SAT "Log spam source addresses to syslog" on #OPTIONS+= PARSE_TO_HEADERS "Get user from To header on fp spam" off OPTIONS+= PREF_EXT "Preferences in database not in files" off + ## algorithm options OPTIONS+= GRAHAM_BAYES "Enable Graham (traditional) bayesian" on OPTIONS+= BURTON_BAYES "Enable Burton (alternative) bayesian" on @@ -36,18 +37,22 @@ OPTIONS+= NO_BIAS "No bias toward innocent mail" off OPTIONS+= WHITELIST "Automatic whitelisting of ham" off OPTIONS+= NEURAL_NET "Enable neural networking" off + ## run-time configure options #OPTIONS+= HOMEDIR_DOT "Dot files in ~/USER not DSPAM_HOME" off OPTIONS+= USER_HOMEDIR "Store user data in ~/.dspam" off #OPTIONS+= OPT_IN "Run only for users with .dspam" off OPTIONS+= TRUSTED_USERS "Disable trusted user security" off + ## mesage taging options #OPTIONS+= SPAM_SUBJ "Prepends SPAM to the Subject header" off #OPTIONS+= SIGNATURE_HEADERS "Put signatures IDs ONLY in headers" off #OPTIONS+= WEBMAIL "Only with mail stored server-side" off + ## back-end OPTIONS+= MYSQL40 "Use MySQL 4.0.x as back-end" off OPTIONS+= MYSQL41 "Use MySQL 4.1.x as back-end" off +OPTIONS+= MYSQL50 "Use MySQL 5.0.x as back-end" off OPTIONS+= MYSQL_COMPRESS "Compress dspam <--> MySQL" off OPTIONS+= POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off OPTIONS+= POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off @@ -60,11 +65,13 @@ OPTIONS+= LARGE_SCALE "File structure for large scale" off OPTIONS+= DOMAIN_SCALE "File structure for multiple domains" off #OPTIONS+= SIGNATURE_ATACH "Put server-side signature in mails" off + ## MTA and LDA -OPTIONS+= MAILDROP_LDA "Use Maildrop as local delivery agent" off -OPTIONS+= PROCMAIL_LDA "Use Procmail as local delivery agent" off OPTIONS+= CYRUS21_LDA "Use Cyrus's 2.1 deliver as LDA" off OPTIONS+= CYRUS22_LDA "Use Cyrus's 2.2 deliver as LDA" off +OPTIONS+= EXIM_LDA "Use Exim as local delivery agent" off +OPTIONS+= MAILDROP_LDA "Use Maildrop as local delivery agent" off +OPTIONS+= PROCMAIL_LDA "Use Procmail as local delivery agent" off OPTIONS+= SENDMAIL_LDA "Use Sendmail as local delivery agent" off OPTIONS+= SENDMAIL "Play nice with sendmail server" off @@ -161,7 +168,7 @@ #CONFIGURE_ARGS+= --enable-parse-to-headers #.endif -.if defined(PREF_EXT) +.if defined(WITH_PREF_EXT) CONFIGURE_ARGS+= --enable-preferences-extension .endif @@ -243,7 +250,7 @@ #CONFIGURE_ARGS+= --enable-webmail #.endif -DBDRV_TOTAL_COUNT= ooooooo # 7 +DBDRV_TOTAL_COUNT= oooooooo # 8 DBDRV_COUNT= ${DBDRV_TOTAL_COUNT} .if defined(WITH_MYSQL40) @@ -252,9 +259,13 @@ .elseif defined(WITH_MYSQL41) WANT_MYSQL_VER= 41 #PKGNAMESUFFIX= -mysql41 +.elseif defined(WITH_MYSQL50) +WANT_MYSQL_VER= 50 +#PKGNAMESUFFIX= -mysql50 .endif -.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) +.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) || defined(WITH_MYSQL50) +HAVE_MYSQL= yes CONFIGURE_ARGS+= --with-storage-driver=mysql_drv \ --with-mysql-includes=${LOCALBASE}/include/mysql \ --with-mysql-libraries=${LOCALBASE}/lib/mysql @@ -314,7 +325,7 @@ DBDRV_COUNT:= ${DBDRV_COUNT:S/o//} .endif -.if defined(WITH_BDB) +.if defined(WITH_BDB4) LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41 CONFIGURE_ARGS+= --with-storage-driver=libdb4_drv \ --with-db4-includes=${LOCALBASE}/include/db41 @@ -330,7 +341,6 @@ .endif .if ${DBDRV_TOTAL_COUNT}==${DBDRV_COUNT} || defined(WITH_SQLITE) -# DBDRV_COUNT==!(defined(WITH_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE) || defined(WITH_BDB)) WITH_SQLITE= on LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite CONFIGURE_ARGS+= --with-storage-driver=sqlite_drv \ @@ -362,9 +372,39 @@ .endif # add one 'o' here for each new LDA -LDA_TOTAL_COUNT= oooooo #6 +LDA_TOTAL_COUNT= ooooooo #7 LDA_COUNT= ${LDA_TOTAL_COUNT} +.if defined(WITH_CYRUS21_LDA) +RUN_DEPENDS+= ${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd2 +#CONFIGURE_ARGS+=\ +#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u' +CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver' +LDA_COUNT:= ${LDA_COUNT:S/o//} +.endif + +.if defined(WITH_CYRUS22_LDA) +RUN_DEPENDS+= ${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd22 +#CONFIGURE_ARGS+=\ +#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u' +CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver' +LDA_COUNT:= ${LDA_COUNT:S/o//} +.endif + +.if defined(WITH_EXIM_LDA) +. if defined(WITH_MYSQL40) || (WITH_MYSQL41) +_EXIM_EXT= -mysql +. elseif defined(WITH_POSTGRESQL74) || defined(WITH_POSTGRESQL73) +#### +### fix me for pg 7.3: how to pass the db option to exim port ? +### +_EXIM_EXT= -postgresql +. endif +RUN_DEPENDS+= exim:${PORTSDIR}/mail/exim${_EXIM_EXT} +CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/sbin/exim' +LDA_COUNT:= ${LDA_COUNT:S/o//} +.endif + .if defined(WITH_MAILDROP_LDA) RUN_DEPENDS+= maildrop:${PORTSDIR}/mail/maildrop CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/bin/maildrop -d $$u' @@ -390,22 +430,6 @@ . endif .endif -.if defined(WITH_CYRUS21_LDA) -RUN_DEPENDS+= ${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd2 -#CONFIGURE_ARGS+=\ -#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u' -CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver' -LDA_COUNT:= ${LDA_COUNT:S/o//} -.endif - -.if defined(WITH_CYRUS22_LDA) -RUN_DEPENDS+= ${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd22 -#CONFIGURE_ARGS+=\ -#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u' -CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver' -LDA_COUNT:= ${LDA_COUNT:S/o//} -.endif - .if defined(WITH_SENDMAIL) CONFIGURE_ARGS+= --with-dspam-mode=4511 .endif @@ -474,15 +498,23 @@ RELEASE.NOTES pre-extract: -BAD_OPT= `${PKG_VERSION} -t ${_OPTIONS_READ} ${PKGNAME}` - -pre-patch: @${ECHO_CMD} "" @${ECHO_CMD} "******************************************************************" @${ECHO_CMD} "Warning: If upgrading please proceed as stated in" @${ECHO_CMD} "${FILESDIR}/UPDATING" @${ECHO_CMD} "******************************************************************" @${ECHO_CMD} "" +.if defined(WITH_EXIM_LDA) && defined(WITH_POSTGRESQL73) + @${ECHO_CMD} "******************************************************************" + @${ECHO_CMD} "You have both EXIM_LDA and POSTGRESQL73 defined. To have exim" + @${ECHO_CMD} "built with the right pgsql please hit Ctrl-C now and do:" + @${ECHO_CMD} "cd ${PORTSDIR}/mail/exim-postgresql && make POSTGRESQL_PORT=postgresql73 install" + @${ECHO_CMD} "then return here and do:" + @${ECHO_CMD} "make clean && make install" + @${ECHO_CMD} "******************************************************************" + @${ECHO_CMD} "" +.endif + @${ECHO_CMD} "Define vars below before make-ing if you need:" @${ECHO_CMD} "" @${ECHO_CMD} "SIGNATURE_LIFE (default 15)" @@ -500,12 +532,14 @@ @${ECHO_CMD} "installed in other place that this installation's default" @${ECHO_CMD} "${PREFIX}/www/vhosts/dspam" . endif + @${ECHO_CMD} "" + @sleep 5 + .for old_opt in MAILDROP PROCMAIL TRAD_BAYES ALT_BAYES WITH_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 -. if defined(WITH_${old_opt}) || defined(WITHOUT_${old_opt}) || ${BAD_OPT}=='<' -#. if defined(CUCU) +. if defined(WITH_${old_opt}) || defined(WITHOUT_${old_opt}) @${ECHO_CMD} "" @${ECHO_CMD} "******************************************************************" @${ECHO_CMD} "******************************************************************" @@ -551,16 +585,16 @@ @${ECHO_CMD} "You can use one and only one database back-end at once." @${FALSE} .endif -.if defined(WITH_NEURAL_NET) && !(defined(WITH_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74)) +.if defined(WITH_NEURAL_NET) && !(defined(HAVE_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74)) @${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking." @${FALSE} .endif -.if defined(WITH_VIRT_USERS) && !(defined(WITH_MYSQL) || \ +.if defined(WITH_VIRT_USERS) && !(defined(HAVE_MYSQL) || \ defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE)) @${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users." @${FALSE} .endif -.if defined(WITH_PREF_EXT) && !( defined(WITH_MYSQL) || \ +.if defined(WITH_PREF_EXT) && !( defined(HAVE_MYSQL) || \ defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) ) @${ECHO_CMD} "You need MySQL or Postgres for preferences extension" @${FALSE} @@ -579,7 +613,7 @@ # @${MKDIR} ${LOG_DIR} # @${MKDIR} ${DSPAM_HOME} -.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) +.if defined(HAVE_MYSQL) @${MKDIR} ${EXAMPLESDIR}/mysql cd ${WRKSRC}/tools.mysql_drv && \ ${INSTALL_DATA} README mysql_objects-space.sql \ diff -urN dspam.cvs/distinfo dspam/distinfo --- dspam.cvs/distinfo Mon Nov 29 23:19:51 2004 +++ dspam/distinfo Tue Dec 7 00:46:52 2004 @@ -1,2 +1,2 @@ -MD5 (dspam-3.2.3.tar.gz) = 0c5d62df8746332906d487d5c5ad9926 -SIZE (dspam-3.2.3.tar.gz) = 620153 +MD5 (dspam.3.2.3.cvs.stable.20041203.1245.tar.gz) = 8d6c409328ebc3eaf5468ac2bee092e6 +SIZE (dspam.3.2.3.cvs.stable.20041203.1245.tar.gz) = 620629 diff -urN dspam.cvs/files/UPDATING dspam/files/UPDATING --- dspam.cvs/files/UPDATING Mon Nov 29 23:19:51 2004 +++ dspam/files/UPDATING Tue Dec 7 02:46:18 2004 @@ -11,6 +11,20 @@ make extract; more `find . -type f -maxdepth 2 -name UPGRADING` ############################################################################# +# dspam-3.2.3.20041203.1245 +# + +- now we support also MYSQL50 and we handle MYSQL cases right based on a +patch sent by Gea-Suan Lin +- add support for exim as suggested by +Shahbaz Javeed ; we try to build exim with the same +database back-end if possible (still work to do to automate pg 7.3 case) +- fix PREF_EXT and BDB4 cases as well in our Makefile (actually is 4.1 and +I'm thinking about dropping support for it since SQLite works a lot better if +you don't want a full sql server; feedback welcome) +- also small vendor bug-fixes (pgp signed mails, pgsql driver) + +############################################################################# # dspam-3.2.3 # @@ -19,7 +33,6 @@ BUGFIX: Signature is not written to multipart blocks with no content type BUGFIX: dspam_dump for a particular token fails with MySQL 4.1 BUGFIX: Bayesian Noise Reduction is never instantiated - ############################################################################# # dspam-3.2.2.20041117.1515: --- dspam_3.2.3_to_3.2.3.20041203.1245.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: