blob: aa88f9094e32c86eec17694d60c35f4feeb99b7f (
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# $NetBSD: Makefile,v 1.19 2001/11/21 22:22:10 jlam Exp $
DISTNAME= cyrus-sasl-1.5.24
PKGNAME= ${DISTNAME}nb3
SVR4_PKGNAME= csasl
CATEGORIES= security
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://asg2.web.cmu.edu/sasl/
COMMENT= Simple Authentication and Security Layer
BUILD_DEPENDS+= automake>=1.4:../../devel/automake
AUTOMAKE_OVERRIDE= YES
USE_BUILDLINK_ONLY= YES
GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/config/ltconfig
.include "../../mk/bsd.prefs.mk"
# CYRUS_USER username of the Cyrus administrator
# CYRUS_GROUP group of the Cyrus administrator
#
CYRUS_USER?= cyrus
CYRUS_GROUP?= mail
HTMLDIR= ${PREFIX}/share/doc/html/cyrus-sasl
PWCHECKDIR= /var/pwcheck
FILES_SUBST+= PWCHECKDIR=${PWCHECKDIR}
BUILD_DEFS+= CYRUS_USER CYRUS_GROUP
PLIST_SRC= ${PKGDIR}/PLIST.common
CONFIGURE_ARGS+= --with-pwcheck=${PWCHECKDIR}
CONFIGURE_ARGS+= --with-dblib=ndbm
CONFIGURE_ARGS+= --with-dbpath=${CONFDIR}/sasldb
CONFIGURE_ARGS+= --with-plugindir=${PREFIX}/lib/sasl
CONFIGURE_ARGS+= --with-rc4=${BUILDLINK_DIR}
# Authentication mechanisms
CONFIGURE_ARGS+= --enable-anon # ANONYMOUS
CONFIGURE_ARGS+= --enable-cram # CRAM-MD5
CONFIGURE_ARGS+= --enable-digest # DIGEST-MD5
CONFIGURE_ARGS+= --disable-login # --- no LOGIN
CONFIGURE_ARGS+= --enable-plain # PLAIN
CONFIGURE_ARGS+= --disable-scram # --- no SCRAM-MD5
CONFIGURE_ARGS+= --disable-sia # --- no SIA
CONFIGURE_ARGS+= --disable-srp # --- no SRP
CONFIGURE_ARGS+= --disable-x509 # --- no X.509
.if defined(KERBEROS)
.undef USE_BUILDLINK_ONLY
.if ${OPSYS} == "NetBSD"
USE_KERBEROS= # defined
CONFIGURE_ARGS+= --enable-krb4=${PREFIX} --enable-gssapi=/usr # KERBEROS_V4
DEPENDS+= kth-krb4-[0-9]*:../../security/kth-krb4
PLIST_SRC+= ${PKGDIR}/PLIST.krb4 ${PKGDIR}/PLIST.krb5
.elif ${OPSYS} == "SunOS"
USE_KERBEROS= # defined
CONFIGURE_ARGS+= --enable-gssapi=/usr # GSSAPI
PLIST_SRC+= ${PKGDIR}/PLIST.krb5
.else
CONFIGURE_ARGS+= --disable-krb4 --disable-gssapi # --- no KERBEROS_V4
.endif
.endif
PLIST_SRC+= ${PKGDIR}/PLIST.plugins
.if defined(USE_PAM)
CONFIGURE_ARGS+= --with-pam=${PREFIX}
.include "../../security/PAM/buildlink.mk"
.endif
PKG_USER= ${CYRUS_USER}
PKG_USER_SHELL= ${SH}
PKG_GROUP= ${CYRUS_GROUP}
RCD_SCRIPTS= sasl_pwcheck
OWN_DIRS_PERMS= ${PWCHECKDIR} ${PKG_USER} ${ROOT_GROUP} 0700
DEINSTALL_EXTRA_TMPL= ${PKGDIR}/DEINSTALL
post-extract:
cd ${WRKSRC}; ${RM} -f include/md5.h
${CP} ${FILESDIR}/sasl-config.in ${WRKSRC}/plugins
pre-configure:
cd ${WRKSRC}; \
${LOCALBASE}/bin/autoheader; \
${LOCALBASE}/bin/automake --gnu; \
${LOCALBASE}/bin/autoconf
pre-install:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/sasl_pwcheck.sh \
> ${WRKDIR}/sasl_pwcheck.sh
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/sasl_pwcheck.sh \
${PREFIX}/etc/rc.d/sasl_pwcheck
${INSTALL_DATA_DIR} ${HTMLDIR}
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt ${HTMLDIR}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../security/openssl/buildlink.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
|