blob: f6ab5c6f18670dbd2dd5c10e75beceac36d31126 (
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
|
# $NetBSD: Makefile,v 1.16 2004/01/05 12:10:29 markd Exp $
.include "Makefile.common"
PKGREVISION= 1
SVR4_PKGNAME= csasl
COMMENT= Simple Authentication and Security Layer
PLIST_SRC+= ${PKGDIR}/PLIST.common
# Authentication mechanisms
CONFIGURE_ARGS+= --enable-anon # ANONYMOUS
CONFIGURE_ARGS+= --enable-plain # PLAIN
CONFIGURE_ARGS+= --enable-cram # CRAM-MD5
CONFIGURE_ARGS+= --enable-otp # OTP
CONFIGURE_ARGS+= --enable-digest # DIGEST-MD5
CONFIGURE_ARGS+= --with-rc4
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
.include "../../security/openssl/buildlink2.mk"
BUILD_DEFS+= USE_PAM SASL_USE_GSSAPI
.if exists(/dev/urandom)
CONFIGURE_ARGS+= --with-devrandom=/dev/urandom
.endif
# saslauthd needs to find libraries for different authentication mechanisms.
.if defined(USE_PAM)
. include "../../security/PAM/buildlink2.mk"
BUILD_DEFS+= USE_PAM
CONFIGURE_ARGS+= --with-pam=${BUILDLINK_PREFIX.pam}
.endif
.if defined(SASL_USE_GSSAPI) && !empty(SASL_USE_GSSAPI:M[yY][eE][sS])
CONFIGURE_ARGS+= --enable-gssapi=/usr # GSSAPI
PLIST_SRC+= ${PKGDIR}/PLIST.krb5
. if exists(/usr/include/krb5/krb5.h)
CPPFLAGS+= -I/usr/include/krb5
. endif
LIBS+=-lcrypto
.endif
PLIST_SRC+= ${PKGDIR}/PLIST.plugins
USE_PKGINSTALL= YES
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
PKG_GROUPS= ${CYRUS_GROUP}
PKG_USERS= ${CYRUS_USER}:${CYRUS_GROUP}::::${SH}
RCD_SCRIPTS= saslauthd
OWN_DIRS= ${PLUGINDIR}
post-install:
${INSTALL_DATA_DIR} ${HTMLDIR}
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt ${HTMLDIR}
.include "../../mk/bsd.pkg.mk"
|