pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/dspam Update to dspam 3.6.1 ok'ed xtraeme@
details: https://anonhg.NetBSD.org/pkgsrc/rev/92c24df8ab37
branches: trunk
changeset: 503009:92c24df8ab37
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Sat Nov 12 16:53:19 2005 +0000
description:
Update to dspam 3.6.1 ok'ed xtraeme@
Package changes:
- Add DSPAM_WWWUSER and DSPAM_WWWGROUP as BUILD_DEFS
(not everyone uses apache)
- Change group ownership on dspam.conf to ${DSPAM_WWWGROUP}
Pointed out in tech-pkg@ by matt (at) bodgit-n-scarper.com
- Remove patch-ac as that's been applied upstream
- PLIST fixes for css* tools installed with hash driver
>From DSPAM RELEASE_NOTES:
BUGFIX: ParseToHeaders can segfault on malformatted To header
BUGFIX: TrackSources does not correctly parse messages when used with QMail
BUGFIX: Missing check for existing strcasestr
BUGFIX: X-DSPAM-Reclassified heading appears blank
BUGFIX: Plused-Detail support does not work with domains
BUGFIX: Hash databases are not 8-byte aligned (do not work with 64-bit systems)
BUGFIX: Certain daemon-mode operations append a trailing period
BUGFIX: DataSource 'document' option causes improper processing
BUGFIX: Segfaults occur on malformed Content-Type header
BUGFIX: History appears blank in dspam.cgi
diffstat:
mail/dspam/Makefile | 18 ++++++++++--------
mail/dspam/PLIST | 6 +++++-
mail/dspam/distinfo | 9 ++++-----
mail/dspam/files/dspam.sh | 4 +---
mail/dspam/options.mk | 5 ++++-
mail/dspam/patches/patch-ac | 15 ---------------
6 files changed, 24 insertions(+), 33 deletions(-)
diffs (161 lines):
diff -r 1680141f0f38 -r 92c24df8ab37 mail/dspam/Makefile
--- a/mail/dspam/Makefile Sat Nov 12 16:48:01 2005 +0000
+++ b/mail/dspam/Makefile Sat Nov 12 16:53:19 2005 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.39 2005/10/20 08:33:13 adrianp Exp $
+# $NetBSD: Makefile,v 1.40 2005/11/12 16:53:19 adrianp Exp $
-DISTNAME= dspam-3.6.0
+DISTNAME= dspam-3.6.1
CATEGORIES= mail
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/
@@ -40,6 +40,7 @@
BUILD_DEFS+= DSPAM_DOMAIN
BUILD_DEFS+= DSPAM_WWWHOME
BUILD_DEFS+= DSPAM_PIDDIR
+BUILD_DEFS+= DSPAM_WWWUSER DSPAM_WWWGROUP
.include "../../mk/bsd.prefs.mk"
@@ -53,6 +54,8 @@
DSPAM_DOMAIN?= yourdomain.com
DSPAM_WWWHOME?= /dspam
DSPAM_PIDDIR?= ${VARBASE}/run/dspam
+DSPAM_WWWUSER?= ${APACHE_USER}
+DSPAM_WWWGROUP?= ${APACHE_GROUP}
CONFIGURE_ARGS+= --with-signature-life=${DSPAM_SIGNATURE_LIFE}
CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME} \
@@ -77,20 +80,20 @@
PKG_SYSCONFSUBDIR= dspam
CONF_FILES_PERMS= ${EGDIR}/dspam.conf ${PKG_SYSCONFDIR}/dspam.conf \
- ${DSPAM_USER} ${DSPAM_GROUP} 0640
+ ${DSPAM_USER} ${DSPAM_WWWGROUP} 0640
CONF_FILES_PERMS+= ${EGDIR}/cgi-admins ${PKG_SYSCONFDIR}/cgi-admins \
- ${APACHE_USER} ${APACHE_GROUP} 0640
+ ${DSPAM_WWWUSER} ${DSPAM_WWWGROUP} 0640
CONF_FILES_PERMS+= ${EGDIR}/cgi-default.prefs \
${PKG_SYSCONFDIR}/cgi-default.prefs \
- ${APACHE_USER} ${APACHE_GROUP} 0640
+ ${DSPAM_WWWUSER} ${DSPAM_WWWGROUP} 0640
CONF_FILES_PERMS+= ${EGDIR}/configure.pl ${PKG_SYSCONFDIR}/configure.pl \
- ${APACHE_USER} ${APACHE_GROUP} 0640
+ ${DSPAM_WWWUSER} ${DSPAM_WWWGROUP} 0640
PKG_GROUPS= ${DSPAM_GROUP}
PKG_USERS= ${DSPAM_USER}:${DSPAM_GROUP}
SPECIAL_PERMS= ${PREFIX}/bin/dspam ${DSPAM_USER} ${DSPAM_GROUP} \
${DSPAM_BINMODE}
-OWN_DIRS_PERMS= ${DSPAM_HOME} ${DSPAM_USER} ${APACHE_GROUP} 0775
+OWN_DIRS_PERMS= ${DSPAM_HOME} ${DSPAM_USER} ${DSPAM_WWWGROUP} 0775
OWN_DIRS_PERMS+= ${DSPAM_LOGDIR} ${DSPAM_USER} ${DSPAM_GROUP} 0775
OWN_DIRS_PERMS+= ${DSPAM_PIDDIR} ${DSPAM_USER} ${DSPAM_GROUP} 0770
@@ -122,7 +125,6 @@
${EGDIR}/cgi-default.prefs
${INSTALL_DATA} ${WRKSRC}/webui/cgi-bin/configure.pl \
${EGDIR}/configure.pl
- @${RM} ${WRKSRC}/webui/cgi-bin/dspam.cgi.orig
.for d in txt webui/cgi-bin webui/htdocs
${INSTALL_DATA_DIR} ${DATADIR}/${d}
diff -r 1680141f0f38 -r 92c24df8ab37 mail/dspam/PLIST
--- a/mail/dspam/PLIST Sat Nov 12 16:48:01 2005 +0000
+++ b/mail/dspam/PLIST Sat Nov 12 16:53:19 2005 +0000
@@ -1,4 +1,8 @@
-@comment $NetBSD: PLIST,v 1.10 2005/10/20 08:33:13 adrianp Exp $
+@comment $NetBSD: PLIST,v 1.11 2005/11/12 16:53:19 adrianp Exp $
+${HASH}bin/cssstat
+${HASH}bin/csscompress
+${HASH}bin/cssclean
+${HASH}bin/cssconvert
bin/dspam
bin/dspam_2sql
bin/dspam_admin
diff -r 1680141f0f38 -r 92c24df8ab37 mail/dspam/distinfo
--- a/mail/dspam/distinfo Sat Nov 12 16:48:01 2005 +0000
+++ b/mail/dspam/distinfo Sat Nov 12 16:53:19 2005 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.23 2005/10/20 08:33:13 adrianp Exp $
+$NetBSD: distinfo,v 1.24 2005/11/12 16:53:19 adrianp Exp $
-SHA1 (dspam-3.6.0.tar.gz) = 19c0064902544bde90d0302b5d657782a4f2cc8f
-RMD160 (dspam-3.6.0.tar.gz) = eb4b7ff0f260a12508b47d5141a9bf1a0cf49326
-Size (dspam-3.6.0.tar.gz) = 732042 bytes
+SHA1 (dspam-3.6.1.tar.gz) = 864cd85d44350c6b4d203cde40d025cf5015af82
+RMD160 (dspam-3.6.1.tar.gz) = d93f73ad87ea0061e3b2c3d4dc84578872bce74d
+Size (dspam-3.6.1.tar.gz) = 739389 bytes
SHA1 (patch-aa) = 04e94e3da9de06c15863425d0a827858b5dd4a6c
-SHA1 (patch-ac) = 3367158c25a6f50467359e3a09936ad7b9bb0be0
SHA1 (patch-ad) = ec80ac306fa6fcd62b4f531b11de773a7a28833f
diff -r 1680141f0f38 -r 92c24df8ab37 mail/dspam/files/dspam.sh
--- a/mail/dspam/files/dspam.sh Sat Nov 12 16:48:01 2005 +0000
+++ b/mail/dspam/files/dspam.sh Sat Nov 12 16:53:19 2005 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: dspam.sh,v 1.4 2005/10/20 08:33:13 adrianp Exp $
+# $NetBSD: dspam.sh,v 1.5 2005/11/12 16:53:19 adrianp Exp $
#
# PROVIDE: dspam
@@ -16,8 +16,6 @@
command="@PREFIX@/bin/${name}"
pidfile="@DSPAM_PIDDIR@/${name}.pid"
command_args="--daemon > /dev/null 2>&1 &"
-dspam_user="@DSPAM_USER@"
-dspam_group="@DSPAM_GROUP@"
start_precmd="dspam_precmd"
dspam_precmd()
diff -r 1680141f0f38 -r 92c24df8ab37 mail/dspam/options.mk
--- a/mail/dspam/options.mk Sat Nov 12 16:48:01 2005 +0000
+++ b/mail/dspam/options.mk Sat Nov 12 16:53:19 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.12 2005/10/29 12:36:50 recht Exp $
+# $NetBSD: options.mk,v 1.13 2005/11/12 16:53:19 adrianp Exp $
.if defined(DSPAM_DELIVERY_AGENT) && !empty(DSPAM_DELIVERY_AGENT:Mcustom)
DSPAM_DELIVERY_AGENT:= ${DSPAM_DELIVERY_AGENT_ARGS}
@@ -53,6 +53,7 @@
.endif
.if !empty(DSPAM_STORAGE_DRIVER:Mhash)
CONFIGURE_ARGS+= --with-storage-driver=hash_drv
+HASH_PLIST_SUBST+= HASH=
.elif !empty(DSPAM_STORAGE_DRIVER:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --enable-mysql4-initialization
@@ -92,10 +93,12 @@
MYSQL_PLIST_SUBST?= MYSQL="@comment "
PGSQL_PLIST_SUBST?= PGSQL="@comment "
SQLITE_PLIST_SUBST?= SQLITE="@comment "
+HASH_PLIST_SUBST?= HASH="@comment "
PLIST_SUBST+= ${MYSQL_PLIST_SUBST}
PLIST_SUBST+= ${PGSQL_PLIST_SUBST}
PLIST_SUBST+= ${SQLITE_PLIST_SUBST}
+PLIST_SUBST+= ${HASH_PLIST_SUBST}
###
### The following are only available for mysql and pgsql backends.
diff -r 1680141f0f38 -r 92c24df8ab37 mail/dspam/patches/patch-ac
--- a/mail/dspam/patches/patch-ac Sat Nov 12 16:48:01 2005 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2005/10/20 08:33:13 adrianp Exp $
-
---- webui/cgi-bin/dspam.cgi.orig 2005-10-17 15:31:46.000000000 +0100
-+++ webui/cgi-bin/dspam.cgi
-@@ -195,8 +195,8 @@ sub DisplayHistory {
- }
- close (LINES);
-
-- $end = $all_lines - (($history_site-1) * $CONFIG{'HISTORY_PER_SITE'});
-- $begin = $end - $CONFIG{'HISTORY_PER_SITE'} + 1 ;
-+ $end = $all_lines - (($history_site-1) * $CONFIG{'HISTORY_PER_PAGE'});
-+ $begin = $end - $CONFIG{'HISTORY_PER_PAGE'} + 1 ;
-
- if ($begin < 0) {
- $begin = 1;
Home |
Main Index |
Thread Index |
Old Index