2008-08-12 12:16:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.56 2008/08/12 10:16:54 obache Exp $
|
2006-04-13 23:32:40 +02:00
|
|
|
|
|
|
|
SVR4_PKGNAME= csasl
|
|
|
|
COMMENT= Simple Authentication and Security Layer
|
|
|
|
|
2008-08-12 12:16:54 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
2006-04-13 23:32:40 +02:00
|
|
|
.if exists(/usr/include/ndbm.h)
|
|
|
|
SASL_DBTYPE?= ndbm
|
|
|
|
.else
|
|
|
|
SASL_DBTYPE?= berkeley
|
|
|
|
.endif
|
|
|
|
BUILD_DEFS+= SASL_DBTYPE
|
|
|
|
|
|
|
|
.if ${SASL_DBTYPE} == "berkeley"
|
|
|
|
USE_DB185= no
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
2006-11-02 14:02:39 +01:00
|
|
|
CONFIGURE_ENV+= BDB_TYPE=${BDB_TYPE:Q}
|
2006-04-13 23:32:40 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-dblib=${SASL_DBTYPE:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb
|
|
|
|
|
|
|
|
# Support using Cyrus saslauthd (security/cyrus-saslauthd) for plaintext
|
|
|
|
# password authentication.
|
|
|
|
#
|
|
|
|
SASLSOCKETDIR?= ${VARBASE}/run/saslauthd
|
|
|
|
CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR:Q}
|
|
|
|
BUILD_DEFS+= SASLSOCKETDIR
|
|
|
|
|
|
|
|
# Support using the Courier authdaemond (security/courier-authlib) for
|
|
|
|
# plaintext password authentication.
|
|
|
|
#
|
|
|
|
AUTHDAEMONVAR?= ${VARBASE}/authdaemon
|
2007-02-22 20:26:05 +01:00
|
|
|
CONFIGURE_ARGS+= --with-authdaemond=${AUTHDAEMONVAR}/socket
|
2006-04-13 23:32:40 +02:00
|
|
|
BUILD_DEFS+= AUTHDAEMONVAR
|
|
|
|
|
|
|
|
# Support using APOP against a POP server for plaintext password
|
|
|
|
# authentication.
|
|
|
|
#
|
|
|
|
CONFIGURE_ARGS+= --enable-checkapop
|
|
|
|
|
|
|
|
.if exists(/dev/urandom)
|
|
|
|
SASL_ENTROPY_SOURCE?= /dev/urandom
|
|
|
|
.endif
|
|
|
|
.if defined(SASL_ENTROPY_SOURCE)
|
|
|
|
CONFIGURE_ARGS+= --with-devrandom=${SASL_ENTROPY_SOURCE:Q}
|
|
|
|
.endif
|
|
|
|
BUILD_DEFS+= SASL_ENTROPY_SOURCE
|
|
|
|
|
|
|
|
# CYRUS_USER username of the Cyrus administrator
|
|
|
|
# CYRUS_GROUP group of the Cyrus administrator
|
|
|
|
#
|
|
|
|
CYRUS_USER?= cyrus
|
|
|
|
CYRUS_GROUP?= mail
|
|
|
|
FILES_SUBST+= CYRUS_USER=${CYRUS_USER:Q}
|
|
|
|
FILES_SUBST+= ROOT_USER=${ROOT_USER:Q}
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= CYRUS_GROUP
|
|
|
|
PKG_USERS_VARS+= CYRUS_USER
|
2006-04-13 23:32:40 +02:00
|
|
|
|
|
|
|
PKG_GROUPS= ${CYRUS_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS= ${CYRUS_USER}:${CYRUS_GROUP}
|
|
|
|
PKG_SHELL.${CYRUS_USER}=${SH}
|
2006-04-13 23:32:40 +02:00
|
|
|
|
2006-04-18 19:41:30 +02:00
|
|
|
MESSAGE_SUBST+= PLUGINDIR=${PLUGINDIR:Q}
|
2006-04-13 23:32:40 +02:00
|
|
|
|
|
|
|
post-install:
|
2008-08-12 12:16:54 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
|
2006-04-13 23:32:40 +02:00
|
|
|
cd ${WRKSRC}/doc; for file in *.fig *.html *.txt; do \
|
2008-08-12 12:16:54 +02:00
|
|
|
${INSTALL_DATA} $$file ${DESTDIR}${DOCDIR}; \
|
2006-04-13 23:32:40 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|