summaryrefslogtreecommitdiff
path: root/net/sniproxy
diff options
context:
space:
mode:
authorwiedi <wiedi>2017-05-09 14:17:07 +0000
committerwiedi <wiedi>2017-05-09 14:17:07 +0000
commit41b469622d5e550bde097defba1a4a7adef4369d (patch)
tree583c39cf103e9666ccb8d4fb7e6e509116b6012b /net/sniproxy
parent5caa077838fd89bed092eca3ade67ed5c6cd9094 (diff)
downloadpkgsrc-41b469622d5e550bde097defba1a4a7adef4369d.tar.gz
Update sniproxy to 0.5.0
2017-04-26 Dustin Lundquist <dustin@null-ptr.net> 0.5.0 Release * Transparent proxy support * Use accept4() on Linix * Run as group specified in config
Diffstat (limited to 'net/sniproxy')
-rw-r--r--net/sniproxy/Makefile4
-rw-r--r--net/sniproxy/distinfo11
-rw-r--r--net/sniproxy/patches/patch-src_connection.c16
3 files changed, 24 insertions, 7 deletions
diff --git a/net/sniproxy/Makefile b/net/sniproxy/Makefile
index 17ebec90b62..b39b7a5f0ae 100644
--- a/net/sniproxy/Makefile
+++ b/net/sniproxy/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2015/06/04 22:14:22 wiedi Exp $
+# $NetBSD: Makefile,v 1.5 2017/05/09 14:17:07 wiedi Exp $
-DISTNAME= 0.4.0
+DISTNAME= 0.5.0
PKGNAME= sniproxy-${DISTNAME}
CATEGORIES= net
MASTER_SITES= https://github.com/dlundquist/sniproxy/archive/
diff --git a/net/sniproxy/distinfo b/net/sniproxy/distinfo
index 4fba1ac0a1d..b0f2fdb64d3 100644
--- a/net/sniproxy/distinfo
+++ b/net/sniproxy/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2015/11/04 00:35:37 agc Exp $
+$NetBSD: distinfo,v 1.5 2017/05/09 14:17:07 wiedi Exp $
-SHA1 (0.4.0.tar.gz) = 92c9010106dff3fb899d8f44ccd16cfb61920870
-RMD160 (0.4.0.tar.gz) = e8f8cb7765eaa2f10279a9090718c3e3d801620a
-SHA512 (0.4.0.tar.gz) = a8f165a87fe0a9564e918d54237b7bb8ef5b5b6ced7d20ca2b52d46afd994925c007ebb955d7a9b2e4b35ece9c88ed585a5bf7c12fdbfd018c002ada9ca8421c
-Size (0.4.0.tar.gz) = 70186 bytes
+SHA1 (0.5.0.tar.gz) = 181d2ce430bac34fbdf691870d089ef0ae92340a
+RMD160 (0.5.0.tar.gz) = 27b10d8ffdbf960b91a319c36246a12609f0cf88
+SHA512 (0.5.0.tar.gz) = 52dbb217193d2b7bf9dea37b13fde395b5c56d0a6627508a245f2807920deb282aae3c1ae7e6b5fa68432990e48998989fd28027b65cb7310f214b29f98e5e5d
+Size (0.5.0.tar.gz) = 72654 bytes
+SHA1 (patch-src_connection.c) = 062fa7fc8f023cc9a4a57e15deaaec13d0547f6f
diff --git a/net/sniproxy/patches/patch-src_connection.c b/net/sniproxy/patches/patch-src_connection.c
new file mode 100644
index 00000000000..c50134f2cc6
--- /dev/null
+++ b/net/sniproxy/patches/patch-src_connection.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_connection.c,v 1.3 2017/05/09 14:17:07 wiedi Exp $
+
+accept4 needs SOCK_NONBLOCK as flag
+upstream commit: https://github.com/dlundquist/sniproxy/commit/ce0ab17aa7bd709c34dee8fd235f35321a3ada91
+
+--- src/connection.c.orig 2017-04-26 14:22:08.000000000 +0000
++++ src/connection.c
+@@ -111,7 +111,7 @@ accept_connection(struct Listener *liste
+ int sockfd = accept4(listener->watcher.fd,
+ (struct sockaddr *)&con->client.addr,
+ &con->client.addr_len,
+- O_NONBLOCK);
++ SOCK_NONBLOCK);
+ #else
+ int sockfd = accept(listener->watcher.fd,
+ (struct sockaddr *)&con->client.addr,