diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/sudo/files/volatiles.99_sudo | 1 | ||||
-rw-r--r-- | meta/recipes-extended/sudo/sudo.inc | 6 | ||||
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.10p2.bb (renamed from meta/recipes-extended/sudo/sudo_1.8.9p5.bb) | 13 |
3 files changed, 14 insertions, 6 deletions
diff --git a/meta/recipes-extended/sudo/files/volatiles.99_sudo b/meta/recipes-extended/sudo/files/volatiles.99_sudo new file mode 100644 index 0000000000..ecb576eaa3 --- /dev/null +++ b/meta/recipes-extended/sudo/files/volatiles.99_sudo | |||
@@ -0,0 +1 @@ | |||
d root root 0755 /var/run/sudo none | |||
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc index 0aa5193375..6de984a9f5 100644 --- a/meta/recipes-extended/sudo/sudo.inc +++ b/meta/recipes-extended/sudo/sudo.inc | |||
@@ -4,13 +4,14 @@ HOMEPAGE = "http://www.sudo.ws" | |||
4 | BUGTRACKER = "http://www.sudo.ws/bugs/" | 4 | BUGTRACKER = "http://www.sudo.ws/bugs/" |
5 | SECTION = "admin" | 5 | SECTION = "admin" |
6 | LICENSE = "ISC & BSD & Zlib" | 6 | LICENSE = "ISC & BSD & Zlib" |
7 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=923752f88decdea9d69f92fe42c2af80 \ | 7 | LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=69e337d679950e304953813158595256 \ |
8 | file://plugins/sudoers/redblack.c;beginline=1;endline=41;md5=e2dbb155fc49beea947515300bab99e0 \ | 8 | file://plugins/sudoers/redblack.c;beginline=1;endline=41;md5=e2dbb155fc49beea947515300bab99e0 \ |
9 | file://compat/fnmatch.c;beginline=3;endline=27;md5=67f83ee9bd456557397082f8f1be0efd \ | 9 | file://compat/fnmatch.c;beginline=3;endline=27;md5=67f83ee9bd456557397082f8f1be0efd \ |
10 | file://compat/getcwd.c;beginline=5;endline=27;md5=449af4cc57fc7d46f42090608ba3e681 \ | 10 | file://compat/getcwd.c;beginline=5;endline=27;md5=449af4cc57fc7d46f42090608ba3e681 \ |
11 | file://compat/glob.c;beginline=6;endline=31;md5=5872733146b9eb0deb79e1f664815b85 \ | 11 | file://compat/glob.c;beginline=6;endline=31;md5=5872733146b9eb0deb79e1f664815b85 \ |
12 | file://compat/snprintf.c;beginline=6;endline=31;md5=c98b24f02967c095d7a70ae2e4d4d4ea \ | 12 | file://compat/snprintf.c;beginline=6;endline=31;md5=c98b24f02967c095d7a70ae2e4d4d4ea \ |
13 | file://include/queue.h;beginline=5;endline=27;md5=449af4cc57fc7d46f42090608ba3e681" | 13 | file://include/queue.h;beginline=5;endline=27;md5=449af4cc57fc7d46f42090608ba3e681 \ |
14 | file://compat/inet_pton.c;beginline=3;endline=17;md5=3970ab0518ab79cbd0bafb697f10b33a" | ||
14 | 15 | ||
15 | inherit autotools | 16 | inherit autotools |
16 | 17 | ||
@@ -38,4 +39,3 @@ do_compile_prepend () { | |||
38 | do_install_prepend (){ | 39 | do_install_prepend (){ |
39 | mkdir -p ${D}/${localstatedir}/lib | 40 | mkdir -p ${D}/${localstatedir}/lib |
40 | } | 41 | } |
41 | |||
diff --git a/meta/recipes-extended/sudo/sudo_1.8.9p5.bb b/meta/recipes-extended/sudo/sudo_1.8.10p2.bb index 7851473e47..aa8c445536 100644 --- a/meta/recipes-extended/sudo/sudo_1.8.9p5.bb +++ b/meta/recipes-extended/sudo/sudo_1.8.10p2.bb | |||
@@ -1,12 +1,13 @@ | |||
1 | require sudo.inc | 1 | require sudo.inc |
2 | 2 | ||
3 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ | 3 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ |
4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | 4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ |
5 | file://volatiles.99_sudo" | ||
5 | 6 | ||
6 | PAM_SRC_URI = "file://sudo.pam" | 7 | PAM_SRC_URI = "file://sudo.pam" |
7 | 8 | ||
8 | SRC_URI[md5sum] = "d3f1f1cfca6b2b06b048e1abb7d0227e" | 9 | SRC_URI[md5sum] = "5e5eab1036a7cc2c088ab0d9b6b6a42e" |
9 | SRC_URI[sha256sum] = "bc9d5c96de5f8b4d2b014f87a37870aef60d2891c869202454069150a21a5c21" | 10 | SRC_URI[sha256sum] = "ba6cb8db6dccdb92a96e8ae63ca65c410f8b61270b603ab9af4b1154fef379f1" |
10 | 11 | ||
11 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 12 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
12 | RDEPENDS_${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | 13 | RDEPENDS_${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" |
@@ -20,4 +21,10 @@ do_install_append () { | |||
20 | 21 | ||
21 | chmod 4111 ${D}${bindir}/sudo | 22 | chmod 4111 ${D}${bindir}/sudo |
22 | chmod 0440 ${D}${sysconfdir}/sudoers | 23 | chmod 0440 ${D}${sysconfdir}/sudoers |
24 | |||
25 | # Explicitly remove the ${localstatedir}/run directory as we can | ||
26 | # manage it by a configuration file under ${sysconfdir}/default/volatiles/ | ||
27 | rmdir -p --ignore-fail-on-non-empty ${D}${localstatedir}/run/sudo | ||
28 | install -d ${D}/${sysconfdir}/default/volatiles | ||
29 | install -m 644 ${WORKDIR}/volatiles.99_sudo ${D}/${sysconfdir}/default/volatiles/99_sudo | ||
23 | } | 30 | } |