2012-10-08 14:19:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.27 2012/10/08 12:19:07 asau Exp $
|
2004-07-14 22:05:50 +02:00
|
|
|
|
2006-04-28 20:13:25 +02:00
|
|
|
DISTNAME= courier-${COURIER_VERSION}
|
2005-02-18 23:12:50 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/-/-maildir-/}
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 1
|
2005-02-18 23:12:50 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2010-03-21 17:29:38 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-07-14 22:05:50 +02:00
|
|
|
COMMENT= Courier maildir utilities
|
2005-02-18 23:12:50 +01:00
|
|
|
HOMEPAGE= http://www.courier-mta.org/
|
2004-07-14 22:05:50 +02:00
|
|
|
|
|
|
|
CONFLICTS= courier-maildirmake-[0-9]*
|
|
|
|
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= gmake perl:run
|
2004-07-14 22:05:50 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
2006-04-28 20:13:25 +02:00
|
|
|
.include "../../mail/courier-mta/Makefile.common"
|
2004-07-14 22:05:50 +02:00
|
|
|
|
2005-02-18 23:12:50 +01:00
|
|
|
# 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}
|
2004-07-15 08:49:33 +02:00
|
|
|
|
2005-02-18 23:12:50 +01:00
|
|
|
# These are files required by the Courier configure scripts.
|
2005-08-11 02:03:32 +02:00
|
|
|
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
|
2004-07-14 22:05:50 +02:00
|
|
|
|
2005-02-18 23:12:50 +01:00
|
|
|
# These are subdirectories containing libraries used by courier-maildir.
|
|
|
|
WRKSRC_SUBDIRS= bdbobj numlib liblock unicode rfc822 maildir
|
2004-07-14 22:05:50 +02:00
|
|
|
|
|
|
|
EXTRACT_ELEMENTS= ${WRKSRC_FILES:S/^/${DISTNAME}\//}
|
|
|
|
EXTRACT_ELEMENTS+= ${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//}
|
|
|
|
|
|
|
|
BUILD_DIRS= ${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}
|
2006-04-28 20:13:25 +02:00
|
|
|
INSTALLATION_DIRS= bin sbin \
|
|
|
|
${PKGMANDIR}/man1 ${PKGMANDIR}/man7 \
|
|
|
|
${PKGMANDIR}/man5 ${PKGMANDIR}/man8 \
|
|
|
|
${DOCDIR} ${EGDIR}
|
2004-07-14 22:05:50 +02:00
|
|
|
|
2006-06-10 00:11:42 +02:00
|
|
|
REQD_DIRS= ${DOCDIR} ${EGDIR}
|
2006-04-28 20:13:25 +02:00
|
|
|
OWN_DIRS_PERMS= ${PKG_SYSCONFDIR}/shared \
|
|
|
|
${COURIER_DIR_PERMS}
|
|
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/shared.tmp \
|
|
|
|
${COURIER_DIR_PERMS}
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/quotawarnmsg \
|
|
|
|
${PKG_SYSCONFDIR}/quotawarnmsg \
|
|
|
|
${COURIER_FILE_PERMS}
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/sharedindexupdate \
|
2005-02-18 23:12:50 +01:00
|
|
|
${PKG_SYSCONFDIR}/sharedindexupdate \
|
2006-04-28 20:13:25 +02:00
|
|
|
${COURIER_SCRIPT_PERMS}
|
2004-07-14 22:05:50 +02:00
|
|
|
|
2006-01-19 03:14:13 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= ${WRKDIR}/sharedindexupdate.sh
|
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@MKDIR@,${MKDIR},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@RM@,${RM},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@SH@,${SH},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@TEST@,${TEST},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/sharedindexupdate.sh ${WRKDIR}/sharedindexupdate.sh
|
2004-07-14 22:05:50 +02:00
|
|
|
|
2005-02-18 23:12:50 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/maildir/deliverquota \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/bin/deliverquota
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/maildir/maildiracl \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/bin/courier-maildiracl
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/maildir/maildirkw \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/bin/courier-maildirkw
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/maildir/maildirmake \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/bin/courier-maildirmake
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/maildir/maildiracl.1 \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/courier-maildiracl.1
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/maildir/maildirkw.1 \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/courier-maildirkw.1
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/maildir/maildirmake.1 \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/courier-maildirmake.1
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/maildir/maildir.5 \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/courier-maildir.5
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/maildir/maildirquota.7 \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/maildirquota.7
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/maildir/deliverquota.8 \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/deliverquota.8
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/maildir/quotawarnmsg \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${EGDIR}/quotawarnmsg
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/maildir/sharedindexinstall \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/sbin/sharedindexinstall
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/maildir/sharedindexsplit \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/sbin/sharedindexsplit
|
2005-02-18 23:12:50 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/sharedindexupdate.sh \
|
2006-11-03 20:14:25 +01:00
|
|
|
${DESTDIR}${EGDIR}/sharedindexupdate
|
2006-04-28 20:13:25 +02:00
|
|
|
grep "^${DOCDIR:S/${PREFIX}\///}" ${PKGDIR}/PLIST | \
|
|
|
|
while read file; do \
|
2010-11-05 15:05:24 +01:00
|
|
|
src=${WRKSRC}/maildir/`basename $$file`; \
|
|
|
|
dst=${DESTDIR}${PREFIX}"/$$file"; \
|
2006-04-28 20:13:25 +02:00
|
|
|
${INSTALL_DATA} "$$src" "$$dst"; \
|
|
|
|
done
|
2004-07-14 22:05:50 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|