[oe-commits] org.oe.dev cpio: Move cpio from /usr/bin to /bin and use update-alternatives to select it in preference to the busybox cpio.

rwhitby commit openembedded-commits at lists.openembedded.org
Tue Mar 27 12:02:33 UTC 2007


cpio: Move cpio from /usr/bin to /bin and use update-alternatives to select it in preference to the busybox cpio.

Author: rwhitby at nslu2-linux.org
Branch: org.openembedded.dev
Revision: f652dbe2efa2acf78b26a5bdf4e765d52db2ad39
ViewMTN: http://monotone.openembedded.org/revision.psp?id=f652dbe2efa2acf78b26a5bdf4e765d52db2ad39
Files:
1
packages/cpio/cpio_2.5.bb
Diffs:

#
# mt diff -r6640f6c4864c8d1246fe64c272f720c23ec0fa24 -rf652dbe2efa2acf78b26a5bdf4e765d52db2ad39
#
# 
# 
# patch "packages/cpio/cpio_2.5.bb"
#  from [e8918b9f7c35ae133f0fdcb0f159be0b3027b32f]
#    to [938e7e4fb3fc7c699d69a0434310b02453d3ce5f]
# 
============================================================
--- packages/cpio/cpio_2.5.bb	e8918b9f7c35ae133f0fdcb0f159be0b3027b32f
+++ packages/cpio/cpio_2.5.bb	938e7e4fb3fc7c699d69a0434310b02453d3ce5f
@@ -1,8 +1,8 @@ LICENSE = "GPL"
 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 @@ do_install () {
 
 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}
 }
 






More information about the Openembedded-commits mailing list