aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-core/base-files/base-files_3.0.14.bbappend
blob: 53f0c209814dabe74e2a79bcc683a842e5896036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://nsswitch.conf"

PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'OpenLDAP', '', d)}"
PACKAGECONFIG[OpenLDAP] = ",,,nss-pam-ldapd"

do_install_append() {
    if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then
        install -m 755 -d ${D}/etc/
        install -m 644 ${WORKDIR}/nsswitch.conf ${D}/etc/
    fi
}