summaryrefslogtreecommitdiffstats
path: root/meta/packages/cpio/cpio_v2.inc
diff options
context:
space:
mode:
authorScott Garman <sgarman@zenlinux.com>2010-08-16 18:55:33 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 13:04:38 +0100
commit8927e93ccd188b43354132f94ed8cf34bba729c9 (patch)
tree928668d84b17ea9a2927070e0e2caba0a4bb6c53 /meta/packages/cpio/cpio_v2.inc
parent7c301b9640f46ab0f9b8a723f4b4eba6d630c7a4 (diff)
downloadast2050-yocto-poky-8927e93ccd188b43354132f94ed8cf34bba729c9.zip
ast2050-yocto-poky-8927e93ccd188b43354132f94ed8cf34bba729c9.tar.gz
cpio: new recipe v2.8
This is the last GPLv2 version of cpio. The recipe was derived from OE's v2.5 one. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/packages/cpio/cpio_v2.inc')
-rw-r--r--meta/packages/cpio/cpio_v2.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/packages/cpio/cpio_v2.inc b/meta/packages/cpio/cpio_v2.inc
new file mode 100644
index 0000000..b571986
--- /dev/null
+++ b/meta/packages/cpio/cpio_v2.inc
@@ -0,0 +1,39 @@
+DESCRIPTION = "GNU cpio is a program to manage archives of files"
+HOMEPAGE = "http://www.gnu.org/software/cpio/"
+SECTION = "base"
+
+DEPENDS = "texinfo-native"
+
+SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
+ file://statdef.patch \
+ "
+
+inherit autotools gettext
+
+S = "${WORKDIR}/cpio-${PV}"
+
+do_install () {
+ autotools_do_install
+ install -d ${D}${base_bindir}/
+ mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio.${PN}"
+ case ${TARGET_OS} in
+ *-uclibc*) ;;
+ *) mv "${D}${libexecdir}/rmt" "${D}${libexecdir}/rmt.${PN}" ;;
+ esac
+}
+
+pkg_postinst_${PN} () {
+ update-alternatives --install ${base_bindir}/cpio cpio cpio.${PN} 100
+ if [ -f ${libexecdir}/rmt.${PN} ]
+ then
+ update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 50
+ fi
+}
+
+pkg_prerm_${PN} () {
+ update-alternatives --remove cpio cpio.${PN}
+ if [ -f ${libexecdir}/rmt.${PN} ]
+ then
+ update-alternatives --remove rmt rmt.${PN}
+ fi
+}
OpenPOWER on IntegriCloud