2003-01-25 08:01:56 +01:00
|
|
|
# New ports collection makefile for: p5-Mail-SpamAssassin
|
|
|
|
# Date created: Nov 26 2001
|
|
|
|
# Whom: Anthony Kim
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= Mail-SpamAssassin
|
2008-06-15 03:59:21 +02:00
|
|
|
PORTVERSION= 3.2.5
|
2003-01-25 08:01:56 +01:00
|
|
|
CATEGORIES= mail perl5
|
2004-10-12 12:42:38 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/}
|
2005-06-07 09:48:07 +02:00
|
|
|
MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan
|
2003-01-25 08:01:56 +01:00
|
|
|
PKGNAMEPREFIX= p5-
|
2004-10-12 12:42:38 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:apache,cpan
|
2004-06-01 12:28:48 +02:00
|
|
|
|
2007-02-16 09:53:08 +01:00
|
|
|
MAINTAINER= scheidell@secnap.net
|
2003-02-21 10:10:09 +01:00
|
|
|
COMMENT= A highly efficient mail filter for identifying spam
|
2003-01-25 08:01:56 +01:00
|
|
|
|
2008-03-28 20:03:13 +01:00
|
|
|
BUILD_DEPENDS= p5-Net-DNS>=0.63:${PORTSDIR}/dns/p5-Net-DNS \
|
2007-06-02 09:09:46 +02:00
|
|
|
p5-IO-Zlib>=1.04:${PORTSDIR}/archivers/p5-IO-Zlib \
|
|
|
|
p5-HTML-Parser>=3.43:${PORTSDIR}/www/p5-HTML-Parser \
|
2007-06-17 00:17:03 +02:00
|
|
|
p5-IO-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-IO-Compress-Zlib \
|
2007-06-02 09:09:46 +02:00
|
|
|
p5-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-Compress-Zlib \
|
2008-02-13 05:13:43 +01:00
|
|
|
${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools \
|
|
|
|
p5-Digest-SHA1>=2.11:${PORTSDIR}/security/p5-Digest-SHA1
|
2007-06-02 09:09:46 +02:00
|
|
|
|
2005-12-16 06:05:47 +01:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS} \
|
2006-03-31 23:21:38 +02:00
|
|
|
${SITE_PERL}/Bundle/LWP.pm:${PORTSDIR}/www/p5-libwww \
|
2007-06-02 09:09:46 +02:00
|
|
|
p5-Archive-Tar>=1.23:${PORTSDIR}/archivers/p5-Archive-Tar \
|
|
|
|
${SITE_PERL}/mach/Encode/Detect.pm:${PORTSDIR}/converters/p5-Encode-Detect
|
2003-01-25 08:01:56 +01:00
|
|
|
|
2007-09-07 06:29:19 +02:00
|
|
|
CONFLICTS= ja-p5-Mail-SpamAssassin-[0-9]*
|
|
|
|
|
2003-01-25 08:01:56 +01:00
|
|
|
PERL_CONFIGURE= yes
|
2007-06-17 00:17:03 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-10-12 12:42:38 +02:00
|
|
|
CONFIGURE_ARGS= SYSCONFDIR="${PREFIX}/etc" \
|
2006-03-18 15:05:27 +01:00
|
|
|
CONTACT_ADDRESS="${CONTACT_ADDRESS}" \
|
2007-06-02 09:09:46 +02:00
|
|
|
LOCALSTATEDIR="/var/db/spamassassin"
|
2006-03-18 15:05:27 +01:00
|
|
|
|
|
|
|
# You can override it if you like
|
|
|
|
CONTACT_ADDRESS?= The administrator of that system
|
2004-10-12 12:42:38 +02:00
|
|
|
|
2005-05-10 15:00:22 +02:00
|
|
|
OPTIONS= AS_ROOT "Run spamd as root (recommended)" on \
|
2007-06-02 09:09:46 +02:00
|
|
|
SPAMC "Build spamd/spamc (not for amavisd)" on \
|
|
|
|
SACOMPILE "sa-compile" off \
|
|
|
|
DKIM "DKIM/DomainKeys Identified Mail" off \
|
2005-05-10 15:00:22 +02:00
|
|
|
SSL "Build with SSL support for spamd/spamc" on \
|
2006-12-25 14:38:41 +01:00
|
|
|
GNUPG "Install GnuPG (for sa-update)" on \
|
2005-05-08 11:40:39 +02:00
|
|
|
MYSQL "Add MySQL support" off \
|
|
|
|
PGSQL "Add PostreSQL support" off \
|
2006-04-10 10:42:43 +02:00
|
|
|
RAZOR "Add Vipul's Razor support" on \
|
2005-05-08 11:40:39 +02:00
|
|
|
SPF_QUERY "Add SPF query support" off \
|
2007-06-02 09:09:46 +02:00
|
|
|
RELAY_COUNTRY "Relay country support" off
|
2005-05-08 11:40:39 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-06-02 09:09:46 +02:00
|
|
|
.if defined (WITH_SPAMC)
|
|
|
|
CONFIGURE_ARGS+= BUILD_SPAMC=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= BUILD_SPAMC=no
|
|
|
|
WITH_AS_ROOT=
|
|
|
|
WITHOUT_SSL=1
|
|
|
|
.endif
|
|
|
|
|
2004-11-19 21:41:09 +01:00
|
|
|
.if defined(WITH_SPF_QUERY)
|
2007-06-17 00:17:03 +02:00
|
|
|
RUN_DEPENDS+= p5-NetAddr-IP>=4.00.7:${PORTSDIR}/net-mgmt/p5-NetAddr-IP
|
2007-06-02 09:09:46 +02:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/Mail/SPF.pm:${PORTSDIR}/mail/p5-Mail-SPF
|
2004-11-19 21:41:09 +01:00
|
|
|
.endif
|
|
|
|
|
2005-05-08 16:58:19 +02:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2005-05-08 11:40:39 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
2005-05-08 16:58:19 +02:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
|
2004-10-12 12:42:38 +02:00
|
|
|
USE_OPENSSL= yes
|
2004-10-26 14:32:27 +02:00
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
2004-10-12 12:42:38 +02:00
|
|
|
CONFIGURE_ARGS+= ENABLE_SSL=yes
|
2007-06-17 00:17:03 +02:00
|
|
|
PLIST_SUB+= SSL=""
|
2004-10-12 12:42:38 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= ENABLE_SSL=no
|
2007-06-17 00:17:03 +02:00
|
|
|
PLIST_SUB+= SSL="@comment "
|
2004-10-12 12:42:38 +02:00
|
|
|
.endif
|
2003-01-25 08:01:56 +01:00
|
|
|
|
2006-12-25 14:38:41 +01:00
|
|
|
.if !defined(WITHOUT_GNUPG)
|
2007-06-02 09:09:46 +02:00
|
|
|
RUN_DEPENDS+= gnupg>=1.4.7:${PORTSDIR}/security/gnupg
|
2006-12-25 14:38:41 +01:00
|
|
|
.endif
|
|
|
|
|
2004-11-19 21:41:09 +01:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
2005-05-07 22:09:29 +02:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
2004-11-19 21:41:09 +01:00
|
|
|
.endif
|
|
|
|
|
2005-09-17 17:05:19 +02:00
|
|
|
.if defined(WITH_RAZOR)
|
2007-06-17 00:17:03 +02:00
|
|
|
RUN_DEPENDS+= razor-agents>=2.84:${PORTSDIR}/mail/razor-agents
|
2005-05-26 18:50:34 +02:00
|
|
|
.endif
|
|
|
|
|
2006-12-25 17:52:04 +01:00
|
|
|
.if defined(WITH_DKIM)
|
2008-04-28 15:30:57 +02:00
|
|
|
RUN_DEPENDS+= p5-Mail-DKIM>=0.31:${PORTSDIR}/mail/p5-Mail-DKIM
|
2007-06-02 09:09:46 +02:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
|
2007-08-14 00:33:32 +02:00
|
|
|
RUN_DEPENDS+= p5-Crypt-OpenSSL-RSA>=0.24:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA
|
2006-12-25 17:52:04 +01:00
|
|
|
.endif
|
|
|
|
|
2007-06-02 09:09:46 +02:00
|
|
|
.if defined(WITH_SACOMPILE)
|
|
|
|
RUN_DEPENDS+= re2c>=.12.0:${PORTSDIR}/devel/re2c
|
2005-09-17 17:05:19 +02:00
|
|
|
.endif
|
|
|
|
|
2005-09-29 11:41:46 +02:00
|
|
|
.if defined(WITH_RELAY_COUNTRY)
|
2005-10-07 15:46:16 +02:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/IP/Country/Fast.pm:${PORTSDIR}/net/p5-IP-Country
|
2005-09-29 11:41:46 +02:00
|
|
|
.endif
|
|
|
|
|
2004-10-12 12:42:38 +02:00
|
|
|
MAN3= Mail::SpamAssassin.3 \
|
2006-09-06 17:19:51 +02:00
|
|
|
Mail::SpamAssassin::AICache.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::ArchiveIterator.3 \
|
2007-06-02 09:09:46 +02:00
|
|
|
Mail::SpamAssassin::AsyncLoop.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::AutoWhitelist.3 \
|
|
|
|
Mail::SpamAssassin::Bayes.3 \
|
|
|
|
Mail::SpamAssassin::BayesStore.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::BayesStore::MySQL.3 \
|
|
|
|
Mail::SpamAssassin::BayesStore::PgSQL.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::BayesStore::SQL.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Client.3 \
|
2003-01-25 08:01:56 +01:00
|
|
|
Mail::SpamAssassin::Conf.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::Conf::LDAP.3 \
|
|
|
|
Mail::SpamAssassin::Conf::Parser.3 \
|
|
|
|
Mail::SpamAssassin::Conf::SQL.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::DnsResolver.3 \
|
|
|
|
Mail::SpamAssassin::Logger.3 \
|
|
|
|
Mail::SpamAssassin::Logger::File.3 \
|
|
|
|
Mail::SpamAssassin::Logger::Stderr.3 \
|
|
|
|
Mail::SpamAssassin::Logger::Syslog.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::Message.3 \
|
|
|
|
Mail::SpamAssassin::Message::Metadata.3 \
|
|
|
|
Mail::SpamAssassin::Message::Node.3 \
|
2003-02-21 10:10:09 +01:00
|
|
|
Mail::SpamAssassin::PerMsgLearner.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::PerMsgStatus.3 \
|
|
|
|
Mail::SpamAssassin::PersistentAddrList.3 \
|
|
|
|
Mail::SpamAssassin::Plugin.3 \
|
2007-06-02 09:09:46 +02:00
|
|
|
Mail::SpamAssassin::Plugin::ASN.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::AWL.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::AccessDB.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::AntiVirus.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::AutoLearnThreshold.3 \
|
2007-06-02 09:09:46 +02:00
|
|
|
Mail::SpamAssassin::Plugin::BodyRuleBaseExtractor.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::Check.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::DCC.3 \
|
2006-06-07 10:42:56 +02:00
|
|
|
Mail::SpamAssassin::Plugin::DKIM.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::DomainKeys.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::Plugin::Hashcash.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::MIMEHeader.3 \
|
2007-06-02 09:09:46 +02:00
|
|
|
Mail::SpamAssassin::Plugin::OneLineBodyRuleType.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::Pyzor.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::Razor2.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::Plugin::RelayCountry.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::ReplaceTags.3 \
|
2007-06-02 09:09:46 +02:00
|
|
|
Mail::SpamAssassin::Plugin::Rule2XSBody.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::Plugin::SPF.3 \
|
2007-06-02 09:09:46 +02:00
|
|
|
Mail::SpamAssassin::Plugin::Shortcircuit.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::SpamCop.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::Test.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::TextCat.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::Plugin::URIDNSBL.3 \
|
2007-06-02 09:09:46 +02:00
|
|
|
Mail::SpamAssassin::Plugin::URIDetail.3 \
|
|
|
|
Mail::SpamAssassin::Plugin::VBounce.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Plugin::WhiteListSubject.3 \
|
2004-10-12 12:42:38 +02:00
|
|
|
Mail::SpamAssassin::PluginHandler.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::SQLBasedAddrList.3 \
|
|
|
|
Mail::SpamAssassin::SubProcBackChannel.3 \
|
2006-03-18 15:05:27 +01:00
|
|
|
Mail::SpamAssassin::Timeout.3 \
|
2005-09-17 17:05:19 +02:00
|
|
|
Mail::SpamAssassin::Util.3 \
|
|
|
|
Mail::SpamAssassin::Util::Progress.3 \
|
|
|
|
spamassassin-run.3
|
2003-03-10 01:14:12 +01:00
|
|
|
|
2005-09-17 17:05:19 +02:00
|
|
|
MAN1= spamd.1 spamassassin.1 spamc.1 sa-learn.1 sa-update.1 \
|
2007-06-02 09:09:46 +02:00
|
|
|
spamassassin-run.1 sa-compile.1
|
2005-05-10 15:00:22 +02:00
|
|
|
|
2003-02-21 10:10:09 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
2004-08-05 15:33:18 +02:00
|
|
|
DATADIR= ${PREFIX}/share/spamassassin
|
2007-06-02 09:09:46 +02:00
|
|
|
DOCS= CREDITS Changes INSTALL LICENSE NOTICE PACKAGING README TRADEMARK UPGRADE USAGE procmailrc.example
|
2004-10-12 12:42:38 +02:00
|
|
|
DOCSSQL= README README.awl README.bayes awl_mysql.sql awl_pg.sql bayes_mysql.sql bayes_pg.sql userpref_mysql.sql userpref_pg.sql
|
2005-01-26 04:13:18 +01:00
|
|
|
DOCSLDAP= README README.testing sa_test.ldif
|
2007-06-02 09:09:46 +02:00
|
|
|
PORTDOCS= ${DOCS} sql ldap
|
2003-01-25 08:01:56 +01:00
|
|
|
|
2006-03-20 14:03:33 +01:00
|
|
|
USE_RC_SUBR= sa-spamd.sh
|
|
|
|
|
2005-09-17 17:05:19 +02:00
|
|
|
.if defined(WITH_MYSQL) || defined(WITH_PGSQL)
|
2006-03-20 14:03:33 +01:00
|
|
|
SUB_LIST+= SQL_FLAG="-Q"
|
2004-11-26 15:41:48 +01:00
|
|
|
.else
|
2006-03-20 14:03:33 +01:00
|
|
|
SUB_LIST+= SQL_FLAG=""
|
2004-11-19 21:41:09 +01:00
|
|
|
.endif
|
2005-05-10 15:00:22 +02:00
|
|
|
.if !defined(WITH_AS_ROOT)
|
2006-03-20 14:03:33 +01:00
|
|
|
SUB_LIST+= RUN_AS_USER="-u spamd -H /var/spool/spamd"
|
2005-05-10 15:00:22 +02:00
|
|
|
.else
|
2006-03-20 14:03:33 +01:00
|
|
|
SUB_LIST+= RUN_AS_USER=""
|
2005-05-10 15:00:22 +02:00
|
|
|
.endif
|
2004-11-19 21:41:09 +01:00
|
|
|
|
2003-02-28 08:41:03 +01:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name \*.orig -delete
|
2005-09-17 17:05:19 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#B_CONFDIR)/local.cf#B_CONFDIR)/local.cf.sample#g' \
|
2004-10-12 12:42:38 +02:00
|
|
|
-e 's#B_CONFDIR)/init.pre#B_CONFDIR)/init.pre.sample#g' \
|
2006-01-20 23:55:43 +01:00
|
|
|
-e 's#B_CONFDIR)/v310.pre#B_CONFDIR)/v310.pre.sample#g' \
|
2006-06-07 10:42:56 +02:00
|
|
|
-e 's#B_CONFDIR)/v312.pre#B_CONFDIR)/v312.pre.sample#g' \
|
2007-06-02 09:09:46 +02:00
|
|
|
-e 's#B_CONFDIR)/v320.pre#B_CONFDIR)/v320.pre.sample#g' \
|
2004-10-25 13:05:01 +02:00
|
|
|
-e 's/require DBI/0/' \
|
2005-09-17 17:05:19 +02:00
|
|
|
${WRKSRC}/Makefile.PL
|
2007-08-14 00:33:32 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^CC =/d' ${WRKSRC}/spamc/Makefile.in
|
2007-06-02 09:09:46 +02:00
|
|
|
|
2005-09-17 17:05:19 +02:00
|
|
|
.if defined(WITH_RAZOR)
|
2006-06-07 10:42:56 +02:00
|
|
|
${REINPLACE_CMD} -e '/Razor2/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v312.pre
|
2005-09-17 17:05:19 +02:00
|
|
|
.endif
|
2005-09-30 02:31:51 +02:00
|
|
|
.if defined(WITH_RELAY_COUNTRY)
|
2007-02-24 10:01:03 +01:00
|
|
|
${REINPLACE_CMD} -e '/RelayCountry/s/^# ?loadplugin/loadplugin/' ${WRKSRC}/rules/init.pre
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_DKIM)
|
|
|
|
${REINPLACE_CMD} -e '/DKIM/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v312.pre
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_SPF_QUERY)
|
|
|
|
${REINPLACE_CMD} -e '/SPF/s/^loadplugin/#loadplugin/' ${WRKSRC}/rules/init.pre
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_DCC)
|
|
|
|
${REINPLACE_CMD} -e '/DCC/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v310.pre
|
2005-09-30 02:31:51 +02:00
|
|
|
.endif
|
2007-06-02 09:09:46 +02:00
|
|
|
.if defined(WITH_SACOMPILE)
|
2007-06-17 00:17:03 +02:00
|
|
|
${REINPLACE_CMD} -e '/Rule2XSBody/s/^# loadplugin/loadplugin/' ${WRKSRC}/rules/v320.pre
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} spamc/libspamc.so)
|
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} spamc/libsslspamc.so)
|
2007-06-02 09:09:46 +02:00
|
|
|
.endif
|
2003-03-10 01:14:12 +01:00
|
|
|
|
2008-08-21 16:39:58 +02:00
|
|
|
pre-su-install:
|
2005-05-06 22:05:57 +02:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2007-06-17 00:17:03 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spamc/libspamc.so ${PREFIX}/lib/libspamc.so.0
|
|
|
|
@${LN} -sf libspamc.so.0 ${PREFIX}/lib/libspamc.so
|
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spamc/libsslspamc.so ${PREFIX}/lib/libsslspamc.so.0
|
|
|
|
@${LN} -sf libsslspamc.so.0 ${PREFIX}/lib/libsslspamc.so
|
|
|
|
.endif
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/spamc/libspamc.h ${PREFIX}/include
|
2005-05-06 22:05:57 +02:00
|
|
|
|
2003-01-25 08:01:56 +01:00
|
|
|
post-install:
|
2007-07-23 00:40:58 +02:00
|
|
|
.if defined (WITH_SPAMC)
|
2003-02-21 10:10:09 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/spamc
|
2007-07-23 00:40:58 +02:00
|
|
|
.endif
|
2004-10-28 18:45:16 +02:00
|
|
|
@[ -f ${PREFIX}/etc/mail/spamassassin/init.pre ] || \
|
|
|
|
${CP} ${PREFIX}/etc/mail/spamassassin/init.pre.sample \
|
|
|
|
${PREFIX}/etc/mail/spamassassin/init.pre
|
2006-01-20 23:55:43 +01:00
|
|
|
@[ -f ${PREFIX}/etc/mail/spamassassin/v310.pre ] || \
|
|
|
|
${CP} ${PREFIX}/etc/mail/spamassassin/v310.pre.sample \
|
|
|
|
${PREFIX}/etc/mail/spamassassin/v310.pre
|
2006-06-07 10:42:56 +02:00
|
|
|
@[ -f ${PREFIX}/etc/mail/spamassassin/v312.pre ] || \
|
|
|
|
${CP} ${PREFIX}/etc/mail/spamassassin/v312.pre.sample \
|
|
|
|
${PREFIX}/etc/mail/spamassassin/v312.pre
|
2007-06-02 09:09:46 +02:00
|
|
|
@[ -f ${PREFIX}/etc/mail/spamassassin/v320.pre ] || \
|
|
|
|
${CP} ${PREFIX}/etc/mail/spamassassin/v320.pre.sample \
|
|
|
|
${PREFIX}/etc/mail/spamassassin/v320.pre
|
2007-07-23 00:40:58 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
2007-06-02 09:09:46 +02:00
|
|
|
|
2003-01-25 08:01:56 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-06-02 09:09:46 +02:00
|
|
|
@${MKDIR} ${DOCSDIR} ${DOCSDIR}/sql ${DOCSDIR}/ldap
|
2004-10-12 12:42:38 +02:00
|
|
|
@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${DOCSSQL:S|^|${WRKSRC}/sql/|} ${DOCSDIR}/sql
|
|
|
|
@${INSTALL_DATA} ${DOCSLDAP:S|^|${WRKSRC}/ldap/|} ${DOCSDIR}/ldap
|
|
|
|
|
2003-01-25 08:01:56 +01:00
|
|
|
.endif
|
2003-05-18 01:33:43 +02:00
|
|
|
@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
|
2003-02-21 10:10:09 +01:00
|
|
|
|
2004-01-19 16:44:37 +01:00
|
|
|
.if ${PERL_LEVEL} < 500800
|
2004-10-12 12:42:38 +02:00
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
|
2004-01-19 16:44:37 +01:00
|
|
|
.endif
|
|
|
|
|
2003-02-21 10:32:27 +01:00
|
|
|
.include <bsd.port.post.mk>
|