diff options
Diffstat (limited to 'meta/packages/ipkg/ipkg.inc')
-rw-r--r-- | meta/packages/ipkg/ipkg.inc | 56 |
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 @@ | |||
1 | DESCRIPTION = "Itsy Package Manager" | ||
2 | DESCRIPTION_libipkg = "Itsy Package Manager Library" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "GPL" | ||
5 | PROVIDES = "virtual/ipkg libipkg" | ||
6 | |||
7 | PACKAGES =+ "libipkg-dev libipkg" | ||
8 | FILES_libipkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so" | ||
9 | FILES_libipkg = "${libdir}" | ||
10 | AUTO_LIBNAME_PKGS = "libipkg" | ||
11 | |||
12 | SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')} \ | ||
13 | file://terse.patch;patch=1" | ||
14 | |||
15 | S = "${WORKDIR}/ipkg/C" | ||
16 | |||
17 | inherit 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) | ||
21 | IPKG_INIT_POSITION = "98" | ||
22 | IPKG_INIT_POSITION_slugos = "41" | ||
23 | |||
24 | pkg_postinst_ipkg () { | ||
25 | #!/bin/sh | ||
26 | if [ "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 | ||
30 | ipkg-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 | ||
33 | fi | ||
34 | |||
35 | update-alternatives --install ${bindir}/ipkg ipkg ${bindir}/ipkg-cl 100 | ||
36 | } | ||
37 | |||
38 | pkg_postrm_ipkg () { | ||
39 | #!/bin/sh | ||
40 | update-alternatives --remove ipkg ${bindir}/ipkg-cl | ||
41 | } | ||
42 | |||
43 | do_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 | # | ||