aboutsummaryrefslogtreecommitdiff
path: root/mail/crm114/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-03-01 21:11:38 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-03-01 21:11:38 +0000
commit12006bb086dd6aed4e159a1ab2b61ec82c4548ee (patch)
tree86a820484bd0b89c65291424122412b78985c6c2 /mail/crm114/Makefile
parentc0d93ceec0cccaf55788f54114b8208f70a7b288 (diff)
downloadports-12006bb086dd6aed4e159a1ab2b61ec82c4548ee.tar.gz
ports-12006bb086dd6aed4e159a1ab2b61ec82c4548ee.zip
- Update to 20040221
- Download and install contributed scripts and prelearned spam and nonspam databases PR: ports/63415 Submitted by: Meno Abels <meno.abels@adviser.com> (maintainer)
Notes
Notes: svn path=/head/; revision=102680
Diffstat (limited to 'mail/crm114/Makefile')
-rw-r--r--mail/crm114/Makefile37
1 files changed, 34 insertions, 3 deletions
diff --git a/mail/crm114/Makefile b/mail/crm114/Makefile
index c60e69706550..c21bea5b35be 100644
--- a/mail/crm114/Makefile
+++ b/mail/crm114/Makefile
@@ -6,17 +6,26 @@
#
PORTNAME= crm114
-PORTVERSION= 20040212
+PORTVERSION= 20040221
+# WARNING change versionname in CRM114RELEASENAME too.
+# portlint didn't like this variable at this place.
+# So I have to put it down in this file.
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= crm114
-DISTNAME= ${PORTNAME}-${PORTVERSION}-BlameJetlag.src
+# Oliver Eikemeier recommended the following construction
+# to avoid the reduncany of the CRM114RELEASENAME and .src and
+# .css extention.
+DISTNAME= ${PORTNAME}-${PORTVERSION}-${CRM114RELEASENAME}.src
+DISTFILES= ${DISTNAME}.tar.gz ${DISTNAME:R}.css.tar.gz
MAINTAINER= Meno.Abels@Adviser.com
COMMENT= An Markov based SpamFilter
LIB_DEPENDS= tre.4:${PORTSDIR}/textproc/libtre
+CRM114RELEASENAME=BlameYokohama
+
USE_GETTEXT= yes
USE_ICONV= yes
@@ -28,12 +37,34 @@ CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
LIBS+= -L${LOCALBASE}/lib -liconv -lintl
+CRM_FILES= classifytest.crm exectest.crm inserttest_a.crm \
+ inserttest_b.crm learntest.crm mailfilter.crm \
+ matchtest.crm overalterisolatedtest.crm \
+ windowtest.crm
+
+post-build:
+ ${MKDIR} ${WRKSRC}/fbsdinstall
+.for i in ${CRM_FILES}
+ ${SED} "1s|/usr/bin/crm|${PREFIX}/bin/crm|g" ${WRKSRC}/${i} > ${WRKSRC}/fbsdinstall/${i}
+.endfor
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
-.for i in CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt QUICKREF.txt README
+.for i in CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt QUICKREF.txt README \
+ classify_details.txt COLOPHON.txt knownbugs.txt things_to_do.txt
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
+ ${MKDIR} ${EXAMPLESDIR}
+.for i in procmailrc.recipe blacklist.mfp mailfilter.cf whitelist.mfp priolist.mfp
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}
+.endfor
+.for i in ${CRM_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/fbsdinstall/${i} ${EXAMPLESDIR}
+.endfor
+.for i in nonspam.css spam.css
+ ${INSTALL_DATA} ${WRKSRC}/../${PORTNAME}-${PORTVERSION}-${CRM114RELEASENAME}.css/${i} ${EXAMPLESDIR}
+.endfor
.endif
.include <bsd.port.mk>