From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F3D17138330 for ; Mon, 5 Sep 2016 07:46:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08016E09FC; Mon, 5 Sep 2016 07:46:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70F37E09FF for ; Mon, 5 Sep 2016 07:46:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 40388340834 for ; Mon, 5 Sep 2016 07:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 104DE246F for ; Mon, 5 Sep 2016 07:46:16 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1473061468.fdd013bd721d8997ea9dabe24d376f3417b805a4.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/shadowsocks-libev/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-proxy/shadowsocks-libev/Manifest net-proxy/shadowsocks-libev/metadata.xml net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.0.ebuild X-VCS-Directories: net-proxy/shadowsocks-libev/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: fdd013bd721d8997ea9dabe24d376f3417b805a4 X-VCS-Branch: master Date: Mon, 5 Sep 2016 07:46:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bd7b3702-5ab0-4a40-82ae-dbb9c927a646 X-Archives-Hash: 592ba1fea50869789becf34e9b557ee9 commit: fdd013bd721d8997ea9dabe24d376f3417b805a4 Author: Yixun Lan gentoo org> AuthorDate: Mon Sep 5 07:32:32 2016 +0000 Commit: Yixun Lan gentoo org> CommitDate: Mon Sep 5 07:44:28 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdd013bd net-proxy/shadowsocks-libev: version bump Gentoo-Bug: 592652 Package-Manager: portage-2.3.0 net-proxy/shadowsocks-libev/Manifest | 1 + net-proxy/shadowsocks-libev/metadata.xml | 3 +- .../shadowsocks-libev-2.5.0.ebuild | 72 ++++++++++++++++++++++ 3 files changed, 75 insertions(+), 1 deletion(-) diff --git a/net-proxy/shadowsocks-libev/Manifest b/net-proxy/shadowsocks-libev/Manifest index 1166b72..0d5de30 100644 --- a/net-proxy/shadowsocks-libev/Manifest +++ b/net-proxy/shadowsocks-libev/Manifest @@ -1,3 +1,4 @@ DIST shadowsocks-libev-2.4.3.tar.gz 1461896 SHA256 5de76361a6b34385bf9ad255a69089a886f657d44c7e338a5dc191273e1cf9f3 SHA512 3dfa528fa01e7e9293a31cb55529cb77fc935e04ad9f2e27b5426eff61df27a8a31d1e98efd0fb07b2a2bcb5da00706d142448adbc51dcc15f2d3c6993736787 WHIRLPOOL 10819f54cc2aad5604e62fd4e4783597ff89b6753056a2961652384f175c65eb667fa0e42d097fbf25b9243714adf0f91d33dc0b5a71957adb82edee72209fc5 DIST shadowsocks-libev-2.4.5.tar.gz 1476944 SHA256 08bf7f240ee39fa700aac636ca84b65f2f0cfbcfa63a0783afb05872940067e2 SHA512 9405db0850bea43bf734bda599cdbff736ab9b86fd137e447a8191919a2ebbb19a19566a64903c1bad84708ab4e77ff8615c4d10aff30cd1413724ffa55c1cdb WHIRLPOOL eb06ed15e476a1324c20b9b08c20030ceccdd07446e4b83750468d0681920574766462eb7b2c4db4cc38885e034bcc21e8707cb4db2d939574ee227b9cd8a6d2 DIST shadowsocks-libev-2.4.7.tar.gz 1485472 SHA256 957265cc5339e020d8c8bb7414ab14936e3939dc7355f334aec896ec9b03c6ed SHA512 d89d4b12de9c70b5450c75ed005e590cf93e13a1e16e3e084dea378b99b0e4e7e3fa8f3339718fba14a39089e5e8a8f5f4d1ae9c8165dbe69fc9bb54d12b3964 WHIRLPOOL 2c5df635ec18040b70c0e4746d059d8fb59ec561d2640f62c987172dea95505a282dc7dcad8a88cfd8ce03a3635e3072dcab1893849353f040dc9518948d5321 +DIST shadowsocks-libev-2.5.0.tar.gz 1497070 SHA256 6841e0efa1c01caef5a827f463ee304dc9e48fb4751cc9256316df5ab4490ae0 SHA512 860db03630a927c4c5e3d1e0525a9209d1d5e7fc43f5260559f90aa5919b99a34eb16736534cd4b308b00c87805ddfbbc7e12d0561deb6ddc60b775f4d8f842a WHIRLPOOL abc5822395612326be7ad1453576a10373894d6d81391b61fc83e9ef50290d47f7e829d48158a07952face327bd8276ca1615a1d069fc6aff96a95d1766210e4 diff --git a/net-proxy/shadowsocks-libev/metadata.xml b/net-proxy/shadowsocks-libev/metadata.xml index bb9595d..3c59764 100644 --- a/net-proxy/shadowsocks-libev/metadata.xml +++ b/net-proxy/shadowsocks-libev/metadata.xml @@ -9,7 +9,8 @@ Use dev-libs/openssl as crypto backend - Use net-libs/polarssl as crypto backend + Use net-libs/polarssl as crypto backend + Use net-libs/mbedtls as crypto backend Use system libraries instead of the ones included in the upstream distribution diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.0.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.0.ebuild new file mode 100644 index 00000000..051af43 --- /dev/null +++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-2.5.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils systemd + +DESCRIPTION="A lightweight secured SOCKS5 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 doc +openssl mbedtls +system-libs" + +RDEPEND="openssl? ( dev-libs/openssl:= ) + mbedtls? ( net-libs/mbedtls ) + system-libs? ( + dev-libs/libsodium + dev-libs/libev + net-libs/udns + ) + " +DEPEND="${RDEPEND} + sys-kernel/linux-headers + doc? ( + app-text/asciidoc + app-text/xmlto + ) + " + +REQUIRED_USE=" ^^ ( openssl mbedtls )" + +src_configure() { + econf \ + $(use_enable debug assert) \ + $(use_enable doc documentation) \ + $(use_enable system-libs system-shared-lib) \ + --with-crypto-library=$(usex openssl openssl mbedtls) +} + +src_install() { + default + prune_libtool_files --all + + dodir "/etc/${PN}" + insinto "/etc/${PN}" + 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 + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.redir + dosym /etc/init.d/shadowsocks /etc/init.d/shadowsocks.tunnel + + systemd_newunit "${FILESDIR}/${PN}-local_at.service" "${PN}-local@.service" + systemd_newunit "${FILESDIR}/${PN}-server_at.service" "${PN}-server@.service" + systemd_newunit "${FILESDIR}/${PN}-redir_at.service" "${PN}-redir@.service" + systemd_newunit "${FILESDIR}/${PN}-tunnel_at.service" "${PN}-tunnel@.service" +} + +pkg_setup() { + elog "You need to choose the mode" + elog " server: rc-update add shadowsocks.server default" + elog " client: rc-update add shadowsocks.client default" + elog " redir: rc-update add shadowsocks.redir default" + elog " tunnel: rc-update add shadowsocks.tunnel default" +}