freebsd-ports/japanese/spamassassin/Makefile
Adam Weinberger e432a01d92 Improvements.
Let pkg-create handle ownership/mode better. Use @dirrmtry instead of
@unexec rmdir. Use COPYTREE_SHARE to ensure proper permissions.

Also, stop the spamd service on deinstall if it's running. It creates
zombie issues otherwise... I'm pretty sure this is the right thing to
do.
2014-05-01 17:01:18 +00:00

35 lines
825 B
Makefile

# Created by: TAOKA Fumiyoshi
# $FreeBSD$
PORTREVISION= 10
CATEGORIES= japanese mail perl5
PKGNAMEPREFIX= ja-
MAINTAINER= masaki@club.kyutech.ac.jp
COMMENT= SpamAssassin with patches to handle multibyte character
LICENSE= APACHE20
MASTERDIR= ${.CURDIR}/../../mail/spamassassin
BUILD_DEPENDS= ja-p5-MeCab>=0.98:${PORTSDIR}/japanese/p5-MeCab
CONFLICTS= spamassassin-[0-9]*
EXTRA_PATCHES= ${.CURDIR}/files/spamassassin-ja.patch
PKGMESSAGE= ${.CURDIR}/pkg-message
PLIST= ${WRKDIR}/pkg-plist
TOKENIZER_PRE= tokenizer.pre
PLIST_SUB+= TOKENIZER_PRE=${TOKENIZER_PRE}
pre-install:
@${CAT} ${EXTRA_PATCHES:S/.patch/.plist/} > ${PLIST}
@${CAT} ${PKGDIR}/pkg-plist >> ${PLIST}
post-install::
${INSTALL_DATA} ${.CURDIR}/files/${TOKENIZER_PRE} ${STAGEDIR}${ETCDIR}/${TOKENIZER_PRE}.sample
.include "${MASTERDIR}/Makefile"