1 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2 SRCREV_FORMAT = "opendev"
3 SRCREV_opendev = "d778e862571957ece3c404c0c37d325769772fde"
5 DSTSUFX0 = "stx-configfiles"
7 LICENSE_append = " & Apache-2.0"
9 file://stx-configfiles-LICENSE;beginline=1;endline=10;md5=fa5ec877c97a75a09b397bccc95b2b87 \
13 git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX0};branch="r/stx.3.0";subpath=${SUBPATH};name=opendev \
14 file://util-linux-pam-postlogin.patch \
18 bb.build.exec_func('do_copy_config_files', d)
21 do_copy_config_files () {
22 cp -pf ${WORKDIR}/stx-configfiles/centos/pam-config.spec ${S}/stx-configfiles-LICENSE
25 do_install_append () {
27 # From util-linux-config patch
28 install -m 644 ${S}/stx.postlogin ${D}/${sysconfdir}/pam.d/postlogin
30 install -m 644 ${WORKDIR}/stx-configfiles/files/sshd.pam ${D}/${sysconfdir}/pam.d/sshd.pam
31 install -m 644 ${WORKDIR}/stx-configfiles/files/common-account ${D}/${sysconfdir}/pam.d/common-account
32 install -m 644 ${WORKDIR}/stx-configfiles/files/common-auth ${D}/${sysconfdir}/pam.d/common-auth
33 install -m 644 ${WORKDIR}/stx-configfiles/files/common-password ${D}/${sysconfdir}/pam.d/common-password
34 install -m 644 ${WORKDIR}/stx-configfiles/files/common-session ${D}/${sysconfdir}/pam.d/common-session
36 install -m 644 ${WORKDIR}/stx-configfiles/files/common-session-noninteractive \
37 ${D}/${sysconfdir}/pam.d/common-session-noninteractive
39 install -m 644 ${WORKDIR}/stx-configfiles/files/system-auth.pamd ${D}/${sysconfdir}/pam.d/system-auth
40 # A better place is the autoconfig from kickstarter
41 sed -i -e '/password .*pam_ldap.so/,/session .*revoke/ s/^$/password required pam_deny.so\n/g' \
42 ${D}/${sysconfdir}/pam.d/system-auth
45 RRECOMMENDS_${PN}_append = " \
55 pam-plugin-faildelay \
64 pam-plugin-localuser \
67 pam-plugin-mkhomedir \
69 pam-plugin-namespace \
72 pam-plugin-pwhistory \
75 pam-plugin-securetty \
78 pam-plugin-succeed-if \
81 pam-plugin-succeed-if \
85 pam-plugin-timestamp \