diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-01-22 18:02:40 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-01-22 18:02:40 +0000 |
commit | 1d174d4e851b1dc74c4c4778cf7d0c52d1f38142 (patch) | |
tree | b02bc6399a9bb5dfabd6dff33da1a1c41a6b3e0a /meta-openstack/recipes-extended/libpam/libpam_openstack.inc | |
parent | a401a1c3d86eb00bab8bfccba83c12cc67ce06a1 (diff) | |
download | meta-cloud-services-1d174d4e851b1dc74c4c4778cf7d0c52d1f38142.tar.gz |
bbappends: make distro feature safe
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-extended/libpam/libpam_openstack.inc')
-rw-r--r-- | meta-openstack/recipes-extended/libpam/libpam_openstack.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/libpam/libpam_openstack.inc b/meta-openstack/recipes-extended/libpam/libpam_openstack.inc new file mode 100644 index 0000000..ec858a7 --- /dev/null +++ b/meta-openstack/recipes-extended/libpam/libpam_openstack.inc | |||
@@ -0,0 +1,21 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | SRC_URI += "file://common-account" | ||
4 | SRC_URI += "file://common-auth" | ||
5 | SRC_URI += "file://common-password" | ||
6 | SRC_URI += "file://common-session" | ||
7 | SRC_URI += "file://common-session-noninteractive" | ||
8 | |||
9 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'OpenLDAP', 'OpenLDAP', '', d)}" | ||
10 | PACKAGECONFIG[OpenLDAP] = ",,,pam-plugin-mkhomedir nss-pam-ldapd" | ||
11 | |||
12 | do_install_append() { | ||
13 | if ${@bb.utils.contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then | ||
14 | install -m 755 -d ${D}/etc/pam.d/ | ||
15 | install -m 644 ${WORKDIR}/common-account ${D}/etc/pam.d/ | ||
16 | install -m 644 ${WORKDIR}/common-auth ${D}/etc/pam.d/ | ||
17 | install -m 644 ${WORKDIR}/common-password ${D}/etc/pam.d/ | ||
18 | install -m 644 ${WORKDIR}/common-session ${D}/etc/pam.d/ | ||
19 | install -m 644 ${WORKDIR}/common-session-noninteractive ${D}/etc/pam.d/ | ||
20 | fi | ||
21 | } | ||