blob: 0a2d923b3c6be761beca4b4cb6d03481ae7a2ea7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# $NetBSD: Makefile,v 1.64 2012/10/23 18:16:24 asau Exp $
SVR4_PKGNAME= csasl
COMMENT= Simple Authentication and Security Layer
.include "Makefile.common"
CPPFLAGS+= -DPIC -fPIC
.if exists(/usr/include/ndbm.h) && ${OPSYS} != "Linux"
SASL_DBTYPE?= ndbm
.else
SASL_DBTYPE?= berkeley
.endif
BUILD_DEFS+= SASL_DBTYPE
.if ${SASL_DBTYPE} == "berkeley"
BDB_ACCEPTED= db3 db4
. include "../../mk/bdb.buildlink3.mk"
CONFIGURE_ENV+= with_bdb=${BDB_TYPE}
.endif
CONFIGURE_ARGS+= --with-dblib=${SASL_DBTYPE:Q}
CONFIGURE_ARGS+= --with-dbpath=${PKG_SYSCONFDIR}/sasldb
BUILD_DEFS+= VARBASE
# Support using Cyrus saslauthd (security/cyrus-saslauthd) for plaintext
# password authentication.
#
SASLSOCKETDIR?= ${VARBASE}/run/saslauthd
CONFIGURE_ARGS+= --with-saslauthd=${SASLSOCKETDIR:Q}
BUILD_DEFS+= SASLSOCKETDIR
# let not to build & install saslauthd here.
SUBST_CLASSES+= saslauthd
SUBST_STAGE.saslauthd= pre-configure
SUBST_FILES.saslauthd= Makefile.in
SUBST_SED.saslauthd= -e 's|@SASLAUTHD_TRUE@|\#|g'
SUBST_SED.saslauthd+= -e 's|@SASLAUTHD_FALSE@||g'
# 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
# Let not to build sample codes.
CONFIGURE_ARGS+= --disable-sample
# 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}
PKG_GROUPS_VARS+= CYRUS_GROUP
PKG_USERS_VARS+= CYRUS_USER
PKG_GROUPS= ${CYRUS_GROUP}
PKG_USERS= ${CYRUS_USER}:${CYRUS_GROUP}
PKG_SHELL.${CYRUS_USER}=${SH}
MESSAGE_SUBST+= PLUGINDIR=${PLUGINDIR:Q}
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
cd ${WRKSRC}/doc; for file in *.fig *.html *.txt; do \
${INSTALL_DATA} $${file} ${DESTDIR}${DOCDIR}; \
done
.include "../../mk/bsd.pkg.mk"
|