r575 - in trunk/oe/packages: . images ipkg ipkg/files ipkg/ipkg-collateral ipkg/ipkg-collateral/akita ipkg/ipkg-collateral/collie ipkg/ipkg-collateral/jornada56x ipkg/ipkg-collateral/openmn ipkg/ipkg-collateral/poodle ipkg/ipkg-collateral/simpad ipkg/ipkg-collateral/tosa
mickey at sita.openmoko.org
mickey at sita.openmoko.org
Thu Jan 18 00:38:33 CET 2007
Author: mickey
Date: 2007-01-18 00:38:32 +0100 (Thu, 18 Jan 2007)
New Revision: 575
Added:
trunk/oe/packages/ipkg/
trunk/oe/packages/ipkg/files/
trunk/oe/packages/ipkg/files/is-processing.patch
trunk/oe/packages/ipkg/files/libdir.patch
trunk/oe/packages/ipkg/files/terse.patch
trunk/oe/packages/ipkg/files/uclibc.patch
trunk/oe/packages/ipkg/files/uninclude-replace.patch
trunk/oe/packages/ipkg/ipkg-collateral.bb
trunk/oe/packages/ipkg/ipkg-collateral/
trunk/oe/packages/ipkg/ipkg-collateral/akita/
trunk/oe/packages/ipkg/ipkg-collateral/akita/dest
trunk/oe/packages/ipkg/ipkg-collateral/akita/lists
trunk/oe/packages/ipkg/ipkg-collateral/collie/
trunk/oe/packages/ipkg/ipkg-collateral/collie/dest
trunk/oe/packages/ipkg/ipkg-collateral/dest
trunk/oe/packages/ipkg/ipkg-collateral/ipkg.conf.comments
trunk/oe/packages/ipkg/ipkg-collateral/jornada56x/
trunk/oe/packages/ipkg/ipkg-collateral/jornada56x/dest
trunk/oe/packages/ipkg/ipkg-collateral/lists
trunk/oe/packages/ipkg/ipkg-collateral/openmn/
trunk/oe/packages/ipkg/ipkg-collateral/openmn/src
trunk/oe/packages/ipkg/ipkg-collateral/poodle/
trunk/oe/packages/ipkg/ipkg-collateral/poodle/dest
trunk/oe/packages/ipkg/ipkg-collateral/simpad/
trunk/oe/packages/ipkg/ipkg-collateral/simpad/dest
trunk/oe/packages/ipkg/ipkg-collateral/src
trunk/oe/packages/ipkg/ipkg-collateral/tosa/
trunk/oe/packages/ipkg/ipkg-collateral/tosa/dest
trunk/oe/packages/ipkg/ipkg-native.inc
trunk/oe/packages/ipkg/ipkg-native_0.99.163.bb
trunk/oe/packages/ipkg/ipkg.inc
trunk/oe/packages/ipkg/ipkg_0.99.163.bb
Modified:
trunk/oe/packages/images/openmoko-devel-image.bb
trunk/oe/packages/images/openmoko-image.bb
trunk/oe/packages/images/openmoko-sdk-image.bb
Log:
oe: add our version of ipkg
Modified: trunk/oe/packages/images/openmoko-devel-image.bb
===================================================================
--- trunk/oe/packages/images/openmoko-devel-image.bb 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/images/openmoko-devel-image.bb 2007-01-17 23:38:32 UTC (rev 575)
@@ -1,6 +1,6 @@
require openmoko-image.bb
-export IPKG_INSTALL += "\
+export PACKAGE_INSTALL += "\
task-openmoko-demo \
task-openmoko-debug \
"
Modified: trunk/oe/packages/images/openmoko-image.bb
===================================================================
--- trunk/oe/packages/images/openmoko-image.bb 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/images/openmoko-image.bb 2007-01-17 23:38:32 UTC (rev 575)
@@ -5,7 +5,7 @@
export IMAGE_BASENAME = "${PN}"
export IMAGE_LINGUAS = ""
-export IPKG_INSTALL = "\
+export PACKAGE_INSTALL = "\
${MACHINE_TASK_PROVIDER} \
task-openmoko-linux \
task-openmoko-net \
@@ -19,8 +19,8 @@
task-openmoko \
"
-RDEPENDS = "${IPKG_INSTALL}"
+RDEPENDS = "${PACKAGE_INSTALL}"
-inherit image_ipk
+inherit image
LICENSE = MIT
Modified: trunk/oe/packages/images/openmoko-sdk-image.bb
===================================================================
--- trunk/oe/packages/images/openmoko-sdk-image.bb 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/images/openmoko-sdk-image.bb 2007-01-17 23:38:32 UTC (rev 575)
@@ -1,5 +1,5 @@
require openmoko-devel-image.bb
-export IPKG_INSTALL += "\
+export PACKAGE_INSTALL += "\
task-openmoko-native-sdk \
"
Added: trunk/oe/packages/ipkg/files/is-processing.patch
===================================================================
--- trunk/oe/packages/ipkg/files/is-processing.patch 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/files/is-processing.patch 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,127 @@
+diff -Nur ipkg-0.99.163.orig/ipkg_install.c ipkg-0.99.163/ipkg_install.c
+--- ipkg-0.99.163.orig/ipkg_install.c 2006-03-30 21:50:24.000000000 +0800
++++ ipkg-0.99.163/ipkg_install.c 2006-08-10 09:30:40.000000000 +0800
+@@ -211,6 +211,7 @@
+ anyone ever wants to make a nice libipkg. */
+
+ ipkg_message(conf, IPKG_DEBUG2,"Function: %s calling ipkg_install_pkg \n",__FUNCTION__);
++ new->is_processing = 1;
+ return ipkg_install_pkg(conf, new,0);
+ }
+
+diff -Nur ipkg-0.99.163.orig/pkg.c ipkg-0.99.163/pkg.c
+--- ipkg-0.99.163.orig/pkg.c 2006-04-21 04:29:28.000000000 +0800
++++ ipkg-0.99.163/pkg.c 2006-08-10 09:35:06.000000000 +0800
+@@ -33,6 +33,7 @@
+ #include "xsystem.h"
+ #include "ipkg_conf.h"
+
++
+ typedef struct enum_map enum_map_t;
+ struct enum_map
+ {
+@@ -522,6 +523,10 @@
+ strncat(buff ,line, strlen(line));
+ free(line);
+
++ line = pkg_formatted_field(pkg, "Installed-Size");
++ strncat(buff ,line, strlen(line));
++ free(line);
++
+ return buff;
+ }
+
+@@ -542,7 +547,6 @@
+ }
+
+ temp[0]='\0';
+-
+ switch (field[0])
+ {
+ case 'a':
+@@ -690,13 +694,42 @@
+ case 'I': {
+ if (strcasecmp(field, "Installed-Size") == 0) {
+ /* Installed-Size */
+- temp = (char *)realloc(temp,strlen(pkg->installed_size)+17);
+- if ( temp == NULL ){
+- fprintf(stderr, "%s: out of memory\n", __FUNCTION__);
+- return NULL;
+- }
+- temp[0]='\0';
+- snprintf(temp, (strlen(pkg->installed_size)+17), "Installed-Size: %s\n", pkg->installed_size);
++ if (pkg->installed_size) {
++ temp = (char *)realloc(temp,strlen(pkg->installed_size)+18);
++ if ( temp == NULL ){
++ fprintf(stderr, "%s: out of memory\n", __FUNCTION__);
++ return NULL;
++ }
++ temp[0]='\0';
++ snprintf(temp, (strlen(pkg->installed_size)+18), "Installed-Size: %s\n", pkg->installed_size);
++ } else {
++ /* Caculate installed files size */
++ str_list_elt_t *iter;
++ struct stat buf;
++ int installed_files_length = 0;
++ if (pkg->installed_files == NULL)
++ break;
++
++ if (pkg->is_processing!=1)
++ break;
++
++ for (iter = pkg->installed_files->head; iter; iter = iter->next) {
++ memset(&buf, 0, sizeof(struct stat));
++ stat(iter->data, &buf);
++ if (S_ISREG(buf.st_mode))
++ installed_files_length += buf.st_size;
++ }
++ /*printf("installed_files_length:%d\n", installed_files_length);*/
++
++ sprintf_alloc(&pkg->installed_size, "%d", installed_files_length);
++ temp = (char *)realloc(temp,strlen(pkg->installed_size)+18);
++ if ( temp == NULL ){
++ fprintf(stderr, "%s: out of memory\n", __FUNCTION__);
++ return NULL;
++ }
++ temp[0]='\0';
++ snprintf(temp, (strlen(pkg->installed_size)+18), "Installed-Size: %s\n", pkg->installed_size);
++ }
+ } else if (strcasecmp(field, "Installed-Time") == 0 && pkg->installed_time) {
+ temp = (char *)realloc(temp,29);
+ if ( temp == NULL ){
+@@ -720,7 +753,7 @@
+ return NULL;
+ }
+ temp[0]='\0';
+- snprintf(temp, (strlen(pkg->maintainer)+14), "maintainer: %s\n", pkg->maintainer);
++ snprintf(temp, (strlen(pkg->maintainer)+14), "Maintainer: %s\n", pkg->maintainer);
+ }
+ } else if (strcasecmp(field, "MD5sum") == 0) {
+ /* MD5sum */
+@@ -1016,6 +1049,12 @@
+ pkg_print_field(pkg, file, "Essential"); /* @@@@ should be removed in future release. */
+ pkg_print_field(pkg, file, "Architecture");
+ pkg_print_field(pkg, file, "Conffiles");
++ pkg_print_field(pkg, file, "Description");
++ pkg_print_field(pkg, file, "Maintainer");
++ pkg_print_field(pkg, file, "Section");
++ pkg_print_field(pkg, file, "Size");
++ pkg_print_field(pkg, file, "Filename");
++ pkg_print_field(pkg, file, "Installed-Size");
+ pkg_print_field(pkg, file, "Installed-Time");
+ fputs("\n", file);
+ }
+diff -Nur ipkg-0.99.163.orig/pkg.h ipkg-0.99.163/pkg.h
+--- ipkg-0.99.163.orig/pkg.h 2006-05-30 16:31:08.000000000 +0800
++++ ipkg-0.99.163/pkg.h 2006-08-10 09:19:14.000000000 +0800
+@@ -176,6 +176,10 @@
+ int arch_priority;
+ /* Adding this flag, to "force" ipkg to choose a "provided_by_hand" package, if there are multiple choice */
+ int provided_by_hand;
++
++ /* Check whether this pkg is being removed or installed */
++ int is_processing;
++
+ };
+
+ pkg_t *pkg_new(void);
Added: trunk/oe/packages/ipkg/files/libdir.patch
===================================================================
--- trunk/oe/packages/ipkg/files/libdir.patch 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/files/libdir.patch 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,11 @@
+--- C/ipkg.h.in.old 2005-04-02 17:11:02.762413624 +0100
++++ C/ipkg.h.in 2005-04-02 17:11:06.314873568 +0100
+@@ -36,7 +36,7 @@
+ #define IPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-"
+ #define IPKG_PKG_VERSION_SEP_CHAR '_'
+
+-#define IPKG_STATE_DIR_PREFIX LIBDIR"/ipkg"
++#define IPKG_STATE_DIR_PREFIX "/usr/lib/ipkg"
+ #define IPKG_LISTS_DIR_SUFFIX "lists"
+ #define IPKG_INFO_DIR_SUFFIX "info"
+ #define IPKG_STATUS_FILE_SUFFIX "status"
Added: trunk/oe/packages/ipkg/files/terse.patch
===================================================================
--- trunk/oe/packages/ipkg/files/terse.patch 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/files/terse.patch 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,18 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- C/ipkg_cmd.c~terse
++++ C/ipkg_cmd.c
+@@ -148,9 +146,7 @@
+ int result;
+ p_userdata = userdata;
+ result = (cmd->fun)(conf, argc, argv);
+- if ( result == 0 ) {
+- ipkg_message(conf, IPKG_NOTICE, "Successfully terminated.\n");
+- } else {
++ if ( result != 0 ) {
+ ipkg_message(conf, IPKG_NOTICE, "An error ocurred, return value: %d.\n", result);
+ }
+
Added: trunk/oe/packages/ipkg/files/uclibc.patch
===================================================================
--- trunk/oe/packages/ipkg/files/uclibc.patch 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/files/uclibc.patch 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,13 @@
+Index: C/libbb/libbb.h
+===================================================================
+--- C.orig/libbb/libbb.h 2003-02-24 10:31:52.000000000 -0500
++++ C/libbb/libbb.h 2005-01-20 03:07:10.031420944 -0500
+@@ -340,7 +340,7 @@
+ #define CONSOLE_DEV "/dev/console"
+
+ /* Cope with mmu-less systems somewhat gracefully */
+-#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__)
++#if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__)
+ #define fork vfork
+ #endif
+
Added: trunk/oe/packages/ipkg/files/uninclude-replace.patch
===================================================================
--- trunk/oe/packages/ipkg/files/uninclude-replace.patch 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/files/uninclude-replace.patch 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,10 @@
+--- C/includes.h 2003-03-28 19:36:22.000000000 +0000
++++ C/includes.h 2004-07-28 03:41:11.000000000 +0100
+@@ -48,6 +48,6 @@
+ # include <unistd.h>
+ #endif
+
+-#include "replace/replace.h"
++//#include "replace/replace.h"
+
+ #endif
Added: trunk/oe/packages/ipkg/ipkg-collateral/akita/dest
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/akita/dest 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/akita/dest 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,4 @@
+dest root /
+dest home /home/packages/
+dest cf /media/cf/packages/
+dest sd /media/card/packages/
Added: trunk/oe/packages/ipkg/ipkg-collateral/akita/lists
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/akita/lists 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/akita/lists 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,4 @@
+
+# Uncomment to move ipkg server-data into RAM
+# lists_dir ext /var/lib/ipkg
+
Added: trunk/oe/packages/ipkg/ipkg-collateral/collie/dest
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/collie/dest 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/collie/dest 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,4 @@
+dest root /
+dest cf /media/cf/packages/
+dest sd /media/card/packages/
+dest ram /media/ram/packages/
Added: trunk/oe/packages/ipkg/ipkg-collateral/dest
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/dest 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/dest 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1 @@
+dest root /
Added: trunk/oe/packages/ipkg/ipkg-collateral/ipkg.conf.comments
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/ipkg.conf.comments 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/ipkg.conf.comments 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,23 @@
+# Must have one or more source entries of the form:
+#
+# src <src-name> <source-url>
+#
+# and one or more destination entries of the form:
+#
+# dest <dest-name> <target-path>
+#
+# where <src-name> and <dest-names> are identifiers that
+# should match [a-zA-Z0-9._-]+, <source-url> should be a
+# URL that points to a directory containing a Familiar
+# Packages file, and <target-path> should be a directory
+# that exists on the target system.
+
+# Proxy Support
+#option http_proxy http://proxy.tld:3128
+#option ftp_proxy http://proxy.tld:3128
+#option proxy_username <username>
+#option proxy_password <password>
+
+# Offline mode (for use in constructing flash images offline)
+#option offline_root target
+
Added: trunk/oe/packages/ipkg/ipkg-collateral/jornada56x/dest
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/jornada56x/dest 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/jornada56x/dest 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,4 @@
+dest root /
+dest cf /mnt/cf/packages/
+dest sd /mnt/card/packages/
+dest ram /mnt/ram/packages/
Added: trunk/oe/packages/ipkg/ipkg-collateral/lists
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/lists 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/lists 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,2 @@
+lists_dir ext /var/lib/ipkg
+
Added: trunk/oe/packages/ipkg/ipkg-collateral/openmn/src
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/openmn/src 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/openmn/src 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1 @@
+src mnci54 http://www.mn-solutions.de/feed/mnci54/base
Added: trunk/oe/packages/ipkg/ipkg-collateral/poodle/dest
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/poodle/dest 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/poodle/dest 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,4 @@
+dest root /
+dest cf /media/cf/packages/
+dest sd /media/card/packages/
+dest home /home/packages/
Added: trunk/oe/packages/ipkg/ipkg-collateral/simpad/dest
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/simpad/dest 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/simpad/dest 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,3 @@
+dest root /
+dest cf /mnt/cf/packages/
+dest ram /mnt/ram/packages/
Added: trunk/oe/packages/ipkg/ipkg-collateral/src
===================================================================
Added: trunk/oe/packages/ipkg/ipkg-collateral/tosa/dest
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral/tosa/dest 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral/tosa/dest 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,4 @@
+dest root /
+dest cf /media/cf/packages/
+dest sd /media/card/packages/
+dest ram /media/ram/packages/
Added: trunk/oe/packages/ipkg/ipkg-collateral.bb
===================================================================
--- trunk/oe/packages/ipkg/ipkg-collateral.bb 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-collateral.bb 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,26 @@
+DESCRIPTION = "ipkg configuration files"
+SECTION = "base"
+LICENSE = "MIT"
+PR = "r5"
+PACKAGE_ARCH = "all"
+
+SRC_URI = " \
+file://ipkg.conf.comments \
+file://lists \
+file://dest \
+file://src \
+"
+
+do_compile () {
+ cat ${WORKDIR}/ipkg.conf.comments >${WORKDIR}/ipkg.conf
+ cat ${WORKDIR}/src >>${WORKDIR}/ipkg.conf
+ cat ${WORKDIR}/dest >>${WORKDIR}/ipkg.conf
+ cat ${WORKDIR}/lists >>${WORKDIR}/ipkg.conf
+}
+
+do_install () {
+ install -d ${D}${sysconfdir}/
+ install -m 0644 ${WORKDIR}/ipkg.conf ${D}${sysconfdir}/ipkg.conf
+}
+
+CONFFILES_${PN} = "${sysconfdir}/ipkg.conf"
Added: trunk/oe/packages/ipkg/ipkg-native.inc
===================================================================
--- trunk/oe/packages/ipkg/ipkg-native.inc 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-native.inc 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,12 @@
+# NOTE: ipkg now obeys ${libdir}, so ipkg-native now installs
+# things into the wrong location inside of offline_root. Backup
+# the target libdir and use that.
+target_libdir := "${libdir}"
+
+inherit native
+
+EXTRA_OECONF += "--with-ipkgdir=${target_libdir}/ipkg"
+
+DEPENDS = "libtool-native automake-native"
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/ipkg-${PV}"
+PROVIDES = ""
Added: trunk/oe/packages/ipkg/ipkg-native_0.99.163.bb
===================================================================
--- trunk/oe/packages/ipkg/ipkg-native_0.99.163.bb 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg-native_0.99.163.bb 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,10 @@
+S = "${WORKDIR}/ipkg-${PV}"
+
+#require ipkg_${PV}.bb
+require ipkg-native.inc
+PR = "r1"
+
+inherit autotools pkgconfig native
+
+SRC_URI = "http://www.handhelds.org/pub/packages/ipkg/ipkg-${PV}.tar.gz"
+
Added: trunk/oe/packages/ipkg/ipkg.inc
===================================================================
--- trunk/oe/packages/ipkg/ipkg.inc 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg.inc 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,56 @@
+DESCRIPTION = "Itsy Package Manager"
+DESCRIPTION_libipkg = "Itsy Package Manager Library"
+SECTION = "base"
+LICENSE = "GPL"
+PROVIDES = "virtual/ipkg libipkg"
+
+PACKAGES =+ "libipkg-dev libipkg"
+FILES_libipkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
+FILES_libipkg = "${libdir}/*.so.*"
+AUTO_LIBNAME_PKGS = "libipkg"
+
+SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')} \
+ file://terse.patch;patch=1"
+
+S = "${WORKDIR}/ipkg/C"
+
+inherit autotools pkgconfig
+
+# Define a variable to allow distros to run configure earlier.
+# (for example, to enable loading of ethernet kernel modules before networking starts)
+IPKG_INIT_POSITION = "98"
+IPKG_INIT_POSITION_slugos = "41"
+
+pkg_postinst_ipkg () {
+#!/bin/sh
+if [ "x$D" != "x" ]; then
+ install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+ # this happens at S98 where our good 'ole packages script used to run
+ echo "#!/bin/sh
+ipkg-cl configure
+" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${IPKG_INIT_POSITION}configure
+ chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${IPKG_INIT_POSITION}configure
+fi
+
+update-alternatives --install ${bindir}/ipkg ipkg ${bindir}/ipkg-cl 100
+}
+
+pkg_postrm_ipkg () {
+#!/bin/sh
+update-alternatives --remove ipkg ${bindir}/ipkg-cl
+}
+
+do_stage() {
+ oe_libinstall -so libipkg ${STAGING_LIBDIR}
+ install -d ${STAGING_INCDIR}/replace/
+ install -m 0644 replace/replace.h ${STAGING_INCDIR}/replace/
+ install -d ${STAGING_INCDIR}/libipkg/
+ for f in *.h
+ do
+ install -m 0644 $f ${STAGING_INCDIR}/libipkg/
+ done
+}
+
+#
+# FIXME: Install /etc/ipkg.conf and /etc/ipkg/arch.conf
+#
Added: trunk/oe/packages/ipkg/ipkg_0.99.163.bb
===================================================================
--- trunk/oe/packages/ipkg/ipkg_0.99.163.bb 2007-01-17 23:20:43 UTC (rev 574)
+++ trunk/oe/packages/ipkg/ipkg_0.99.163.bb 2007-01-17 23:38:32 UTC (rev 575)
@@ -0,0 +1,18 @@
+include ipkg.inc
+PR = "r2"
+
+S = "${WORKDIR}/ipkg-${PV}"
+
+SRC_URI = "http://www.handhelds.org/pub/packages/ipkg/ipkg-${PV}.tar.gz \
+ file://terse.patch;patch=1 \
+ file://is-processing.patch;patch=1"
+
+do_stage() {
+ oe_libinstall -so libipkg ${STAGING_LIBDIR}
+ install -d ${STAGING_INCDIR}/libipkg/
+ for f in *.h
+ do
+ install -m 0644 $f ${STAGING_INCDIR}/libipkg/
+ done
+}
+
More information about the commitlog
mailing list