aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-01-18 06:54:57 +0800
committerthierry <thierry@FreeBSD.org>2005-01-18 06:54:57 +0800
commit9ee2e3244a2b3c1981a5caa41ac1a657f2237d4c (patch)
tree4476c85309317b39dbea02231b345a3085f7cffe /mail
parent3c352010713086e60a44e6320af0cd0f2b65d966 (diff)
downloadfreebsd-ports-graphics-9ee2e3244a2b3c1981a5caa41ac1a657f2237d4c.tar.gz
freebsd-ports-graphics-9ee2e3244a2b3c1981a5caa41ac1a657f2237d4c.tar.zst
freebsd-ports-graphics-9ee2e3244a2b3c1981a5caa41ac1a657f2237d4c.zip
Upgrade to 20050115.
Note: this is actually version 2.0-RC3. The configuration process for 2.0 is similar to that for SpamBouncer 1.9, although some details differ.
Diffstat (limited to 'mail')
-rw-r--r--mail/spambnc/Makefile25
-rw-r--r--mail/spambnc/distinfo7
-rw-r--r--mail/spambnc/files/pkg-message.in6
-rw-r--r--mail/spambnc/pkg-message5
4 files changed, 31 insertions, 12 deletions
diff --git a/mail/spambnc/Makefile b/mail/spambnc/Makefile
index 904046fae6e..7dd56c3691c 100644
--- a/mail/spambnc/Makefile
+++ b/mail/spambnc/Makefile
@@ -6,13 +6,13 @@
#
PORTNAME= spambnc
-PORTVERSION= 20041223
+PORTVERSION= 20050115
CATEGORIES= mail
MASTER_SITES= http://www.spambouncer.org/ \
ftp://ftp.spambouncer.org/
-DISTFILES= sb.tar.gz index.shtml
+DISTFILES= sb-new.tar.gz index.shtml
DIST_SUBDIR= spambnc-${PORTVERSION}
-EXTRACT_ONLY= sb.tar.gz
+EXTRACT_ONLY= sb-new.tar.gz
MAINTAINER= thierry@FreeBSD.org
COMMENT= Set of procmail recipies which handle known/suspected spam
@@ -23,14 +23,27 @@ IGNOREFILES= index.shtml
NO_WRKSUBDIR= yes
NO_BUILD= yes
PLIST= ${WRKDIR}/.pkg-plist
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+SUB_DIRS= functions docs data auxiliary
+
+.if !defined(NOPORTDOCS)
+MASTER_SITES+= http://www.spambouncer.org/webdev/configure/:upg
+DISTFILES+= upgrading.shtml:upg
+IGNOREFILES+= upgrading.shtml
+.endif
pre-install:
@${RM} -f ${PLIST}
@(cd ${WRKDIR} && ${FIND} -s . -type f | ${GREP} -v "^\.\/\." | \
${SED} -e 's,.,%%DATADIR%%,1' >> ${PLIST})
+.for dd in ${SUB_DIRS}
+ @${ECHO_CMD} "@dirrm %%DATADIR%%/${dd}" >> ${PLIST}
+.endfor
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
.if !defined(NOPORTDOCS)
@${ECHO_CMD} "%%DOCSDIR%%/documentation.html" >> ${PLIST}
+ @${ECHO_CMD} "%%DOCSDIR%%/upgrading.html" >> ${PLIST}
@${ECHO_CMD} "@dirrm %%DOCSDIR%%" >> ${PLIST}
.endif
@@ -41,9 +54,13 @@ do-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/index.shtml \
${DOCSDIR}/documentation.html
+ @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/upgrading.shtml \
+ ${DOCSDIR}/upgrading.html
.endif
post-install:
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE}
+ @${SED} -e 's,%%DOCSDIR%%,${DOCSDIR},;s,%%DATADIR%%,${DATADIR},' \
+ < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/mail/spambnc/distinfo b/mail/spambnc/distinfo
index c3710cccd7c..b6658da3c0a 100644
--- a/mail/spambnc/distinfo
+++ b/mail/spambnc/distinfo
@@ -1,3 +1,4 @@
-MD5 (spambnc-20041223/sb.tar.gz) = e6b2c0be71ac2fc3a0dfa76909f85491
-SIZE (spambnc-20041223/sb.tar.gz) = 408273
-MD5 (spambnc-20041223/index.shtml) = IGNORE
+MD5 (spambnc-20050115/sb-new.tar.gz) = 51e8564e69129c396f8cc30b63a7fcb2
+SIZE (spambnc-20050115/sb-new.tar.gz) = 400804
+MD5 (spambnc-20050115/index.shtml) = IGNORE
+MD5 (spambnc-20050115/upgrading.shtml) = IGNORE
diff --git a/mail/spambnc/files/pkg-message.in b/mail/spambnc/files/pkg-message.in
new file mode 100644
index 00000000000..ae22469b018
--- /dev/null
+++ b/mail/spambnc/files/pkg-message.in
@@ -0,0 +1,6 @@
+
+The spambounce procmail rules have been installed in %%DATADIR%%/.
+Please read the section entitled "Configuring the Spam Bouncer" in the file
+%%DOCSDIR%%/documentation.html for information on how to set
+up your mailbox, and the file upgrading.html if you are migrating from a
+previous version (before 20050115).
diff --git a/mail/spambnc/pkg-message b/mail/spambnc/pkg-message
deleted file mode 100644
index bf3c8236e72..00000000000
--- a/mail/spambnc/pkg-message
+++ /dev/null
@@ -1,5 +0,0 @@
-
-The spambounce procmail rules have been installed in %%PREFIX%%/share/spambnc/.
-Please read the section entitled "Configuring the Spam Bouncer" in the file
-%%PREFIX%%/share/doc/spambnc/documentation.html for information on how to set
-up your mailbox.