diff options
author | Yixun Lan <dlan@gentoo.org> | 2015-01-08 09:34:18 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2015-01-08 09:34:18 +0000 |
commit | acc649f102c1a8925f71cfab33e0c272df3a367d (patch) | |
tree | b4bf665b4287d20242757a4284d53b1c842b1a6d /net-proxy | |
parent | Build without automake-1.13 Bug #533964 (diff) | |
download | historical-acc649f102c1a8925f71cfab33e0c272df3a367d.tar.gz historical-acc649f102c1a8925f71cfab33e0c272df3a367d.tar.bz2 historical-acc649f102c1a8925f71cfab33e0c272df3a367d.zip |
initial version, borrow from gentoo-zh overlay, polished by me
Package-Manager: portage-2.2.15/cvs/Linux x86_64
Manifest-Sign-Key: 0xAABEFD55
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/shadowsocks-libev/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/shadowsocks-libev/Manifest | 26 | ||||
-rw-r--r-- | net-proxy/shadowsocks-libev/files/shadowsocks.initd | 52 | ||||
-rw-r--r-- | net-proxy/shadowsocks-libev/files/shadowsocks.json | 8 | ||||
-rw-r--r-- | net-proxy/shadowsocks-libev/metadata.xml | 14 | ||||
-rw-r--r-- | net-proxy/shadowsocks-libev/shadowsocks-libev-1.6.4.ebuild | 49 |
6 files changed, 159 insertions, 0 deletions
diff --git a/net-proxy/shadowsocks-libev/ChangeLog b/net-proxy/shadowsocks-libev/ChangeLog new file mode 100644 index 000000000000..2a3485746ac1 --- /dev/null +++ b/net-proxy/shadowsocks-libev/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-proxy/shadowsocks-libev +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/shadowsocks-libev/ChangeLog,v 1.1 2015/01/08 09:34:06 dlan Exp $ + +*shadowsocks-libev-1.6.4 (08 Jan 2015) + + 08 Jan 2015; Yixun Lan <dlan@gentoo.org> +shadowsocks-libev-1.6.4.ebuild, + +files/shadowsocks.initd, +files/shadowsocks.json, +metadata.xml: + initial version, borrow from gentoo-zh overlay, polished by me + diff --git a/net-proxy/shadowsocks-libev/Manifest b/net-proxy/shadowsocks-libev/Manifest new file mode 100644 index 000000000000..e4fef5bff23b --- /dev/null +++ b/net-proxy/shadowsocks-libev/Manifest @@ -0,0 +1,26 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX shadowsocks.initd 1206 SHA256 e26f1a44dd0e8321de97753149fcfe839a6b50157a3b1238d2bd2af4e05d8331 SHA512 2d1fb439adac429dd33db07e19f498bae77c2f46d7c023dfc3c4944d7e0cf02ce0d8655be477ae3db37daa8de5ea3aad5f3e3566c6a01991f54439aa6bdd1a69 WHIRLPOOL 4a0c46d6319cccc0b7d88c899af17b6e5b45b90bbcfe7ca69ef1cd746da505c0a3c75af0b9a13eb9b899debe472ac973d221c93a04ead4f9ee29923dd185baac +AUX shadowsocks.json 132 SHA256 a17bf075e7dda6e1440949598c0ab770df18e15f69a41624f9daead610ff9ea4 SHA512 6bc5c406bdb25123fd43e21784028dd331f729bc56fe7ac4d31e3b1d81d12048a6906db3fd79765a64fc7f8b651095695fd8cdcc60f6d3285231e94a90611cef WHIRLPOOL e09449b396d6bd7eec06b59783256249715e2c885a3bd3c51df5555f464f9a1c1278cae9208785639c60b14705e3daf40e29054fe20858b289185462aee601bf +DIST shadowsocks-libev-1.6.4.tar.gz 2404815 SHA256 517b92e69e371efac4a9ca76e78095e3e866149a484ec4c88589dd4a3bdbb7b7 SHA512 757ab76087d743e0590daf66e7d63beac1c5f7ef76b4e5ffd0df80867b978ec8b1b1aad391911e58fb2f1fded2c54c180fb93474790c9b7d84436d96a367d42f WHIRLPOOL 57c4858888a20a23bb17deb79f28477c62ae370778b9c992012ea37853a9c51a907e5ae093ca12d932d0daf05b68a11c7fb42de103c1e7fe2510b8f970e51fc4 +EBUILD shadowsocks-libev-1.6.4.ebuild 1350 SHA256 5e484b61fc3cfe97b830f250f7c36260da1bda62729a008264be443dc0b605de SHA512 5f5e196cdb0e9122b38b9b9248c099e67acf2316d95ab10db393095f2b97c6d302f03e1079cd620a0c268349c6b1f9ff2f9b09a3ec26365083f72fc12ff7b930 WHIRLPOOL e3df3e24570c6f1ed1d0bb26ad298a6399d16411a1de8bb52c3ac5fa72946986bc06edd5e00c8e334e3151b91c91b77e6416dad573c97637f63157f15e34352a +MISC ChangeLog 475 SHA256 f68d155bc30ba0c8b60af68858af849f199075aa32f91dcb357350603384debd SHA512 436eec8988681559820292041ab199107e4a88318d46b6d68797b8eaf6c820772059233ce1680175cd798fe8e6058ede81c622fed308cedbd566fa294a945180 WHIRLPOOL b3128e22d362f3e4033df262997196e7f0a18a8dad70d589c049c7c08683ac6f8e13eb5a66ded628b5d6bbecb69f8c4be4cf60aee8e06971c74fdf976f0f82e9 +MISC metadata.xml 456 SHA256 9803e2497a04d55f147c999acda6dd23a1436b9a0bae009f7474d264b115a404 SHA512 1850a7eda0a0c60bb7ffd3563ae1c3257d4951ca5fe567fc1db4a7226119aedbdec505069e0e447f2cbe9d1f66e8e866c7e606675b575aa756968d4711525c34 WHIRLPOOL 9e68caeec5aa3cc399b454ac4a6e31c7f930ced7863bf5663ee12916423ba294b8ec004e57d98b9eef73c4286bd9510f973f9b6c900a94e1b456f6471c4f0318 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCAAGBQJUrk8WAAoJEJIMDbyqvv1VGUYP/25yFI8QAnc+JH+7dHyGdjRC +dYuw+aFg4Z7OZo2AmGnf+TdsTu5UqBel5lMqGDhcqiluLW00LRWf2+PXCuYzCoez +AluP2McOuuk9PDGAZnkJeiTzefkBY8w4Rbr30An7Cmg/KiLUhzxfVxj5EE/LKTHJ +vm/za2YuHrV0ZR0xIpKL7LNAvI0W87mWiJ6m/TSPBb7cgDJ3KdLNI0LoKzFah0Wt +XPKpMu5Jc12tq9nlpGj8HavlclN5lkCgHbwzcdx2sEP7Fzr5MAUKAVif5LS1mRO/ +pVBegF4ZhAH7Y7AjCqxBNvwa348EOUamC4cnhrrs9kaBXfQ7Y2t/NeM8IBcV3qM8 +hd1ffp/CD1Kw1pSFLq8Cildf7iXUIy8H5O8tWHoMSycDkUFZrgxF2FqK/sqqja8c +BqaCll/qx6vS5CnoHnRT1SPiURGzG/aHmyZyV3HtFV1yAMQ23Oe82uwYlVYfJo74 +20DMEA6zSPsuIh7hTakMNCYzb/M+SqMYlaJsnyY41IPQd/iI/xGR83osc+/KFlG4 +ouV0+5JCZ74WeTTE485fpyeoYSY/5O0x5zj4IhwrbfNQDbXo0daaqRQFjni2VVxi +iYqkPFxjVAdqSq84+ZXyftgqGbznsvR8WvrZgVQP2UVxXaQHvX0HuAf8wkC1t6pQ +cGYjlHeA1hrgSaSiqkiN +=6gBe +-----END PGP SIGNATURE----- diff --git a/net-proxy/shadowsocks-libev/files/shadowsocks.initd b/net-proxy/shadowsocks-libev/files/shadowsocks.initd new file mode 100644 index 000000000000..9255641bbc69 --- /dev/null +++ b/net-proxy/shadowsocks-libev/files/shadowsocks.initd @@ -0,0 +1,52 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/shadowsocks-libev/files/shadowsocks.initd,v 1.1 2015/01/08 09:34:06 dlan Exp $ + +SS_CONFIG="/etc/shadowsocks.json" + +SS_PIDFILE="/run/shadowsocks.pid" + +depend() { + need net +} + +checkconfig() { + if [ ! -f ${SS_CONFIG} ]; then + ewarn "${SS_CONFIG} does not exist." + fi + + SS_SVCNAME="${RC_SVCNAME#*.}" + case ${SS_SVCNAME} in + client) + SS_COMMAND="/usr/bin/ss-local" + return 0 + ;; + server) + SS_COMMAND="/usr/bin/ss-server" + return 0 + ;; + *) + eerror "please choose to run as server or client mode" + eerror " server: rc-update add shadowsocks.server default" + eerror " client: rc-update add shadowsocks.client default" + return 1 + ;; + esac +} + +start() { + checkconfig || return 1 + + ebegin "Starting Shadowsocks: ${SS_SVCNAME} mode" + start-stop-daemon --start --exec ${SS_COMMAND} \ + -- -c ${SS_CONFIG} -f ${SS_PIDFILE} >/dev/null 2>&1 & + eend $? +} + +stop() { + ebegin "Stopping Shadowsocks" + start-stop-daemon --stop --pidfile ${SS_PIDFILE} + eend $? +} + diff --git a/net-proxy/shadowsocks-libev/files/shadowsocks.json b/net-proxy/shadowsocks-libev/files/shadowsocks.json new file mode 100644 index 000000000000..a29c3a59b0ef --- /dev/null +++ b/net-proxy/shadowsocks-libev/files/shadowsocks.json @@ -0,0 +1,8 @@ +{ + "server":"server ip", + "server_port":8388, + "local_port":1080, + "password":"password", + "timeout":600, + "method":"aes-256-cfb" +} diff --git a/net-proxy/shadowsocks-libev/metadata.xml b/net-proxy/shadowsocks-libev/metadata.xml new file mode 100644 index 000000000000..681ef81fb62d --- /dev/null +++ b/net-proxy/shadowsocks-libev/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>dlan@gentoo.org</email> + <name>Yixun Lan</name> + </maintainer> +<longdescription lang="en"> +</longdescription> + <use> + <flag name='openssl'>Use <pkg>dev-libs/openssl</pkg> as crypto backend</flag> + <flag name='polarssl'>Use <pkg>net-libs/polarssl</pkg> as crypto backend</flag> + </use> +</pkgmetadata> diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-1.6.4.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-1.6.4.ebuild new file mode 100644 index 000000000000..e77a06b6c9e1 --- /dev/null +++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-1.6.4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/shadowsocks-libev/shadowsocks-libev-1.6.4.ebuild,v 1.1 2015/01/08 09:34:06 dlan Exp $ + +EAPI=5 + +inherit eutils + +DESCRIPTION="A lightweight secured scoks5 proxy for embedded devices and low end boxes" +HOMEPAGE="https://github.com/shadowsocks/shadowsocks-libev" + +MY_PV="v${PV}" +SRC_URI="https://github.com/shadowsocks/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +openssl polarssl" + +DEPEND="openssl? ( dev-libs/openssl ) + polarssl? ( net-libs/polarssl ) + " +RDEPEND="${DEPEND}" + +REQUIRED_USE=" ^^ ( openssl polarssl )" + +src_configure() { + econf \ + $(use_enable debug assert) \ + --with-crypto-library=$(usex openssl openssl polarssl) +} + +src_install() { + default + prune_libtool_files --all + + insinto "/etc/" + newins "${FILESDIR}/shadowsocks.json" shadowsocks.json + + newinitd "${FILESDIR}/shadowsocks.initd" shadowsocks + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.server + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.client +} + +pkg_setup() { + elog "You need to choose to run as server or client mode" + elog " server: rc-update add shadowsocks.server default" + elog " client: rc-update add shadowsocks.client default" +} |