blob: ce75756b76f04c119bac74372dd42c66674dec6a (
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
|
# $NetBSD: Makefile,v 1.10 2008/01/04 11:42:30 ghen Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
COMMENT= Lightweight Directory Access Protocol server suite
CONFLICTS+= openldap<2.3.23nb1
DEPENDS+= openldap-client>=2.3.27nb1:../../databases/openldap-client
PKG_DESTDIR_SUPPORT= user-destdir
# slapd options
CONFIGURE_ARGS+= --enable-slapd
CONFIGURE_ARGS+= --enable-crypt
CONFIGURE_ARGS+= --enable-wrappers
# slapd backends
CONFIGURE_ARGS+= --enable-dnssrv
CONFIGURE_ARGS+= --enable-ldap
CONFIGURE_ARGS+= --enable-ldbm
CONFIGURE_ARGS+= --enable-meta
CONFIGURE_ARGS+= --enable-monitor
CONFIGURE_ARGS+= --enable-null
CONFIGURE_ARGS+= --enable-passwd
CONFIGURE_ARGS+= --enable-shell
# slapd (stackable) overlays
CONFIGURE_ARGS+= --enable-overlays
# slurpd options
CONFIGURE_ARGS+= --enable-slurpd
BUILD_DIRS= include libraries servers
TEST_DIRS= tests
INSTALL_DIRS= servers
BUILD_DEFS+= OPENLDAP_ETCDIR OPENLDAP_VARDIR
PKG_GROUPS= ${LDAP_GROUP}
PKG_USERS= ${SLAPD_USER}:${LDAP_GROUP} ${SLURPD_USER}:${LDAP_GROUP}
OPENLDAP_FILEPERMS= ${ROOT_USER} ${LDAP_GROUP} 0640
SLAPD_DIRPERMS= ${SLAPD_USER} ${LDAP_GROUP} 0700
SLURPD_DIRPERMS= ${SLURPD_USER} ${LDAP_GROUP} 0770
RUN_DIRPERMS= ${ROOT_USER} ${LDAP_GROUP} 0775
MAKE_DIRS= ${OPENLDAP_ETCDIR}/schema
OWN_DIRS+= ${OPENLDAP_VARDIR}
OWN_DIRS_PERMS= ${OPENLDAP_VARDIR}/openldap-data ${SLAPD_DIRPERMS}
OWN_DIRS_PERMS+= ${OPENLDAP_VARDIR}/openldap-slurp ${SLURPD_DIRPERMS}
OWN_DIRS_PERMS+= ${OPENLDAP_VARDIR}/run ${RUN_DIRPERMS}
CNFS= ${CNFS_SCHEMAS_cmd:sh}
CNFS_SCHEMAS_cmd= ${SED} -ne "/\.ldif$$/p;/\.schema$$/p" ${PKGDIR}/PLIST | ${SED} -e "s|share/examples/openldap/||"
CNFS_PERMS= slapd.conf
DB_CONFIG= DB_CONFIG
RCD_SCRIPTS= slapd slurpd
FILES_SUBST+= OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR:Q}
FILES_SUBST+= SLAPD_USER=${SLAPD_USER}
FILES_SUBST+= SLURPD_USER=${SLURPD_USER}
MESSAGE_SUBST+= SLAPD_USER=${SLAPD_USER:Q}
MESSAGE_SUBST+= SLURPD_USER=${SLURPD_USER:Q}
MESSAGE_SUBST+= LDAP_GROUP=${LDAP_GROUP:Q}
MESSAGE_SUBST+= OPENLDAP_VARDIR=${OPENLDAP_VARDIR:Q}
MESSAGE_SUBST+= OPENLDAP_ETCDIR=${OPENLDAP_ETCDIR:Q}
MESSAGE_SUBST+= CHOWN=${CHOWN}
MESSAGE_SUBST+= CHMOD=${CHMOD}
.include "options.mk"
.include "../../databases/openldap/Makefile.common"
CONF_FILES_PERMS+= ${EGDIR}/DB_CONFIG ${OPENLDAP_VARDIR}/openldap-data/DB_CONFIG ${OPENLDAP_FILEPERMS}
.include "../../mk/bsd.pkg.mk"
|