aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/p5-Mail-SpamAssassin
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-03-04 04:48:15 +0800
committerantoine <antoine@FreeBSD.org>2014-03-04 04:48:15 +0800
commitf54cd173c600ba0701ea8a6a1937e6e133c52669 (patch)
tree424d01a9ce75e4775bed8abb40bd1b51de2f306d /japanese/p5-Mail-SpamAssassin
parent441c32ca908c78a443f77b009d59afb898645855 (diff)
downloadfreebsd-ports-gnome-f54cd173c600ba0701ea8a6a1937e6e133c52669.tar.gz
freebsd-ports-gnome-f54cd173c600ba0701ea8a6a1937e6e133c52669.tar.zst
freebsd-ports-gnome-f54cd173c600ba0701ea8a6a1937e6e133c52669.zip
Unbreak after master port was staged
Diffstat (limited to 'japanese/p5-Mail-SpamAssassin')
-rw-r--r--japanese/p5-Mail-SpamAssassin/Makefile11
-rw-r--r--japanese/p5-Mail-SpamAssassin/files/spamassassin-3.3.2-ja-1.plist7
2 files changed, 7 insertions, 11 deletions
diff --git a/japanese/p5-Mail-SpamAssassin/Makefile b/japanese/p5-Mail-SpamAssassin/Makefile
index b4a354f08094..d6656a475e37 100644
--- a/japanese/p5-Mail-SpamAssassin/Makefile
+++ b/japanese/p5-Mail-SpamAssassin/Makefile
@@ -25,20 +25,11 @@ TOKENIZER_PRE= tokenizer.pre
PLIST_SUB+= TOKENIZER_PRE=${TOKENIZER_PRE}
-MAN3= Mail::SpamAssassin::Util::Charset.3 \
- Mail::SpamAssassin::Plugin::Tokenizer::MeCab.3 \
- Mail::SpamAssassin::Plugin::Tokenizer.3 \
- Mail::SpamAssassin::Plugin::Tokenizer::SimpleJA.3
-
-NO_STAGE= yes
pre-install:
@${CAT} ${EXTRA_PATCHES:S/.patch/.plist/} > ${PLIST}
@${CAT} ${PKGDIR}/pkg-plist >> ${PLIST}
post-install::
- @${CP} ${.CURDIR}/files/${TOKENIZER_PRE} ${ETCDIR}/${TOKENIZER_PRE}.sample
- @[ -f ${ETCDIR}/${TOKENIZER_PRE} ] || \
- ${INSTALL_DATA} ${ETCDIR}/${TOKENIZER_PRE}.sample \
- ${ETCDIR}/${TOKENIZER_PRE}
+ @${CP} ${.CURDIR}/files/${TOKENIZER_PRE} ${STAGEDIR}${ETCDIR}/${TOKENIZER_PRE}.sample
.include "${MASTERDIR}/Makefile"
diff --git a/japanese/p5-Mail-SpamAssassin/files/spamassassin-3.3.2-ja-1.plist b/japanese/p5-Mail-SpamAssassin/files/spamassassin-3.3.2-ja-1.plist
index 11643c87b058..1292bbb2d733 100644
--- a/japanese/p5-Mail-SpamAssassin/files/spamassassin-3.3.2-ja-1.plist
+++ b/japanese/p5-Mail-SpamAssassin/files/spamassassin-3.3.2-ja-1.plist
@@ -3,5 +3,10 @@
@dirrm %%SITE_PERL%%/Mail/SpamAssassin/Plugin/Tokenizer
%%SITE_PERL%%/Mail/SpamAssassin/Plugin/Tokenizer.pm
%%SITE_PERL%%/Mail/SpamAssassin/Util/Charset.pm
-@unexec if cmp -s %%PREFIX%%/%%ETCDIR%%/%%TOKENIZER_PRE%%.sample %%PREFIX%%/%%ETCDIR%%/%%TOKENIZER_PRE%%; then rm -f %%PREFIX%%/%%ETCDIR%%/%%TOKENIZER_PRE%%; fi
+%%PERL5_MAN3%%/Mail::SpamAssassin::Plugin::Tokenizer.3.gz
+%%PERL5_MAN3%%/Mail::SpamAssassin::Plugin::Tokenizer::MeCab.3.gz
+%%PERL5_MAN3%%/Mail::SpamAssassin::Plugin::Tokenizer::SimpleJA.3.gz
+%%PERL5_MAN3%%/Mail::SpamAssassin::Util::Charset.3.gz
+@unexec if cmp -s %D/%%ETCDIR%%/%%TOKENIZER_PRE%%.sample %D/%%ETCDIR%%/%%TOKENIZER_PRE%%; then rm -f %D/%%ETCDIR%%/%%TOKENIZER_PRE%%; fi
%%ETCDIR%%/%%TOKENIZER_PRE%%.sample
+@exec if [ ! -f %B/%%TOKENIZER_PRE%% ]; then cp -p %B/%f %B/%%TOKENIZER_PRE%%; fi