diff options
Diffstat (limited to 'recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.12.bb')
-rw-r--r-- | recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.12.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.12.bb b/recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.12.bb new file mode 100644 index 0000000..7f3b9e3 --- /dev/null +++ b/recipes-support/nss-pam-ldapd/nss-pam-ldapd_0.9.12.bb | |||
@@ -0,0 +1,61 @@ | |||
1 | SUMMARY = "NSS and PAM module for using LDAP as a naming service" | ||
2 | DESCRIPTION = "\ | ||
3 | daemon for NSS and PAM lookups using LDAP \ | ||
4 | This package provides a daemon for retrieving user accounts and similar \ | ||
5 | system information from LDAP. It is used by the libnss-ldapd and \ | ||
6 | libpam-ldapd packages but is not very useful by itself. \ | ||
7 | " | ||
8 | |||
9 | HOMEPAGE = "http://arthurdejong.org/nss-pam-ldapd/" | ||
10 | |||
11 | LICENSE = "LGPL-2.1-only" | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | ||
13 | SECTION = "base" | ||
14 | |||
15 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
16 | |||
17 | SRC_URI = "\ | ||
18 | http://arthurdejong.org/nss-pam-ldapd/${BPN}-${PV}.tar.gz \ | ||
19 | file://0001-utils-Makefile.am-fix-shebang-for-chsh.py-and-getent.patch \ | ||
20 | file://nslcd.init \ | ||
21 | file://nslcd.service \ | ||
22 | " | ||
23 | |||
24 | inherit autotools features_check | ||
25 | REQUIRED_DISTRO_FEATURES = "pam" | ||
26 | |||
27 | SRC_URI[md5sum] = "cc30ee0ab91d6c94b7a343ae09b5dc69" | ||
28 | SRC_URI[sha256sum] = "c6d661e74693cbf531a790631ca93b73f291fb23cc39465b09deb8da2bfb0e14" | ||
29 | |||
30 | DEPENDS += "libpam openldap krb5" | ||
31 | |||
32 | EXTRA_OECONF = "\ | ||
33 | --disable-pynslcd \ | ||
34 | --libdir=${base_libdir} \ | ||
35 | --with-pam-seclib-dir=${base_libdir}/security \ | ||
36 | " | ||
37 | |||
38 | CONFFILES:${PN} += "${sysconfdir}/nslcd.conf" | ||
39 | |||
40 | FILES:${PN} += "${base_libdir}/security ${datadir}" | ||
41 | FILES:${PN}-dbg += "${base_libdir}/security/.debug" | ||
42 | |||
43 | LDAP_DN ?= "dc=my-domain,dc=com" | ||
44 | |||
45 | do_install:append() { | ||
46 | install -D -m 0755 ${WORKDIR}/nslcd.init ${D}${sysconfdir}/init.d/nslcd | ||
47 | |||
48 | sed -i -e 's/^uid nslcd/# uid nslcd/;' ${D}${sysconfdir}/nslcd.conf | ||
49 | sed -i -e 's/^gid nslcd/# gid nslcd/;' ${D}${sysconfdir}/nslcd.conf | ||
50 | sed -i -e 's/^base dc=example,dc=com/base ${LDAP_DN}/;' ${D}${sysconfdir}/nslcd.conf | ||
51 | |||
52 | install -d ${D}${systemd_unitdir}/system | ||
53 | install -m 0644 ${WORKDIR}/nslcd.service ${D}${systemd_unitdir}/system | ||
54 | } | ||
55 | |||
56 | inherit update-rc.d systemd | ||
57 | |||
58 | INITSCRIPT_NAME = "nslcd" | ||
59 | INITSCRIPT_PARAMS = "defaults" | ||
60 | |||
61 | SYSTEMD_SERVICE:${PN} = "nslcd.service" | ||