All pastes #411950 Raw Edit

Anonymous

public text v1 · immutable
#411950 ·published 2007-03-27 11:54 UTC
rendered paste body
# old_revision [6640f6c4864c8d1246fe64c272f720c23ec0fa24]
#
# patch "packages/cpio/cpio_2.5.bb"
#  from [e8918b9f7c35ae133f0fdcb0f159be0b3027b32f]
#    to [14c7889eeff0696a02d9756ae6abb529e2ce5673]
#
============================================================
--- packages/cpio/cpio_2.5.bb   e8918b9f7c35ae133f0fdcb0f159be0b3027b32f
+++ packages/cpio/cpio_2.5.bb   14c7889eeff0696a02d9756ae6abb529e2ce5673
@@ -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}
 }