summaryrefslogtreecommitdiff
path: root/data/dpkg
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-01 05:58:43 +0000
committerJay Freeman <saurik@saurik.com>2008-01-01 05:58:43 +0000
commitea2670c18699e514ee1d65dfd35ad22c296a74e7 (patch)
tree6826a5266d78c22210c194772a8daed06ef0a19c /data/dpkg
parenta45e85d54e8df7a333946cc52fec519fc6aa4d87 (diff)
Initial commit.
git-svn-id: http://svn.telesphoreo.org/trunk@2 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/dpkg')
-rw-r--r--data/dpkg/_metadata/description2
l---------data/dpkg/_metadata/license1
l---------data/dpkg/_metadata/maintainer1
-rw-r--r--data/dpkg/_metadata/priority1
-rw-r--r--data/dpkg/_metadata/section1
l---------data/dpkg/_metadata/tar.dep1
-rw-r--r--data/dpkg/_metadata/version1
-rw-r--r--data/dpkg/dpkg_1.13.25.tar.gzbin0 -> 3384618 bytes
-rw-r--r--data/dpkg/make.sh8
-rw-r--r--data/dpkg/port.diff81
10 files changed, 97 insertions, 0 deletions
diff --git a/data/dpkg/_metadata/description b/data/dpkg/_metadata/description
new file mode 100644
index 000000000..005d9a0c9
--- /dev/null
+++ b/data/dpkg/_metadata/description
@@ -0,0 +1,2 @@
+this package isn't described yet
+This package, which I'm certain is incredibly interesting, has yet to be described. This is probably because Jay has spent days getting all kinds of bookkeeping issues, like copyright notifications, all in their correct places, and descriptions just aren't the most important thing he could be working on. If this is a problem, please come back later.
diff --git a/data/dpkg/_metadata/license b/data/dpkg/_metadata/license
new file mode 120000
index 000000000..9c13a9a0f
--- /dev/null
+++ b/data/dpkg/_metadata/license
@@ -0,0 +1 @@
+../../../licenses/gpl-2 \ No newline at end of file
diff --git a/data/dpkg/_metadata/maintainer b/data/dpkg/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/dpkg/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/dpkg/_metadata/priority b/data/dpkg/_metadata/priority
new file mode 100644
index 000000000..fad9e164a
--- /dev/null
+++ b/data/dpkg/_metadata/priority
@@ -0,0 +1 @@
+required
diff --git a/data/dpkg/_metadata/section b/data/dpkg/_metadata/section
new file mode 100644
index 000000000..7fbe952b7
--- /dev/null
+++ b/data/dpkg/_metadata/section
@@ -0,0 +1 @@
+admin
diff --git a/data/dpkg/_metadata/tar.dep b/data/dpkg/_metadata/tar.dep
new file mode 120000
index 000000000..0eab7f1b6
--- /dev/null
+++ b/data/dpkg/_metadata/tar.dep
@@ -0,0 +1 @@
+../../tar \ No newline at end of file
diff --git a/data/dpkg/_metadata/version b/data/dpkg/_metadata/version
new file mode 100644
index 000000000..e67bd845b
--- /dev/null
+++ b/data/dpkg/_metadata/version
@@ -0,0 +1 @@
+1.13.25
diff --git a/data/dpkg/dpkg_1.13.25.tar.gz b/data/dpkg/dpkg_1.13.25.tar.gz
new file mode 100644
index 000000000..535e9fdbd
--- /dev/null
+++ b/data/dpkg/dpkg_1.13.25.tar.gz
Binary files differ
diff --git a/data/dpkg/make.sh b/data/dpkg/make.sh
new file mode 100644
index 000000000..45da861e8
--- /dev/null
+++ b/data/dpkg/make.sh
@@ -0,0 +1,8 @@
+tar -zxvf "${PKG_DATA}/dpkg_1.13.25.tar.gz"
+cd dpkg-1.13.25
+pkg:patch
+autoconf
+cp -a getopt/obstack.c lib
+pkg:configure --with-admindir=/var/lib/dpkg --without-start-stop-daemon --without-dselect --disable-nls --sysconfdir=/etc --disable-linker-optimisations
+make
+pkg:install
diff --git a/data/dpkg/port.diff b/data/dpkg/port.diff
new file mode 100644
index 000000000..c53516c99
--- /dev/null
+++ b/data/dpkg/port.diff
@@ -0,0 +1,81 @@
+diff -ru dpkg-1.13.25/lib/Makefile.am dpkg-1.13.25+iPhone/lib/Makefile.am
+--- dpkg-1.13.25/lib/Makefile.am 2006-06-21 13:41:12.000000000 +0000
++++ dpkg-1.13.25+iPhone/lib/Makefile.am 2007-12-29 10:00:00.000000000 +0000
+@@ -34,4 +34,5 @@
+ tarfn.c tarfn.h \
+ utils.c \
+ varbuf.c \
+- vercmp.c
++ vercmp.c \
++ obstack.c
+diff -ru dpkg-1.13.25/lib/tarfn.c dpkg-1.13.25+iPhone/lib/tarfn.c
+--- dpkg-1.13.25/lib/tarfn.c 2006-06-21 13:41:12.000000000 +0000
++++ dpkg-1.13.25+iPhone/lib/tarfn.c 2007-12-29 09:51:34.000000000 +0000
+@@ -53,6 +53,13 @@
+ return n;
+ }
+
++int strnlen(const char *s, int size) {
++ for (int i = 0; i != size; ++i)
++ if (s[i] == '\0')
++ return i;
++ return size;
++}
++
+ /* String block to C null-terminated string */
+ char *
+ StoC(const char *s, int size)
+diff -ru dpkg-1.13.25/m4/funcs.m4 dpkg-1.13.25+iPhone/m4/funcs.m4
+--- dpkg-1.13.25/m4/funcs.m4 2006-06-04 15:45:45.000000000 +0000
++++ dpkg-1.13.25+iPhone/m4/funcs.m4 2007-12-29 09:51:34.000000000 +0000
+@@ -3,7 +3,7 @@
+ # Define HAVE_VA_COPY if we have va_copy, fail if they can't be assigned
+ AC_DEFUN([DPKG_FUNC_VA_COPY],
+ [AC_CACHE_CHECK([for va_copy], [dpkg_cv_va_copy],
+-[AC_TRY_RUN(
++[AC_TRY_COMPILE(
+ [#include <stdarg.h>
+ main() {
+ va_list v1, v2;
+diff -ru dpkg-1.13.25/src/help.c dpkg-1.13.25+iPhone/src/help.c
+--- dpkg-1.13.25/src/help.c 2006-06-19 01:22:03.000000000 +0000
++++ dpkg-1.13.25+iPhone/src/help.c 2007-12-29 09:51:34.000000000 +0000
+@@ -69,11 +69,8 @@
+
+ void checkpath(void) {
+ /* Verify that some programs can be found in the PATH. */
+- static const char *const checklist[]= { "ldconfig",
+-#ifdef WITH_START_STOP_DAEMON
+- "start-stop-daemon",
+-#endif
+- "install-info", "update-rc.d", 0
++ static const char *const checklist[]= {
++ "install-info", 0
+ };
+
+ struct stat stab;
+diff -ru dpkg-1.13.25/utils/start-stop-daemon.c dpkg-1.13.25+iPhone/utils/start-stop-daemon.c
+--- dpkg-1.13.25/utils/start-stop-daemon.c 2006-06-21 14:59:36.000000000 +0000
++++ dpkg-1.13.25+iPhone/utils/start-stop-daemon.c 2007-12-29 09:51:34.000000000 +0000
+@@ -32,7 +32,7 @@
+ # define OSOpenBSD
+ #elif defined(hpux)
+ # define OShpux
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || 1
+ # define OSFreeBSD
+ #elif defined(__NetBSD__)
+ # define OSNetBSD
+@@ -928,10 +928,10 @@
+ errx(1, "%s", errbuf);
+ if ((kp = kvm_getprocs(kd, KERN_PROC_PID, pid, &nentries)) == 0)
+ errx(1, "%s", kvm_geterr(kd));
+- if (kp->kp_proc.p_cred )
++ /*if (kp->kp_proc.p_cred )
+ kvm_read(kd, (u_long)&(kp->kp_proc.p_cred->p_ruid),
+ &proc_uid, sizeof(uid_t));
+- else
++ else*/
+ return 0;
+ return (proc_uid == (uid_t)uid);
+ }