diff options
Diffstat (limited to 'packages/cpio/cpio_2.5.bb')
-rw-r--r-- | packages/cpio/cpio_2.5.bb | 18 |
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} +} + |