Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/net
In directory vz-cvs-3.sog:/tmp/cvs-serv28483
Added Files:
dsocks.info dsocks.patch
Log Message:
sync. w/ 10.!4/stable, validated on powerpc-darwin8
--- NEW FILE: dsocks.info ---
Package: dsocks
Version: 1.6
Revision: 3
Source: http://monkey.org/~dugsong/dsocks/%n-%v.tar.gz
Source-MD5: 3879ecbdccedbee8fcb0713492274c02
BuildDepends: fink (>= 0.24.12)
Depends: %n-shlibs (= %v-%r)
PatchFile: %n.patch
PatchFile-MD5: d87323ec10e74b879f7ed92f25403390
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: bsdmake LIBDIR=%p/lib
InstallScript: <<
#!/bin/sh -ev
install -d -m 755 %i/lib
# "install -C" is not-portable _ and not needed here
install -m 644 -p libdsocks.a %i/lib
ranlib %i/lib/libdsocks.a
install -m 755 -p libdsocks.1.dylib %i/lib
true -x %i/lib/libdsocks.1.dylib
ln -fs libdsocks.1.dylib %i/lib/libdsocks.dylib
install -d -m 755 %i/bin
install -m 755 -p dsocks.sh %i/bin
install -m 755 -p dsocks-torify.sh %i/bin
<<
Description: SOCKS client wrapper for *BSD / MacOS X
DescDetail: <<
SOCKS client wrapper for *BSD / MacOS X. Only enough of SOCKS4, SOCKS5
supported to use the built-in OpenSSH or Tor local SOCKS proxy)
<<
SplitOff: <<
Package: %N-shlibs
Description: SOCKS client wrapper for *BSD / MacOS X (Shared libraries)
# The static lib shouldn't be in the shlibs splitoff (+ shlibs field...)
Files: lib/libdsocks.1.dylib
Shlibs: %p/lib/libdsocks.1.dylib 0.0.0 %n (>= 1.5-3)
DocFiles: LICENSE
<<
DocFiles: LICENSE README
DescPort: <<
bsdmake seems to call the first "sort" in $PATH, with a non-portable syntax..
Causes errors when eg coreutils-default is installed, but only the order
of the archive-members is affected. So, not worth a buildconflict.
<<
Maintainer: elcepi <[email protected]>
HomePage: http://monkey.org/~dugsong/dsocks/
License: GPL
--- NEW FILE: dsocks.patch ---
diff -urN dsocks-1.6/Makefile dsocks.patched/Makefile
--- dsocks-1.6/Makefile 2006-10-11 21:13:58.000000000 -0700
+++ dsocks.patched/Makefile 2010-08-13 18:45:29.000000000 -0700
@@ -7,13 +7,13 @@
SRCS = dsocks.c atomicio.c
NOPROFILE = yes
-LIBDIR = /usr/local/lib
+LIBDIR = @PREFIX@/lib
.if ${unix} == "We run Darwin, not UNIX."
-OSXFLAGS = -nostdlib -flat_namespace -fno-common -undefined suppress
+OSXFLAGS = -flat_namespace -fno-common -undefined suppress
CFLAGS += $(OSXFLAGS)
# XXX - hack around missing LDFLAGS in bsd.lib.mk target
-LDADD = $(OSXFLAGS)
+LDADD = $(OSXFLAGS) -install_name $(LIBDIR)/libdsocks.1.dylib
SHLIB_MAJOR = 1
.endif
diff -urN dsocks-1.6/dsocks-torify.sh dsocks.patched/dsocks-torify.sh
--- dsocks-1.6/dsocks-torify.sh 2006-10-11 21:13:58.000000000 -0700
+++ dsocks.patched/dsocks-torify.sh 2010-08-13 18:46:42.000000000 -0700
@@ -7,8 +7,9 @@
# you probably want to run tor-dns-proxy.py also...
# for MacOS X...
-#LIBDSOCKS=/usr/local/lib/libdsocks.dylib
-#DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"
+LIBDSOCKS=@PREFIX@/lib/libdsocks.1.dylib
+DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"
-LIBDSOCKS=/usr/local/lib/libdsocks.so.1.0
-LD_PRELOAD=$LIBDSOCKS exec "$@"
+# for BSD
+#LIBDSOCKS=/usr/local/lib/libdsocks.so.1.0
+#LD_PRELOAD=$LIBDSOCKS exec "$@"
diff -urN dsocks-1.6/dsocks.sh dsocks.patched/dsocks.sh
--- dsocks-1.6/dsocks.sh 2006-10-11 21:13:58.000000000 -0700
+++ dsocks.patched/dsocks.sh 2010-08-13 18:47:03.000000000 -0700
@@ -8,8 +8,9 @@
#export LOCALDOMAIN="int.example.com"
# for MacOS X...
-#LIBDSOCKS=/usr/local/lib/libdsocks.dylib
-#DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"
+LIBDSOCKS==@PREFIX@/lib/libdsocks.1.dylib
+DYLD_INSERT_LIBRARIES=$LIBDSOCKS DYLD_FORCE_FLAT_NAMESPACE=1 exec "$@"
-LIBDSOCKS=/usr/local/lib/libdsocks.so.1.0
-LD_PRELOAD=$LIBDSOCKS exec "$@"
+# for BSD
+#LIBDSOCKS=/usr/local/lib/libdsocks.so.1.0
+#LD_PRELOAD=$LIBDSOCKS exec "$@"
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs