1 |
commit: b0700a3de125240bc4970bb7dd3f7286ad24ae8c |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 19 11:04:03 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 19 11:04:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0700a3d |
7 |
|
8 |
net-misc/iputils: bump to v20190709 |
9 |
|
10 |
Package-Manager: Portage-2.3.68, Repoman-2.3.16 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
net-misc/iputils/Manifest | 2 + |
14 |
net-misc/iputils/iputils-20190709.ebuild | 201 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 203 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/iputils/Manifest b/net-misc/iputils/Manifest |
18 |
index d87174e0216..23ec4c046b6 100644 |
19 |
--- a/net-misc/iputils/Manifest |
20 |
+++ b/net-misc/iputils/Manifest |
21 |
@@ -1,4 +1,6 @@ |
22 |
DIST iputils-20180629.tar.gz 195094 BLAKE2B 81bf6ef427eac0769ea3f95c20294b46c81f9c619551234eb265b3a428998a96cf3df0cdc7499f9eea280c1999e899e87c3f4a863141de251a9c509840bc83b3 SHA512 16b8f5ad1cf88083ebaee0a71fddb14bb0a904336fd0baebfcca86c27ac0773553b21d12790b05cab7661d6432c75bbb1523e871e5e1b77faacd13ccc84f4476 |
23 |
DIST iputils-20190515.tar.gz 403228 BLAKE2B cebe2460ac4da5471a9b8e655bed1c1640f69d4dc41a724ab197533e3d532e34c28e9ccbc852e057d18c9867d9d668e2f73848b005439463dc4e7735c68ae87c SHA512 adb8831ca3a567b9a5f3762227c631aefa62eedbaa7578c2bfea90b6d494b9e0cccf49b68713912611ec56c352d6c517df9e8409c9c9478cfc5732371c8cf250 |
24 |
+DIST iputils-20190709.tar.gz 404101 BLAKE2B 38e66366cc13a77b7da1a85afe7245891c6c7069c218bc8d5d0dd3664d07a5c4004aa6fc56c192b90bfacf2e5e103997cd671a236aa0a9932a5818eca1e10744 SHA512 5db18ac49fa46ed810da4d508e78f4baf2d5c07e7f923eb49d005ad8745743d8861e5788b34a7e37fb7261cee7ddfb768b737eee9d200502ea53537142cac6b5 |
25 |
DIST iputils-manpages-20180629.tar.xz 29804 BLAKE2B 15983cc97bc6b6853c193f046687f10be11902f7e1d2dc2eec6c58edd1926f10152108d378858b0d7eb2d2908f038965b05515c4927aedc460282a22307883ad SHA512 1c5b0bab8496a3f3d9b5080029221231a497d9a5e91c61bd0ddd0b63fd51572d052801294aafd08e1dc8ad448b82cdaf48c72f0b08cc143f9c144f3db6848d9a |
26 |
DIST iputils-manpages-20190515.tar.xz 27556 BLAKE2B adf3eb5c7f3fd71fa24ff48daffd367ba6abc0377bca45ddc439803d177bf668f7dfc7bd3da7a06e89d9ffdd68f2bb0dbb9aa0ac150c98cd1f2b207a68d4fb46 SHA512 4013fe05c592ccc09d6b947ee59d56515bfe49e9a9d5610225d4a2b8c5034a7f1e8dc41c214cf03ce909d36bc5a8438541ad302cddeb1f0b4359a9b9c85ad4b2 |
27 |
+DIST iputils-manpages-20190709.tar.xz 27588 BLAKE2B 9780a96dfde077625a7a499182511066ede63ca364d2de729403354af7cea6b25629da1408ee2081f9da1b21756ee956d04642ea36d05ee02ef7ef05b66c1ad5 SHA512 4de796666426574bd134f4c4ea4d560d8e3eae8bd8ac19b89793fe252a1ef9eebd1833cafb72a2987118f3061eaf00da8a2468e8bced1568611f9391a1203066 |
28 |
|
29 |
diff --git a/net-misc/iputils/iputils-20190709.ebuild b/net-misc/iputils/iputils-20190709.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..31637094b14 |
32 |
--- /dev/null |
33 |
+++ b/net-misc/iputils/iputils-20190709.ebuild |
34 |
@@ -0,0 +1,201 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+# For released versions, we precompile the man/html pages and store |
39 |
+# them in a tarball on our mirrors. This avoids ugly issues while |
40 |
+# building stages, and reduces depedencies. |
41 |
+# To regenerate man/html pages emerge iputils-99999999[doc] with |
42 |
+# EGIT_COMMIT set to release tag and tar ${S}/doc folder. |
43 |
+ |
44 |
+EAPI="7" |
45 |
+ |
46 |
+PLOCALES="ja" |
47 |
+ |
48 |
+inherit fcaps flag-o-matic l10n meson systemd toolchain-funcs |
49 |
+ |
50 |
+if [[ ${PV} == "99999999" ]] ; then |
51 |
+ EGIT_REPO_URI="https://github.com/iputils/iputils.git" |
52 |
+ inherit git-r3 |
53 |
+else |
54 |
+ SRC_URI="https://github.com/iputils/iputils/archive/s${PV}.tar.gz -> ${P}.tar.gz |
55 |
+ https://dev.gentoo.org/~whissi/dist/iputils/${PN}-manpages-${PV}.tar.xz" |
56 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux" |
57 |
+fi |
58 |
+ |
59 |
+DESCRIPTION="Network monitoring tools including ping and ping6" |
60 |
+HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils" |
61 |
+ |
62 |
+LICENSE="BSD GPL-2+ rdisc" |
63 |
+SLOT="0" |
64 |
+IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle nls rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute6" |
65 |
+ |
66 |
+BDEPEND=" |
67 |
+ virtual/os-headers |
68 |
+ virtual/pkgconfig |
69 |
+" |
70 |
+ |
71 |
+LIB_DEPEND=" |
72 |
+ caps? ( sys-libs/libcap[static-libs(+)] ) |
73 |
+ idn? ( net-dns/libidn2:=[static-libs(+)] ) |
74 |
+ ipv6? ( |
75 |
+ ssl? ( |
76 |
+ gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] ) |
77 |
+ !gcrypt? ( |
78 |
+ nettle? ( dev-libs/nettle[static-libs(+)] ) |
79 |
+ !nettle? ( |
80 |
+ libressl? ( dev-libs/libressl:0=[static-libs(+)] ) |
81 |
+ !libressl? ( dev-libs/openssl:0=[static-libs(+)] ) |
82 |
+ ) |
83 |
+ ) |
84 |
+ ) |
85 |
+ ) |
86 |
+ nls? ( sys-devel/gettext[static-libs(+)] ) |
87 |
+" |
88 |
+ |
89 |
+RDEPEND=" |
90 |
+ arping? ( !net-misc/arping ) |
91 |
+ rarpd? ( !net-misc/rarpd ) |
92 |
+ traceroute6? ( !net-analyzer/traceroute ) |
93 |
+ !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
94 |
+" |
95 |
+ |
96 |
+DEPEND=" |
97 |
+ ${RDEPEND} |
98 |
+ static? ( ${LIB_DEPEND} ) |
99 |
+" |
100 |
+ |
101 |
+if [[ ${PV} == "99999999" ]] ; then |
102 |
+ DEPEND+=" |
103 |
+ app-text/docbook-xml-dtd:4.2 |
104 |
+ app-text/docbook-xml-dtd:4.5 |
105 |
+ app-text/docbook-xsl-ns-stylesheets |
106 |
+ app-text/docbook-xsl-stylesheets |
107 |
+ dev-libs/libxslt:0 |
108 |
+ " |
109 |
+fi |
110 |
+ |
111 |
+[ "${PV}" == "99999999" ] || S="${WORKDIR}/${PN}-s${PV}" |
112 |
+ |
113 |
+PATCHES=() |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ use SECURITY_HAZARD && PATCHES+=( "${FILESDIR}"/${PN}-20150815-nonroot-floodping.patch ) |
117 |
+ |
118 |
+ default |
119 |
+ |
120 |
+ l10n_get_locales > po/LINGUAS || die |
121 |
+} |
122 |
+ |
123 |
+src_configure() { |
124 |
+ use static && append-ldflags -static |
125 |
+ |
126 |
+ local emesonargs=( |
127 |
+ -DUSE_CAP="$(usex caps true false)" |
128 |
+ -DUSE_IDN="$(usex idn true false)" |
129 |
+ -DBUILD_ARPING="$(usex arping true false)" |
130 |
+ -DBUILD_CLOCKDIFF="$(usex clockdiff true false)" |
131 |
+ -DBUILD_PING="true" |
132 |
+ -DBUILD_RARPD="$(usex rarpd true false)" |
133 |
+ -DBUILD_RDISC="$(usex rdisc true false)" |
134 |
+ -DENABLE_RDISC_SERVER="$(usex rdisc true false)" |
135 |
+ -DBUILD_TFTPD="$(usex tftpd true false)" |
136 |
+ -DBUILD_TRACEPATH="$(usex tracepath true false)" |
137 |
+ -DBUILD_TRACEROUTE6="$(usex ipv6 $(usex traceroute6 true false) false)" |
138 |
+ -DBUILD_NINFOD="false" |
139 |
+ -DNINFOD_MESSAGES="false" |
140 |
+ -DNO_SETCAP_OR_SUID="true" |
141 |
+ -Dsystemdunitdir="$(systemd_get_systemunitdir)" |
142 |
+ -DUSE_GETTEXT="$(usex nls true false)" |
143 |
+ ) |
144 |
+ |
145 |
+ if use ipv6 && use ssl ; then |
146 |
+ emesonargs+=( |
147 |
+ -DUSE_CRYPTO="$(usex gcrypt gcrypt $(usex nettle nettle openssl))" |
148 |
+ ) |
149 |
+ else |
150 |
+ emesonargs+=( |
151 |
+ -DUSE_CRYPTO="none" |
152 |
+ ) |
153 |
+ fi |
154 |
+ |
155 |
+ if [[ "${PV}" == 99999999 ]] ; then |
156 |
+ emesonargs+=( |
157 |
+ -DBUILD_HTML_MANS="$(usex doc true false)" |
158 |
+ -DBUILD_MANS="true" |
159 |
+ ) |
160 |
+ else |
161 |
+ emesonargs+=( |
162 |
+ -DBUILD_HTML_MANS="false" |
163 |
+ -DBUILD_MANS="false" |
164 |
+ ) |
165 |
+ fi |
166 |
+ |
167 |
+ meson_src_configure |
168 |
+} |
169 |
+ |
170 |
+src_compile() { |
171 |
+ tc-export CC |
172 |
+ meson_src_compile |
173 |
+} |
174 |
+ |
175 |
+src_install() { |
176 |
+ meson_src_install |
177 |
+ |
178 |
+ dodir /bin |
179 |
+ local my_bin |
180 |
+ for my_bin in $(usex arping arping '') ping ; do |
181 |
+ mv "${ED%/}"/usr/bin/${my_bin} "${ED%/}"/bin/ || die |
182 |
+ done |
183 |
+ dosym ping /bin/ping4 |
184 |
+ |
185 |
+ if use tracepath ; then |
186 |
+ dosym tracepath /usr/bin/tracepath4 |
187 |
+ fi |
188 |
+ |
189 |
+ if use ipv6 ; then |
190 |
+ dosym ping /bin/ping6 |
191 |
+ |
192 |
+ if use tracepath ; then |
193 |
+ dosym tracepath /usr/bin/tracepath6 |
194 |
+ dosym tracepath.8 /usr/share/man/man8/tracepath6.8 |
195 |
+ fi |
196 |
+ fi |
197 |
+ |
198 |
+ if [[ "${PV}" != 99999999 ]] ; then |
199 |
+ local -a man_pages |
200 |
+ local -a html_man_pages |
201 |
+ |
202 |
+ while IFS= read -r -u 3 -d $'\0' my_bin |
203 |
+ do |
204 |
+ my_bin=$(basename "${my_bin}") |
205 |
+ [[ -z "${my_bin}" ]] && continue |
206 |
+ |
207 |
+ if [[ -f "${S}/doc/${my_bin}.8" ]] ; then |
208 |
+ man_pages+=( ${my_bin}.8 ) |
209 |
+ fi |
210 |
+ |
211 |
+ if [[ -f "${S}/doc/${my_bin}.html" ]] ; then |
212 |
+ html_man_pages+=( ${my_bin}.html ) |
213 |
+ fi |
214 |
+ done 3< <(find "${ED%/}"/{bin,usr/bin,usr/sbin} -type f -perm -a+x -print0 2>/dev/null) |
215 |
+ |
216 |
+ pushd doc &>/dev/null || die |
217 |
+ doman "${man_pages[@]}" |
218 |
+ if use doc ; then |
219 |
+ docinto html |
220 |
+ dodoc "${html_man_pages[@]}" |
221 |
+ fi |
222 |
+ popd &>/dev/null || die |
223 |
+ else |
224 |
+ if use doc ; then |
225 |
+ mv "${ED%/}"/usr/share/${PN} "${ED%/}"/usr/share/doc/${PF}/html || die |
226 |
+ fi |
227 |
+ fi |
228 |
+} |
229 |
+ |
230 |
+pkg_postinst() { |
231 |
+ fcaps cap_net_raw \ |
232 |
+ bin/ping \ |
233 |
+ $(usex arping 'bin/arping' '') \ |
234 |
+ $(usex clockdiff 'usr/bin/clockdiff' '') |
235 |
+} |