summaryrefslogtreecommitdiff
path: root/net-proxy/nylon
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/nylon')
-rw-r--r--net-proxy/nylon/Manifest8
-rw-r--r--net-proxy/nylon/files/nylon-1.21-libevent.patch63
-rw-r--r--net-proxy/nylon/files/nylon.conf37
-rw-r--r--net-proxy/nylon/files/nylon.init22
-rw-r--r--net-proxy/nylon/metadata.xml7
-rw-r--r--net-proxy/nylon/nylon-1.21-r2.ebuild35
6 files changed, 172 insertions, 0 deletions
diff --git a/net-proxy/nylon/Manifest b/net-proxy/nylon/Manifest
new file mode 100644
index 000000000000..cb565aac91a2
--- /dev/null
+++ b/net-proxy/nylon/Manifest
@@ -0,0 +1,8 @@
+AUX nylon-1.21-libevent.patch 1854 SHA256 ea71796bf182db5291f98d31c19b2e465584b58dbb350bf124f0e8ad907e59d3 SHA512 0a960cd2ef775b53358f9eabc39a73b43534b82ab84eb0cdc2491d69c9f1aa5a69321a84e91a9d759ab65c152b0f6e0a3e93ca4d16e25f3a637215aaccab5fb0 WHIRLPOOL ea9cdf708a8f9f78cb880ff1acfedf2003c416a8916ac1e26cf734ec5312da2c9e64dbb9b40f77d8b3f41c4efd299f6d1349fd8d6aa04d9d4ca9e92dd0134e16
+AUX nylon.conf 787 SHA256 ca2b077a749154a4c1a0301578b3f7944be7577ca2081fa610ff4b8eb0c93a38 SHA512 0f93db98c62e59c97946c70a568e83a4bd08ebed494313bc6062d44cb96298d04ee688089714458733e5fdc668910c80eec318aa765023d388046afe7039dcd8 WHIRLPOOL 32d262eae8e52d98cd7a7b47ac00008ca626c7ec989b5e38364e39551eaffac930ca8da57a5426b6194d9ffc36073b0fb7bafed802758b63a836d873f59ec1f5
+AUX nylon.init 402 SHA256 d9d8245e2f903ee880cba216704db4bf3758b39e457db7810b164e257bf0e5bf SHA512 37b7b1b974d09fc0bbe2df62d85517fd0a3ba7fc4942e7e74e6ab3eaf60a194ad8fb8ae0789e6aa32223ec4d834b4a98dd69c3473aaa9d6f0fd2ee03bb9e9ca5 WHIRLPOOL 696dd914d6dd57c015d2fb37e3521382c6ba1bb11d06155d08cb5b908104ea0ece78ce95639bf7f44257f46ca6f1e839539cbf8e8320f3521dc7c6bf64a26a1d
+DIST nylon-1.21.tar.gz 115954 SHA256 34c132b005c025c1a5079aae9210855c80f50dc51dde719298e1113ad73408a4 SHA512 7338ebf376843a49777bfc2c04dc0f9b14a25162efb008a555b6d74991bfbddbe5eb8fa6371c8c6a4dae9739f15d6d85135ba9d39472bc2646293a39777b5cfa WHIRLPOOL 50d223998e5f7992dbba17568839d1c6992dc4231d5855a904a93e0e076aea5bc0c57e550fc4f3cd3b72399da16f227342ad061f31e8e0dd626192154a5c8699
+EBUILD nylon-1.21-r2.ebuild 657 SHA256 bb32e6295143d08855199b017f0636625539c0063e4cbc4a9ab2b262d6d69912 SHA512 5aef47b5392470bfb93b859cdcadb74ac60347c45b2233355a35cfb1a70953ab6186dc78c69498fec0e74675828e58e31950e7f044cf0f39790f59ff5579c62e WHIRLPOOL 9ab78383f38a0300a24e337715a52b107080bd8732793f67d1b2e10c077bb765af4b45526013aa3f7a373db815e21005abb137ff17ab05a87a46923ec18eb4b2
+MISC ChangeLog 2992 SHA256 21f64577633f654a0e106a9e3f950b42ac58f83872aa97453043372562b25585 SHA512 af528e9cd007eb647d4f7d28b7783aca0103dee2589ac31f7aa40a3e77b3740be76e1433b13b37373d040e543e68a111d265d4e4dc8313bd4d37ad4496644dfa WHIRLPOOL dacad478a5befde87ced2e18ceb83f50fbde5d5704f1169bcdb7cf2de38bb37a4583d3fb95d8d03dc57af1a12495c762f445800ee7426cf4d4bf9f6de1db2c21
+MISC ChangeLog-2015 3519 SHA256 fb2878bff7dc6931c59d4d28276594c5dcb22d9ac8209658484004e366e53cda SHA512 9910111d40eb8df08e7f32cede62f2af06b199977b9c5902b3999930934acea3dbdbbb44529f57e59c48eb42b316330e6917c8c8a71bf71ef95c26f6d07e7302 WHIRLPOOL 76086fc169a088d45a693c7a046b538cf9d2eca431829df9c116e0a8e855eb1f8ce9d6e844476770a23654c9559466e7427d29d1c435c18f25d3c5db00ad6e87
+MISC metadata.xml 351 SHA256 a1b0d363a426ce1bbfadd5be65d860f3ef6a50f45453592c085ed6069d53604e SHA512 a0d51135d2e19f2435e49c7ed375926b19a468c03f6531552df0cd7e002893a8affb8812a43513dc747e302a0914bb23407561d4f1ce99bc14495511a282f733 WHIRLPOOL ece437b5a958b1ff98bb5cae11cfca1673cca7e17f105b4c28d156141e44334f5f3c1231df4822f62afd2c4f763b65cb1cb6cf37803ef00a8f05473ed916ef89
diff --git a/net-proxy/nylon/files/nylon-1.21-libevent.patch b/net-proxy/nylon/files/nylon-1.21-libevent.patch
new file mode 100644
index 000000000000..d7ca2a1ab0e9
--- /dev/null
+++ b/net-proxy/nylon/files/nylon-1.21-libevent.patch
@@ -0,0 +1,63 @@
+--- a/configure.in
++++ b/configure.in
+@@ -95,44 +95,10 @@
+ AC_REPLACE_FUNCS(strlcpy strlcat strsep setproctitle daemon)
+
+ dnl Checks for libevent
+-AC_MSG_CHECKING(for libevent)
+-AC_ARG_WITH(libevent,
+-[ --with-libevent=DIR use libevent in DIR],
+-[ case "$withval" in
+- yes|no)
+- AC_MSG_RESULT(no)
+- ;;
+- *)
+- AC_MSG_RESULT($withval)
+- if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then
+- owd=`pwd`
+- if cd $withval; then withval=`pwd`; cd $owd; fi
+- EVENTINC="-I$withval/include"
+- EVENTLIB="-L$withval/lib -levent"
+- elif test -f $withval/event.h -a -f $withval/libevent.a; then
+- owd=`pwd`
+- if cd $withval; then withval=`pwd`; cd $owd; fi
+- EVENTINC="-I$withval"
+- EVENTLIB="-L$withval -levent"
+- else
+- AC_ERROR(event.h or libevent.a not found in $withval)
+- fi
+- ;;
+- esac ],
+-[ if test -f ${prefix}/include/event.h -a -f ${prefix}/lib/libevent.a;
+-then
+- EVENTINC="-I${prefix}/include"
+- EVENTLIB="-L${prefix}/lib -levent"
+- elif test -f /usr/include/event.h; then
+- EVENTLIB="-levent"
+- else
+- AC_MSG_RESULT(no)
+- AC_ERROR(libevent not found)
+- fi
+- AC_MSG_RESULT(yes) ]
+-)
+-AC_SUBST(EVENTINC)
+-AC_SUBST(EVENTLIB)
++PKG_CHECK_MODULES(LIBEVENT,libevent,,)
++
++AC_SUBST(LIBEVENT_CFLAGS)
++AC_SUBST(LIBEVENT_LIBS)
+
+ if test "x${sysconfdir}" = 'x${prefix}/etc'; then
+ csysconfdir="${prefix}/etc"
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -5,7 +5,7 @@
+ nylon_SOURCES = nylon.c print.c cfg.c expanda.c net.c access.c atomicio.c \
+ socks4.c socks5.c mirror.c cleanup.c misc.c
+
+-AM_CFLAGS = @EVENTINC@ -Wall -g
+-LDADD = @EVENTLIB@ @LIBOBJS@
++AM_CFLAGS = @LIBEVENT_CFLAGS@
++LDADD = @LIBEVENT_LIBS@ @LIBOBJS@
+
+ EXTRA_DIST = strlcpy.c strlcat.c setproctitle.c strsep.c err.c daemon.c
diff --git a/net-proxy/nylon/files/nylon.conf b/net-proxy/nylon/files/nylon.conf
new file mode 100644
index 000000000000..80d11cc8806a
--- /dev/null
+++ b/net-proxy/nylon/files/nylon.conf
@@ -0,0 +1,37 @@
+# sample configuration
+# marius aamodt eriksen (marius@umich.edu)
+# $Id: nylon.conf,v 1.11 2002/03/27 07:39:53 beriksen Exp $
+# general settings
+[General]
+
+# number of simultaneous connections allowed
+No-Simultaneous-Conn=10
+
+# log connections and other information to syslog? 1: on, 0: off
+Log=1
+
+# be verbose on the console? 1: on, 0: off
+Verbose=0
+
+# store pid file
+#PIDfile=/var/run/nylon.pid
+
+# server settings
+[Server]
+
+# interface to listen to connections
+#Binding-Interface=fxp1
+
+# interface to bind outgoing connections to
+#Connecting-Interface=fxp0
+
+# listening port to bind to
+Port=1080
+
+# allowed is processed first, then deny
+
+# allowable connect ips/ranges
+#Allow-IP=141.0.0.0/8 127.0.0.1 10.0.0.0/24
+Allow-IP=127.0.0.1/32
+# denied connect ips/ranges
+#Deny-IP=10.0.0.0/24
diff --git a/net-proxy/nylon/files/nylon.init b/net-proxy/nylon/files/nylon.init
new file mode 100644
index 000000000000..7c58d3c9bc32
--- /dev/null
+++ b/net-proxy/nylon/files/nylon.init
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Nylon"
+ start-stop-daemon --start --quiet --pidfile /var/run/nylon.pid \
+ --startas /usr/bin/nylon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Nylon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/nylon.pid
+ eend $?
+}
+
+
diff --git a/net-proxy/nylon/metadata.xml b/net-proxy/nylon/metadata.xml
new file mode 100644
index 000000000000..5a6f202af08a
--- /dev/null
+++ b/net-proxy/nylon/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<longdescription>nylon is a proxy server, developed on OpenBSD. It supports SOCKS version 4 and 5,
+as well as a mirror mode so that services can be mirrored directly.</longdescription>
+</pkgmetadata>
diff --git a/net-proxy/nylon/nylon-1.21-r2.ebuild b/net-proxy/nylon/nylon-1.21-r2.ebuild
new file mode 100644
index 000000000000..ec11be51135c
--- /dev/null
+++ b/net-proxy/nylon/nylon-1.21-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="A lightweight SOCKS proxy server"
+HOMEPAGE="http://monkey.org/~marius/nylon/"
+SRC_URI="http://monkey.org/~marius/nylon/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/libevent-0.6"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS=( README THANKS )
+
+src_prepare() {
+ default
+
+ eapply "${FILESDIR}"/${P}-libevent.patch
+ eautoreconf
+}
+
+src_install() {
+ default
+ insinto /etc ; doins "${FILESDIR}/nylon.conf"
+ newinitd "${FILESDIR}/nylon.init" nylond
+}