mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
torsocks: update to 2.2.0
This commit is contained in:
parent
651e183165
commit
0b8c4d02f9
2 changed files with 5 additions and 90 deletions
|
@ -1,84 +0,0 @@
|
||||||
diff -u -r torsocks-2.1.0.orig/src/common/compat.c torsocks-2.1.0/src/common/compat.c
|
|
||||||
--- torsocks-2.1.0.orig/src/common/compat.c 2015-12-06 19:44:47.251991190 +0100
|
|
||||||
+++ torsocks-2.1.0/src/common/compat.c 2015-12-06 19:44:58.871959984 +0100
|
|
||||||
@@ -19,8 +19,6 @@
|
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
|
|
||||||
-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
|
|
||||||
-
|
|
||||||
/*
|
|
||||||
* Initialize a pthread mutex. This never fails.
|
|
||||||
*/
|
|
||||||
@@ -95,5 +93,3 @@
|
|
||||||
}
|
|
||||||
tsocks_mutex_unlock(&o->mutex);
|
|
||||||
}
|
|
||||||
-
|
|
||||||
-#endif /* __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
|
|
||||||
diff -u -r torsocks-2.1.0.orig/src/common/compat.h torsocks-2.1.0/src/common/compat.h
|
|
||||||
--- torsocks-2.1.0.orig/src/common/compat.h 2015-12-06 19:44:47.251991190 +0100
|
|
||||||
+++ torsocks-2.1.0/src/common/compat.h 2015-12-06 19:44:51.538646345 +0100
|
|
||||||
@@ -22,8 +22,6 @@
|
|
||||||
#define __darwin__ 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
|
|
||||||
-
|
|
||||||
#define RTLD_NEXT ((void *) -1)
|
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
@@ -53,10 +51,6 @@
|
|
||||||
|
|
||||||
void tsocks_once(tsocks_once_t *o, void (*init_routine)(void));
|
|
||||||
|
|
||||||
-#else
|
|
||||||
-#error "OS not supported."
|
|
||||||
-#endif /* __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
|
|
||||||
-
|
|
||||||
#if defined(__linux__)
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/syscall.h>
|
|
||||||
diff -u -r torsocks-2.1.0.orig/src/common/ref.h torsocks-2.1.0/src/common/ref.h
|
|
||||||
--- torsocks-2.1.0.orig/src/common/ref.h 2015-12-06 19:44:47.251991190 +0100
|
|
||||||
+++ torsocks-2.1.0/src/common/ref.h 2015-12-06 19:44:51.538646345 +0100
|
|
||||||
@@ -26,8 +26,6 @@
|
|
||||||
long count;
|
|
||||||
};
|
|
||||||
|
|
||||||
-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
|
|
||||||
-
|
|
||||||
/*
|
|
||||||
* Get a reference by incrementing the refcount.
|
|
||||||
*/
|
|
||||||
@@ -55,8 +53,4 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-#else
|
|
||||||
-#error "OS not supported"
|
|
||||||
-#endif /* __GLIBC__, __FreeBSD__, __darwin__ */
|
|
||||||
-
|
|
||||||
#endif /* TORSOCKS_REF_H */
|
|
||||||
diff -u -r torsocks-2.1.0.orig/src/lib/torsocks.h torsocks-2.1.0/src/lib/torsocks.h
|
|
||||||
--- torsocks-2.1.0.orig/src/lib/torsocks.h 2015-12-06 19:44:47.251991190 +0100
|
|
||||||
+++ torsocks-2.1.0/src/lib/torsocks.h 2015-12-06 19:44:51.538646345 +0100
|
|
||||||
@@ -33,8 +33,6 @@
|
|
||||||
#define TSOCKS_DECL(name, type, sig) \
|
|
||||||
extern type tsocks_##name(sig);
|
|
||||||
|
|
||||||
-#if (defined(__GLIBC__) || defined(__FreeBSD__) || defined(__darwin__) || defined(__NetBSD__))
|
|
||||||
-
|
|
||||||
/* connect(2) */
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
|
||||||
@@ -205,9 +203,6 @@
|
|
||||||
int sockfd, int backlog
|
|
||||||
#define LIBC_LISTEN_ARGS sockfd, backlog
|
|
||||||
|
|
||||||
-#else
|
|
||||||
-#error "OS not supported."
|
|
||||||
-#endif /* __GLIBC__ , __FreeBSD__, __darwin__, __NetBSD__ */
|
|
||||||
|
|
||||||
#if (defined(__linux__))
|
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
# Template file for 'torsocks'
|
# Template file for 'torsocks'
|
||||||
pkgname=torsocks
|
pkgname=torsocks
|
||||||
version=2.1.0
|
version=2.2.0
|
||||||
revision=2
|
revision=1
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --prefix=/usr"
|
configure_args="--disable-static"
|
||||||
conf_files="/etc/tor/torsocks.conf"
|
conf_files="/etc/tor/torsocks.conf"
|
||||||
short_desc="A transparent socks proxy for use with tor"
|
short_desc="A transparent socks proxy for use with tor"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-3"
|
license="GPL-2"
|
||||||
homepage="https://gitweb.torproject.org/torsocks.git"
|
homepage="https://gitweb.torproject.org/torsocks.git"
|
||||||
distfiles="https://github.com/dgoulet/${pkgname}/archive/v${version}.tar.gz"
|
distfiles="https://github.com/dgoulet/${pkgname}/archive/v${version}.tar.gz"
|
||||||
checksum=a72c3ea757f5fe81d1ab91e0d5f0d83f195e235aae66d4df2f88a20db7028104
|
checksum=36216a1e30f47fa0e5be84761e0d72133196c8a042716017da56e9439338c87d
|
||||||
patch_args="-Np1"
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue