1 |
commit: 657283c06a2cfec5a080be496343b8d723402408 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 8 08:09:17 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 8 08:10:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=657283c0 |
7 |
|
8 |
sys-process/lsof: Bump to version 4.93.2 |
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 | 1 + |
14 |
sys-process/lsof/lsof-4.93.2.ebuild | 106 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 107 insertions(+) |
16 |
|
17 |
diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest |
18 |
index d7c71215ef9..f99d3554d1e 100644 |
19 |
--- a/sys-process/lsof/Manifest |
20 |
+++ b/sys-process/lsof/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
+DIST lsof-4.93.2.tar.gz 1319222 BLAKE2B 3b1756e7b72a0b0a2a11bce82a9b386f6dc5727d7837a4d544e2e33a98be3bfb46af50f0d8cc7b4a4bc419148d13f86d0f34cf806d90ba5d31312f426f81b7e9 SHA512 3c4a4d503391b1a648a08a4947c2e72a9629b169eddf50738b16a16a82f2a26967e4db2902e4a9157de5a73ae638db48e392117ffbd591e9fafd6b1725cd01a0 |
23 |
DIST lsof_4.89.tar.bz2 784560 BLAKE2B 375ad53fd5c26a79559295fc8bcb6c495c00bf546019001b498f064dbd111f3581d60a577c199ce2cbd49dac0c061cdaea99de56d6bf069dceb0dd8b2f836942 SHA512 cafb0209143c7863e5cebe7efc33a2520d36f9e26222350e4edfa18debbcfb5c81f42f71469e5913fb21f49a7562bbe761b72dfc8f297dadf75ac619cdcb318c |
24 |
DIST lsof_4.90.tar.bz2 791758 BLAKE2B 250025eb553ee4574cadadcc57fa52bd97d8ce4432e25e9e028d3eec4033be54d5cbab5f02e0a04365033b5d179ca50efa591efe4ac28077f63513edee131084 SHA512 8c1481ab72867488d800ad68c9de5c936f034f044c90eeed220fb5683f68ba8efa3dd0efe1e23b4d4968750255b475150ad08ae8627dd9aa0a5025498418351a |
25 |
DIST lsof_4.91.tar.bz2 791734 BLAKE2B cd6211caedea34fdbb89266fd78a70902117eda6d4d7fa69115426f4a6f5cb5296fa09bbd946648d8d93483881e4ea4e2190f090be155c1081850e8366cfd05a SHA512 49f811941dd6303f7cb0655fddb8b1177af5d1b18f2bd1edfab09d2c128aea73daecf09c7a5375979c66ba764c88a6e70c9086b55c3634e3be01ab1aa12e9f92 |
26 |
|
27 |
diff --git a/sys-process/lsof/lsof-4.93.2.ebuild b/sys-process/lsof/lsof-4.93.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..3fcd45c5b21 |
30 |
--- /dev/null |
31 |
+++ b/sys-process/lsof/lsof-4.93.2.ebuild |
32 |
@@ -0,0 +1,106 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit flag-o-matic toolchain-funcs |
39 |
+ |
40 |
+MY_P="${P/-/_}" |
41 |
+DESCRIPTION="Lists open files for running Unix processes" |
42 |
+HOMEPAGE="https://github.com/lsof-org/lsof" |
43 |
+SRC_URI="https://github.com/lsof-org/lsof/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="lsof" |
46 |
+SLOT="0" |
47 |
+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" |
48 |
+IUSE="examples ipv6 rpc selinux" |
49 |
+ |
50 |
+RDEPEND="rpc? ( net-libs/libtirpc ) |
51 |
+ selinux? ( sys-libs/libselinux )" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ rpc? ( virtual/pkgconfig )" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${PN}-4.85-cross.patch #432120 |
57 |
+) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ # fix POSIX compliance with `echo` |
62 |
+ sed -i \ |
63 |
+ -e 's:echo -n:printf:' \ |
64 |
+ AFSConfig Configure Customize Inventory tests/CkTestDB || die |
65 |
+ # Convert `test -r header.h` into a compile test. |
66 |
+ # Make sure we convert `test ... -a ...` into two `test` commands |
67 |
+ # so we can then convert both over into a compile test. #601432 |
68 |
+ sed -i -E \ |
69 |
+ -e '/if test .* -a /s: -a : \&\& test :g' \ |
70 |
+ -e '/test -r/s:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:g' \ |
71 |
+ -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \ |
72 |
+ Configure || die |
73 |
+} |
74 |
+ |
75 |
+target() { |
76 |
+ case ${CHOST} in |
77 |
+ *-darwin*) echo darwin ;; |
78 |
+ *-freebsd*) echo freebsd ;; |
79 |
+ *-solaris*) echo solaris ;; |
80 |
+ *-aix*) echo aixgcc ;; |
81 |
+ *) echo linux ;; |
82 |
+ esac |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H") |
87 |
+ append-cppflags $(usex ipv6 -{D,U}HASIPv6) |
88 |
+ [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX |
89 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
90 |
+ # make sys/proc_info.h available in ${T} because of LSOF_INCLUDE |
91 |
+ # dummy location -- Darwin needs this for a Configure check to |
92 |
+ # succeed |
93 |
+ if [[ -e /usr/include/sys/proc_info.h ]] ; then |
94 |
+ mkdir -p "${T}"/sys || die |
95 |
+ ( cd "${T}"/sys && ln -s /usr/include/sys/proc_info.h ) || die |
96 |
+ fi |
97 |
+ fi |
98 |
+ |
99 |
+ export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \ |
100 |
+ $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)" |
101 |
+ |
102 |
+ # Set LSOF_INCLUDE to a dummy location so the script doesn't poke |
103 |
+ # around in it and mix /usr/include paths with cross-compile/etc. |
104 |
+ touch .neverInv |
105 |
+ LINUX_HASSELINUX=$(usex selinux y n) \ |
106 |
+ LSOF_INCLUDE=${T} \ |
107 |
+ LSOF_CC=$(tc-getCC) \ |
108 |
+ LSOF_AR="$(tc-getAR) rc" \ |
109 |
+ LSOF_RANLIB=$(tc-getRANLIB) \ |
110 |
+ LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \ |
111 |
+ ./Configure -n $(target) || die |
112 |
+} |
113 |
+ |
114 |
+src_compile() { |
115 |
+ emake DEBUG="" all |
116 |
+} |
117 |
+ |
118 |
+src_install() { |
119 |
+ dobin lsof |
120 |
+ |
121 |
+ if use examples ; then |
122 |
+ insinto /usr/share/lsof/scripts |
123 |
+ doins scripts/* |
124 |
+ fi |
125 |
+ |
126 |
+ newman {L,l}sof.8 |
127 |
+ dodoc 00* |
128 |
+} |
129 |
+ |
130 |
+pkg_postinst() { |
131 |
+ if [[ ${CHOST} == *-solaris* ]] ; then |
132 |
+ einfo "Note: to use lsof on Solaris you need read permissions on" |
133 |
+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" |
134 |
+ elif [[ ${CHOST} == *-aix* ]] ; then |
135 |
+ einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and" |
136 |
+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group system" |
137 |
+ fi |
138 |
+} |