summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2010-11-04 16:09:23 +0800
committerSaul Wold <sgw@linux.intel.com>2010-11-14 21:08:23 -0800
commit03d9a14cfbe32d6e5dfaf375797ef3f5e9decc7b (patch)
treea34cbdb6c692207f9e4ac2716c1d6698508fc61d /meta/recipes-extended
parent3810bdf28be11a33ff468198ff7ad944c0f027fb (diff)
downloadpoky-03d9a14cfbe32d6e5dfaf375797ef3f5e9decc7b.tar.gz
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.bb83
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 @@
1DESCRIPTION = "LSB support for Poky Linux"
2SECTION = "console/utils"
3HOMEPAGE = "http://prdownloads.sourceforge.net/lsb"
4PRIORITY = "required"
5LICENSE = "GPLv2+"
6PR = "r0"
7
8LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf"
9
10SRC_URI = "http://cdnetworks-kr-1.dl.sourceforge.net/project/lsb/lsb_release/${PV}/lsb-release-${PV}.tar.gz"
11S = ${WORKDIR}/lsb-release-${PV}
12
13do_install(){
14 oe_runmake install prefix=${D} mandir=${D}/man/ DESTDIR=${D}
15 mkdir -p ${D}/bin
16 mkdir -p ${D}/lib
17 mkdir -p ${D}/etc/lsb-release.d
18 echo -n "LSB_VERSION=\"core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:" > ${D}/etc/lsb-release
19
20 if [ "${TARGET_ARCH}" == "i586" ];then
21 echo -n "core-2.0-ia32:core-3.2-ia32:core-4.0-ia32" >> ${D}/etc/lsb-release
22 else
23 echo -n "core-2.0-${TARGET_ARCH}:core-3.2-${TARGET_ARCH}:core-4.0-${TARGET_ARCH}" >> ${D}/etc/lsb-release
24 fi
25 echo "\"" >> ${D}/etc/lsb-release
26
27 if [ "${TARGET_ARCH}" == "i586" ];then
28 mkdir -p ${D}/etc/lsb-release.d
29 touch ${D}/etc/lsb-release.d/graphics-2.0-noarch
30 touch ${D}/etc/lsb-release.d/graphics-3.2-noarch
31 touch ${D}/etc/lsb-release.d/graphics-${PV}-noarch
32 touch ${D}/etc/lsb-release.d/desktop-${PV}-noarch
33 touch ${D}/etc/lsb-release.d/graphics-2.0-ia32
34 touch ${D}/etc/lsb-release.d/graphics-3.2-ia32
35 touch ${D}/etc/lsb-release.d/graphics-${PV}-ia32
36 touch ${D}/etc/lsb-release.d/desktop-${PV}-ia32
37 elif [ "${TARGET_ARCH}" == "x86_64" ];then
38 touch ${D}/etc/lsb-release.d/graphics-2.0-amd64
39 touch ${D}/etc/lsb-release.d/graphics-3.2-amd64
40 touch ${D}/etc/lsb-release.d/graphics-${PV}-amd64
41 touch ${D}/etc/lsb-release.d/desktop-${PV}-amd64
42 fi
43 if [ "${TARGET_ARCH}" = "powerpc" ];then
44 touch ${D}/etc/lsb-release.d/graphics-2.0-ppc32
45 touch ${D}/etc/lsb-release.d/graphics-3.2-ppc32
46 touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc32
47 touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc32
48 elif [ "${TARGET_ARCH}" = "powerpc64" ];then
49 touch ${D}/etc/lsb-release.d/graphics-2.0-ppc64
50 touch ${D}/etc/lsb-release.d/graphics-3.2-ppc64
51 touch ${D}/etc/lsb-release.d/graphics-${PV}-ppc64
52 touch ${D}/etc/lsb-release.d/desktop-${PV}-ppc64
53 fi
54}
55
56do_install_append(){
57 if [ "${TARGET_ARCH}" == "x86_64" ];then
58 cd ${D}
59 ln -sf lib lib64
60 cd ${D}/lib
61 ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.2
62 ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.3
63 fi
64 if [ "${TARGET_ARCH}" == "i586" ];then
65 cd ${D}/lib
66 ln -sf ld-linux.so.2 ld-lsb.so.2
67 ln -sf ld-linux.so.2 ld-lsb.so.3
68 fi
69
70 if [ "${TARGET_ARCH}" == "powerpc64" ];then
71 cd ${D}
72 ln -sf lib lib64
73 cd ${D}/lib
74 ln -sf ld64.so.1 ld-lsb-ppc64.so.2
75 ln -sf ld64.so.1 ld-lsb-ppc64.so.3
76 fi
77 if [ "${TARGET_ARCH}" == "powerpc" ];then
78 cd ${D}/lib
79 ln -sf ld.so.1 ld-lsb-ppc32.so.2
80 ln -sf ld.so.1 ld-lsb-ppc32.so.3
81 fi
82}
83FILES_${PN} += "/lib64"