summaryrefslogtreecommitdiff
path: root/packages/cpio/cpio_2.5.bb
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2007-03-25 13:38:24 +0000
committerRod Whitby <rod@whitby.id.au>2007-03-25 13:38:24 +0000
commit1ed622eced613ef83ac842e78d23bacbdc6e9171 (patch)
tree6fd1d263867e9f1ea929d405410acbb34b676b14 /packages/cpio/cpio_2.5.bb
parent2f9ed18e211a6aceb79bcc3e0958cb862894226a (diff)
cpio: Move cpio from /usr/bin to /bin and use update-alternatives to select it in preference to the busybox cpio.
Diffstat (limited to 'packages/cpio/cpio_2.5.bb')
-rw-r--r--packages/cpio/cpio_2.5.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/cpio/cpio_2.5.bb b/packages/cpio/cpio_2.5.bb
index 9762b2e764..c21a59a44a 100644
--- a/packages/cpio/cpio_2.5.bb
+++ b/packages/cpio/cpio_2.5.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "GNU cpio is a program to manage archives of files."
HOMEPAGE = "http://www.gnu.org/software/cpio/"
SECTION = "console"
LICENSE = "GPL"
-PR = "r3"
+PR = "r4"
DEPENDS += " texinfo-native "
@@ -14,16 +14,20 @@ inherit autotools
do_install () {
autotools_do_install
+ install -d ${D}${base_bindir}/
+ mv ${D}${bindir}/cpio ${D}${base_bindir}/cpio.${PN}
mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
}
pkg_postinst_${PN} () {
+ update-alternatives --install ${base_bindir}/cpio cpio cpio.${PN} 100
update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 50
}
pkg_prerm_${PN} () {
+ update-alternatives --remove cpio cpio.${PN}
update-alternatives --remove rmt rmt.${PN}
}