aboutsummaryrefslogtreecommitdiff
path: root/mail/assp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/assp/Makefile')
-rw-r--r--mail/assp/Makefile64
1 files changed, 54 insertions, 10 deletions
diff --git a/mail/assp/Makefile b/mail/assp/Makefile
index edfea3dc422e..59eb567bf9a4 100644
--- a/mail/assp/Makefile
+++ b/mail/assp/Makefile
@@ -6,11 +6,11 @@
#
PORTNAME= assp
-PORTVERSION= 1.1.1
-PORTREVISION= 1
+PORTVERSION= 1.2.2
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= assp
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME:U}_${PORTVERSION}-install
MAINTAINER= fbsd@opal.com
COMMENT= Anti-Spam SMTP Proxy
@@ -19,6 +19,24 @@ USE_ZIP= yes
NO_BUILD= yes
USE_PERL5_RUN= yes
+USE_DOS2UNIX= addservice.pl \
+ assp.pl \
+ changelog.txt \
+ freshclam.sh \
+ move2num.pl \
+ nodelay.txt \
+ notspamreport.txt \
+ rebuildspamdb.pl \
+ redre.txt \
+ redremovereport.txt \
+ redreport.txt \
+ repair.pl \
+ spamreport.txt \
+ stat.pl \
+ stats.sh \
+ whiteremovereport.txt \
+ whitereport.txt
+
MAN8= assp.8 assplog.8
ASSP_USER= nobody
@@ -27,20 +45,32 @@ ASSP_HOME= /var/db/assp
PLIST_SUB= ASSP_HOME="${ASSP_HOME}"
-SUB_FILES= assp.8 assplog.8 assp.sh periodic-assp.sh pkg-install
+SUB_FILES= assp.8 assplog.8 periodic-assp.sh pkg-install
SUB_LIST= ASSP_HOME="${ASSP_HOME}" ASSP_USER="${ASSP_USER}" \
ASSP_GROUP="${ASSP_GROUP}" PERL="${PERL}"
-USE_RC_SUBR= assp.sh
+USE_RC_SUBR= ${PORTNAME}
+RC_SCRIPT= ${PREFIX}/etc/rc.d/${PORTNAME}
OPTIONS= EMVALID "RFC822 recipient address validator" on \
LDAP "LDAP validation of recipient addresses" on \
SPF "SPF validation of client IP" on \
+ SRS "Sender Rewriting Scheme" on \
+ FBACKW "File Reading Backwards" on \
+ ZLIB "HTTP Header Compression on Admin Interface" on \
CLAMAV "ClamAV virus scanner" on \
DNSBL "DNS block list checking" on
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME:U}
+
.include <bsd.port.pre.mk>
+.if (${OSVERSION} >= 700007 || ( ${OSVERSION} < 700000 && ${OSVERSION} >= 600101 ))
+SUB_LIST+= RC_SCRIPT=${RC_SCRIPT}
+.else
+SUB_LIST+= RC_SCRIPT=${RC_SCRIPT}.sh
+.endif
+
.if !defined(WITHOUT_EMVALID)
RUN_DEPENDS+= ${SITE_PERL}/Email/Valid.pm:${PORTSDIR}/mail/p5-Email-Valid
.endif
@@ -54,8 +84,16 @@ RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
RUN_DEPENDS+= ${SITE_PERL}/Mail/SPF/Query.pm:${PORTSDIR}/mail/p5-Mail-SPF-Query
.endif
-.if !defined(WITHOUT_DNSBL)
-RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
+.if !defined(WITHOUT_SRS)
+RUN_DEPENDS+= ${SITE_PERL}/Mail/SRS.pm:${PORTSDIR}/mail/p5-Mail-SRS
+.endif
+
+.if !defined(WITHOUT_FBACKW)
+RUN_DEPENDS+= ${SITE_PERL}/File/ReadBackwards.pm:${PORTSDIR}/devel/p5-File-ReadBackwards
+.endif
+
+.if !defined(WITHOUT_ZLIB)
+RUN_DEPENDS+= ${SITE_PERL}/mach/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
.endif
.if !defined(WITHOUT_CLAMAV)
@@ -65,10 +103,11 @@ PLIST_SUB+= ASSP_CLAMAV=""
PLIST_SUB+= ASSP_CLAMAV="@comment "
.endif
-EXTRACT_AFTER_ARGS= -d ${PORTNAME}-${PORTVERSION}
+.if !defined(WITHOUT_DNSBL)
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
+.endif
-pre-patch:
- @${REINPLACE_CMD} -e 's|.$$||' ${WRKSRC}/stats.sh
+EXTRACT_AFTER_ARGS= -d ${PORTNAME}-${PORTVERSION}
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/*.pl
@@ -81,6 +120,11 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/freshclam.sh ${PREFIX}/lib/assp
.endif
${INSTALL_DATA} ${WRKSRC}/*report.txt ${PREFIX}/lib/assp
+ ${INSTALL_DATA} ${WRKSRC}/nodelay.txt ${PREFIX}/lib/assp
+ ${INSTALL_DATA} ${WRKSRC}/redre.txt ${PREFIX}/lib/assp
+
+ ${MKDIR} ${PREFIX}/lib/assp/images
+ ${INSTALL_DATA} ${WRKSRC}/images/* ${PREFIX}/lib/assp/images
${LN} -s ${PREFIX}/lib/assp/assp.pl ${PREFIX}/sbin/assp
${LN} -s ${PREFIX}/lib/assp/stats.sh ${PREFIX}/sbin/assplog