summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/bogofilter/Makefile11
-rw-r--r--mail/bogofilter/PLIST11
-rw-r--r--mail/bogofilter/distinfo7
-rw-r--r--mail/bogofilter/patches/patch-aa29
4 files changed, 47 insertions, 11 deletions
diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile
index ab9a7b3abd2..7dd2af21444 100644
--- a/mail/bogofilter/Makefile
+++ b/mail/bogofilter/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2003/08/05 04:31:40 itojun Exp $
+# $NetBSD: Makefile,v 1.9 2003/09/30 07:11:48 xtraeme Exp $
#
-DISTNAME= bogofilter-0.14.2
+DISTNAME= bogofilter-0.14.5.4
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bogofilter/}
@@ -10,11 +10,16 @@ HOMEPAGE= http://bogofilter.sourceforge.net
COMMENT= Bayesian spam filter written in C
USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-db=${BUILDLINK_PREFIX.db4}/include/db4
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
-REPLACE_PERL= src/bogoupgrade
+EGDIR= ${PREFIX}/share/examples/bogofilter
+CONF_FILES= ${EGDIR}/bogofilter.cf ${PKG_SYSCONFDIR}/bogofilter.cf
+
+REPLACE_PERL= src/bogoupgrade
.include "../../databases/db4/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mail/bogofilter/PLIST b/mail/bogofilter/PLIST
index 29c25db9efb..ec32435fbb5 100644
--- a/mail/bogofilter/PLIST
+++ b/mail/bogofilter/PLIST
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/03 12:06:07 manu Exp $
+@comment $NetBSD: PLIST,v 1.2 2003/09/30 07:11:48 xtraeme Exp $
bin/bogofilter
-bin/bogoutil
bin/bogolexer
bin/bogoupgrade
-etc/bogofilter.cf.example
+bin/bogoutil
man/man1/bogofilter.1
-man/man1/bogoutil.1
-man/man1/bogoupgrade.1
man/man1/bogolexer.1
+man/man1/bogoupgrade.1
+man/man1/bogoutil.1
+share/examples/bogofilter/bogofilter.cf
+@dirrm share/examples/bogofilter
diff --git a/mail/bogofilter/distinfo b/mail/bogofilter/distinfo
index 41536b71598..71b4f995d09 100644
--- a/mail/bogofilter/distinfo
+++ b/mail/bogofilter/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.3 2003/08/05 04:31:40 itojun Exp $
+$NetBSD: distinfo,v 1.4 2003/09/30 07:11:48 xtraeme Exp $
-SHA1 (bogofilter-0.14.2.tar.gz) = 33ae905072b824005b6ea4d70c74f3c09f9dfce5
-Size (bogofilter-0.14.2.tar.gz) = 814380 bytes
+SHA1 (bogofilter-0.14.5.4.tar.gz) = fd2ce315aaa480a7aaf51e68ba113c6e25bb9b45
+Size (bogofilter-0.14.5.4.tar.gz) = 883395 bytes
+SHA1 (patch-aa) = 45b28c90c420cfdb80f974e1aebbcec3f1364076
diff --git a/mail/bogofilter/patches/patch-aa b/mail/bogofilter/patches/patch-aa
new file mode 100644
index 00000000000..8ed5d0aaecd
--- /dev/null
+++ b/mail/bogofilter/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1 2003/09/30 07:11:48 xtraeme Exp $
+
+--- Makefile.in.orig 2003-09-30 08:55:28.000000000 +0200
++++ Makefile.in 2003-09-30 08:56:15.000000000 +0200
+@@ -148,6 +148,7 @@
+
+ # what to build
+ sysconf_DATA = bogofilter.cf.example
++egdir = $(prefix)/share/examples/bogofilter
+
+ # what to build that from
+
+@@ -205,14 +206,8 @@
+ uninstall-info-am:
+ sysconfDATA_INSTALL = $(INSTALL_DATA)
+ install-sysconfDATA: $(sysconf_DATA)
+- @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
+- @list='$(sysconf_DATA)'; for p in $$list; do \
+- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+- f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
+- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
+- done
++ $(mkinstalldirs) $(egdir)
++ $(INSTALL_DATA) $(sysconf_DATA) $(egdir)/bogofilter.cf
+
+ uninstall-sysconfDATA:
+ @$(NORMAL_UNINSTALL)