summaryrefslogtreecommitdiff
path: root/packages/cpio
diff options
context:
space:
mode:
authorDavid Karlstrom <daka@thg.se>2005-07-23 13:36:38 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-23 13:36:38 +0000
commit5e01906b8433bc6a8c03be2e31758589641124c9 (patch)
treec400790ffa5ebb896c464da84752a4937d889400 /packages/cpio
parent57808a977840bce11bdbab373d9eacaba7ef88c1 (diff)
Updated to use update-alternatives and fix some FHS bugs
Diffstat (limited to 'packages/cpio')
-rw-r--r--packages/cpio/cpio_2.5.bb18
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/cpio/cpio_2.5.bb b/packages/cpio/cpio_2.5.bb
index 020ca5895b..e7ee85e001 100644
--- a/packages/cpio/cpio_2.5.bb
+++ b/packages/cpio/cpio_2.5.bb
@@ -3,10 +3,26 @@ HOMEPAGE = "http://www.gnu.org/software/cpio/"
SECTION = "console"
LICENSE = "GPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
-PR = "r2"
+PR = "r3"
SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
file://install.patch;patch=1"
S = "${WORKDIR}/cpio-${PV}"
inherit autotools
+
+do_install () {
+ autotools_do_install
+ mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
+}
+
+
+pkg_postinst_${PN} () {
+ update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 50
+}
+
+
+pkg_prerm_${PN} () {
+ update-alternatives --remove rmt rmt.${PN}
+}
+