2012-11-01 14:38:54 +00:00
|
|
|
# Created by: J.R. Oldroyd <fbsd@opal.com>
|
2005-05-28 09:56:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= assp
|
2013-08-15 11:18:56 +00:00
|
|
|
PORTVERSION= 1.9.9.13257
|
2011-07-25 23:06:35 +00:00
|
|
|
PORTEPOCH= 1
|
2005-05-28 09:56:27 +00:00
|
|
|
CATEGORIES= mail
|
2011-03-11 08:48:09 +00:00
|
|
|
MASTER_SITES= http://www.ringofsaturn.com/distfiles/
|
2013-03-06 03:04:32 +00:00
|
|
|
DISTNAME= ${PORTNAME:U}_${PORTVERSION}_Install
|
2005-05-28 09:56:27 +00:00
|
|
|
|
2010-09-02 13:51:46 +00:00
|
|
|
MAINTAINER= rnejdl@ringofsaturn.com
|
2005-05-28 09:56:27 +00:00
|
|
|
COMMENT= Anti-Spam SMTP Proxy
|
|
|
|
|
2013-09-15 08:15:41 +00:00
|
|
|
USES= perl5
|
2005-05-28 09:56:27 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
NO_BUILD= yes
|
2013-09-15 08:15:41 +00:00
|
|
|
USE_PERL5= run
|
2005-05-28 09:56:27 +00:00
|
|
|
|
|
|
|
MAN8= assp.8 assplog.8
|
|
|
|
|
2009-05-22 01:43:29 +00:00
|
|
|
ASSP_USER= assp
|
|
|
|
ASSP_GROUP= assp
|
2011-01-06 16:26:53 +00:00
|
|
|
USERS= ${ASSP_USER}
|
|
|
|
GROUPS= ${ASSP_GROUP}
|
2005-05-28 09:56:27 +00:00
|
|
|
ASSP_HOME= /var/db/assp
|
2009-05-22 01:43:29 +00:00
|
|
|
ASSP_LOG= /var/log/assp
|
2005-05-28 09:56:27 +00:00
|
|
|
|
2009-05-22 01:43:29 +00:00
|
|
|
PLIST_SUB= ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}"
|
2005-05-28 09:56:27 +00:00
|
|
|
|
2011-01-10 06:33:28 +00:00
|
|
|
SUB_FILES= 510.assp assp.8 assplog.8 assplog.pl pkg-install
|
2009-05-22 01:43:29 +00:00
|
|
|
SUB_LIST= ASSP_USER="${ASSP_USER}" ASSP_GROUP="${ASSP_GROUP}" \
|
|
|
|
ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}" \
|
|
|
|
DATADIR="${DATADIR}" PERL="${PERL}"
|
2005-05-28 09:56:27 +00:00
|
|
|
|
2006-07-18 03:08:23 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2012-06-12 20:54:33 +00:00
|
|
|
|
2013-06-18 13:49:02 +00:00
|
|
|
OPTIONS_DEFINE= EMVALID LDAP SPF SRS SEND FBACKW CLAMAV DNSBL MYSQL \
|
2012-06-12 20:54:33 +00:00
|
|
|
MATCHRE SENDERB MIMEMOD SSL IPV6
|
|
|
|
|
|
|
|
EMVALID_DESC= RFC822 recipient address validator
|
|
|
|
LDAP_DESC= LDAP validation of recipient addresses
|
|
|
|
SPF_DESC= SPF validation of client IP
|
|
|
|
SRS_DESC= Sender Rewriting Scheme
|
|
|
|
SEND_DESC= Resending .eml files
|
|
|
|
FBACKW_DESC= File Reading Backwards
|
|
|
|
CLAMAV_DESC= ClamAV virus scanner
|
|
|
|
DNSBL_DESC= DNS block list checking
|
|
|
|
MYSQL_DESC= Use MySQL db to store white/red/delaylists
|
|
|
|
MATCHRE_DESC= Match IP ranges and CIDR blocks in lists
|
|
|
|
SENDERB_DESC= Country Code checks
|
|
|
|
MIMEMOD_DESC= Multiple Attachement detection
|
|
|
|
SSL_DESC= SSL secure sockets support
|
|
|
|
IPV6_DESC= IPv6 sockets support
|
|
|
|
|
2013-06-18 13:49:02 +00:00
|
|
|
OPTIONS_DEFAULT= EMVALID SPF SRS SEND FBACKW CLAMAV DNSBL MATCHRE SENDERB MIMEMOD SSL IPV6
|
2005-05-28 09:56:27 +00:00
|
|
|
|
2013-08-15 11:18:56 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/ASSP_1.9.9_13227_install/${PORTNAME:U}
|
2006-07-18 03:08:23 +00:00
|
|
|
|
2013-09-20 19:59:12 +00:00
|
|
|
NO_STAGE= yes
|
2005-05-28 09:56:27 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-08-15 11:18:56 +00:00
|
|
|
RUN_DEPENDS+= p5-Net-DNS>=0.68:${PORTSDIR}/dns/p5-Net-DNS \
|
|
|
|
p5-libwww>=6.04:${PORTSDIR}/www/p5-libwww \
|
2012-06-12 20:54:33 +00:00
|
|
|
p5-HTML-Parser>=3.69:${PORTSDIR}/www/p5-HTML-Parser
|
2009-08-08 12:45:24 +00:00
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MEMVALID}
|
|
|
|
RUN_DEPENDS+= p5-Email-Valid>=0.190:${PORTSDIR}/mail/p5-Email-Valid
|
2005-05-28 09:56:27 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
|
|
RUN_DEPENDS+= p5-perl-ldap>=0.4400:${PORTSDIR}/net/p5-perl-ldap
|
2005-05-28 09:56:27 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MSPF}
|
|
|
|
RUN_DEPENDS+= p5-Mail-SPF>=2.007:${PORTSDIR}/mail/p5-Mail-SPF
|
2005-05-28 09:56:27 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MSRS}
|
|
|
|
RUN_DEPENDS+= p5-Mail-SRS>=0.31:${PORTSDIR}/mail/p5-Mail-SRS
|
2006-07-18 03:08:23 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MSEND}
|
|
|
|
RUN_DEPENDS+= p5-Email-Send>=2.198:${PORTSDIR}/mail/p5-Email-Send
|
2009-05-22 01:43:29 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MFBACKW}
|
|
|
|
RUN_DEPENDS+= p5-File-ReadBackwards>=1.05:${PORTSDIR}/devel/p5-File-ReadBackwards
|
2006-07-18 03:08:23 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MCLAMAV}
|
|
|
|
RUN_DEPENDS+= p5-File-Scan-ClamAV>=1.9.1:${PORTSDIR}/security/p5-File-Scan-ClamAV
|
2005-05-28 09:56:27 +00:00
|
|
|
PLIST_SUB+= ASSP_CLAMAV=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ASSP_CLAMAV="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MDNSBL}
|
|
|
|
RUN_DEPENDS+= p5-Net-DNS>=0.68:${PORTSDIR}/dns/p5-Net-DNS
|
2006-07-18 03:08:23 +00:00
|
|
|
.endif
|
2005-07-13 07:08:15 +00:00
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
|
|
RUN_DEPENDS+= p5-Tie-DBI>=1.05:${PORTSDIR}/databases/p5-Tie-DBI
|
2006-12-21 19:14:10 +00:00
|
|
|
.endif
|
2005-07-13 07:08:15 +00:00
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MMATCHRE}
|
|
|
|
RUN_DEPENDS+= p5-Net-IP-Match-Regexp>=1.01:${PORTSDIR}/net-mgmt/p5-Net-IP-Match-Regexp
|
2009-05-22 01:43:29 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MSENDERB}
|
|
|
|
RUN_DEPENDS+= p5-Net-SenderBase>=1.02:${PORTSDIR}/mail/p5-Net-SenderBase
|
2009-05-22 01:43:29 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MMIMEMOD}
|
|
|
|
RUN_DEPENDS+= p5-Email-MIME>=1.910:${PORTSDIR}/mail/p5-Email-MIME
|
2009-05-22 01:43:29 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
|
|
|
RUN_DEPENDS+= p5-IO-Socket-SSL>=1.74:${PORTSDIR}/security/p5-IO-Socket-SSL
|
2009-05-22 01:43:29 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
|
|
|
RUN_DEPENDS+= p5-IO-Socket-INET6>=2.69:${PORTSDIR}/net/p5-IO-Socket-INET6
|
2009-01-31 00:23:12 +00:00
|
|
|
.endif
|
|
|
|
|
2006-12-21 19:14:10 +00:00
|
|
|
EXTRACT_AFTER_ARGS= -d ${PORTNAME}-${PORTVERSION}
|
2006-12-01 08:10:20 +00:00
|
|
|
|
2005-05-28 09:56:27 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/*.pl
|
|
|
|
|
|
|
|
do-install:
|
2009-05-22 01:43:29 +00:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/assp.pl ${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rebuildspamdb.pl ${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/stat.pl ${DATADIR}
|
|
|
|
|
2011-01-06 16:26:53 +00:00
|
|
|
( cd ${WRKSRC} && ${COPYTREE_SHARE} "files images reports" \
|
|
|
|
${DATADIR}/ "! -name '*.orig' ! -name '*.bak'" )
|
2009-05-22 01:43:29 +00:00
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/assplog.pl ${PREFIX}/sbin/assplog
|
2005-05-28 09:56:27 +00:00
|
|
|
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/assp.8 ${MAN8PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/assplog.8 ${MAN8PREFIX}/man/man8
|
|
|
|
|
|
|
|
${MKDIR} ${PREFIX}/etc/periodic/daily
|
2011-01-10 06:33:28 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/510.assp ${PREFIX}/etc/periodic/daily/
|
2005-05-28 09:56:27 +00:00
|
|
|
|
2012-06-12 20:54:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-05-28 09:56:27 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2007-10-12 00:32:21 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.htm ${DOCSDIR}
|
2005-05-28 09:56:27 +00:00
|
|
|
.endif
|
|
|
|
|
2011-01-06 16:26:53 +00:00
|
|
|
post-install:
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
|
2005-05-28 09:56:27 +00:00
|
|
|
.include <bsd.port.post.mk>
|