diff options
Diffstat (limited to 'data/srelay')
-rw-r--r-- | data/srelay/_metadata/description | 2 | ||||
-rw-r--r-- | data/srelay/_metadata/license | 27 | ||||
l--------- | data/srelay/_metadata/maintainer | 1 | ||||
-rw-r--r-- | data/srelay/_metadata/priority | 1 | ||||
-rw-r--r-- | data/srelay/_metadata/section | 1 | ||||
-rw-r--r-- | data/srelay/_metadata/version | 1 | ||||
-rw-r--r-- | data/srelay/bindaddr.diff | 21 | ||||
-rw-r--r-- | data/srelay/filio.diff | 12 | ||||
-rw-r--r-- | data/srelay/make.sh | 7 | ||||
-rw-r--r-- | data/srelay/sigpoll.diff | 12 | ||||
-rw-r--r-- | data/srelay/srelay-0.4.6.tar.gz | bin | 0 -> 92950 bytes | |||
-rw-r--r-- | data/srelay/thread.diff | 28 |
12 files changed, 113 insertions, 0 deletions
diff --git a/data/srelay/_metadata/description b/data/srelay/_metadata/description new file mode 100644 index 000000000..005d9a0c9 --- /dev/null +++ b/data/srelay/_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/srelay/_metadata/license b/data/srelay/_metadata/license new file mode 100644 index 000000000..7f5443717 --- /dev/null +++ b/data/srelay/_metadata/license @@ -0,0 +1,27 @@ +Copyright (C) 2001 Tomo.M (author). +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the author nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/data/srelay/_metadata/maintainer b/data/srelay/_metadata/maintainer new file mode 120000 index 000000000..0fa66e077 --- /dev/null +++ b/data/srelay/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/saurik
\ No newline at end of file diff --git a/data/srelay/_metadata/priority b/data/srelay/_metadata/priority new file mode 100644 index 000000000..134d9bc32 --- /dev/null +++ b/data/srelay/_metadata/priority @@ -0,0 +1 @@ +optional diff --git a/data/srelay/_metadata/section b/data/srelay/_metadata/section new file mode 100644 index 000000000..992ae1298 --- /dev/null +++ b/data/srelay/_metadata/section @@ -0,0 +1 @@ +network diff --git a/data/srelay/_metadata/version b/data/srelay/_metadata/version new file mode 100644 index 000000000..ef52a6480 --- /dev/null +++ b/data/srelay/_metadata/version @@ -0,0 +1 @@ +0.4.6 diff --git a/data/srelay/bindaddr.diff b/data/srelay/bindaddr.diff new file mode 100644 index 000000000..a324c7da0 --- /dev/null +++ b/data/srelay/bindaddr.diff @@ -0,0 +1,21 @@ +diff -r -u srelay-0.4.6/get-bind.c srelay-0.4.6+iPhone/get-bind.c +--- srelay-0.4.6/get-bind.c 2003-04-10 02:53:17.000000000 +0000 ++++ srelay-0.4.6+iPhone/get-bind.c 2007-12-27 12:39:11.000000000 +0000 +@@ -34,7 +34,7 @@ + + #include "srelay.h" + +-#if defined(FREEBSD) || defined(SOLARIS) ++#if defined(FREEBSD) || defined(SOLARIS) || defined(__APPLE__) + #include <netinet/in.h> + #include <sys/ioctl.h> + #include <sys/sockio.h> +@@ -54,7 +54,7 @@ + static int get_ifconf(int, struct addrinfo *); + #endif /* defined(LINUX) */ + +-#if defined(FREEBSD) || defined(SOLARIS) ++#if defined(FREEBSD) || defined(SOLARIS) || defined(__APPLE__) + + #ifndef RTAX_DST + #define RTAX_DST 0 diff --git a/data/srelay/filio.diff b/data/srelay/filio.diff new file mode 100644 index 000000000..d973adf4e --- /dev/null +++ b/data/srelay/filio.diff @@ -0,0 +1,12 @@ +diff -r -u srelay-0.4.6/relay.c srelay-0.4.6+iPhone/relay.c +--- srelay-0.4.6/relay.c 2003-03-26 20:45:13.000000000 +0000 ++++ srelay-0.4.6+iPhone/relay.c 2007-12-27 12:35:26.000000000 +0000 +@@ -34,6 +34,8 @@ + + #include "srelay.h" + ++#include <sys/filio.h> ++ + #ifdef HAVE_LIBWRAP + # include <tcpd.h> + # ifdef LINUX diff --git a/data/srelay/make.sh b/data/srelay/make.sh new file mode 100644 index 000000000..accfe0144 --- /dev/null +++ b/data/srelay/make.sh @@ -0,0 +1,7 @@ +tar -zxvf "${PKG_DATA}/srelay-0.4.6.tar.gz" +cd srelay-0.4.6 +pkg:patch +autoconf +pkg:configure +make +pkg:usrbin srelay diff --git a/data/srelay/sigpoll.diff b/data/srelay/sigpoll.diff new file mode 100644 index 000000000..ee3fcc0ec --- /dev/null +++ b/data/srelay/sigpoll.diff @@ -0,0 +1,12 @@ +diff -r -u srelay-0.4.6/main.c srelay-0.4.6+iPhone/main.c +--- srelay-0.4.6/main.c 2003-03-26 20:45:12.000000000 +0000 ++++ srelay-0.4.6+iPhone/main.c 2007-12-27 12:37:47.000000000 +0000 +@@ -322,7 +322,7 @@ + setsignal(SIGTERM, cleanup); + setsignal(SIGUSR1, SIG_IGN); + setsignal(SIGUSR2, SIG_IGN); +-#ifndef FREEBSD ++#if !defined(FREEBSD) && !defined(__APPLE__) + setsignal(SIGPOLL, SIG_IGN); + #endif + setsignal(SIGVTALRM, SIG_IGN); diff --git a/data/srelay/srelay-0.4.6.tar.gz b/data/srelay/srelay-0.4.6.tar.gz Binary files differnew file mode 100644 index 000000000..8b6d64c1c --- /dev/null +++ b/data/srelay/srelay-0.4.6.tar.gz diff --git a/data/srelay/thread.diff b/data/srelay/thread.diff new file mode 100644 index 000000000..64184df47 --- /dev/null +++ b/data/srelay/thread.diff @@ -0,0 +1,28 @@ +Only in srelay-0.4.6+iPhone/: config.log +diff -r -u srelay-0.4.6/configure.in srelay-0.4.6+iPhone/configure.in +--- srelay-0.4.6/configure.in 2003-04-14 05:36:15.000000000 +0000 ++++ srelay-0.4.6+iPhone/configure.in 2007-12-27 12:32:59.000000000 +0000 +@@ -143,22 +143,7 @@ + elif test "$OS" = "SOLARIS"; then + LDFLAGS="$LDFLAGS -lpthread" + fi +- AC_TRY_RUN( +-[#include <pthread.h> +-void +-init_routine() +-{ +- return(0); +-} +-main() +-{ +- pthread_once_t once_control = PTHREAD_ONCE_INIT; +- pthread_once(&once_control, &init_routine); +- return(0); +-}], +- AC_DEFINE(USE_THREAD) AC_MSG_RESULT([yes]), +- CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"; AC_MSG_RESULT([no]) +- ) ++ AC_DEFINE(USE_THREAD) AC_MSG_RESULT([yes]) + fi + fi + |