summaryrefslogtreecommitdiff
path: root/packages/iputils/iputils_20020927.bb
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-08-14 08:51:54 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-08-14 08:51:54 +0000
commit319f2967b01b54a22d251071167a8654c54df865 (patch)
treedd02580e6b6a8822534b2bbd4dbb51086d50048c /packages/iputils/iputils_20020927.bb
parent179b81f5a05fc355e125d0eb64892e198d39c7ca (diff)
iputils 20020927: Permissions are not carried over from install to the
packages, so for things that need SUID we need to set that in postinst. Add this for ping, ping6 and traceroute6. Also modify that package list so we append instead of replace it.
Diffstat (limited to 'packages/iputils/iputils_20020927.bb')
-rw-r--r--packages/iputils/iputils_20020927.bb17
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/iputils/iputils_20020927.bb b/packages/iputils/iputils_20020927.bb
index 79a7021b5a..2cd5c92e25 100644
--- a/packages/iputils/iputils_20020927.bb
+++ b/packages/iputils/iputils_20020927.bb
@@ -4,7 +4,7 @@ tracepath, tracepath6, ping, ping6 and arping."
SECTION = "console/network"
MAINTAINER = "Jamie Lenehan <lenehan@twibble.org>"
LICENSE ="BSD"
-PR = "r3"
+PR = "r4"
SRC_URI = "http://www.tux.org/pub/people/alexey-kuznetsov/ip-routing/iputils-ss020927.tar.gz \
file://debian-fixes.patch;patch=1 \
@@ -16,7 +16,7 @@ SRC_URI = "http://www.tux.org/pub/people/alexey-kuznetsov/ip-routing/iputils-ss0
file://glibc-2.4-compat.patch;patch=1"
S = "${WORKDIR}/iputils"
-PACKAGES = "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6 ${PN}-doc"
+PACKAGES += "${PN}-ping ${PN}-ping6 ${PN}-arping ${PN}-tracepath ${PN}-tracepath6 ${PN}-traceroute6"
FILES_${PN} = ""
FILES_${PN}-ping = "${base_bindir}/ping.${PN}"
FILES_${PN}-ping6 = "${base_bindir}/ping6.${PN}"
@@ -35,9 +35,9 @@ do_compile () {
do_install () {
install -m 0755 -d ${D}${base_bindir} ${D}${bindir} ${D}${mandir}/man8
# SUID root programs
- install -m 4755 ping ${D}${base_bindir}/ping.${PN}
- install -m 4755 ping6 ${D}${base_bindir}/ping6.${PN}
- install -m 4755 traceroute6 ${D}${bindir}/
+ install -m 4555 ping ${D}${base_bindir}/ping.${PN}
+ install -m 4555 ping6 ${D}${base_bindir}/ping6.${PN}
+ install -m 4555 traceroute6 ${D}${bindir}/
# Other programgs
for i in arping tracepath tracepath6; do
install -m 0755 $i ${D}${bindir}/
@@ -49,7 +49,9 @@ do_install () {
}
# Busybox also provides ping and ping6, so use update-alternatives
+# Also fixup SUID bit for applications that need it
pkg_postinst_${PN}-ping () {
+ chmod 4555 ${base_bindir}/ping.${PN}
update-alternatives --install ${base_bindir}/ping ping ping.${PN} 100
}
pkg_prerm_${PN}-ping () {
@@ -57,8 +59,13 @@ pkg_prerm_${PN}-ping () {
}
pkg_postinst_${PN}-ping6 () {
+ chmod 4555 ${base_bindir}/ping6.${PN}
update-alternatives --install ${base_bindir}/ping6 ping6 ping6.${PN} 100
}
pkg_prerm_${PN}-ping6 () {
update-alternatives --remove ping6 ping6.${PN}
}
+
+pkg_postinst_${PN}-traceroute6 () {
+ chmod 4555 ${bindir}/traceroute6
+}