f5ec9f1ea3
from the qmail mail transport agent (MTA). qmail-smtpd has a number of shortcomings (e.g. being unable to check the validity of a recipient mail address) and is written in C which makes it burdensome to modify and extend. Qpsmtpd, on the other hand, is written in pure perl and can be customized easily. It consists of a core that implements a complete SMTP server, and a number of plugins/modules which control the operations. Such plugins include plugins to check the recipient and sender as well as plugins for virus scanning, spam checking, blocking lists (dns and rhs), AUTH and TLS. Qpsmtpd can not only be used with qmail but also with e.g. postfix and exim. It can also write messages to a Maildir or forward it to a remote host without buffering. WWW: http://smtpd.develooper.com/ PR: ports/107668 Submitted by: Zane C. Bowers
76 lines
2.7 KiB
Makefile
76 lines
2.7 KiB
Makefile
# New ports collection makefile for: qpsmtpd
|
|
# Date created: 1 January 2007
|
|
# Whom: Zane C. Bowers
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qpsmtpd
|
|
PORTVERSION= 0.32
|
|
CATEGORIES= mail
|
|
DISTNAME= qpsmtpd-${PORTVERSION}
|
|
|
|
MAINTAINER= vvelox@vvelox.net
|
|
COMMENT= A flexible SMTP daemon written in Perl and featuring a plugin API
|
|
|
|
#none for Net::Milter yet... meaning the milter plugin does not work and thus deleted when installed
|
|
#none for Clamd yet... meaning the plugins/virus/clamd does not work and thus deleted when installed
|
|
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
|
|
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
|
|
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
|
|
${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \
|
|
spamd:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
|
|
${SITE_PERL}/${PERL_ARCH}/Net/DNS/Resolver.pm:${PORTSDIR}/dns/p5-Net-DNS \
|
|
${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \
|
|
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
|
|
${SITE_PERL}/${PERL_ARCH}/Geo/IP.pm:${PORTSDIR}/net/p5-Geo-IP \
|
|
${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
|
|
${SITE_PERL}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC
|
|
|
|
MASTER_SITES= http://smtpd.develooper.com/files/
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= Qpsmtpd::Constants.3 \
|
|
Qpsmtpd::DSN.3 \
|
|
Qpsmtpd::Auth.3 \
|
|
Qpsmtpd::Transaction.3 \
|
|
Qpsmtpd::Address.3 \
|
|
Qpsmtpd.3 \
|
|
Qpsmtpd::Connection.3 \
|
|
Qpsmtpd::Postfix.3 \
|
|
Apache::Qpsmtpd.3
|
|
|
|
USE_RC_SUBR= qpsmtpd.sh
|
|
|
|
pre-configure:
|
|
@${RM} -v ${WRKSRC}/plugins/milter
|
|
@${RM} -v ${WRKSRC}/plugins/virus/clamdscan
|
|
|
|
post-install:
|
|
@${MKDIR} -v ${PREFIX}/share/examples/${PORTNAME}
|
|
@${CP} -v ${WRKSRC}/config.sample/* ${PREFIX}/share/examples/${PORTNAME}
|
|
@${MKDIR} -v ${PREFIX}/share/${PORTNAME}
|
|
@${MKDIR} -v ${PREFIX}/share/${PORTNAME}/plugins
|
|
@${CP} -vr ${WRKSRC}/plugins/ ${PREFIX}/share/${PORTNAME}/plugins
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} '*****************************************************************'
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "Please read http://wiki.qpsmtpd.org/ for more info about"
|
|
@${ECHO_MSG} "installation."
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "The example config can be found in "${PREFIX}"/share/examples/"${PORTNAME}"/"
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "The plugins can be found in "${PREFIX}"/share/"${PORTNAME}"/plugins/"
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "This port does also not make any assumptions about what user you"
|
|
@${ECHO_MSG} "wish to use or install location."
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} '*****************************************************************'
|
|
|
|
.include <bsd.port.mk>
|