1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Update to 3.2.4

- Sync pkg-install and pkg-deinstall with mail/p5-Mail-Spamassassin

PR:		ports/120201
Submitted by:	TAOKA Fumiyoshi <fmysh at iijmio-mail.jp> (maintainer)
This commit is contained in:
Rong-En Fan 2008-02-07 04:42:43 +00:00
parent 55691c3e3f
commit d8dd01a374
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=206809
5 changed files with 67 additions and 38 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= Mail-SpamAssassin
PORTVERSION= 3.2.3
PORTVERSION= 3.2.4
CATEGORIES= japanese mail perl5
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} \
${PATCH_SITES}
@ -18,7 +18,8 @@ DIST_SUBDIR= ja-spamassassin
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PATCH_SITES= http://spamassassin.jp/download/sa${PORTVERSION:R}/:JA
PATCHFILES= spamassassin-3.2.3-ja-test1.patch:JA
PATCHFILES= spamassassin-${PORTVERSION}-ja-${PATCHLEVEL}.patch:JA
PATCHLEVEL= test1
PATCH_DIST_STRIP= -p1
MAINTAINER= fmysh@iijmio-mail.jp

View File

@ -1,12 +1,12 @@
MD5 (ja-spamassassin/Mail-SpamAssassin-3.2.3.tar.gz) = 2e356b70b9458b44a828c19f6e816521
SHA256 (ja-spamassassin/Mail-SpamAssassin-3.2.3.tar.gz) = 2bf7635555dea4912512a32c7c567094ef264770b86029c49f653e97352efad8
SIZE (ja-spamassassin/Mail-SpamAssassin-3.2.3.tar.gz) = 1202082
MD5 (ja-spamassassin/Mail-SpamAssassin-3.2.4.tar.gz) = 81ec227d4d63aba08563ee868af9fbeb
SHA256 (ja-spamassassin/Mail-SpamAssassin-3.2.4.tar.gz) = 20f9c64d75210da5018d21585f6474868966cf1c09cb68d9fb0a3635aa17dccb
SIZE (ja-spamassassin/Mail-SpamAssassin-3.2.4.tar.gz) = 1219161
MD5 (ja-spamassassin/tokenizer.pre) = e8e787b76ab94805c7472a90f860cc0a
SHA256 (ja-spamassassin/tokenizer.pre) = 9f8e30a8449fd13d571427ea30a252b4b275f153bde5345c50427a7aee3c90e0
SIZE (ja-spamassassin/tokenizer.pre) = 163
MD5 (ja-spamassassin/spamassassin-3.2.3-ja-test1.txt) = ec19409451e9c850c8d7ccfd3d83a873
SHA256 (ja-spamassassin/spamassassin-3.2.3-ja-test1.txt) = cc08cde62b1d86c2a2b80666c95f80668bf250f634694eaaa8f14515fecfbeb2
SIZE (ja-spamassassin/spamassassin-3.2.3-ja-test1.txt) = 8476
MD5 (ja-spamassassin/spamassassin-3.2.3-ja-test1.patch) = 7a18557a8becd468da9a5ea6e39dc439
SHA256 (ja-spamassassin/spamassassin-3.2.3-ja-test1.patch) = 857cd382fa542841d1b290c2826a4bdf2912efd66e91f04752926e4bbcebce83
SIZE (ja-spamassassin/spamassassin-3.2.3-ja-test1.patch) = 33377
MD5 (ja-spamassassin/spamassassin-3.2.4-ja-test1.txt) = 06c8b7919f2f9c8288dcad5d2aea73fa
SHA256 (ja-spamassassin/spamassassin-3.2.4-ja-test1.txt) = 5e082ce16d3a827b207a15c10738b34eba9ca00b66e008776767a4c0d5a5c08c
SIZE (ja-spamassassin/spamassassin-3.2.4-ja-test1.txt) = 9086
MD5 (ja-spamassassin/spamassassin-3.2.4-ja-test1.patch) = e80cafaec258fb3dd73f4e369a716944
SHA256 (ja-spamassassin/spamassassin-3.2.4-ja-test1.patch) = 4afeac19c1e409f41322f10153aba5bddddfb27f210f922d8ce3cded7f5a236a
SIZE (ja-spamassassin/spamassassin-3.2.4-ja-test1.patch) = 33377

View File

@ -3,27 +3,15 @@
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
if [ -d /var/db/spamassassin ]; then
echo "To delete /var/db/spamassassin, use 'rm -rf /var/db/spamassassin'"
echo "To delete /var/db/spamassassin, use 'rm -rf /var/db/spamassassin'"
fi
USER=spamd
GROUP=${USER}
if pw usershow "${USER}" 2>/dev/null 1>&2; then
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
echo "To delete ${USER} user permanently, use 'rmuser ${USER}'"
else
pw userdel ${USER}
fi
fi
if pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
echo "To delete the ${GROUP} group permanently, use 'pw groupdel ${GROUP}'."
else
pw groupdel ${GROUP}
fi
echo "To delete ${USER} user permanently, use 'rmuser ${USER}'"
fi
exit 0

View File

@ -1,4 +1,45 @@
#!/bin/sh
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
ask() {
local question default answer
question=$1
default=$2
if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
read -t120 -p "${question} [${default}]? " answer
fi
echo ${answer:-${default}}
}
yesno() {
local question default answer
question=$1
default=$2
while :; do
answer=$(ask "${question}" "${default}")
case "${answer}" in
[Yy]*) return 0;;
[Nn]*) return 1;;
esac
echo "Please answer yes or no."
done
}
if [ "$2" = "POST-INSTALL" ];then
if yesno "Do you wish to run sa-update to fetch new rules" "N";then
${PKG_PREFIX}/bin/sa-update
fi
grep '^load.*Rule2XSBody' ${PKG_PREFIX}/etc/mail/spamassassin/v320.pre > /dev/null
if [ $? -eq 0 ];then
if yesno "Do you with to compile rules with re2c (will take a long time)" "N";then
${PKG_PREFIX}/bin/sa-compile
fi
fi
exit 0
fi # post-install
if [ "$2" != "PRE-INSTALL" ]; then
exit 0

View File

@ -6,19 +6,14 @@ bin/sa-update
bin/spamassassin
bin/spamc
bin/spamd
lib/libspamc.so
lib/libspamc.so.0
%%SSL%%lib/libsslspamc.so
%%SSL%%lib/libsslspamc.so.0
include/libspamc.h
@unexec rm -rf %D/etc/mail/spamassassin/sa-update-keys || true
@unexec if cmp -s %B/tokenizer.pre.sample %B/tokenizer.pre; then rm -f %B/tokenizer.pre; fi
etc/mail/spamassassin/tokenizer.pre.sample
@exec [ -f %B/tokenizer.pre ] || cp %B/%f %B/tokenizer.pre
etc/mail/spamassassin/local.cf.sample
@unexec if cmp -s %B/init.pre.sample %B/init.pre; then rm -f %B/init.pre; fi
etc/mail/spamassassin/init.pre.sample
@exec [ -f %B/init.pre ] || cp %B/%f %B/init.pre
@unexec if cmp -s %B/tokenizer.pre.sample %B/tokenizer.pre; then rm -f %B/tokenizer.pre; fi
etc/mail/spamassassin/tokenizer.pre.sample
@exec [ -f %B/tokenizer.pre ] || cp %B/%f %B/tokenizer.pre
@unexec if cmp -s %B/v310.pre.sample %B/v310.pre; then rm -f %B/v310.pre; fi
etc/mail/spamassassin/v310.pre.sample
@exec [ -f %B/v310.pre ] || cp %B/%f %B/v310.pre
@ -28,6 +23,11 @@ etc/mail/spamassassin/v312.pre.sample
@unexec if cmp -s %B/v320.pre.sample %B/v320.pre; then rm -f %B/v320.pre; fi
etc/mail/spamassassin/v320.pre.sample
@exec [ -f %B/v320.pre ] || cp %B/%f %B/v320.pre
include/libspamc.h
lib/libspamc.so
lib/libspamc.so.0
%%SSL%%lib/libsslspamc.so
%%SSL%%lib/libsslspamc.so.0
%%SITE_PERL%%/Mail/SpamAssassin.pm
%%SITE_PERL%%/Mail/SpamAssassin/AICache.pm
%%SITE_PERL%%/Mail/SpamAssassin/ArchiveIterator.pm
@ -71,8 +71,8 @@ etc/mail/spamassassin/v320.pre.sample
%%SITE_PERL%%/Mail/SpamAssassin/PerMsgStatus.pm
%%SITE_PERL%%/Mail/SpamAssassin/PersistentAddrList.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/AWL.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/ASN.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/AWL.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/AccessDB.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/AntiVirus.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/AutoLearnThreshold.pm
@ -94,8 +94,8 @@ etc/mail/spamassassin/v320.pre.sample
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/OneLineBodyRuleType.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/Pyzor.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/Razor2.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/RelayEval.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/RelayCountry.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/RelayEval.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/ReplaceTags.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/Rule2XSBody.pm
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/SPF.pm
@ -180,13 +180,12 @@ etc/mail/spamassassin/v320.pre.sample
@unexec rmdir /var/lib/spamassassin 2>/dev/null || true
@unexec rmdir /var/lib 2>/dev/null || true
@unexec rmdir /var/db/spamassassin || true
@unexec rmdir /var/db || true
@dirrm %%DATADIR%%
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail/SpamAssassin
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail
@dirrm %%SITE_PERL%%/Mail/SpamAssassin/Util
@dirrm %%SITE_PERL%%/Mail/SpamAssassin/Plugin/Tokenizer
@dirrm %%SITE_PERL%%/Mail/SpamAssassin/Plugin
@dirrmtry %%SITE_PERL%%/Mail/SpamAssassin/Plugin
@dirrm %%SITE_PERL%%/Mail/SpamAssassin/Message/Metadata
@dirrm %%SITE_PERL%%/Mail/SpamAssassin/Message
@dirrm %%SITE_PERL%%/Mail/SpamAssassin/Logger