summaryrefslogtreecommitdiff
path: root/recipes/sudo/sudo_1.7.2p4.bb
blob: c2818cf0884436bdee5d1203948486e5fd537239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PR = "r4"

DEPENDS = "libpam"
RDEPENDS_${PN} = "libpam libpam-meta"

SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz;name=src \
  file://sudo.pamd \
"

SRC_URI[src.md5sum] = "3989e5a00538247d7dcef8b514076752"
SRC_URI[src.sha256sum] = "57d9adbdffa881e32894231079da7d68ffe99f46942818b63baadf6c795b7bdd"

EXTRA_OECONF += " --with-pam "

require sudo.inc

# Do in the recipe not the common inc as not all SUDO recipes want PAM support.

do_install_append() {
  install -d ${D}${sysconfdir}/pam.d/  
  install -m 0644 ${WORKDIR}/sudo.pamd ${D}${sysconfdir}/pam.d/sudo 
}