2020-05-21 21:21:17 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2020/05/21 19:21:17 rillig Exp $
|
2006-06-10 00:11:03 +02:00
|
|
|
|
|
|
|
DISTNAME= courier-${COURIER_VERSION}
|
|
|
|
PKGNAME= ${DISTNAME:S/-/tcpd-/}
|
2019-09-26 13:36:55 +02:00
|
|
|
PKGREVISION= 9
|
2006-06-10 00:11:03 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2010-03-21 17:29:38 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-06-10 00:11:03 +02:00
|
|
|
COMMENT= Courier TCP socket and TLS servers
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://www.courier-mta.org/
|
2006-06-10 00:11:03 +02:00
|
|
|
|
2008-02-19 19:45:41 +01:00
|
|
|
CONFLICTS= courier-imap<4.1.1
|
|
|
|
|
2019-09-26 13:36:55 +02:00
|
|
|
USE_TOOLS+= gmake pkg-config
|
2006-06-10 00:11:03 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
|
|
|
.include "../../mail/courier-mta/Makefile.common"
|
|
|
|
|
|
|
|
# This package doesn't need to depend on courier-authlib -- just fake
|
|
|
|
# out the top-level configure script that thinks it needs
|
|
|
|
# courierauthconfig.
|
|
|
|
#
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_COURIERAUTHCONFIG=${TRUE:Q}
|
|
|
|
|
|
|
|
# These are files required by the Courier configure scripts.
|
|
|
|
WRKSRC_FILES= courier/courier.c config.guess config.sub \
|
|
|
|
configure depcomp install-sh ltmain.sh missing \
|
|
|
|
sysconftool
|
|
|
|
WRKSRC_FILES+= Makefile.in courier.spec.in courier.lpspec.in \
|
Changes 0.68.1:
* rfc2045mkboundary.c was broken in 0.68
Changes 0.68:
* rfc2045/rfc2045mkboundary.c (rfc2045_mk_boundary): truncate
the hostname portion of the boundary to 30 chars.
* courier/doc/courier.sgml: Remove descriptions of some configuration
files that were moved to the courier-authlib package a while ago.
They don't belong here any more.
* courier/submit.C: Use the authenticated address, instead of the
return address, for domain-based virtual configuration.
* courier/libs/cfilename.c (config_has_vhost): Checks whether
vhost.[ip] exists.
* courier/module.esmtp/courieresmtpd.c (main): Only set a message's
virtual host if vhost.[ip] exists.
* courier/module.esmtp/esmtpclient.c (get_sourceaddr): Make sure the
input buffer is null-terminated.
* courier/submit.C (getrcpts): If there's no vhost setting from the
sender's IP address (this includes local mail!) if vhost.domain exists,
use [domain] as the virtual host.
* Remove config_search(), which simply called config_localfilename().
Change all current callers to call config_localfilename().
* courier/libs/cfilename.c (config_set_local_vhost): saves a string
that gets appended as a suffix, by config_localfilename(), and if that
filename exists, that's returned as the filename, otherwise it's the
original string without the suffix. config_get_local_vhost() returns
the suffix string.
to config_set_local_vhost().
* courier/libs/comsubmitclient.c (submit_fork): If
config_get_local_vhost(), add a -vhost parameter to submit().
* courier/submit.C (cppmain): -vhost sets config_set_local_vhost().
* courier/submit2.C (closectl): New COMCTLFILE_VHOST parameter in the
config file, taken from the vhost setting.
* courier/libs/comctlfile.c (ctlfile_setvhost): If COMCTLFILE_VHOST is
set, call ctlfile_setvhost(), return an indication if the vhost has
changed. Absence of a COMCTLFILE_VHOST treated as a discrete "(null)"
setting.
* courier/module.esmtp/esmtpclient.c (esmtpchild): If ctlfile_setvhost()
then disconnect the current socket, if one is open.
* courier/module.esmtp/esmtpclient.c (get_sourceaddr): The IP address
specified in ipout or ip6out overrides SOURCE_ADDRESS and
SOURCE_ADDRESS_IPV6 environment variable.
* courier/module.local/localmail.c (main): Call ctlfile_setvhost().
* courier/module.uucp/uucp.c (uux): Call ctlfile_setvhost().
* courier/module.dsn/dsn.c (main): Call ctlfile_setvhost().
* liblock/mail.c (dotlock_exists): Quell a compiler warning.
* courier/courierd.dist.in SOURCE_ADDRESS: Add a note that this setting
is deprecated.
2012-06-09 13:45:38 +02:00
|
|
|
dbobj.h.in dbobj.config.in courier.service.in \
|
|
|
|
courier.sysvinit.in
|
2006-06-10 00:11:03 +02:00
|
|
|
|
|
|
|
# These are subdirectories containing libraries used by couriertcpd.
|
Changes 0.68.1:
* rfc2045mkboundary.c was broken in 0.68
Changes 0.68:
* rfc2045/rfc2045mkboundary.c (rfc2045_mk_boundary): truncate
the hostname portion of the boundary to 30 chars.
* courier/doc/courier.sgml: Remove descriptions of some configuration
files that were moved to the courier-authlib package a while ago.
They don't belong here any more.
* courier/submit.C: Use the authenticated address, instead of the
return address, for domain-based virtual configuration.
* courier/libs/cfilename.c (config_has_vhost): Checks whether
vhost.[ip] exists.
* courier/module.esmtp/courieresmtpd.c (main): Only set a message's
virtual host if vhost.[ip] exists.
* courier/module.esmtp/esmtpclient.c (get_sourceaddr): Make sure the
input buffer is null-terminated.
* courier/submit.C (getrcpts): If there's no vhost setting from the
sender's IP address (this includes local mail!) if vhost.domain exists,
use [domain] as the virtual host.
* Remove config_search(), which simply called config_localfilename().
Change all current callers to call config_localfilename().
* courier/libs/cfilename.c (config_set_local_vhost): saves a string
that gets appended as a suffix, by config_localfilename(), and if that
filename exists, that's returned as the filename, otherwise it's the
original string without the suffix. config_get_local_vhost() returns
the suffix string.
to config_set_local_vhost().
* courier/libs/comsubmitclient.c (submit_fork): If
config_get_local_vhost(), add a -vhost parameter to submit().
* courier/submit.C (cppmain): -vhost sets config_set_local_vhost().
* courier/submit2.C (closectl): New COMCTLFILE_VHOST parameter in the
config file, taken from the vhost setting.
* courier/libs/comctlfile.c (ctlfile_setvhost): If COMCTLFILE_VHOST is
set, call ctlfile_setvhost(), return an indication if the vhost has
changed. Absence of a COMCTLFILE_VHOST treated as a discrete "(null)"
setting.
* courier/module.esmtp/esmtpclient.c (esmtpchild): If ctlfile_setvhost()
then disconnect the current socket, if one is open.
* courier/module.esmtp/esmtpclient.c (get_sourceaddr): The IP address
specified in ipout or ip6out overrides SOURCE_ADDRESS and
SOURCE_ADDRESS_IPV6 environment variable.
* courier/module.local/localmail.c (main): Call ctlfile_setvhost().
* courier/module.uucp/uucp.c (uux): Call ctlfile_setvhost().
* courier/module.dsn/dsn.c (main): Call ctlfile_setvhost().
* liblock/mail.c (dotlock_exists): Quell a compiler warning.
* courier/courierd.dist.in SOURCE_ADDRESS: Add a note that this setting
is deprecated.
2012-06-09 13:45:38 +02:00
|
|
|
WRKSRC_SUBDIRS= bdbobj numlib soxwrap md5 random128 unicode \
|
|
|
|
rfc822 rfc1035 liblock waitlib tcpd
|
2006-06-10 00:11:03 +02:00
|
|
|
|
|
|
|
EXTRACT_ELEMENTS= ${WRKSRC_FILES:S/^/${DISTNAME}\//}
|
|
|
|
EXTRACT_ELEMENTS+= ${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//}
|
|
|
|
|
|
|
|
BUILD_DIRS= ${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}
|
|
|
|
INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man1 ${DOCDIR}
|
|
|
|
|
|
|
|
REQD_DIRS= ${DOCDIR}
|
2007-10-15 17:37:05 +02:00
|
|
|
MAKE_DIRS+= ${COURIER_STATEDIR}
|
2006-06-10 00:11:03 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcpd/couriertcpd \
|
2008-02-19 19:45:41 +01:00
|
|
|
${DESTDIR}${PREFIX}/sbin/couriertcpd
|
2006-06-10 00:11:03 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/tcpd/couriertcpd.1 \
|
2008-02-19 19:45:41 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/couriertcpd.1
|
2006-06-10 00:11:03 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tcpd/couriertcpd.html \
|
2008-02-19 19:45:41 +01:00
|
|
|
${DESTDIR}${DOCDIR}/couriertcpd.html
|
2006-06-10 00:11:03 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|