summaryrefslogtreecommitdiff
path: root/recipes-extended/sudo/sudo_%.bbappend
blob: e0208cf20cfce0f4c8d8ff3a93a043fee03ec2de (plain)
1
2
3
4
5
6
7
8
9
10
FILESEXTRAPATHS_prepend := "${THISDIR}/sudo:"

SRC_URI += "file://pam.d/sudo"

do_install_append () {
    # Use Tizen pam rule for sudo instead of the upstream one
    if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then
        install -D -m 664 ${WORKDIR}/pam.d/sudo ${D}/${sysconfdir}/pam.d/sudo
    fi
}