Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/lsof/
Date: Fri, 28 Sep 2018 14:52:41
Message-Id: 1538146354.616f602294fe986cbca6a339c2a7b5f984b1401d.zlogene@gentoo
1 commit: 616f602294fe986cbca6a339c2a7b5f984b1401d
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 28 14:52:17 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 28 14:52:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=616f6022
7
8 sys-process/lsof: Drop old
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 sys-process/lsof/lsof-4.89-r1.ebuild | 105 -----------------------------------
13 1 file changed, 105 deletions(-)
14
15 diff --git a/sys-process/lsof/lsof-4.89-r1.ebuild b/sys-process/lsof/lsof-4.89-r1.ebuild
16 deleted file mode 100644
17 index 0fc56539198..00000000000
18 --- a/sys-process/lsof/lsof-4.89-r1.ebuild
19 +++ /dev/null
20 @@ -1,105 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI="5"
25 -
26 -inherit eutils flag-o-matic toolchain-funcs
27 -
28 -MY_P=${P/-/_}
29 -DESCRIPTION="Lists open files for running Unix processes"
30 -HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
31 -SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
32 - ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2
33 - http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2"
34 -
35 -LICENSE="lsof"
36 -SLOT="0"
37 -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"
38 -IUSE="examples ipv6 rpc selinux static"
39 -
40 -RDEPEND="rpc? ( net-libs/libtirpc )
41 - selinux? ( sys-libs/libselinux )"
42 -DEPEND="${RDEPEND}
43 - rpc? ( virtual/pkgconfig )"
44 -
45 -S=${WORKDIR}/${MY_P}/${MY_P}_src
46 -
47 -src_unpack() {
48 - unpack ${A}
49 - cd ${MY_P} || die
50 - unpack ./${MY_P}_src.tar
51 -}
52 -
53 -src_prepare() {
54 - epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120
55 - # fix POSIX compliance with `echo`
56 - sed -i \
57 - -e 's:echo -n:printf:' \
58 - AFSConfig Configure Customize Inventory tests/CkTestDB || die
59 - # Convert `test -r header.h` into a compile test.
60 - # Make sure we convert `test ... -a ...` into two `test` commands
61 - # so we can then convert both over into a compile test. #601432
62 - sed -i -E \
63 - -e '/if test .* -a /s: -a : \&\& test :g' \
64 - -e '/test -r/s:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:g' \
65 - -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
66 - Configure || die
67 -}
68 -
69 -target() {
70 - case ${CHOST} in
71 - *-darwin*) echo darwin ;;
72 - *-freebsd*) echo freebsd ;;
73 - *-solaris*) echo solaris ;;
74 - *-aix*) echo aixgcc ;;
75 - *) echo linux ;;
76 - esac
77 -}
78 -
79 -src_configure() {
80 - use static && append-ldflags -static
81 -
82 - append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
83 - append-cppflags $(usex ipv6 -{D,U}HASIPv6)
84 - [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX
85 -
86 - export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
87 - $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
88 -
89 - # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
90 - # around in it and mix /usr/include paths with cross-compile/etc.
91 - touch .neverInv
92 - LINUX_HASSELINUX=$(usex selinux y n) \
93 - LSOF_INCLUDE=${T} \
94 - LSOF_CC=$(tc-getCC) \
95 - LSOF_AR="$(tc-getAR) rc" \
96 - LSOF_RANLIB=$(tc-getRANLIB) \
97 - LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
98 - ./Configure -n $(target) || die
99 -}
100 -
101 -src_compile() {
102 - emake DEBUG="" all
103 -}
104 -
105 -src_install() {
106 - dobin lsof
107 -
108 - if use examples ; then
109 - insinto /usr/share/lsof/scripts
110 - doins scripts/*
111 - fi
112 -
113 - doman lsof.8
114 - dodoc 00*
115 -}
116 -
117 -pkg_postinst() {
118 - if [[ ${CHOST} == *-solaris* ]] ; then
119 - einfo "Note: to use lsof on Solaris you need read permissions on"
120 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
121 - elif [[ ${CHOST} == *-aix* ]] ; then
122 - einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and"
123 - einfo "/dev/kmem, i.e. you need to be root, or to be in the group system"
124 - fi
125 -}