2004-07-14 22:07:07 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.13 2004/07/14 20:07:07 jlam Exp $
|
2002-01-22 23:00:22 +01:00
|
|
|
|
|
|
|
DISTNAME?= courier-${DIST_VERS}
|
|
|
|
CATEGORIES+= mail
|
|
|
|
MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
2004-02-21 15:43:15 +01:00
|
|
|
EXTRACT_SUFX?= .tar.bz2
|
2002-01-22 23:00:22 +01:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER?= jlam@NetBSD.org
|
2002-01-22 23:00:22 +01:00
|
|
|
HOMEPAGE?= http://www.courier-mta.org/
|
|
|
|
|
|
|
|
# Version numbering scheme:
|
|
|
|
#
|
|
|
|
# DIST_VERS version number on the distfile
|
|
|
|
# BASE_BERS pkgsrc-manged version number
|
|
|
|
#
|
2004-07-14 22:07:07 +02:00
|
|
|
DIST_VERS= 0.45.6
|
2002-01-22 23:00:22 +01:00
|
|
|
BASE_VERS= ${DIST_VERS}
|
|
|
|
|
2004-01-24 14:51:13 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2002-01-22 23:00:22 +01:00
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR?= courier
|
|
|
|
DATADIR= ${PREFIX}/share/courier
|
|
|
|
LIBEXECDIR= ${PREFIX}/libexec/courier
|
|
|
|
AUTHLIBDIR= ${LIBEXECDIR}/authlib
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/courier
|
2004-02-22 17:03:29 +01:00
|
|
|
HTMLDIR= ${PREFIX}/share/doc/html/courier
|
2002-01-22 23:00:22 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/courier
|
|
|
|
|
2004-07-14 22:07:07 +02:00
|
|
|
SYSCONFTOOL= ${DATADIR}/sysconftool
|
|
|
|
FILES_SUBST+= SYSCONFTOOL=${SYSCONFTOOL:Q}
|
|
|
|
|
2002-01-22 23:00:22 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --datadir=${DATADIR}
|
|
|
|
CONFIGURE_ARGS+= --libexecdir=${LIBEXECDIR}
|
2004-07-14 22:07:07 +02:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
2002-01-22 23:00:22 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-unicode
|
|
|
|
CONFIGURE_ARGS+= --with-authchangepwdir=${LIBEXECDIR}
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-db=db
|
|
|
|
CONFIGURE_ARGS+= --with-userdb=${PKG_SYSCONFDIR}/userdb
|
|
|
|
CONFIGURE_ARGS+= --with-makedatprog=${LIBEXECDIR}/makedatprog
|
|
|
|
CONFIGURE_ARGS+= --disable-root-check
|
|
|
|
|
2004-02-22 02:49:31 +01:00
|
|
|
# Workaround a Solaris bug noted in:
|
|
|
|
# http://www.inter7.com/courierimap/FAQ.html#solarisbug
|
|
|
|
#
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
CONFIGURE_ARGS+= --with-waitfunc=wait3
|
|
|
|
.endif
|
|
|
|
|
2004-07-14 22:07:07 +02:00
|
|
|
# Build authdaemon, but explicitly disable certain methods (ldap, mysql,
|
|
|
|
# pgsql) that are built in separate packages. We also disable authcustom
|
|
|
|
# since it's just a sample template authentication method, and authvchkpw
|
|
|
|
# since vpopmail is very explicitly *not* officially supported by the
|
|
|
|
# Courier author (though it's possible to work around this deficiency by
|
|
|
|
# using vchkpw2userdb(8)).
|
2002-01-22 23:00:22 +01:00
|
|
|
#
|
2004-07-14 22:07:07 +02:00
|
|
|
AUTHDAEMONVAR?= ${VARBASE}/authdaemon
|
|
|
|
FILES_SUBST+= AUTHDAEMONVAR=${AUTHDAEMONVAR}
|
2002-01-22 23:00:22 +01:00
|
|
|
CONFIGURE_ARGS+= --with-authdaemon
|
2004-07-14 22:07:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-authdaemonvar=${AUTHDAEMONVAR}
|
2002-01-22 23:00:22 +01:00
|
|
|
CONFIGURE_ARGS+= --without-authcustom
|
|
|
|
CONFIGURE_ARGS+= --without-authldap
|
|
|
|
CONFIGURE_ARGS+= --without-authmysql
|
|
|
|
CONFIGURE_ARGS+= --without-authpgsql
|
2004-07-14 22:07:07 +02:00
|
|
|
CONFIGURE_ARGS+= --without-authvchkpw
|
2002-01-22 23:00:22 +01:00
|
|
|
|
2004-02-21 15:43:15 +01:00
|
|
|
CONFIGURE_ENV+= EXPECT=${LOCALBASE}/bin/expect
|
|
|
|
CONFIGURE_ENV+= PERL=${PERL5}
|