SPECS: tsocks.spec (NEW) - new

radek radek at pld-linux.org
Mon Nov 14 14:24:26 CET 2005


Author: radek                        Date: Mon Nov 14 13:24:26 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   tsocks.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/tsocks.spec
diff -u /dev/null SPECS/tsocks.spec:1.1
--- /dev/null	Mon Nov 14 14:24:26 2005
+++ SPECS/tsocks.spec	Mon Nov 14 14:24:21 2005
@@ -0,0 +1,89 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	tests		# build with tests
+#
+Summary:	tsocks - Provide transparent SOCKS support
+#Summary(pl):	
+Name:		tsocks
+Version:	1.8
+%define	_beta	beta5
+Release:	0.%{_beta}.1
+License:	GPL v2
+Group:		Applications
+Source0:	http://ftp1.sourceforge.net/tsocks/%{name}-%{version}%{_beta}.tar.gz
+# Source0-md5:	51caefd77e5d440d0bbd6443db4fc0f8
+URL:		http://tsocks.sourceforge.net/
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+tsocks provides transparent network access through a SOCKS proxy. This
+is common in firewalled LAN environments where all connections to the
+internet need to pass through a SOCKS server on the firewall.  tsocks
+intercepts the calls applications make to create tcp connections and
+determines if they can be directly accessed or need the SOCKS server.
+If they need the SOCKS server they connection is negotiated with the
+server transparently to the application. This allows existing applications
+to use SOCKS without recompilation or modification. tsocks is a wrapper
+library for a number of socket networking functions.  Essentially it's
+the equivalent of the socksified winsock.dll libraries that are available
+for Windows.
+
+#%%description -l pl
+#TODO
+
+%prep
+%setup -q
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+cp -f /usr/share/automake/config.sub .
+%configure
+
+%{__make} \
+	CFLAGS="%{rpmcflags}" \
+	LIBS= \
+	SAVE=
+# empty SAVE= above is a trick: I don't see a point in building
+# /usr/bin/saveme; besides, it implies BR: glibc-static
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
+
+%{__make} install \
+	SAVE= \
+	DESTDIR=$RPM_BUILD_ROOT
+
+touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
+cp *.example $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog FAQ TODO
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(755,root,root) %{_libdir}/*.so.*
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man?/*
+%{_examplesdir}/%{name}-%{version}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/11/14 13:24:21  radek
+- new
+
================================================================



More information about the pld-cvs-commit mailing list