diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2010-11-04 16:09:23 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2010-11-14 21:08:23 -0800 |
commit | 03d9a14cfbe32d6e5dfaf375797ef3f5e9decc7b (patch) | |
tree | a34cbdb6c692207f9e4ac2716c1d6698508fc61d /meta/recipes-extended | |
parent | 3810bdf28be11a33ff468198ff7ad944c0f027fb (diff) | |
download | openembedded-core-03d9a14cfbe32d6e5dfaf375797ef3f5e9decc7b.tar.gz openembedded-core-03d9a14cfbe32d6e5dfaf375797ef3f5e9decc7b.tar.bz2 openembedded-core-03d9a14cfbe32d6e5dfaf375797ef3f5e9decc7b.zip |
LSB: Add a new package
This package is needed by lsb test
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/lsb/lsb_1.4.bb | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsb/lsb_1.4.bb b/meta/recipes-extended/lsb/lsb_1.4.bb new file mode 100644 index 0000000000..bc47c223e0 --- /dev/null +++ b/meta/recipes-extended/lsb/lsb_1.4.bb @@ -0,0 +1,83 @@ +DESCRIPTION = "LSB support for Poky Linux" +SECTION = "console/utils" +HOMEPAGE = "http://prdownloads.sourceforge.net/lsb" +PRIORITY = "required" +LICENSE = "GPLv2+" +PR = "r0" + +LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" + +SRC_URI = "http://cdnetworks-kr-1.dl.sourceforge.net/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz" +S = ${WORKDIR}/lsb-release-${PV} + +do_install(){ + oe_runmake install prefix=${D} mandir=${D}/man/ DESTDIR=${D} + mkdir -p ${D}/bin + mkdir -p ${D}/lib + mkdir -p ${D}/etc/lsb-release.d + echo -n "LSB_VERSION=\"core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:" > ${D}/etc/lsb-release + + if [ "${TARGET_ARCH}" == "i586" ];then + echo -n "core-2.0-ia32:core-3.2-ia32:core-4.0-ia32" >> ${D}/etc/lsb-release + else + echo -n "core-2.0-${TARGET_ARCH}:core-3.2-${TARGET_ARCH}:core-4.0-${TARGET_ARCH}" >> ${D}/etc/lsb-release + fi + echo "\"" >> ${D}/etc/lsb-release + + if [ "${TARGET_ARCH}" == "i586" ];then + mkdir -p ${D}/etc/lsb-release.d + touch ${D}/etc/lsb-release.d/graphics-2.0-noarch + touch ${D}/etc/lsb-release.d/graphics-3.2-noarch + touch ${D}/etc/lsb-release.d/graphics-${PV}-noarch + touch ${D}/etc/lsb-release.d/desktop-${PV}-noarch + touch ${D}/etc/lsb-release.d/graphics-2.0-ia32 + touch ${D}/etc/lsb-release.d/graphics-3.2-ia32 + touch ${D}/etc/lsb-release.d/graphics-${PV}-ia32 + touch ${D}/etc/lsb-release.d/desktop-${PV}-ia32 + elif [ "${TARGET_ARCH}" == "x86_64" ];then + touch ${D}/etc/lsb-release.d/graphics-2.0-amd64 + touch ${D}/etc/lsb-release.d/graphics-3.2-amd64 + touch ${D}/etc/lsb-release.d/graphics-${PV}-amd64 + touch ${D}/etc/lsb-release.d/desktop-${PV}-amd64 + fi + if [ "${TARGET_ARCH}" = "powerpc" ];then + touch ${D}/etc/lsb-release.d/graphics-2.0-ppc32 + touch ${D}/etc/lsb-release.d/graphics-3.2-ppc32 + touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc32 + touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc32 + elif [ "${TARGET_ARCH}" = "powerpc64" ];then + touch ${D}/etc/lsb-release.d/graphics-2.0-ppc64 + touch ${D}/etc/lsb-release.d/graphics-3.2-ppc64 + touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc64 + touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc64 + fi +} + +do_install_append(){ + if [ "${TARGET_ARCH}" == "x86_64" ];then + cd ${D} + ln -sf lib lib64 + cd ${D}/lib + ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.2 + ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.3 + fi + if [ "${TARGET_ARCH}" == "i586" ];then + cd ${D}/lib + ln -sf ld-linux.so.2 ld-lsb.so.2 + ln -sf ld-linux.so.2 ld-lsb.so.3 + fi + + if [ "${TARGET_ARCH}" == "powerpc64" ];then + cd ${D} + ln -sf lib lib64 + cd ${D}/lib + ln -sf ld64.so.1 ld-lsb-ppc64.so.2 + ln -sf ld64.so.1 ld-lsb-ppc64.so.3 + fi + if [ "${TARGET_ARCH}" == "powerpc" ];then + cd ${D}/lib + ln -sf ld.so.1 ld-lsb-ppc32.so.2 + ln -sf ld.so.1 ld-lsb-ppc32.so.3 + fi +} +FILES_${PN} += "/lib64" |