2010-10-18 15:59:15 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.64 2010/10/18 19:59:18 espie Exp $
|
2002-04-19 17:39:20 -04:00
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT= mailfilter to identify and mark spam
|
2002-04-19 17:39:20 -04:00
|
|
|
|
2010-03-24 19:56:04 -04:00
|
|
|
VER= 3.3.1
|
|
|
|
DISTNAME= Mail-SpamAssassin-${VER}
|
2010-08-25 02:34:50 -04:00
|
|
|
PKGNAME= p5-${DISTNAME:S/-rc/rc/}
|
2010-09-27 15:59:39 -04:00
|
|
|
REVISION= 2
|
2010-03-24 19:56:04 -04:00
|
|
|
RULESNAME= Mail-SpamAssassin-rules-${VER}.r923114
|
2002-04-19 17:39:20 -04:00
|
|
|
CATEGORIES= mail perl5
|
|
|
|
|
2010-03-24 19:56:04 -04:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${RULESNAME}.tgz
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:C/-rc.*//}
|
|
|
|
|
2009-10-23 06:26:17 -04:00
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
2004-08-05 21:39:09 -04:00
|
|
|
HOMEPAGE= http://spamassassin.apache.org/
|
2002-04-19 17:39:20 -04:00
|
|
|
|
2004-10-31 03:44:44 -05:00
|
|
|
# Apache Software License (v2)
|
2002-04-19 17:39:20 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-03-24 19:56:04 -04:00
|
|
|
|
2007-07-02 06:32:43 -04:00
|
|
|
WANTLIB= c crypto ssl z
|
2002-04-19 17:39:20 -04:00
|
|
|
|
2005-07-10 05:34:52 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=spamassassin/source/}
|
2002-04-19 17:39:20 -04:00
|
|
|
|
2007-05-30 13:39:14 -04:00
|
|
|
COMMON_DEPENDS= :p5-HTML-Parser->=3.31:www/p5-HTML-Parser \
|
2010-03-24 19:56:04 -04:00
|
|
|
:p5-Mail-DKIM->=0.31:mail/p5-Mail-DKIM \
|
2006-08-10 14:24:45 -04:00
|
|
|
:p5-Net-DNS->=0.34:net/p5-Net-DNS \
|
2010-03-24 19:56:04 -04:00
|
|
|
:p5-NetAddr-IP-*:net/p5-NetAddr-IP \
|
2009-01-01 10:23:41 -05:00
|
|
|
:p5-IO-Socket-INET6-*:net/p5-IO-Socket-INET6 \
|
2005-10-09 05:05:43 -04:00
|
|
|
:p5-IO-Socket-SSL-*:security/p5-IO-Socket-SSL \
|
2008-10-01 15:30:39 -04:00
|
|
|
:p5-libwww-*:www/p5-libwww
|
2005-10-09 05:05:43 -04:00
|
|
|
|
2007-05-30 13:39:14 -04:00
|
|
|
BUILD_DEPENDS= ${COMMON_DEPENDS}
|
|
|
|
RUN_DEPENDS= ${COMMON_DEPENDS} \
|
2010-08-25 02:34:50 -04:00
|
|
|
:gnupg-<2:security/gnupg \
|
2007-10-11 13:20:06 -04:00
|
|
|
::devel/re2c
|
2002-04-19 17:39:20 -04:00
|
|
|
|
2004-01-19 06:20:07 -05:00
|
|
|
MAKE_ENV+= CC="${CC}"
|
|
|
|
|
2002-04-19 17:39:20 -04:00
|
|
|
CONFIGURE_STYLE= perl
|
2006-10-27 06:12:44 -04:00
|
|
|
CONFIGURE_ARGS+= DESTDIR=${WRKINST} \
|
2003-12-26 23:17:01 -05:00
|
|
|
SYSCONFDIR=${SYSCONFDIR} \
|
2006-10-27 06:12:44 -04:00
|
|
|
LOCALSTATEDIR=${LOCALSTATEDIR} \
|
2005-10-09 05:05:43 -04:00
|
|
|
CONTACT_ADDRESS="the administrator of this system" \
|
|
|
|
ENABLE_SSL="yes"
|
2002-04-19 17:39:20 -04:00
|
|
|
|
2003-12-26 23:17:01 -05:00
|
|
|
CONFDIR= ${SYSCONFDIR}/mail/spamassassin
|
2006-10-27 06:12:44 -04:00
|
|
|
LOCALSTATEDIR= /var/db/spamassassin
|
2003-12-26 23:17:01 -05:00
|
|
|
SAMPLE_CONFDIR= ${PREFIX}/share/examples/SpamAssassin
|
2010-10-18 15:59:15 -04:00
|
|
|
USE_GROFF = Yes
|
2003-12-26 23:17:01 -05:00
|
|
|
|
2006-10-27 06:12:44 -04:00
|
|
|
SUBST_VARS= CONFDIR LOCALSTATEDIR
|
2002-10-06 19:34:26 -04:00
|
|
|
|
2002-04-19 17:39:20 -04:00
|
|
|
# regress insists on creating files in $HOME
|
|
|
|
PORTHOME= ${WRKDIR}/temp-home
|
|
|
|
|
2006-01-28 16:27:17 -05:00
|
|
|
FAQ= OpenBSD-SpamAssassin-mini-howto.html
|
|
|
|
DOCS= README UPGRADE LICENSE procmailrc.example \
|
|
|
|
sample-nonspam.txt sample-spam.txt
|
2002-10-10 09:00:23 -04:00
|
|
|
|
2002-04-19 17:39:20 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/SpamAssassin
|
2003-12-26 23:17:01 -05:00
|
|
|
${INSTALL_DATA_DIR} ${SAMPLE_CONFDIR}
|
2010-03-24 19:56:04 -04:00
|
|
|
${SUBST_CMD} -c ${FILESDIR}/${FAQ} ${WRKSRC}/${FAQ}
|
2006-10-27 06:12:44 -04:00
|
|
|
pod2man --section=1 ${WRKSRC}/spamc/spamc.pod > \
|
|
|
|
${PREFIX}/man/man1/spamc.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/rules/local.cf ${WRKSRC}/rules/*.pre \
|
|
|
|
${SAMPLE_CONFDIR}
|
|
|
|
.for i in ${FAQ} ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/SpamAssassin
|
|
|
|
.endfor
|
2010-03-24 19:56:04 -04:00
|
|
|
cd ${PREFIX}/share/spamassassin; tar xzf ${FULLDISTDIR}/${RULESNAME}.tgz
|
|
|
|
chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/spamassassin/*
|
2002-04-19 17:39:20 -04:00
|
|
|
|
|
|
|
pre-regress:
|
|
|
|
mkdir -p ${PORTHOME}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|