Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/iputils/
Date: Mon, 07 Mar 2016 00:40:55
Message-Id: 1457311853.1ad11dca923899419cf5487565b49e4e607149e6.blueness@gentoo
1 commit: 1ad11dca923899419cf5487565b49e4e607149e6
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 7 00:50:53 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 7 00:50:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ad11dca
7
8 net-misc/iputils: remove 20150815 without libressl support
9
10 Package-Manager: portage-2.2.26
11
12 net-misc/iputils/iputils-20150815.ebuild | 163 -------------------------------
13 1 file changed, 163 deletions(-)
14
15 diff --git a/net-misc/iputils/iputils-20150815.ebuild b/net-misc/iputils/iputils-20150815.ebuild
16 deleted file mode 100644
17 index d69470e..0000000
18 --- a/net-misc/iputils/iputils-20150815.ebuild
19 +++ /dev/null
20 @@ -1,163 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
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 when the jade/sgml packages are broken (which
28 -# seems to be more common than would be nice).
29 -
30 -EAPI="4"
31 -
32 -inherit flag-o-matic eutils toolchain-funcs fcaps
33 -if [[ ${PV} == "99999999" ]] ; then
34 - EGIT_REPO_URI="https://github.com/iputils/iputils.git"
35 - inherit git-r3
36 -else
37 - SRC_URI="https://github.com/iputils/iputils/archive/s${PV}.tar.gz -> ${P}.tar.gz
38 - https://dev.gentoo.org/~polynomial-c/iputils-s${PV}-manpages.tar.xz"
39 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux"
40 -fi
41 -
42 -DESCRIPTION="Network monitoring tools including ping and ping6"
43 -HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/networking/iputils"
44 -
45 -LICENSE="BSD-4"
46 -SLOT="0"
47 -IUSE="arping caps clockdiff doc gcrypt idn ipv6 nettle +openssl rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute"
48 -
49 -LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
50 - idn? ( net-dns/libidn[static-libs(+)] )
51 - ipv6? ( ssl? (
52 - gcrypt? ( dev-libs/libgcrypt[static-libs(+)] )
53 - nettle? ( dev-libs/nettle[static-libs(+)] )
54 - openssl? ( dev-libs/openssl:0[static-libs(+)] )
55 - ) )"
56 -RDEPEND="arping? ( !net-misc/arping )
57 - rarpd? ( !net-misc/rarpd )
58 - traceroute? ( !net-misc/traceroute )
59 - !static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
60 -DEPEND="${RDEPEND}
61 - static? ( ${LIB_DEPEND} )
62 - virtual/os-headers"
63 -if [[ ${PV} == "99999999" ]] ; then
64 - DEPEND+="
65 - app-text/openjade
66 - dev-perl/SGMLSpm
67 - app-text/docbook-sgml-dtd
68 - app-text/docbook-sgml-utils
69 - "
70 -fi
71 -
72 -REQUIRED_USE="ipv6? ( ssl? ( ^^ ( gcrypt nettle openssl ) ) )"
73 -
74 -S=${WORKDIR}/${PN}-s${PV}
75 -
76 -PATCHES=(
77 - "${FILESDIR}/021109-uclibc-no-ether_ntohost.patch"
78 - "${FILESDIR}/${PN}-20150815-ping_default_ipv4.patch"
79 - "${FILESDIR}/${PN}-20150815-ping6_crypto.patch"
80 -)
81 -
82 -src_prepare() {
83 - epatch ${PATCHES[@]}
84 - use SECURITY_HAZARD && epatch "${FILESDIR}"/${PN}-20150815-nonroot-floodping.patch
85 -}
86 -
87 -src_configure() {
88 - use static && append-ldflags -static
89 -
90 - TARGETS=(
91 - ping
92 - $(for v in arping clockdiff rarpd rdisc tftpd tracepath ; do usev ${v} ; done)
93 - )
94 - if use ipv6 ; then
95 - TARGETS+=(
96 - $(usex tracepath 'tracepath6' '')
97 - $(usex traceroute 'traceroute6' '')
98 - )
99 - fi
100 -
101 - myconf=(
102 - USE_CRYPTO=no
103 - USE_GCRYPT=no
104 - USE_NETTLE=no
105 - )
106 -
107 - if use ipv6 && use ssl ; then
108 - myconf=(
109 - USE_CRYPTO=$(usex openssl)
110 - USE_GCRYPT=$(usex gcrypt)
111 - USE_NETTLE=$(usex nettle)
112 - )
113 - fi
114 -}
115 -
116 -src_compile() {
117 - tc-export CC
118 - emake \
119 - USE_CAP=$(usex caps) \
120 - USE_IDN=$(usex idn) \
121 - IPV4_DEFAULT=$(usex ipv6 'no' 'yes') \
122 - TARGETS="${TARGETS[*]}" \
123 - ${myconf[@]}
124 -
125 - if [[ ${PV} == "99999999" ]] ; then
126 - emake html man
127 - fi
128 -}
129 -
130 -src_install() {
131 - into /
132 - dobin ping
133 - dosym ping "${EPREFIX}"/bin/ping4
134 - if use ipv6 ; then
135 - dosym ping "${EPREFIX}"/bin/ping6
136 - dosym ping.8 "${EPREFIX}"/usr/share/man/man8/ping6.8
137 - fi
138 - doman doc/ping.8
139 -
140 - if use arping ; then
141 - dobin arping
142 - doman doc/arping.8
143 - fi
144 -
145 - into /usr
146 -
147 - local u
148 - for u in clockdiff rarpd rdisc tftpd tracepath ; do
149 - if use ${u} ; then
150 - case ${u} in
151 - clockdiff) dobin ${u};;
152 - *) dosbin ${u};;
153 - esac
154 - doman doc/${u}.8
155 - fi
156 - done
157 -
158 - if use tracepath && use ipv6 ; then
159 - dosbin tracepath6
160 - dosym tracepath.8 "${EPREFIX}"/usr/share/man/man8/tracepath6.8
161 - fi
162 -
163 - if use traceroute && use ipv6 ; then
164 - dosbin traceroute6
165 - doman doc/traceroute6.8
166 - fi
167 -
168 - if use rarpd ; then
169 - newinitd "${FILESDIR}"/rarpd.init.d rarpd
170 - newconfd "${FILESDIR}"/rarpd.conf.d rarpd
171 - fi
172 -
173 - dodoc INSTALL RELNOTES
174 -
175 - use doc && dohtml doc/*.html
176 -}
177 -
178 -pkg_postinst() {
179 - fcaps cap_net_raw \
180 - bin/ping \
181 - $(usex arping 'bin/arping' '') \
182 - $(usex clockdiff 'usr/bin/clockdiff' '')
183 -}