Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/net-tools/
Date: Mon, 26 Jun 2017 20:25:15
Message-Id: 1498508704.e12102d5069290d325ea012392058f38aa54777a.dilfridge@gentoo
1 commit: e12102d5069290d325ea012392058f38aa54777a
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 26 20:25:04 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 26 20:25:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e12102d5
7
8 sys-apps/net-tools: Remove old, bug 605728
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 sys-apps/net-tools/Manifest | 3 -
13 sys-apps/net-tools/metadata.xml | 1 -
14 .../net-tools-1.60_p20141019041918-r1.ebuild | 95 ------------------
15 .../net-tools-1.60_p20151124144947.ebuild | 106 ---------------------
16 4 files changed, 205 deletions(-)
17
18 diff --git a/sys-apps/net-tools/Manifest b/sys-apps/net-tools/Manifest
19 index e0fd0181181..0810e010c72 100644
20 --- a/sys-apps/net-tools/Manifest
21 +++ b/sys-apps/net-tools/Manifest
22 @@ -1,5 +1,2 @@
23 -DIST net-tools-1.60_p20141019041918-patches-1.tar.xz 3352 SHA256 12e79c866c532ba75c0367397f664799f90ab8901bc906429b67939e8e6b354f SHA512 139f8c2990e5be44c17c2c5c4a900d2d2a8cdb5c067a8fe822b20b964045a24bc1138f7656291bc4db80ecddaa24e2e2655c018925d7b214651284443df550f9 WHIRLPOOL 3e33a3d5e0209360c7d90e4741a1b2be662e3c9d1c8a1f8a7283bff98642934fd26da296c5ed4a064915fa1a1006ee8f94fedc07d86bda48ed9624fc9946d190
24 -DIST net-tools-1.60_p20141019041918.tar.xz 197684 SHA256 22d1fb8acfa0b1e92d3c5dd3f544770b107df72f32f5b16232e65045c5efd2d0 SHA512 5fb02e181f3fec0a62a8ec8f1e6b0549d711d70d292491a2721d7f19f1a3b07d41fd0c8f503809435cd1a1b1999bcf5690402acc51f06ac6d626e11fef590e2e WHIRLPOOL c34f0c7363cc445e2457ccbf796947b60f74a063ed299840f755c6c023b8eb2cd46cdf42e1f9ca7530170e0b32dd14477e64ce50ec089e4a8b5d3e6bf65456ec
25 -DIST net-tools-1.60_p20151124144947.tar.xz 227044 SHA256 fd771419c735ac43b27584594595e9bf8ee708aaf9948a44696ce9aa955e887d SHA512 0118af976ebc45edfd301c666fbf934c1fca1fd09396b6e3d09a8f9810809f7b765d6b3329044da5fccf96574b15b04fdedbaeac8e76e9811c0e87f53eff6530 WHIRLPOOL 33e1de04bc53ba16edc964b4f4b9393fbc2f474c423d73b565eb5449dfdb866edd275a16c08c25bd7eacbf8dff761e20f5eb13abd15c6af0062b6439fe439c5f
26 DIST net-tools-1.60_p20160215155418.tar.xz 227284 SHA256 9c9aee20e3b09213ab0b27c62329fafcb25e156143fc3999c16e8dcee72304b2 SHA512 3fac6e00f061daf5c9ed1c8038d14635333a6149b09ad1493db35e4f931095915ad47468c42cc10299a4df1b5c946d6609a92a00c326a50a4da166670f6608e4 WHIRLPOOL b04de5acd5cb17177d105168d8dd5d4e1cbb108d946bd656b162b11081098b9254993883088df851c3f2fc4eab2dbc18892cff96f20f1e2748663ab6f17ffac0
27 DIST net-tools-1.60_p20161110235919.tar.xz 227552 SHA256 d9b52abb6bbf3305fde1fe414059602371a7819b214206312f6b16a2fde46fcd SHA512 06c2900305a5b11035bdb9d94e9d0a50c2ca832e14598d00d6907d99a4a3c981169475bbe916805888f9746a7d787829f20e6a4dec283731a2c85a72875b8e01 WHIRLPOOL 413553072466cee79c1f231742d6256f97d9a9e84647ee27aed97cf01eee16fd621c67fa67523174bcc0dd0c5f6181d2f6fcc698e3268fc9996eb2cbc7db1070
28
29 diff --git a/sys-apps/net-tools/metadata.xml b/sys-apps/net-tools/metadata.xml
30 index d539cc54728..533583070f4 100644
31 --- a/sys-apps/net-tools/metadata.xml
32 +++ b/sys-apps/net-tools/metadata.xml
33 @@ -8,7 +8,6 @@
34 <use>
35 <flag name="arp">build the arp and rarp tools (for manipulating the ARP cache)</flag>
36 <flag name="hostname">build the hostname and dnsdomainname tools</flag>
37 - <flag name="old-output">use old ifconfig output style (useful for when new output breaks scripts)</flag>
38 <flag name="plipconfig">build the plipconfig tool (for working with old PLIP hardware)</flag>
39 <flag name="slattach">build the slattach tool (for working with old serial ports)</flag>
40 </use>
41
42 diff --git a/sys-apps/net-tools/net-tools-1.60_p20141019041918-r1.ebuild b/sys-apps/net-tools/net-tools-1.60_p20141019041918-r1.ebuild
43 deleted file mode 100644
44 index 1e6a2bd5bd0..00000000000
45 --- a/sys-apps/net-tools/net-tools-1.60_p20141019041918-r1.ebuild
46 +++ /dev/null
47 @@ -1,95 +0,0 @@
48 -# Copyright 1999-2016 Gentoo Foundation
49 -# Distributed under the terms of the GNU General Public License v2
50 -
51 -EAPI="3"
52 -
53 -inherit flag-o-matic toolchain-funcs eutils
54 -
55 -if [[ ${PV} == "9999" ]] ; then
56 - EGIT_REPO_URI="git://git.code.sf.net/p/net-tools/code"
57 - EGIT_PROJECT="${PN}"
58 - inherit git-2
59 -else
60 - PATCH_VER="1"
61 - SRC_URI="mirror://gentoo/${P}.tar.xz
62 - mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz"
63 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
64 -fi
65 -
66 -DESCRIPTION="Standard Linux networking tools"
67 -HOMEPAGE="http://net-tools.sourceforge.net/"
68 -
69 -LICENSE="GPL-2"
70 -SLOT="0"
71 -IUSE="nls old-output selinux static"
72 -
73 -RDEPEND="!<sys-apps/openrc-0.9.9.3
74 - selinux? ( sys-libs/libselinux )"
75 -DEPEND="${RDEPEND}
76 - selinux? ( virtual/pkgconfig )
77 - app-arch/xz-utils"
78 -
79 -maint_pkg_create() {
80 - cd /usr/local/src/net-tools
81 - #git-update
82 - local stamp=$(date --date="$(git log -n1 --pretty=format:%ci master)" -u +%Y%m%d%H%M%S)
83 - local pv="${PV/_p*}_p${stamp}"; pv=${pv/9999/1.60}
84 - local p="${PN}-${pv}"
85 - git archive --prefix="${p}/" master | tar xf - -C "${T}"
86 - pushd "${T}" >/dev/null
87 - sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die
88 - tar cf - ${p}/ | xz > ${p}.tar.xz
89 - popd >/dev/null
90 -
91 - local patches="${p}-patches-${PATCH_VER:-1}"
92 - local d="${T}/${patches}"
93 - mkdir "${d}"
94 - git format-patch -o "${d}" master..gentoo > /dev/null
95 - echo "From https://cgit.gentoo.org/proj/net-tools.git" > "${d}"/README
96 - tar cf - -C "${T}" ${d##*/} | xz > "${T}"/${patches}.tar.xz
97 - rm -rf "${d}"
98 -
99 - du -b "${T}"/*.tar.xz
100 -}
101 -
102 -pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; }
103 -
104 -set_opt() {
105 - local opt=$1 ans
106 - shift
107 - ans=$("$@" && echo y || echo n)
108 - einfo "Setting option ${opt} to ${ans}"
109 - sed -i \
110 - -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \
111 - config.in || die
112 -}
113 -
114 -src_prepare() {
115 - if [[ -n ${PATCH_VER} ]] ; then
116 - use old-output || EPATCH_EXCLUDE="0001-revert-621a2f376334f8097604b9fee5783e0f1141e66d-for-.patch"
117 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" epatch "${WORKDIR}"/${P}-patches-${PATCH_VER}
118 - fi
119 -}
120 -
121 -src_configure() {
122 - set_opt I18N use nls
123 - set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6'
124 - set_opt HAVE_HWTR has_version '<sys-kernel/linux-headers-3.5'
125 - set_opt HAVE_HWSTRIP has_version '<sys-kernel/linux-headers-3.6'
126 - set_opt HAVE_SELINUX use selinux
127 - if use static ; then
128 - append-flags -static
129 - append-ldflags -static
130 - fi
131 - tc-export AR CC
132 - yes "" | ./configure.sh config.in || die
133 -}
134 -
135 -src_install() {
136 - emake DESTDIR="${ED}" install || die
137 - dodoc README README.ipv6 TODO
138 -}
139 -
140 -pkg_postinst() {
141 - einfo "etherwake and such have been split into net-misc/ethercard-diag"
142 -}
143
144 diff --git a/sys-apps/net-tools/net-tools-1.60_p20151124144947.ebuild b/sys-apps/net-tools/net-tools-1.60_p20151124144947.ebuild
145 deleted file mode 100644
146 index 851939396a2..00000000000
147 --- a/sys-apps/net-tools/net-tools-1.60_p20151124144947.ebuild
148 +++ /dev/null
149 @@ -1,106 +0,0 @@
150 -# Copyright 1999-2016 Gentoo Foundation
151 -# Distributed under the terms of the GNU General Public License v2
152 -
153 -EAPI="5"
154 -
155 -inherit flag-o-matic toolchain-funcs
156 -
157 -if [[ ${PV} == "9999" ]] ; then
158 - EGIT_REPO_URI="git://git.code.sf.net/p/net-tools/code"
159 - EGIT_PROJECT="${PN}"
160 - inherit git-2
161 -else
162 - SRC_URI="mirror://gentoo/${P}.tar.xz"
163 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
164 -fi
165 -
166 -DESCRIPTION="Standard Linux networking tools"
167 -HOMEPAGE="http://net-tools.sourceforge.net/"
168 -
169 -LICENSE="GPL-2"
170 -SLOT="0"
171 -IUSE="+arp +hostname ipv6 nis nls plipconfig selinux slattach static"
172 -
173 -RDEPEND="selinux? ( sys-libs/libselinux )"
174 -DEPEND="${RDEPEND}
175 - selinux? ( virtual/pkgconfig )
176 - app-arch/xz-utils"
177 -if [[ ${PV} == "9999" ]]; then
178 - DEPEND+=" nls? ( sys-devel/gettext )"
179 -fi
180 -RDEPEND+="
181 - hostname? ( !sys-apps/coreutils[hostname] )
182 - !<sys-apps/openrc-0.9.9.3"
183 -
184 -maint_pkg_create() {
185 - cd /usr/local/src/net-tools
186 - #git-update
187 - local stamp=$(date --date="$(git log -n1 --pretty=format:%ci master)" -u +%Y%m%d%H%M%S)
188 - local pv="${PV/_p*}_p${stamp}"; pv=${pv/9999/1.60}
189 - local p="${PN}-${pv}"
190 - git archive --prefix="${p}/" master | tar xf - -C "${T}"
191 - pushd "${T}" >/dev/null
192 - emake -C "${p}/po" dist
193 - sed -i "/^RELEASE/s:=.*:=${pv}:" */Makefile || die
194 - tar cf - ${p}/ | xz > ${p}.tar.xz
195 - popd >/dev/null
196 -
197 - du -b "${T}"/*.tar.xz
198 -}
199 -
200 -pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; }
201 -
202 -set_opt() {
203 - local opt=$1 ans
204 - shift
205 - ans=$("$@" && echo y || echo n)
206 - einfo "Setting option ${opt} to ${ans}"
207 - sed -i \
208 - -e "/^bool.* ${opt} /s:[yn]$:${ans}:" \
209 - config.in || die
210 -}
211 -
212 -src_configure() {
213 - set_opt I18N use nls
214 - set_opt HAVE_AFINET6 use ipv6
215 - set_opt HAVE_HWIB has_version '>=sys-kernel/linux-headers-2.6'
216 - set_opt HAVE_HWTR has_version '<sys-kernel/linux-headers-3.5'
217 - set_opt HAVE_HWSTRIP has_version '<sys-kernel/linux-headers-3.6'
218 - set_opt HAVE_SELINUX use selinux
219 - if use static ; then
220 - append-flags -static
221 - append-ldflags -static
222 - fi
223 - tc-export AR CC
224 - yes "" | ./configure.sh config.in || die
225 -}
226 -
227 -src_install() {
228 - # We need to use emake by hand to pass ED. #567300
229 - emake DESTDIR="${ED}" install
230 - dodoc README THANKS TODO
231 -
232 - # TODO: Make these into config knobs upstream.
233 - if ! use arp ; then
234 - rm "${ED}"/sbin/{,r}arp "${ED}"/usr/share/man/man8/{,r}arp.8* || die
235 - fi
236 - if ! use hostname ; then
237 - if use nis ; then
238 - # Since all the tools are symlinks, repoint them.
239 - rm "${ED}"/bin/domainname || die
240 - cp -p "${ED}"/bin/{host,domain}name || die
241 - dosym domainname /bin/nisdomainname
242 - dosym domainname /bin/ypdomainname
243 - fi
244 - rm "${ED}"/bin/{host,dnsdomain}name "${ED}"/usr/share/man/man1/{host,dnsdomain}name.1* || die
245 - fi
246 - if ! use nis ; then
247 - rm "${ED}"/bin/{,nis,yp}domainname "${ED}"/usr/share/man/man1/{,nis,yp}domainname.1* || die
248 - fi
249 - if ! use plipconfig ; then
250 - rm "${ED}"/sbin/plipconfig "${ED}"/usr/share/man/man8/plipconfig.8* || die
251 - fi
252 - if ! use slattach ; then
253 - rm "${ED}"/sbin/slattach "${ED}"/usr/share/man/man8/slattach.8* || die
254 - fi
255 -}