OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 24-Jul-2005 10:23:08
Branch: HEAD Handle: 2005072409230800
Added files:
openpkg-src/tsocks tsocks.conf tsocks.patch tsocks.spec
Log:
new package: tsocks 1.8b5 (Transparent SOCKS Client Library)
Summary:
Revision Changes Path
1.1 +15 -0 openpkg-src/tsocks/tsocks.conf
1.1 +41 -0 openpkg-src/tsocks/tsocks.patch
1.1 +105 -0 openpkg-src/tsocks/tsocks.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/tsocks/tsocks.conf
============================================================================
$ cvs diff -u -r0 -r1.1 tsocks.conf
--- /dev/null 2005-07-24 10:23:05 +0200
+++ tsocks.conf 2005-07-24 10:23:08 +0200
@@ -0,0 +1,15 @@
+##
+## tsocks.conf -- Transparent SOCKS Client Configuration
+##
+
+# local networks
+local = 127.0.0.0/255.0.0.0
+local = 192.168.0.0/255.255.255.0
+local = 172.16.0.0/255.240.0.0
+local = 10.0.0.0/255.0.0.0
+
+# SOCKS proxy server
+server = 127.0.0.1
+server_port = 1080
+server_type = 5
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/tsocks/tsocks.patch
============================================================================
$ cvs diff -u -r0 -r1.1 tsocks.patch
--- /dev/null 2005-07-24 10:23:05 +0200
+++ tsocks.patch 2005-07-24 10:23:08 +0200
@@ -0,0 +1,41 @@
+Index: configure
+--- configure.orig 2005-07-24 10:01:44 +0200
++++ configure 2005-07-24 10:03:11 +0200
+@@ -2151,6 +2151,7 @@
+ #line 2152 "configure"
+ #include "confdefs.h"
+
++ #include <sys/types.h>
+ #include <sys/socket.h>
+ int connect($testproto);
+
+@@ -2227,14 +2228,16 @@
+
+ echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
+ echo "configure:2230: checking for correct poll prototype" >&5
+-PROTO=
+-for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout'
++PROTO1="struct pollfd ufds[], nfds_t nfds, int timeout"
++PROTO2="struct pollfd *ufds, unsigned int nfds, int timeout"
++for PROTO in "$PROTO1" "$PROTO2"
+ do
+ if test "${PROTO}" = ""; then
+ cat > conftest.$ac_ext <<EOF
+ #line 2236 "configure"
+ #include "confdefs.h"
+
++ #include <sys/types.h>
+ #include <sys/poll.h>
+ int poll($testproto);
+
+Index: parser.c
+--- parser.c.orig 2002-03-13 13:34:22 +0100
++++ parser.c 2005-07-24 10:04:24 +0200
+@@ -4,6 +4,7 @@
+
+ */
+
++#include <sys/types.h>
+ #include <netinet/in.h>
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/tsocks/tsocks.spec
============================================================================
$ cvs diff -u -r0 -r1.1 tsocks.spec
--- /dev/null 2005-07-24 10:23:05 +0200
+++ tsocks.spec 2005-07-24 10:23:08 +0200
@@ -0,0 +1,105 @@
+##
+## tsocks.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## 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.
+##
+
+# package versions
+%define V_base 1.8
+%define V_opkg 1.8b5
+%define V_dist 1.8beta5
+
+# package information
+Name: tsocks
+Summary: Transparent SOCKS Client Library
+URL: http://tsocks.sourceforge.net/
+Vendor: Shaun Clowes
+Packager: OpenPKG
+Distribution: OpenPKG
+Class: EVAL
+Group: Network
+License: LGPL
+Version: %{V_opkg}
+Release: 20050724
+
+# list of sources
+Source0: http://ftp1.sourceforge.net/tsocks/tsocks-%{V_dist}.tar.gz
+Source1: tsocks.conf
+Patch0: tsocks.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
+PreReq: OpenPKG, openpkg >= 20040130
+AutoReq: no
+AutoReqProv: no
+
+%description
+ TSOCKS' role is to allow non-SOCKS aware applications (e.g telnet,
+ ssh, ftp etc) to use SOCKS without any modification. It does this by
+ intercepting the calls that applications make to establish network
+ connections and negotating them through a SOCKS server as necessary.
+
+%track
+ prog tsocks = {
+ version = %{version}
+ url = ftp://ftp.tsocks.org/pub/tsocks/
+ regex = tsocks-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q -n tsocks-%{V_base}
+ %patch -p0
+ %{l_shtool} subst \
+ -e 's;/usr/lib/libtsocks;%{l_prefix}/lib/tsocks/libtsocks;g' \
+ tsocks
+
+%build
+ if [ ! -f /lib/libdl.so ] && [ ! -f /usr/lib/libdl.so ]; then
+ %{l_shtool} subst -e 's;-ldl;-lc;' configure
+ fi
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --libdir=%{l_prefix}/lib/tsocks \
+ --with-conf=%{l_prefix}/etc/tsocks/tsocks.conf
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/tsocks
+ %{l_shtool} install -c -m 755 \
+ %{SOURCE tsocks.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/tsocks/
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/tsocks/tsocks.conf'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]