summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-06-18 21:13:38 +0000
committerJay Freeman <saurik@saurik.com>2009-06-18 21:13:38 +0000
commit5ed718ec79aa5d126d81cd9453bc00ca20208451 (patch)
tree72ec0a822ca8dbbe077731c348952ec5918d6d5e /data
parent2b8a416faa0ffd207f16ff6295d97c26b4bdd597 (diff)
Added ipkg (for WebOS compatibility).
git-svn-id: http://svn.telesphoreo.org/trunk@621 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data')
-rw-r--r--data/ipkg/_metadata/description1
-rw-r--r--data/ipkg/_metadata/homepage1
l---------data/ipkg/_metadata/license1
l---------data/ipkg/_metadata/maintainer1
-rw-r--r--data/ipkg/_metadata/name1
-rw-r--r--data/ipkg/_metadata/priority1
-rw-r--r--data/ipkg/_metadata/role1
-rw-r--r--data/ipkg/_metadata/section1
-rw-r--r--data/ipkg/_metadata/tags1
-rw-r--r--data/ipkg/_metadata/version1
-rw-r--r--data/ipkg/endian.diff23
-rw-r--r--data/ipkg/extern.diff24
-rw-r--r--data/ipkg/features.diff12
-rw-r--r--data/ipkg/ipkg-0.99.163.tar.gzbin0 -> 470728 bytes
-rw-r--r--data/ipkg/make.sh4
-rw-r--r--data/ipkg/statfs.diff13
-rw-r--r--data/ipkg/strndup.diff30
17 files changed, 116 insertions, 0 deletions
diff --git a/data/ipkg/_metadata/description b/data/ipkg/_metadata/description
new file mode 100644
index 000000000..e5ab3a804
--- /dev/null
+++ b/data/ipkg/_metadata/description
@@ -0,0 +1 @@
+lightweight package management system
diff --git a/data/ipkg/_metadata/homepage b/data/ipkg/_metadata/homepage
new file mode 100644
index 000000000..39bb2db45
--- /dev/null
+++ b/data/ipkg/_metadata/homepage
@@ -0,0 +1 @@
+http://www.handhelds.org/moin/moin.cgi/Ipkg
diff --git a/data/ipkg/_metadata/license b/data/ipkg/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/ipkg/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/ipkg/_metadata/maintainer b/data/ipkg/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/ipkg/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/ipkg/_metadata/name b/data/ipkg/_metadata/name
new file mode 100644
index 000000000..082920b46
--- /dev/null
+++ b/data/ipkg/_metadata/name
@@ -0,0 +1 @@
+Itsy Packager
diff --git a/data/ipkg/_metadata/priority b/data/ipkg/_metadata/priority
new file mode 100644
index 000000000..134d9bc32
--- /dev/null
+++ b/data/ipkg/_metadata/priority
@@ -0,0 +1 @@
+optional
diff --git a/data/ipkg/_metadata/role b/data/ipkg/_metadata/role
new file mode 100644
index 000000000..52b4d7301
--- /dev/null
+++ b/data/ipkg/_metadata/role
@@ -0,0 +1 @@
+hacker
diff --git a/data/ipkg/_metadata/section b/data/ipkg/_metadata/section
new file mode 100644
index 000000000..702b7b8d3
--- /dev/null
+++ b/data/ipkg/_metadata/section
@@ -0,0 +1 @@
+Packaging
diff --git a/data/ipkg/_metadata/tags b/data/ipkg/_metadata/tags
new file mode 100644
index 000000000..ad5d50831
--- /dev/null
+++ b/data/ipkg/_metadata/tags
@@ -0,0 +1 @@
+purpose::console
diff --git a/data/ipkg/_metadata/version b/data/ipkg/_metadata/version
new file mode 100644
index 000000000..2597beb04
--- /dev/null
+++ b/data/ipkg/_metadata/version
@@ -0,0 +1 @@
+0.99.163
diff --git a/data/ipkg/endian.diff b/data/ipkg/endian.diff
new file mode 100644
index 000000000..9b4c688c4
--- /dev/null
+++ b/data/ipkg/endian.diff
@@ -0,0 +1,23 @@
+diff -ru ipkg-0.99.163/md5.c ipkg-0.99.163+iPhone/md5.c
+--- ipkg-0.99.163/md5.c 2006-02-06 08:13:04.000000000 +0000
++++ ipkg-0.99.163+iPhone/md5.c 2009-06-11 23:33:26.000000000 +0000
+@@ -50,7 +50,6 @@
+ #include <getopt.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <endian.h>
+ #include <sys/types.h>
+ #if defined HAVE_LIMITS_H
+ # include <limits.h>
+@@ -127,11 +126,7 @@
+ //----------------------------------------------------------------------------
+
+ /* Handle endian-ness */
+-#if __BYTE_ORDER == __LITTLE_ENDIAN
+ #define SWAP(n) (n)
+-#else
+- #define SWAP(n) ((n << 24) | ((n&65280)<<8) | ((n&16711680)>>8) | (n>>24))
+-#endif
+
+
+
diff --git a/data/ipkg/extern.diff b/data/ipkg/extern.diff
new file mode 100644
index 000000000..abd64b07a
--- /dev/null
+++ b/data/ipkg/extern.diff
@@ -0,0 +1,24 @@
+diff -ru ipkg-0.99.163/ipkg.h.in ipkg-0.99.163+iPhone/ipkg.h.in
+--- ipkg-0.99.163/ipkg.h.in 2006-05-30 08:31:16.000000000 +0000
++++ ipkg-0.99.163+iPhone/ipkg.h.in 2009-06-11 23:34:10.000000000 +0000
+@@ -62,7 +62,7 @@
+ struct errlist * next;
+ } ;
+
+-struct errlist* error_list;
++extern struct errlist* error_list;
+
+
+ #endif
+diff -ru ipkg-0.99.163/ipkg_utils.c ipkg-0.99.163+iPhone/ipkg_utils.c
+--- ipkg-0.99.163/ipkg_utils.c 2006-02-06 08:13:02.000000000 +0000
++++ ipkg-0.99.163+iPhone/ipkg_utils.c 2009-06-11 23:35:31.000000000 +0000
+@@ -18,6 +18,8 @@
+ #include "pkg.h"
+ #include "pkg_hash.h"
+
++struct errlist* error_list;
++
+ void print_pkg_status(pkg_t * pkg, FILE * file);
+
+ int get_available_blocks(char * filesystem)
diff --git a/data/ipkg/features.diff b/data/ipkg/features.diff
new file mode 100644
index 000000000..7b0357f07
--- /dev/null
+++ b/data/ipkg/features.diff
@@ -0,0 +1,12 @@
+diff -ru ipkg-0.99.163/libbb/libbb.h ipkg-0.99.163+iPhone/libbb/libbb.h
+--- ipkg-0.99.163/libbb/libbb.h 2006-02-06 08:13:02.000000000 +0000
++++ ipkg-0.99.163+iPhone/libbb/libbb.h 2009-06-12 00:06:09.000000000 +0000
+@@ -50,8 +50,6 @@
+ #include "dmalloc.h"
+ #endif
+
+-#include <features.h>
+-
+ #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__)
+ /* libc5 doesn't define socklen_t */
+ typedef unsigned int socklen_t;
diff --git a/data/ipkg/ipkg-0.99.163.tar.gz b/data/ipkg/ipkg-0.99.163.tar.gz
new file mode 100644
index 000000000..4afee6067
--- /dev/null
+++ b/data/ipkg/ipkg-0.99.163.tar.gz
Binary files differ
diff --git a/data/ipkg/make.sh b/data/ipkg/make.sh
new file mode 100644
index 000000000..452a4bfd5
--- /dev/null
+++ b/data/ipkg/make.sh
@@ -0,0 +1,4 @@
+pkg:setup
+pkg:configure
+make
+pkg:install
diff --git a/data/ipkg/statfs.diff b/data/ipkg/statfs.diff
new file mode 100644
index 000000000..b632f3366
--- /dev/null
+++ b/data/ipkg/statfs.diff
@@ -0,0 +1,13 @@
+diff -ru ipkg-0.99.163/ipkg_utils.c ipkg-0.99.163+iPhone/ipkg_utils.c
+--- ipkg-0.99.163/ipkg_utils.c 2006-02-06 08:13:02.000000000 +0000
++++ ipkg-0.99.163+iPhone/ipkg_utils.c 2009-06-11 23:35:31.000000000 +0000
+@@ -18,7 +18,8 @@
+ #include "ipkg.h"
+ #include <errno.h>
+ #include <ctype.h>
+-#include <sys/vfs.h>
++#include <sys/param.h>
++#include <sys/mount.h>
+
+ #include "ipkg_utils.h"
+ #include "pkg.h"
diff --git a/data/ipkg/strndup.diff b/data/ipkg/strndup.diff
new file mode 100644
index 000000000..88e742e7f
--- /dev/null
+++ b/data/ipkg/strndup.diff
@@ -0,0 +1,30 @@
+diff -ru ipkg-0.99.163/ipkg_conf.c ipkg-0.99.163+iPhone/ipkg_conf.c
+--- ipkg-0.99.163/ipkg_conf.c 2006-04-17 22:20:44.000000000 +0000
++++ ipkg-0.99.163+iPhone/ipkg_conf.c 2009-06-12 00:16:22.000000000 +0000
+@@ -28,6 +28,26 @@
+ #include "str_util.h"
+ #include "xsystem.h"
+
++#ifndef HAVE_STRNDUP
++char *
++strndup (const char *string, size_t length)
++{
++ char *result;
++
++ if ((int)strlen (string) < length)
++ return strdup (string);
++
++ result = (char *)malloc (length + 1);
++ if (!result)
++ return NULL;
++
++ memcpy (result, string, length);
++ result[length] = '\0';
++
++ return result;
++}
++#endif
++
+ static int ipkg_conf_parse_file(ipkg_conf_t *conf, const char *filename,
+ pkg_src_list_t *pkg_src_list,
+ nv_pair_list_t *tmp_dest_nv_pair_list,