Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/iputils/
Date: Thu, 14 Mar 2019 18:58:14
Message-Id: 1552589871.accc1dbcd171a642ff73190777bd9c954b84a943.zlogene@gentoo
1 commit: accc1dbcd171a642ff73190777bd9c954b84a943
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 14 18:57:51 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 14 18:57:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=accc1dbc
7
8 net-misc/iputils: Drop old
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 net-misc/iputils/iputils-20171016_pre-r1.ebuild | 181 ------------------------
14 1 file changed, 181 deletions(-)
15
16 diff --git a/net-misc/iputils/iputils-20171016_pre-r1.ebuild b/net-misc/iputils/iputils-20171016_pre-r1.ebuild
17 deleted file mode 100644
18 index eb1912c4992..00000000000
19 --- a/net-misc/iputils/iputils-20171016_pre-r1.ebuild
20 +++ /dev/null
21 @@ -1,181 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -# For released versions, we precompile the man/html pages and store
26 -# them in a tarball on our mirrors. This avoids ugly issues while
27 -# building stages, and reduces depedencies.
28 -# To regenerate man/html pages emerge iputils-99999999[doc] with
29 -# EGIT_COMMIT set to release tag and tar ${S}/doc folder.
30 -
31 -EAPI="6"
32 -
33 -inherit flag-o-matic toolchain-funcs fcaps
34 -
35 -MY_COMMIT="67e7d0daf1f231cc708217e6aec2f8d5ce7aeacf"
36 -
37 -PATCHES=(
38 - "${FILESDIR}"/${PN}-99999999-tracepath46.patch
39 - "${FILESDIR}"/${PN}-99999999-musl.patch
40 -)
41 -
42 -if [[ ${PV} == "99999999" ]] ; then
43 - EGIT_REPO_URI="https://github.com/iputils/iputils.git"
44 - inherit git-r3
45 -else
46 - SRC_URI="https://github.com/iputils/iputils/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz
47 - https://dev.gentoo.org/~whissi/dist/iputils/${PN}-manpages-${PV}.tar.xz"
48 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux"
49 -fi
50 -
51 -DESCRIPTION="Network monitoring tools including ping and ping6"
52 -HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils"
53 -
54 -LICENSE="BSD GPL-2+ rdisc"
55 -SLOT="0"
56 -IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute"
57 -
58 -LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
59 - idn? ( net-dns/libidn:=[static-libs(+)] )
60 - ipv6? (
61 - ssl? (
62 - gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] )
63 - !gcrypt? (
64 - nettle? ( dev-libs/nettle[static-libs(+)] )
65 - !nettle? (
66 - libressl? ( dev-libs/libressl:0=[static-libs(+)] )
67 - !libressl? ( dev-libs/openssl:0=[static-libs(+)] )
68 - )
69 - )
70 - )
71 - )
72 -"
73 -RDEPEND="arping? ( !net-misc/arping )
74 - rarpd? ( !net-misc/rarpd )
75 - traceroute? ( !net-analyzer/traceroute )
76 - !static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
77 -DEPEND="${RDEPEND}
78 - static? ( ${LIB_DEPEND} )
79 - virtual/os-headers
80 -"
81 -if [[ ${PV} == "99999999" ]] ; then
82 - DEPEND+="app-text/docbook-xml-dtd:4.2
83 - app-text/docbook-xml-dtd:4.5
84 - app-text/docbook-xsl-stylesheets
85 - dev-libs/libxslt:0
86 - "
87 -fi
88 -
89 -[ "${PV}" = "99999999" ] || S="${WORKDIR}/${PN}-s${PV}"
90 -
91 -S="${WORKDIR}/${PN}-${MY_COMMIT}"
92 -
93 -src_prepare() {
94 - use SECURITY_HAZARD && PATCHES+=( "${FILESDIR}"/${PN}-20150815-nonroot-floodping.patch )
95 -
96 - default
97 -}
98 -
99 -src_configure() {
100 - use static && append-ldflags -static
101 -
102 - TARGETS=(
103 - ping
104 - $(for v in arping clockdiff rarpd rdisc tftpd tracepath ; do usev ${v} ; done)
105 - )
106 - if use ipv6 ; then
107 - TARGETS+=(
108 - $(usex traceroute 'traceroute6' '')
109 - )
110 - fi
111 -
112 - myconf=(
113 - USE_CRYPTO=no
114 - USE_GCRYPT=no
115 - USE_NETTLE=no
116 - )
117 -
118 - if use ipv6 && use ssl ; then
119 - myconf=(
120 - USE_CRYPTO=yes
121 - USE_GCRYPT=$(usex gcrypt)
122 - USE_NETTLE=$(usex nettle)
123 - )
124 - fi
125 -}
126 -
127 -src_compile() {
128 - tc-export CC
129 - emake \
130 - USE_CAP=$(usex caps) \
131 - USE_IDN=$(usex idn) \
132 - IPV4_DEFAULT=$(usex ipv6 'no' 'yes') \
133 - TARGETS="${TARGETS[*]}" \
134 - ${myconf[@]}
135 -
136 - if [[ ${PV} == "99999999" ]] ; then
137 - emake man
138 -
139 - use doc && emake html
140 - fi
141 -}
142 -
143 -src_install() {
144 - into /
145 - dobin ping
146 - dosym ping /bin/ping4
147 - if use ipv6 ; then
148 - dosym ping /bin/ping6
149 - dosym ping.8 /usr/share/man/man8/ping6.8
150 - fi
151 - doman doc/ping.8
152 -
153 - if use arping ; then
154 - dobin arping
155 - doman doc/arping.8
156 - fi
157 -
158 - into /usr
159 -
160 - if use tracepath ; then
161 - dosbin tracepath
162 - doman doc/tracepath.8
163 - dosym tracepath /usr/sbin/tracepath4
164 - fi
165 -
166 - local u
167 - for u in clockdiff rarpd rdisc tftpd ; do
168 - if use ${u} ; then
169 - case ${u} in
170 - clockdiff) dobin ${u};;
171 - *) dosbin ${u};;
172 - esac
173 - doman doc/${u}.8
174 - fi
175 - done
176 -
177 - if use tracepath && use ipv6 ; then
178 - dosym tracepath /usr/sbin/tracepath6
179 - dosym tracepath.8 /usr/share/man/man8/tracepath6.8
180 - fi
181 -
182 - if use traceroute && use ipv6 ; then
183 - dosbin traceroute6
184 - doman doc/traceroute6.8
185 - fi
186 -
187 - if use rarpd ; then
188 - newinitd "${FILESDIR}"/rarpd.init.d rarpd
189 - newconfd "${FILESDIR}"/rarpd.conf.d rarpd
190 - fi
191 -
192 - dodoc INSTALL.md
193 -
194 - use doc && dodoc doc/*.html
195 -}
196 -
197 -pkg_postinst() {
198 - fcaps cap_net_raw \
199 - bin/ping \
200 - $(usex arping 'bin/arping' '') \
201 - $(usex clockdiff 'usr/bin/clockdiff' '')
202 -}