From c03c270facce87c09286ac50ec2c52137e51e835 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 9 Aug 2004 20:14:21 +0000 Subject: Avoid calling mkdir() with a trailing slash, as some systems don't support it. DSPAM now correctly creates per-user statistics files on NetBSD 1.6.2. Bump PKGREVISION. --- mail/dspam/Makefile | 8 ++++---- mail/dspam/distinfo | 3 ++- mail/dspam/patches/patch-aa | 28 ++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 mail/dspam/patches/patch-aa (limited to 'mail') diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile index dc7b5c74bd2..6ab00825ca6 100644 --- a/mail/dspam/Makefile +++ b/mail/dspam/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.7 2004/08/07 18:26:25 jlam Exp $ +# $NetBSD: Makefile,v 1.8 2004/08/09 20:14:21 jlam Exp $ DISTNAME= dspam-3.0.0 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= mail MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/ @@ -48,8 +48,8 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS+= --enable-chi-square CONFIGURE_ARGS+= --enable-robinson-pvalues CONFIGURE_ARGS+= --with-signature-life=${DSPAM_SIGNATURE_LIFE} -CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME} -CONFIGURE_ARGS+= --with-dspam-home-owner=${DSPAM_USER} \ +CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME} \ + --with-dspam-home-owner=${DSPAM_USER} \ --with-dspam-home-group=${DSPAM_GROUP} \ --with-dspam-owner=${DSPAM_USER} \ --with-dspam-group=${DSPAM_GROUP} \ diff --git a/mail/dspam/distinfo b/mail/dspam/distinfo index 03ef99dcdf8..add6d85edd3 100644 --- a/mail/dspam/distinfo +++ b/mail/dspam/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2004/06/20 19:41:24 xtraeme Exp $ +$NetBSD: distinfo,v 1.2 2004/08/09 20:14:21 jlam Exp $ SHA1 (dspam-3.0.0.tar.gz) = d400a5ba9b5ad558917deba2eaf1ea2259068ac4 Size (dspam-3.0.0.tar.gz) = 575382 bytes +SHA1 (patch-aa) = 1b74fa84b4e815be8e0fd59a7189fda2e4e64696 diff --git a/mail/dspam/patches/patch-aa b/mail/dspam/patches/patch-aa new file mode 100644 index 00000000000..24e6a3ccdd7 --- /dev/null +++ b/mail/dspam/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1 2004/08/09 20:14:21 jlam Exp $ + +--- util.c.orig Mon Jun 7 17:27:49 2004 ++++ util.c +@@ -331,11 +331,13 @@ _ds_prepare_path_for (const char *filena + file_buffer_start = file; + path[0] = 0; + ++ if (file[0] == '/') ++ strlcat (path, "/", sizeof (path)); + dir = strsep (&file, "/"); ++ + while (dir != NULL) + { + strlcat (path, dir, sizeof (path)); +- strlcat (path, "/", sizeof (path)); + dir = strsep (&file, "/"); + + if (dir != NULL && stat (path, &s)) +@@ -350,6 +352,8 @@ _ds_prepare_path_for (const char *filena + return EFILE; + } + } ++ if (dir != NULL) ++ strlcat (path, "/", sizeof (path)); + } + free (file_buffer_start); + return 0; -- cgit v1.2.3