mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
fb529b067a
-Also, fix some permissions in install. PR: 161965 Approved by: gabor(mentor) Feature safe: yes
162 lines
4.5 KiB
Makefile
162 lines
4.5 KiB
Makefile
# New ports collection makefile for: assp
|
|
# Date created: 16 May 2005
|
|
# Whom: J.R. Oldroyd <fbsd@opal.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= assp
|
|
PORTVERSION= 1.9.1.9
|
|
PORTEPOCH= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.ringofsaturn.com/distfiles/
|
|
DISTNAME= ${PORTNAME:U}_${PORTVERSION}-Install
|
|
|
|
MAINTAINER= rnejdl@ringofsaturn.com
|
|
COMMENT= Anti-Spam SMTP Proxy
|
|
|
|
USE_ZIP= yes
|
|
NO_BUILD= yes
|
|
USE_PERL5_RUN= yes
|
|
|
|
MAN8= assp.8 assplog.8
|
|
|
|
ASSP_USER= assp
|
|
ASSP_GROUP= assp
|
|
USERS= ${ASSP_USER}
|
|
GROUPS= ${ASSP_GROUP}
|
|
ASSP_HOME= /var/db/assp
|
|
ASSP_LOG= /var/log/assp
|
|
|
|
PLIST_SUB= ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}"
|
|
|
|
SUB_FILES= 510.assp assp.8 assplog.8 assplog.pl pkg-install
|
|
SUB_LIST= ASSP_USER="${ASSP_USER}" ASSP_GROUP="${ASSP_GROUP}" \
|
|
ASSP_HOME="${ASSP_HOME}" ASSP_LOG="${ASSP_LOG}" \
|
|
DATADIR="${DATADIR}" PERL="${PERL}"
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
RC_SCRIPT= ${PREFIX}/etc/rc.d/${PORTNAME}
|
|
|
|
OPTIONS= EMVALID "RFC822 recipient address validator" on \
|
|
LDAP "LDAP validation of recipient addresses" off \
|
|
SPF "SPF validation of client IP" on \
|
|
SRS "Sender Rewriting Scheme" on \
|
|
SEND "Resending .eml files" 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 \
|
|
MYSQL "Use MySQL db to store white/red/delaylists" off \
|
|
MATCHRE "Match IP ranges and CIDR blocks in lists" on \
|
|
SENDERB "Country Code checks" on \
|
|
MIMEMOD "Multiple Attachement detection" on \
|
|
SSL "SSL secure sockets support" on \
|
|
IPV6 "IPv6 sockets support" on
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${DISTNAME}/${PORTNAME:U}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
SUB_LIST+= RC_SCRIPT=${RC_SCRIPT}
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
|
|
RUN_DEPENDS+= ${SITE_PERL}/LWP/Simple.pm:${PORTSDIR}/www/p5-libwww
|
|
|
|
.if !defined(WITHOUT_EMVALID)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Email/Valid.pm:${PORTSDIR}/mail/p5-Email-Valid
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LDAP)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SPF)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Mail/SPF.pm:${PORTSDIR}/mail/p5-Mail-SPF
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SRS)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Mail/SRS.pm:${PORTSDIR}/mail/p5-Mail-SRS
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SEND)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Email/Send.pm:${PORTSDIR}/mail/p5-Email-Send
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_FBACKW)
|
|
RUN_DEPENDS+= ${SITE_PERL}/File/ReadBackwards.pm:${PORTSDIR}/devel/p5-File-ReadBackwards
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_ZLIB)
|
|
. if ${PERL_LEVEL} < 500903
|
|
RUN_DEPENDS+= ${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-IO-Compress
|
|
.endif
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_CLAMAV)
|
|
RUN_DEPENDS+= ${SITE_PERL}/File/Scan/ClamAV.pm:${PORTSDIR}/security/p5-File-Scan-ClamAV
|
|
PLIST_SUB+= ASSP_CLAMAV=""
|
|
.else
|
|
PLIST_SUB+= ASSP_CLAMAV="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_DNSBL)
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_MYSQL)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Tie/RDBM.pm:${PORTSDIR}/databases/p5-Tie-DBI
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_MATCHRE)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Net/IP/Match/Regexp.pm:${PORTSDIR}/net-mgmt/p5-Net-IP-Match-Regexp
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SENDERB)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Net/SenderBase.pm:${PORTSDIR}/mail/p5-Net-SenderBase
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_MIMEMOD)
|
|
RUN_DEPENDS+= ${SITE_PERL}/Email/MIME/Modifier.pm:${PORTSDIR}/mail/p5-Email-MIME
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SSL)
|
|
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_IPV6)
|
|
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6
|
|
.endif
|
|
|
|
EXTRACT_AFTER_ARGS= -d ${PORTNAME}-${PORTVERSION}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/*.pl
|
|
|
|
do-install:
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/assp.pl ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rebuildspamdb.pl ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/stat.pl ${DATADIR}
|
|
|
|
( cd ${WRKSRC} && ${COPYTREE_SHARE} "files images reports" \
|
|
${DATADIR}/ "! -name '*.orig' ! -name '*.bak'" )
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/assplog.pl ${PREFIX}/sbin/assplog
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/assp.8 ${MAN8PREFIX}/man/man8
|
|
${INSTALL_MAN} ${WRKDIR}/assplog.8 ${MAN8PREFIX}/man/man8
|
|
|
|
${MKDIR} ${PREFIX}/etc/periodic/daily
|
|
${INSTALL_SCRIPT} ${WRKDIR}/510.assp ${PREFIX}/etc/periodic/daily/
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.htm ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.post.mk>
|