Torsocks allows you to use most socks-friendly applications in a safe
way with Tor. It ensures that DNS requests are handled safely and explicitly rejects UDP traffic from the application you're using. ok benoit@
This commit is contained in:
parent
5a04aafc13
commit
5fa8c0b38c
36
net/torsocks/Makefile
Normal file
36
net/torsocks/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
|
||||
COMMENT = socks proxy for use with tor
|
||||
|
||||
DISTNAME = torsocks-1.2
|
||||
|
||||
SHARED_LIBS = torsocks 0.0 # 1.0
|
||||
|
||||
CATEGORIES = net
|
||||
|
||||
HOMEPAGE = http://code.google.com/p/torsocks
|
||||
|
||||
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://torsocks.googlecode.com/files/
|
||||
|
||||
RUN_DEPENDS = net/tor
|
||||
|
||||
FAKE_FLAGS = CONFDIR=${PREFIX}/share/examples/torsocks
|
||||
|
||||
USE_LIBTOOL = Yes
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/src/torsocks.in
|
||||
|
||||
.include <bsd.port.mk>
|
5
net/torsocks/distinfo
Normal file
5
net/torsocks/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (torsocks-1.2.tar.gz) = m9yHhpUefuxpFUM/Mk8ipA==
|
||||
RMD160 (torsocks-1.2.tar.gz) = 60sWgzxfeglCTXrLmZPG3QT4qNA=
|
||||
SHA1 (torsocks-1.2.tar.gz) = uK/rIX2ymYkqYo4o8jJ6HSaX+a0=
|
||||
SHA256 (torsocks-1.2.tar.gz) = vqV9NiTXI3JP0eJg8Oayo1TA2nQsAjqplMdpInDREdQ=
|
||||
SIZE (torsocks-1.2.tar.gz) = 456453
|
11
net/torsocks/patches/patch-configure
Normal file
11
net/torsocks/patches/patch-configure
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
--- configure.orig Mon Oct 24 22:23:40 2011
|
||||
+++ configure Sun Oct 30 17:07:11 2011
|
||||
@@ -4827,7 +4827,6 @@ fi
|
||||
fi
|
||||
|
||||
|
||||
-$as_echo "#define SUPPORT_RES_API /**/" >>confdefs.h
|
||||
|
||||
|
||||
|
12
net/torsocks/patches/patch-doc_Makefile_in
Normal file
12
net/torsocks/patches/patch-doc_Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
--- doc/Makefile.in.orig Tue Nov 8 14:46:24 2011
|
||||
+++ doc/Makefile.in Tue Nov 8 14:46:38 2011
|
||||
@@ -517,7 +517,7 @@ info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
-install-data-am: install-dist_confDATA install-dist_dataDATA \
|
||||
+install-data-am: install-dist_confDATA \
|
||||
install-man
|
||||
|
||||
install-dvi: install-dvi-am
|
14
net/torsocks/patches/patch-src_common_c
Normal file
14
net/torsocks/patches/patch-src_common_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_common_c,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
--- src/common.c.orig Sun Oct 23 19:17:30 2011
|
||||
+++ src/common.c Sun Oct 30 17:07:11 2011
|
||||
@@ -39,9 +39,9 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/types.h>
|
||||
-#include <netinet/in.h>
|
||||
|
||||
#include "common.h"
|
||||
|
12
net/torsocks/patches/patch-src_torsocks_in
Normal file
12
net/torsocks/patches/patch-src_torsocks_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_torsocks_in,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
--- src/torsocks.in.orig Tue Nov 29 11:58:05 2011
|
||||
+++ src/torsocks.in Tue Nov 29 11:58:20 2011
|
||||
@@ -76,7 +76,7 @@ fi
|
||||
LIBDIR="@prefix@/lib/torsocks"
|
||||
LIB_NAME="libtorsocks"
|
||||
SHLIB_EXT="@SHLIB_EXT@"
|
||||
-SHLIB="${LIBDIR}/${LIB_NAME}.${SHLIB_EXT}"
|
||||
+SHLIB="${LIBDIR}/${LIB_NAME}.${SHLIB_EXT}.${LIBtorsocks_VERSION}"
|
||||
|
||||
# Ensure libtorsocks exists,
|
||||
if [ ! -f $SHLIB ]; then
|
12
net/torsocks/patches/patch-test_Makefile_in
Normal file
12
net/torsocks/patches/patch-test_Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-test_Makefile_in,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
--- test/Makefile.in.orig Tue Nov 8 14:53:21 2011
|
||||
+++ test/Makefile.in Tue Nov 8 14:53:31 2011
|
||||
@@ -458,7 +458,7 @@ info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
-install-data-am: install-dist_dataDATA
|
||||
+install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
3
net/torsocks/pkg/DESCR
Normal file
3
net/torsocks/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
Torsocks allows you to use most socks-friendly applications in a safe
|
||||
way with Tor. It ensures that DNS requests are handled safely and
|
||||
explicitly rejects UDP traffic from the application you're using.
|
2
net/torsocks/pkg/PFRAG.shared
Normal file
2
net/torsocks/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
@lib lib/torsocks/libtorsocks.so.${LIBtorsocks_VERSION}
|
14
net/torsocks/pkg/PLIST
Normal file
14
net/torsocks/pkg/PLIST
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/12/01 11:49:27 pascal Exp $
|
||||
%%SHARED%%
|
||||
bin/torsocks
|
||||
bin/usewithtor
|
||||
lib/torsocks/
|
||||
lib/torsocks/libtorsocks.a
|
||||
lib/torsocks/libtorsocks.la
|
||||
@man man/man1/torsocks.1
|
||||
@man man/man1/usewithtor.1
|
||||
@man man/man5/torsocks.conf.5
|
||||
@man man/man8/torsocks.8
|
||||
share/examples/torsocks/
|
||||
share/examples/torsocks/torsocks.conf
|
||||
@sample ${SYSCONFDIR}/torsocks.conf
|
Loading…
Reference in New Issue
Block a user