2017-05-15 15:07:19 +02:00
|
|
|
# $NetBSD: options.mk,v 1.12 2017/05/15 13:07:19 jperkin 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
|
|
|
|
|
|
|
# Global and legacy options
|
|
|
|
|
2008-02-21 16:50:29 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.courier-mta
|
|
|
|
PKG_SUPPORTED_OPTIONS= courier-dsn courier-esmtp courier-gnutls \
|
|
|
|
courier-local courier-uucp inet6 ldap
|
|
|
|
PKG_SUGGESTED_OPTIONS= courier-dsn courier-esmtp courier-local inet6
|
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
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
###
|
|
|
|
### delivery sender notification mail transport
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mcourier-dsn)
|
|
|
|
COURIER_TRANSPORTS+= dsn
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.dsn
|
|
|
|
|
|
|
|
. for _file_ in dsndelayed.txt dsndelivered.txt dsnfailed.txt \
|
|
|
|
dsnfooter.txt dsnheader.txt dsnrelayed.txt \
|
|
|
|
dsnsubjectnotice.txt dsnsubjectwarn.txt module.dsn
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/${_file_} \
|
|
|
|
${PKG_SYSCONFDIR}/${_file_:S/.dist$//} \
|
|
|
|
${COURIER_FILE_PERMS}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### ESMTP mail transport
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mcourier-esmtp)
|
|
|
|
COURIER_TRANSPORTS+= esmtp
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.esmtp
|
|
|
|
|
|
|
|
RCD_SCRIPTS+= courieresmtp courieresmtpmsa courieresmtps
|
|
|
|
|
2007-09-07 16:11:20 +02:00
|
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/esmtpacceptmailfor.dir \
|
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
|
|
|
${COURIER_DIR_PERMS}
|
|
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/esmtppercentrelay.dir \
|
|
|
|
${COURIER_DIR_PERMS}
|
|
|
|
|
|
|
|
. for _file_ in esmtp.authpam esmtpd-msa.dist esmtpd-ssl.dist \
|
|
|
|
esmtpd.cnf esmtpd.dist module.esmtp
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/${_file_} \
|
|
|
|
${PKG_SYSCONFDIR}/${_file_:S/.dist$//} \
|
|
|
|
${COURIER_FILE_PERMS}
|
|
|
|
. endfor
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/esmtpauthclient \
|
|
|
|
${PKG_SYSCONFDIR}/esmtpauthclient \
|
|
|
|
${COURIER_USER} ${COURIER_GROUP} 0600
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### fax mail transport
|
|
|
|
###
|
|
|
|
### XXX This option should not be enabled until the dependencies for
|
|
|
|
### XXX generating and receiving faxes have all been sorted out, e.g.
|
|
|
|
### XXX mgetty+sendfax, netpbm, etc.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mcourier-fax)
|
|
|
|
USE_TOOLS+= gs:run
|
|
|
|
COURIER_TRANSPORTS+= fax
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.fax
|
|
|
|
|
|
|
|
OWN_DIRS_PERMS+= ${COURIER_STATEDIR}/faxtmp \
|
|
|
|
${COURIER_USER} ${COURIER_GROUP} 0700
|
|
|
|
|
|
|
|
. for _file_ in faxcoverpage.tr.dist faxnotifyrc.dist module.fax
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/${_file_} \
|
|
|
|
${PKG_SYSCONFDIR}/${_file_:S/.dist$//} \
|
|
|
|
${COURIER_FILE_PERMS}
|
|
|
|
. endfor
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/faxrc.dist ${PKG_SYSCONFDIR}/faxrc \
|
|
|
|
${COURIER_USER} ${COURIER_GROUP} 0640
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### local mail tranport
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mcourier-local)
|
|
|
|
COURIER_TRANSPORTS+= local
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.local
|
|
|
|
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/module.local \
|
|
|
|
${PKG_SYSCONFDIR}/module.local \
|
|
|
|
${COURIER_FILE_PERMS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### UUCP mail transport
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mcourier-uucp)
|
|
|
|
COURIER_TRANSPORTS+= uucp
|
|
|
|
PKG_GROUPS+= ${UUCP_GROUP}
|
2007-06-15 23:59:23 +02:00
|
|
|
PKG_USERS+= ${UUCP_USER}:${UUCP_GROUP}
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= UUCP_GROUP
|
|
|
|
PKG_USERS_VARS+= UUCP_USER
|
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
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.uucp
|
|
|
|
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/module.uucp \
|
|
|
|
${PKG_SYSCONFDIR}/module.uucp \
|
|
|
|
${COURIER_FILE_PERMS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if empty(COURIER_TRANSPORTS)
|
|
|
|
PKG_FAIL_REASON+= "[courier/options.mk] No mail transports specified."
|
|
|
|
.endif
|
|
|
|
|
2007-09-21 16:12:19 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
### IPv6 support (used by Courier ESMTP client)
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --with-ipv6
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ipv6
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
###
|
|
|
|
### LDAP alias lookup support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
2006-05-31 20:22:23 +02:00
|
|
|
. include "../../databases/openldap-client/buildlink3.mk"
|
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_ARGS+= --with-ldapaliasd
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.ldap
|
2007-08-10 19:57:03 +02:00
|
|
|
FILES_SUBST+= COURIERLDAPALIASD=courierldapaliasd
|
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
|
|
|
|
|
|
|
RCD_SCRIPTS+= courierldapaliasd
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/ldapaliasrc.dist \
|
|
|
|
${PKG_SYSCONFDIR}/ldapaliasrc \
|
|
|
|
${COURIER_USER} ${COURIER_GROUP} 0640
|
|
|
|
.else
|
2007-08-10 19:57:03 +02:00
|
|
|
FILES_SUBST+= COURIERLDAPALIASD=
|
2017-05-15 15:07:19 +02:00
|
|
|
CONFIGURE_ARGS+= --without-ldapaddressbook --without-ldapaliasd
|
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
|
|
|
.endif
|
2008-02-19 19:45:23 +01:00
|
|
|
|
|
|
|
###
|
2008-02-21 16:50:29 +01:00
|
|
|
### Support using the GNU TLS tools for creating certificates; otherwise,
|
|
|
|
### default to using OpenSSL.
|
2008-02-19 19:45:23 +01:00
|
|
|
###
|
|
|
|
SUBST_CLASSES+= tls
|
|
|
|
SUBST_FILES.tls= courier/module.esmtp/mkesmtpdcert.in
|
|
|
|
SUBST_STAGE.tls= pre-configure
|
|
|
|
COURIER_CERTTOOL= ${PREFIX}/bin/certtool
|
|
|
|
COURIER_OPENSSL= ${PREFIX}/bin/openssl
|
2008-02-21 16:50:29 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mcourier-gnutls)
|
2008-02-19 19:45:23 +01:00
|
|
|
SUBST_SED.tls= -e "s|@ssllib@|gnutls|g"
|
2008-02-21 16:50:29 +01:00
|
|
|
.else
|
2008-02-19 19:45:23 +01:00
|
|
|
USE_TOOLS+= openssl:run
|
|
|
|
COURIER_OPENSSL= ${TOOLS_OPENSSL}
|
|
|
|
SUBST_SED.tls= -e "s|@ssllib@|openssl|g"
|
|
|
|
.endif
|