summaryrefslogtreecommitdiffstats
path: root/meta/packages/ipkg/ipkg.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/ipkg/ipkg.inc')
-rw-r--r--meta/packages/ipkg/ipkg.inc56
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/packages/ipkg/ipkg.inc b/meta/packages/ipkg/ipkg.inc
new file mode 100644
index 0000000000..8fc6c9efe0
--- /dev/null
+++ b/meta/packages/ipkg/ipkg.inc
@@ -0,0 +1,56 @@
1DESCRIPTION = "Itsy Package Manager"
2DESCRIPTION_libipkg = "Itsy Package Manager Library"
3SECTION = "base"
4LICENSE = "GPL"
5PROVIDES = "virtual/ipkg libipkg"
6
7PACKAGES =+ "libipkg-dev libipkg"
8FILES_libipkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
9FILES_libipkg = "${libdir}"
10AUTO_LIBNAME_PKGS = "libipkg"
11
12SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')} \
13 file://terse.patch;patch=1"
14
15S = "${WORKDIR}/ipkg/C"
16
17inherit autotools pkgconfig
18
19# Define a variable to allow distros to run configure earlier.
20# (for example, to enable loading of ethernet kernel modules before networking starts)
21IPKG_INIT_POSITION = "98"
22IPKG_INIT_POSITION_slugos = "41"
23
24pkg_postinst_ipkg () {
25#!/bin/sh
26if [ "x$D" != "x" ]; then
27 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
28 # this happens at S98 where our good 'ole packages script used to run
29 echo -e "#!/bin/sh
30ipkg-cl configure
31" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${IPKG_INIT_POSITION}configure
32 chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${IPKG_INIT_POSITION}configure
33fi
34
35update-alternatives --install ${bindir}/ipkg ipkg ${bindir}/ipkg-cl 100
36}
37
38pkg_postrm_ipkg () {
39#!/bin/sh
40update-alternatives --remove ipkg ${bindir}/ipkg-cl
41}
42
43do_stage() {
44 oe_libinstall -so libipkg ${STAGING_LIBDIR}
45 install -d ${STAGING_INCDIR}/replace/
46 install -m 0644 replace/replace.h ${STAGING_INCDIR}/replace/
47 install -d ${STAGING_INCDIR}/libipkg/
48 for f in *.h
49 do
50 install -m 0644 $f ${STAGING_INCDIR}/libipkg/
51 done
52}
53
54#
55# FIXME: Install /etc/ipkg.conf and /etc/ipkg/arch.conf
56#