INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
71 lines
1.8 KiB
Makefile
71 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2006/03/14 01:14:33 jlam Exp $
|
|
|
|
.include "Makefile.common"
|
|
|
|
PKGREVISION= 3
|
|
SVR4_PKGNAME= csasl
|
|
COMMENT= Simple Authentication and Security Layer
|
|
|
|
.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"
|
|
.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
|
|
CONFIGURE_ARGS+= --with-authdaemond=${AUTHDAEMONVAR}/socket
|
|
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}
|
|
BUILD_DEFS+= CYRUS_USER CYRUS_GROUP
|
|
|
|
PKG_GROUPS= ${CYRUS_GROUP}
|
|
PKG_USERS= ${CYRUS_USER}:${CYRUS_GROUP}::::${SH}
|
|
|
|
MESSAGE_SUBST+= _PLUGINDIR=${_PLUGINDIR}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
cd ${WRKSRC}/doc; for file in *.fig *.html *.txt; do \
|
|
${INSTALL_DATA} $$file ${DOCDIR}; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|