pkgsrc/mail/courier-maildir/Makefile

108 lines
3.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.27 2012/10/08 12:19:07 asau Exp $
DISTNAME= courier-${COURIER_VERSION}
PKGNAME= ${DISTNAME:S/-/-maildir-/}
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Courier maildir utilities
HOMEPAGE= http://www.courier-mta.org/
CONFLICTS= courier-maildirmake-[0-9]*
USE_TOOLS+= gmake perl:run
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
# These are subdirectories containing libraries used by courier-maildir.
WRKSRC_SUBDIRS= bdbobj numlib liblock unicode rfc822 maildir
EXTRACT_ELEMENTS= ${WRKSRC_FILES:S/^/${DISTNAME}\//}
EXTRACT_ELEMENTS+= ${WRKSRC_SUBDIRS:S/^/${DISTNAME}\//}
BUILD_DIRS= ${WRKSRC_SUBDIRS:S/^/${WRKSRC}\//}
INSTALLATION_DIRS= bin sbin \
${PKGMANDIR}/man1 ${PKGMANDIR}/man7 \
${PKGMANDIR}/man5 ${PKGMANDIR}/man8 \
${DOCDIR} ${EGDIR}
REQD_DIRS= ${DOCDIR} ${EGDIR}
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 \
${PKG_SYSCONFDIR}/sharedindexupdate \
${COURIER_SCRIPT_PERMS}
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/maildir/deliverquota \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/bin/deliverquota
${INSTALL_PROGRAM} ${WRKSRC}/maildir/maildiracl \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/bin/courier-maildiracl
${INSTALL_PROGRAM} ${WRKSRC}/maildir/maildirkw \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/bin/courier-maildirkw
${INSTALL_PROGRAM} ${WRKSRC}/maildir/maildirmake \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/bin/courier-maildirmake
${INSTALL_MAN} ${WRKSRC}/maildir/maildiracl.1 \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/courier-maildiracl.1
${INSTALL_MAN} ${WRKSRC}/maildir/maildirkw.1 \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/courier-maildirkw.1
${INSTALL_MAN} ${WRKSRC}/maildir/maildirmake.1 \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/courier-maildirmake.1
${INSTALL_MAN} ${WRKSRC}/maildir/maildir.5 \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/courier-maildir.5
${INSTALL_MAN} ${WRKSRC}/maildir/maildirquota.7 \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/${PKGMANDIR}/man7/maildirquota.7
${INSTALL_MAN} ${WRKSRC}/maildir/deliverquota.8 \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/deliverquota.8
${INSTALL_DATA} ${WRKSRC}/maildir/quotawarnmsg \
2006-11-03 20:14:25 +01:00
${DESTDIR}${EGDIR}/quotawarnmsg
${INSTALL_SCRIPT} ${WRKSRC}/maildir/sharedindexinstall \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/sbin/sharedindexinstall
${INSTALL_SCRIPT} ${WRKSRC}/maildir/sharedindexsplit \
2006-11-03 20:14:25 +01:00
${DESTDIR}${PREFIX}/sbin/sharedindexsplit
${INSTALL_SCRIPT} ${WRKDIR}/sharedindexupdate.sh \
2006-11-03 20:14:25 +01:00
${DESTDIR}${EGDIR}/sharedindexupdate
grep "^${DOCDIR:S/${PREFIX}\///}" ${PKGDIR}/PLIST | \
while read file; do \
src=${WRKSRC}/maildir/`basename $$file`; \
dst=${DESTDIR}${PREFIX}"/$$file"; \
${INSTALL_DATA} "$$src" "$$dst"; \
done
.include "../../mk/bsd.pkg.mk"