2006-06-26 07:21:17 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2006/06/26 05:21:17 jlam Exp $
|
First cut at packaging the MTA and mailing list components of
courier-0.53.1 as mail/courier-mta.
The Courier mail transfer agent (MTA) is a modular multiprotocol mail
server that's designed to strike a balance between reasonable performance,
flexibility and features.
This package differs from traditional courier-mta packages in that
the webmail, imap/pop3, and maildrop components are not included
because they are supplied by the mail/sqwebmail, mail/courier-imap,
and mail/maildrop packages, respectively. When Courier-MTA is installed
together with Courier-IMAP and SqWebMail, they form an integrated
mail/groupware server suite that provides ESMTP, IMAP, POP3, webmail,
and mailing list services within a single, consistent, framework. A
web-based administration and configuration tool is included for
comprehensive configuration of the entire Courier software suite.
Many thanks to Yarema <yds@CoolRat.org> whose Courier port for FreeBSD
was an invaluable reference.
2006-04-28 20:10:21 +02:00
|
|
|
|
|
|
|
DISTNAME= courier-${COURIER_VERSION}
|
2006-06-26 07:21:17 +02:00
|
|
|
PKGREVISION= 3
|
First cut at packaging the MTA and mailing list components of
courier-0.53.1 as mail/courier-mta.
The Courier mail transfer agent (MTA) is a modular multiprotocol mail
server that's designed to strike a balance between reasonable performance,
flexibility and features.
This package differs from traditional courier-mta packages in that
the webmail, imap/pop3, and maildrop components are not included
because they are supplied by the mail/sqwebmail, mail/courier-imap,
and mail/maildrop packages, respectively. When Courier-MTA is installed
together with Courier-IMAP and SqWebMail, they form an integrated
mail/groupware server suite that provides ESMTP, IMAP, POP3, webmail,
and mailing list services within a single, consistent, framework. A
web-based administration and configuration tool is included for
comprehensive configuration of the entire Courier software suite.
Many thanks to Yarema <yds@CoolRat.org> whose Courier port for FreeBSD
was an invaluable reference.
2006-04-28 20:10:21 +02:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2006-05-01 04:57:58 +02:00
|
|
|
CONFLICTS+= postfix-[0-9]* qmail-[0-9]* sendmail-[0-9]*
|
|
|
|
|
First cut at packaging the MTA and mailing list components of
courier-0.53.1 as mail/courier-mta.
The Courier mail transfer agent (MTA) is a modular multiprotocol mail
server that's designed to strike a balance between reasonable performance,
flexibility and features.
This package differs from traditional courier-mta packages in that
the webmail, imap/pop3, and maildrop components are not included
because they are supplied by the mail/sqwebmail, mail/courier-imap,
and mail/maildrop packages, respectively. When Courier-MTA is installed
together with Courier-IMAP and SqWebMail, they form an integrated
mail/groupware server suite that provides ESMTP, IMAP, POP3, webmail,
and mailing list services within a single, consistent, framework. A
web-based administration and configuration tool is included for
comprehensive configuration of the entire Courier software suite.
Many thanks to Yarema <yds@CoolRat.org> whose Courier port for FreeBSD
was an invaluable reference.
2006-04-28 20:10:21 +02:00
|
|
|
MAINTAINER= jlam@pkgsrc.org
|
|
|
|
COMMENT= Courier mail transport agent
|
|
|
|
HOMEPAGE= http://www.courier-mta.org/
|
|
|
|
|
|
|
|
DEPENDS+= courier-maildir>=${COURIER_VERSION}:../../mail/courier-maildir
|
2006-06-26 07:21:17 +02:00
|
|
|
DEPENDS+= couriertcpd>=${COURIER_VERSION}nb2:../../net/couriertcpd
|
First cut at packaging the MTA and mailing list components of
courier-0.53.1 as mail/courier-mta.
The Courier mail transfer agent (MTA) is a modular multiprotocol mail
server that's designed to strike a balance between reasonable performance,
flexibility and features.
This package differs from traditional courier-mta packages in that
the webmail, imap/pop3, and maildrop components are not included
because they are supplied by the mail/sqwebmail, mail/courier-imap,
and mail/maildrop packages, respectively. When Courier-MTA is installed
together with Courier-IMAP and SqWebMail, they form an integrated
mail/groupware server suite that provides ESMTP, IMAP, POP3, webmail,
and mailing list services within a single, consistent, framework. A
web-based administration and configuration tool is included for
comprehensive configuration of the entire Courier software suite.
Many thanks to Yarema <yds@CoolRat.org> whose Courier port for FreeBSD
was an invaluable reference.
2006-04-28 20:10:21 +02:00
|
|
|
DEPENDS+= maildrop>=2.0.2:../../mail/maildrop
|
|
|
|
|
2006-06-14 19:01:08 +02:00
|
|
|
USE_TOOLS+= gmake openssl:run perl:run
|
First cut at packaging the MTA and mailing list components of
courier-0.53.1 as mail/courier-mta.
The Courier mail transfer agent (MTA) is a modular multiprotocol mail
server that's designed to strike a balance between reasonable performance,
flexibility and features.
This package differs from traditional courier-mta packages in that
the webmail, imap/pop3, and maildrop components are not included
because they are supplied by the mail/sqwebmail, mail/courier-imap,
and mail/maildrop packages, respectively. When Courier-MTA is installed
together with Courier-IMAP and SqWebMail, they form an integrated
mail/groupware server suite that provides ESMTP, IMAP, POP3, webmail,
and mailing list services within a single, consistent, framework. A
web-based administration and configuration tool is included for
comprehensive configuration of the entire Courier software suite.
Many thanks to Yarema <yds@CoolRat.org> whose Courier port for FreeBSD
was an invaluable reference.
2006-04-28 20:10:21 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-mta-/}
|
|
|
|
# PKGNAME is a parameter to the following file.
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
|
|
|
.include "pkginstall.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
USERGROUP_PHASE= configure
|
|
|
|
|
2006-06-14 19:01:08 +02:00
|
|
|
CONFIGURE_ENV+= OPENSSL=${TOOLS_OPENSSL:Q}
|
First cut at packaging the MTA and mailing list components of
courier-0.53.1 as mail/courier-mta.
The Courier mail transfer agent (MTA) is a modular multiprotocol mail
server that's designed to strike a balance between reasonable performance,
flexibility and features.
This package differs from traditional courier-mta packages in that
the webmail, imap/pop3, and maildrop components are not included
because they are supplied by the mail/sqwebmail, mail/courier-imap,
and mail/maildrop packages, respectively. When Courier-MTA is installed
together with Courier-IMAP and SqWebMail, they form an integrated
mail/groupware server suite that provides ESMTP, IMAP, POP3, webmail,
and mailing list services within a single, consistent, framework. A
web-based administration and configuration tool is included for
comprehensive configuration of the entire Courier software suite.
Many thanks to Yarema <yds@CoolRat.org> whose Courier port for FreeBSD
was an invaluable reference.
2006-04-28 20:10:21 +02:00
|
|
|
CONFIGURE_ENV+= PROCMAIL=${LOCALBASE:Q}/bin/procmail
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --datadir=${DATADIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-mailuid=${PKG_UID.${COURIER_USER}}
|
|
|
|
CONFIGURE_ARGS+= --with-mailgid=${PKG_GID.${COURIER_GROUP}}
|
|
|
|
CONFIGURE_ARGS+= --with-paranoid-smtpext
|
|
|
|
CONFIGURE_ARGS+= --with-piddir=${VARBASE:Q}/run
|
|
|
|
CONFIGURE_ARGS+= --with-transport=${COURIER_TRANSPORTS:M*:Q}
|
|
|
|
CONFIGURE_ARGS+= --without-certdb
|
|
|
|
|
|
|
|
# This argument is actually here just to make the "webmail" configure
|
|
|
|
# script work. The value is not actually used since in reality, we are
|
|
|
|
# using the sqwebmail package to provide the Courier webmail component.
|
|
|
|
#
|
|
|
|
CONFIGURE_ARGS+= --enable-mimetypes=/nonexistent
|
|
|
|
|
|
|
|
INSTALL_DIRS= webadmin courier
|
|
|
|
INSTALL_AM_MAKEFLAGS+= sysconfdir=${EGDIR:Q}
|
|
|
|
INSTALL_AM_MAKEFLAGS+= htmldocdir=${DOCDIR:Q}
|
|
|
|
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} AM_MAKEFLAGS=${INSTALL_AM_MAKEFLAGS:Q}
|
|
|
|
|
|
|
|
SUBST_CLASSES+= courier
|
|
|
|
SUBST_FILES.courier= courier/doc/mkesmtpdcert.8.in \
|
|
|
|
courier/doc/mkesmtpdcert.html.in \
|
|
|
|
courier/filters/courierfilter.8.in \
|
|
|
|
courier/filters/courierfilter.html.in \
|
|
|
|
courier/module.esmtp/esmtpd-msa.dist.in \
|
|
|
|
courier/module.esmtp/esmtpd-ssl.dist.in \
|
|
|
|
courier/module.esmtp/esmtpd.cnf.in \
|
|
|
|
courier/module.esmtp/esmtpd.dist.in \
|
|
|
|
courier/module.esmtp/mkesmtpdcert.in
|
|
|
|
SUBST_SED.courier= -e "s|^ESMTPDSTART=.*|ESMTPDSTART=YES|g" \
|
|
|
|
-e "s|^ESMTPDSSLSTART=.*|ESMTPDSSLSTART=YES|g" \
|
|
|
|
-e "s|@datadir@/esmtpd.pem|@sysconfdir@/esmtpd.pem|g" \
|
|
|
|
-e "s|@datadir@/esmtpd.rand|@sysconfdir@/esmtpd.rand|g" \
|
|
|
|
-e "s|@libexecdir@/filters|@libexecdir@/courier/filters|g"
|
|
|
|
SUBST_STAGE.courier= pre-configure
|
|
|
|
|
|
|
|
SUBST_CLASSES+= perms
|
|
|
|
SUBST_FILES.perms= courier/perms.sh.in
|
|
|
|
SUBST_SED.perms+= -e "s,@ROOT_USER@,"${ROOT_USER:Q}",g" \
|
|
|
|
-e "s,@ROOT_GROUP@,"${ROOT_GROUP:Q}",g"
|
|
|
|
SUBST_STAGE.perms= pre-configure
|
|
|
|
|
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= ${WRKDIR}/mailer.conf
|
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
|
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
|
|
|
.include "../../security/courier-authlib/buildlink3.mk"
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
${CAT} /dev/null > ${WRKDIR}/locallowercase
|
|
|
|
${ECHO} ${PREFIX:Q}"/bin/maildrop" > ${WRKDIR}/maildropfilter
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC}/courier && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install-permissions
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/locallowercase ${EGDIR}/locallowercase
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/maildropfilter ${EGDIR}/maildropfilter
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|