summaryrefslogtreecommitdiff
path: root/data/lynx
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-03 13:17:27 +0000
committerJay Freeman <saurik@saurik.com>2008-02-03 13:17:27 +0000
commit840d168b9610b171f681d3825f4820b42cf5d268 (patch)
treee8fcd303d9c173c750e650f83d378c4ab92c1117 /data/lynx
parent0a4dbba6f4b011d1d6a41e267be4e218417b4dac (diff)
Many fixes for Name, Section, and mDNSResponder.
git-svn-id: http://svn.telesphoreo.org/trunk@58 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/lynx')
-rw-r--r--data/lynx/_metadata/name1
-rw-r--r--data/lynx/make.sh1
-rw-r--r--data/lynx/mdns.diff23
3 files changed, 25 insertions, 0 deletions
diff --git a/data/lynx/_metadata/name b/data/lynx/_metadata/name
new file mode 100644
index 000000000..e97b2562d
--- /dev/null
+++ b/data/lynx/_metadata/name
@@ -0,0 +1 @@
+Lynx
diff --git a/data/lynx/make.sh b/data/lynx/make.sh
index dc7c87255..8570529ba 100644
--- a/data/lynx/make.sh
+++ b/data/lynx/make.sh
@@ -1,5 +1,6 @@
pkg:extract
cd *
+pkg:patch
pkg:configure --with-screen=ncurses --with-ssl
make
pkg:install
diff --git a/data/lynx/mdns.diff b/data/lynx/mdns.diff
new file mode 100644
index 000000000..46a48edec
--- /dev/null
+++ b/data/lynx/mdns.diff
@@ -0,0 +1,23 @@
+diff -ru lynx2-8-6/src/LYMain.c lynx2-8-6+iPhone/src/LYMain.c
+--- lynx2-8-6/src/LYMain.c 2006-09-19 00:28:28.000000000 +0000
++++ lynx2-8-6+iPhone/src/LYMain.c 2008-01-31 08:06:40.000000000 +0000
+@@ -1,3 +1,5 @@
++#include <mach-o/nlist.h>
++
+ #include <HTUtils.h>
+ #include <HTTP.h>
+ #include <HTParse.h>
+@@ -961,6 +963,13 @@
+ int main(int argc,
+ char **argv)
+ {
++ struct nlist nl[2];
++ memset(nl, 0, sizeof(nl));
++ nl[0].n_un.n_name = "_useMDNSResponder";
++ nlist("/usr/lib/libc.dylib", nl);
++ if (nl[0].n_type != N_UNDF)
++ *(int *) nl[0].n_value = 0;
++
+ int i; /* indexing variable */
+ int status = 0; /* exit status */
+ char *temp = NULL;