1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

mail/spamass-ixhash: stage, cleanup, assign maintainer

PR:		191710
Submitted by:	michael@ranner.eu
This commit is contained in:
Steve Wills 2014-07-09 14:03:33 +00:00
parent 29a72c2f1e
commit 7125070179
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361369
3 changed files with 22 additions and 30 deletions

View File

@ -3,47 +3,36 @@
PORTNAME= iXhash
PORTVERSION= 1.5.5
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= SF/ixhash/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
PKGNAMEPREFIX= spamass-
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= The iXhash plugin for SpamAssassin
MAINTAINER= michael@ranner.eu
COMMENT= Plugin for SpamAssassin supporting iXhash
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= spamc:${PORTSDIR}/mail/spamassassin \
p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5 \
p5-Net-DNS>=0.63:${PORTSDIR}/dns/p5-Net-DNS
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
NO_BUILD= yes
SPAMASS_CONF= etc/mail/spamassassin
SPAMASS_FILES= iXhash.cf iXhash.pm
INSTALL_DIR= ${PREFIX}/${SPAMASS_CONF}
PORTDOCS= CHANGELOG LICENSE WHERE_ARE_THE_OTHER_FILES INSTALL README
PLIST_FILES= ${SPAMASS_CONF}/iXhash.cf.sample ${SPAMASS_CONF}/iXhash.pm
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s,/etc/mail,${LOCALBASE}/etc/mail," \
${WRKSRC}/iXhash/iXhash.cf
do-install:
@${MKDIR} ${INSTALL_DIR}
${INSTALL_DATA} ${WRKSRC}/iXhash/iXhash.cf ${INSTALL_DIR}/iXhash.cf.sample
${INSTALL_DATA} ${WRKSRC}/iXhash/iXhash.pm ${INSTALL_DIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/
. for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail/spamassassin
${INSTALL_DATA} ${WRKSRC}/iXhash/iXhash.cf ${STAGEDIR}${PREFIX}/etc/mail/spamassassin/iXhash.cf.sample
${INSTALL_DATA} ${WRKSRC}/iXhash/iXhash.pm ${STAGEDIR}${PREFIX}/etc/mail/spamassassin
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in CHANGELOG LICENSE WHERE_ARE_THE_OTHER_FILES INSTALL README
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
*************************************************************************
iXhash is installed in %%PREFIX%%/etc/mail/spamassassin
*************************************************************************

View File

@ -0,0 +1,8 @@
@sample etc/mail/spamassassin/iXhash.cf.sample
etc/mail/spamassassin/iXhash.pm
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/LICENSE
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/WHERE_ARE_THE_OTHER_FILES
%%PORTDOCS%%@dirrm %%DOCSDIR%%