Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/i2pd/
Date: Mon, 12 Aug 2019 06:14:55
Message-Id: 1565590459.92925dd371befe93729353e3fd45fe442006e64d.juippis@gentoo
1 commit: 92925dd371befe93729353e3fd45fe442006e64d
2 Author: Alexey Korepanov <kaikaikai <AT> yandex <DOT> ru>
3 AuthorDate: Mon Jul 22 10:55:36 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 12 06:14:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92925dd3
7
8 net-vpn/i2pd-2.27.0: version bump
9
10 Signed-off-by: Alexey Korepanov <kaikaikai <AT> yandex.ru>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 net-vpn/i2pd/Manifest | 1 +
14 net-vpn/i2pd/i2pd-2.27.0.ebuild | 105 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 106 insertions(+)
16
17 diff --git a/net-vpn/i2pd/Manifest b/net-vpn/i2pd/Manifest
18 index dea49717d43..787458e0cd6 100644
19 --- a/net-vpn/i2pd/Manifest
20 +++ b/net-vpn/i2pd/Manifest
21 @@ -1,3 +1,4 @@
22 DIST i2pd-2.24.0.tar.gz 1063751 BLAKE2B 22e0dd09926735d0d512fefde21da7cd6c923225f8e22f8e511a4d170781420670cc297584a01eb1200c45e1bba11f0c7e03153d3a412cf57bb2cebc0307b551 SHA512 89364943ab4d7344c3e7e79759b051710ca7ebb9021220904c112ebd6adac84fac37627c191ed06de5c4aba799a3157f680382b227499d26976ae1a742151514
23 DIST i2pd-2.25.0.tar.gz 1068786 BLAKE2B 80e5e6de2ffaad86c0c3ad4a89cfa12cf3ac8cf61ae856f4647af4e06b56594f39e9d75d798d5429b372fba718f4e92ea4ea94b802929ab22d8850ba46b2827e SHA512 e45318236b7a4e23c8dc83423f4cbc62e622a6f6346a67d56af09b805a82f1d1bf4174c9785078292ad07fc7e5e75f15d3fcc801e44fddcbd8c30d6c7bd6975e
24 DIST i2pd-2.26.0.tar.gz 1073024 BLAKE2B 21a59b140c0a21dec5a5b57c08ddc81530f5a2662e53d6a028ba9fd2d6c7bc89de1a49aa0f2981b6dd6dadc2ec0d84542419e100d86fcb407d3f0ae7c66e3f76 SHA512 1f0b2ca059daa9238a9bc2959a559636266252ad0858e4e941918bb195906c817de54b2379ae95d0b9813b7cae8697db335f9d6d15d0cf919e6f687a282e528c
25 +DIST i2pd-2.27.0.tar.gz 1073766 BLAKE2B 331407c6bed3ed49e2438590a814ce91301bfe318d45f0726568877a966fee217b94a37152206652672b221e62d41dc252b8cacdac3e96117c896f4de00c39d4 SHA512 260cef32503bb459f3e7e07940f303b542bead54c9b6faf63f61e8d76250155c375fa75ce80ce3862d8eb2445e106e3c99ed829c9acbc9eb728364082f938f96
26
27 diff --git a/net-vpn/i2pd/i2pd-2.27.0.ebuild b/net-vpn/i2pd/i2pd-2.27.0.ebuild
28 new file mode 100644
29 index 00000000000..e0059446714
30 --- /dev/null
31 +++ b/net-vpn/i2pd/i2pd-2.27.0.ebuild
32 @@ -0,0 +1,105 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit systemd cmake-utils toolchain-funcs
38 +
39 +DESCRIPTION="A C++ daemon for accessing the I2P anonymous network"
40 +HOMEPAGE="https://github.com/PurpleI2P/i2pd"
41 +SRC_URI="https://github.com/PurpleI2P/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
46 +IUSE="cpu_flags_x86_aes cpu_flags_x86_avx i2p-hardening libressl static +upnp websocket"
47 +
48 +# if using libressl, require >=boost-1.65, see #597798
49 +RDEPEND="
50 + acct-user/i2pd
51 + acct-group/i2pd
52 + !static? (
53 + dev-libs/boost:=[threads]
54 + !libressl? ( dev-libs/openssl:0=[-bindist] )
55 + libressl? (
56 + dev-libs/libressl:0=
57 + >=dev-libs/boost-1.65:=
58 + )
59 + upnp? ( net-libs/miniupnpc )
60 + )"
61 +DEPEND="${RDEPEND}
62 + static? (
63 + dev-libs/boost:=[static-libs,threads]
64 + !libressl? ( dev-libs/openssl:0=[static-libs] )
65 + libressl? (
66 + dev-libs/libressl:0=[static-libs]
67 + >=dev-libs/boost-1.65:=
68 + )
69 + sys-libs/zlib:=[static-libs]
70 + upnp? ( net-libs/miniupnpc[static-libs] )
71 + )
72 + websocket? ( dev-cpp/websocketpp )"
73 +
74 +CMAKE_USE_DIR="${S}/build"
75 +
76 +DOCS=( README.md contrib/i2pd.conf contrib/tunnels.conf )
77 +
78 +PATCHES=( "${FILESDIR}/${PN}-2.14.0-fix_installed_components.patch"
79 + "${FILESDIR}/i2pd-2.25.0-lib-path.patch" )
80 +
81 +pkg_pretend() {
82 + if tc-is-gcc && ! ver_test "$(gcc-version)" -ge "4.7"; then
83 + die "At least gcc 4.7 is required"
84 + fi
85 + if use i2p-hardening && ! tc-is-gcc; then
86 + die "i2p-hardening requires gcc"
87 + fi
88 +}
89 +
90 +src_configure() {
91 + mycmakeargs=(
92 + -DWITH_AESNI=$(usex cpu_flags_x86_aes ON OFF)
93 + -DWITH_AVX=$(usex cpu_flags_x86_avx ON OFF)
94 + -DWITH_HARDENING=$(usex i2p-hardening ON OFF)
95 + -DWITH_PCH=OFF
96 + -DWITH_STATIC=$(usex static ON OFF)
97 + -DWITH_UPNP=$(usex upnp ON OFF)
98 + -DWITH_WEBSOCKETS=$(usex websocket ON OFF)
99 + -DWITH_LIBRARY=ON
100 + -DWITH_BINARY=ON
101 + )
102 + cmake-utils_src_configure
103 +}
104 +
105 +src_install() {
106 + cmake-utils_src_install
107 +
108 + # config
109 + insinto /etc/i2pd
110 + doins contrib/i2pd.conf
111 + doins contrib/tunnels.conf
112 +
113 + # working directory
114 + insinto /var/lib/i2pd
115 + doins -r contrib/certificates
116 +
117 + # add /var/lib/i2pd/certificates to CONFIG_PROTECT
118 + doenvd "${FILESDIR}/99i2pd"
119 +
120 + # openrc and systemd daemon routines
121 + newconfd "${FILESDIR}/i2pd-2.6.0-r3.confd" i2pd
122 + newinitd "${FILESDIR}/i2pd-2.6.0-r3.initd" i2pd
123 + systemd_newunit "${FILESDIR}/i2pd-2.6.0-r3.service" i2pd.service
124 +
125 + # logrotate
126 + insinto /etc/logrotate.d
127 + newins "${FILESDIR}/i2pd-2.6.0-r3.logrotate" i2pd
128 +}
129 +
130 +pkg_postinst() {
131 + if [[ -f ${EROOT%/}/etc/i2pd/subscriptions.txt ]]; then
132 + ewarn
133 + ewarn "Configuration of the subscriptions has been moved from"
134 + ewarn "subscriptions.txt to i2pd.conf. We recommend updating"
135 + ewarn "i2pd.conf accordingly and deleting subscriptions.txt."
136 + fi
137 +}