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 AE8AA138359 for ; Sun, 27 Sep 2020 08:49:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1E02E0819; Sun, 27 Sep 2020 08:49:16 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 92F33E0819 for ; Sun, 27 Sep 2020 08:49:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73527340C69 for ; Sun, 27 Sep 2020 08:49:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1DF8B37B for ; Sun, 27 Sep 2020 08:49:14 +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: <1601196545.116fe80ef9a6cd263ce99bc1ee953f9f3e7519cf.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/shadowsocks-libev-3.3.5.ebuild X-VCS-Directories: net-proxy/shadowsocks-libev/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 116fe80ef9a6cd263ce99bc1ee953f9f3e7519cf X-VCS-Branch: master Date: Sun, 27 Sep 2020 08:49:14 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7c5a0555-f423-4d8d-8fa3-939acc6fa729 X-Archives-Hash: 4047242aac76da92679323aefb07a65a commit: 116fe80ef9a6cd263ce99bc1ee953f9f3e7519cf Author: Yixun Lan gentoo org> AuthorDate: Sun Sep 27 08:44:49 2020 +0000 Commit: Yixun Lan gentoo org> CommitDate: Sun Sep 27 08:49:05 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116fe80e net-proxy/shadowsocks-libev: version bump, 3.3.5 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Yixun Lan gentoo.org> net-proxy/shadowsocks-libev/Manifest | 1 + .../shadowsocks-libev-3.3.5.ebuild | 82 ++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/net-proxy/shadowsocks-libev/Manifest b/net-proxy/shadowsocks-libev/Manifest index d12e7601a42..7d41f1878af 100644 --- a/net-proxy/shadowsocks-libev/Manifest +++ b/net-proxy/shadowsocks-libev/Manifest @@ -1 +1,2 @@ DIST shadowsocks-libev-3.3.4.tar.gz 279666 BLAKE2B ea698a3cf29ed0b1268d17e25a492712cb90f515068de2f74d200ab04bb0d5ca859ea1d7f071714cc1c8dced0e566df4bfea0d780e24c9398f93ab1e362ec466 SHA512 4fb9e4a62f86f1504aab71022b5078a1f97b1f14da82c7b456dc9eaed23be990430769f37b7c2855c266be40ec215237bb0a40d254dffac8556ec4719cc9aa6d +DIST shadowsocks-libev-3.3.5.tar.gz 303368 BLAKE2B bb7d6e64596710402db94085044c20315028395723828fa82dfba419bc41a0c740ece1f79c6cf05dda395d9442d553429f66d7f7b2de3cdd188d5b6adb0b8edf SHA512 c0cc869b4b7661ebd348bd5559c6a17c44b66a5f42374d97023adcfb525d934da3ed96245ff792ebc74870d30dd8f71fadcd89c79b2cd8a98d551ff7592508d0 diff --git a/net-proxy/shadowsocks-libev/shadowsocks-libev-3.3.5.ebuild b/net-proxy/shadowsocks-libev/shadowsocks-libev-3.3.5.ebuild new file mode 100644 index 00000000000..5349e2ab840 --- /dev/null +++ b/net-proxy/shadowsocks-libev/shadowsocks-libev-3.3.5.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV="v${PV}" +inherit autotools eutils systemd + +DESCRIPTION="A lightweight secured SOCKS5 proxy for embedded devices and low end boxes" +HOMEPAGE="https://github.com/shadowsocks/shadowsocks-libev" + +#repack with git submodule populated: libbloom, libcork, libipset +#SRC_URI="https://dev.gentoo.org/~dlan/distfiles/${P}.tar.xz" + +SRC_URI="https://github.com/shadowsocks/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="debug doc" + +RDEPEND="net-libs/mbedtls:= + >=net-libs/libbloom-1.6 + net-libs/libcork + net-libs/libcorkipset + >=dev-libs/libsodium-1.0.8:= + dev-libs/libev + net-dns/c-ares + dev-libs/libpcre + " +DEPEND="${RDEPEND} + sys-kernel/linux-headers + doc? ( + app-text/asciidoc + app-text/xmlto + ) + " + +src_prepare() { + sed -i -e 's|AC_CONFIG_FILES(\[libbloom/Makefile libcork/Makefile libipset/Makefile\])||' \ + configure.ac || die + default + eautoreconf +} + +src_configure() { + local myconf=" + $(use_enable debug assert) + --enable-system-shared-lib + " + use doc || myconf+="--disable-documentation" + econf ${myconf} +} + +src_install() { + default + + find "${D}" -name '*.la' -type f -delete || die + + insinto "/etc/${PN}" + newins "${FILESDIR}/shadowsocks.json" shadowsocks.json + + newinitd "${FILESDIR}/shadowsocks.initd" shadowsocks + dosym shadowsocks /etc/init.d/shadowsocks.server + dosym shadowsocks /etc/init.d/shadowsocks.client + dosym shadowsocks /etc/init.d/shadowsocks.redir + dosym shadowsocks /etc/init.d/shadowsocks.tunnel + + dodoc -r acl + + for i in debian/${PN}*.service; do + systemd_newunit $i $(basename $i) + done +} + +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" +}