Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/lsof/
Date: Wed, 08 May 2019 08:10:21
Message-Id: 1557303005.9cbce62d14d67f4e1c5b9dbf45d4ca065fd07801.polynomial-c@gentoo
1 commit: 9cbce62d14d67f4e1c5b9dbf45d4ca065fd07801
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 8 08:09:50 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed May 8 08:10:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cbce62d
7
8 sys-process/lsof: Removed old.
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-process/lsof/Manifest | 2 -
14 sys-process/lsof/lsof-4.89.ebuild | 101 --------------------------------
15 sys-process/lsof/lsof-4.90.ebuild | 119 --------------------------------------
16 3 files changed, 222 deletions(-)
17
18 diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest
19 index f99d3554d1e..2ea65705ba4 100644
20 --- a/sys-process/lsof/Manifest
21 +++ b/sys-process/lsof/Manifest
22 @@ -1,4 +1,2 @@
23 DIST lsof-4.93.2.tar.gz 1319222 BLAKE2B 3b1756e7b72a0b0a2a11bce82a9b386f6dc5727d7837a4d544e2e33a98be3bfb46af50f0d8cc7b4a4bc419148d13f86d0f34cf806d90ba5d31312f426f81b7e9 SHA512 3c4a4d503391b1a648a08a4947c2e72a9629b169eddf50738b16a16a82f2a26967e4db2902e4a9157de5a73ae638db48e392117ffbd591e9fafd6b1725cd01a0
24 -DIST lsof_4.89.tar.bz2 784560 BLAKE2B 375ad53fd5c26a79559295fc8bcb6c495c00bf546019001b498f064dbd111f3581d60a577c199ce2cbd49dac0c061cdaea99de56d6bf069dceb0dd8b2f836942 SHA512 cafb0209143c7863e5cebe7efc33a2520d36f9e26222350e4edfa18debbcfb5c81f42f71469e5913fb21f49a7562bbe761b72dfc8f297dadf75ac619cdcb318c
25 -DIST lsof_4.90.tar.bz2 791758 BLAKE2B 250025eb553ee4574cadadcc57fa52bd97d8ce4432e25e9e028d3eec4033be54d5cbab5f02e0a04365033b5d179ca50efa591efe4ac28077f63513edee131084 SHA512 8c1481ab72867488d800ad68c9de5c936f034f044c90eeed220fb5683f68ba8efa3dd0efe1e23b4d4968750255b475150ad08ae8627dd9aa0a5025498418351a
26 DIST lsof_4.91.tar.bz2 791734 BLAKE2B cd6211caedea34fdbb89266fd78a70902117eda6d4d7fa69115426f4a6f5cb5296fa09bbd946648d8d93483881e4ea4e2190f090be155c1081850e8366cfd05a SHA512 49f811941dd6303f7cb0655fddb8b1177af5d1b18f2bd1edfab09d2c128aea73daecf09c7a5375979c66ba764c88a6e70c9086b55c3634e3be01ab1aa12e9f92
27
28 diff --git a/sys-process/lsof/lsof-4.89.ebuild b/sys-process/lsof/lsof-4.89.ebuild
29 deleted file mode 100644
30 index 38ea4bcd115..00000000000
31 --- a/sys-process/lsof/lsof-4.89.ebuild
32 +++ /dev/null
33 @@ -1,101 +0,0 @@
34 -# Copyright 1999-2017 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=5
38 -
39 -inherit eutils flag-o-matic toolchain-funcs
40 -
41 -MY_P=${P/-/_}
42 -DESCRIPTION="Lists open files for running Unix processes"
43 -HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
44 -SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
45 - ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2
46 - http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2"
47 -
48 -LICENSE="lsof"
49 -SLOT="0"
50 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
51 -IUSE="examples ipv6 rpc selinux static"
52 -
53 -RDEPEND="rpc? ( net-libs/libtirpc )
54 - selinux? ( sys-libs/libselinux )"
55 -DEPEND="${RDEPEND}
56 - rpc? ( virtual/pkgconfig )"
57 -
58 -S=${WORKDIR}/${MY_P}/${MY_P}_src
59 -
60 -src_unpack() {
61 - unpack ${A}
62 - cd ${MY_P} || die
63 - unpack ./${MY_P}_src.tar
64 -}
65 -
66 -src_prepare() {
67 - epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120
68 - # fix POSIX compliance with `echo`
69 - sed -i \
70 - -e 's:echo -n:printf:' \
71 - AFSConfig Configure Customize Inventory tests/CkTestDB || die
72 - # convert `test -r header.h` into a compile test
73 - sed -i -r \
74 - -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \
75 - -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
76 - Configure || die
77 -}
78 -
79 -target() {
80 - case ${CHOST} in
81 - *-darwin*) echo darwin ;;
82 - *-freebsd*) echo freebsd ;;
83 - *-solaris*) echo solaris ;;
84 - *-aix*) echo aixgcc ;;
85 - *) echo linux ;;
86 - esac
87 -}
88 -
89 -src_configure() {
90 - use static && append-ldflags -static
91 -
92 - append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
93 - append-cppflags $(usex ipv6 -{D,U}HASIPv6)
94 -
95 - export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
96 - $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
97 -
98 - # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
99 - # around in it and mix /usr/include paths with cross-compile/etc.
100 - touch .neverInv
101 - LINUX_HASSELINUX=$(usex selinux y n) \
102 - LSOF_INCLUDE=${T} \
103 - LSOF_CC=$(tc-getCC) \
104 - LSOF_AR="$(tc-getAR) rc" \
105 - LSOF_RANLIB=$(tc-getRANLIB) \
106 - LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
107 - ./Configure -n $(target) || die
108 -}
109 -
110 -src_compile() {
111 - emake DEBUG="" all
112 -}
113 -
114 -src_install() {
115 - dobin lsof
116 -
117 - if use examples ; then
118 - insinto /usr/share/lsof/scripts
119 - doins scripts/*
120 - fi
121 -
122 - doman lsof.8
123 - dodoc 00*
124 -}
125 -
126 -pkg_postinst() {
127 - if [[ ${CHOST} == *-solaris* ]] ; then
128 - einfo "Note: to use lsof on Solaris you need read permissions on"
129 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
130 - elif [[ ${CHOST} == *-aix* ]] ; then
131 - einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and"
132 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group system"
133 - fi
134 -}
135
136 diff --git a/sys-process/lsof/lsof-4.90.ebuild b/sys-process/lsof/lsof-4.90.ebuild
137 deleted file mode 100644
138 index 8a1faa697af..00000000000
139 --- a/sys-process/lsof/lsof-4.90.ebuild
140 +++ /dev/null
141 @@ -1,119 +0,0 @@
142 -# Copyright 1999-2018 Gentoo Foundation
143 -# Distributed under the terms of the GNU General Public License v2
144 -
145 -EAPI=6
146 -
147 -inherit flag-o-matic toolchain-funcs
148 -
149 -MY_P="${P/-/_}"
150 -DESCRIPTION="Lists open files for running Unix processes"
151 -HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
152 -SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
153 - ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2
154 - http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2"
155 -
156 -LICENSE="lsof"
157 -SLOT="0"
158 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
159 -IUSE="examples ipv6 rpc selinux static"
160 -
161 -RDEPEND="rpc? ( net-libs/libtirpc )
162 - selinux? ( sys-libs/libselinux )"
163 -DEPEND="${RDEPEND}
164 - rpc? ( virtual/pkgconfig )"
165 -
166 -S="${WORKDIR}/${MY_P}/${MY_P}_src"
167 -
168 -PATCHES=(
169 - "${FILESDIR}"/${PN}-4.85-cross.patch #432120
170 - "${FILESDIR}"/${PN}-4.90-darwin-cppfix.patch #648084
171 -)
172 -
173 -src_unpack() {
174 - unpack ${A}
175 - cd ${MY_P} || die
176 - unpack ./${MY_P}_src.tar
177 -}
178 -
179 -src_prepare() {
180 - default
181 - # fix POSIX compliance with `echo`
182 - sed -i \
183 - -e 's:echo -n:printf:' \
184 - AFSConfig Configure Customize Inventory tests/CkTestDB || die
185 - # Convert `test -r header.h` into a compile test.
186 - # Make sure we convert `test ... -a ...` into two `test` commands
187 - # so we can then convert both over into a compile test. #601432
188 - sed -i -E \
189 - -e '/if test .* -a /s: -a : \&\& test :g' \
190 - -e '/test -r/s:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:g' \
191 - -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
192 - Configure || die
193 -}
194 -
195 -target() {
196 - case ${CHOST} in
197 - *-darwin*) echo darwin ;;
198 - *-freebsd*) echo freebsd ;;
199 - *-solaris*) echo solaris ;;
200 - *-aix*) echo aixgcc ;;
201 - *) echo linux ;;
202 - esac
203 -}
204 -
205 -src_configure() {
206 - use static && append-ldflags -static
207 -
208 - append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
209 - append-cppflags $(usex ipv6 -{D,U}HASIPv6)
210 - [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX
211 - if [[ ${CHOST} == *-darwin* ]] ; then
212 - # make sys/proc_info.h available in ${T} because of LSOF_INCLUDE
213 - # dummy location -- Darwin needs this for a Configure check to
214 - # succeed
215 - if [[ -e /usr/include/sys/proc_info.h ]] ; then
216 - mkdir -p "${T}"/sys || die
217 - ( cd "${T}"/sys && ln -s /usr/include/sys/proc_info.h ) || die
218 - fi
219 - fi
220 -
221 - export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
222 - $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
223 -
224 - # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
225 - # around in it and mix /usr/include paths with cross-compile/etc.
226 - touch .neverInv
227 - LINUX_HASSELINUX=$(usex selinux y n) \
228 - LSOF_INCLUDE=${T} \
229 - LSOF_CC=$(tc-getCC) \
230 - LSOF_AR="$(tc-getAR) rc" \
231 - LSOF_RANLIB=$(tc-getRANLIB) \
232 - LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
233 - ./Configure -n $(target) || die
234 -}
235 -
236 -src_compile() {
237 - emake DEBUG="" all
238 -}
239 -
240 -src_install() {
241 - dobin lsof
242 -
243 - if use examples ; then
244 - insinto /usr/share/lsof/scripts
245 - doins scripts/*
246 - fi
247 -
248 - doman lsof.8
249 - dodoc 00*
250 -}
251 -
252 -pkg_postinst() {
253 - if [[ ${CHOST} == *-solaris* ]] ; then
254 - einfo "Note: to use lsof on Solaris you need read permissions on"
255 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
256 - elif [[ ${CHOST} == *-aix* ]] ; then
257 - einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and"
258 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group system"
259 - fi
260 -}