Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/lsof: ChangeLog lsof-4.85-r1.ebuild
Date: Sun, 30 Oct 2011 23:28:30
Message-Id: 20111030232819.0F3812004B@flycatcher.gentoo.org
1 vapier 11/10/30 23:28:19
2
3 Modified: ChangeLog
4 Added: lsof-4.85-r1.ebuild
5 Log:
6 Add fix from upstream #388555 by Lars Wendler (Polynomial-C).
7
8 (Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.81 sys-process/lsof/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/lsof/ChangeLog?rev=1.81&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/lsof/ChangeLog?rev=1.81&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/lsof/ChangeLog?r1=1.80&r2=1.81
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v
20 retrieving revision 1.80
21 retrieving revision 1.81
22 diff -u -r1.80 -r1.81
23 --- ChangeLog 29 Sep 2011 03:15:30 -0000 1.80
24 +++ ChangeLog 30 Oct 2011 23:28:18 -0000 1.81
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-process/lsof
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.80 2011/09/29 03:15:30 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.81 2011/10/30 23:28:18 vapier Exp $
30 +
31 +*lsof-4.85-r1 (30 Oct 2011)
32 +
33 + 30 Oct 2011; Mike Frysinger <vapier@g.o> +lsof-4.85-r1.ebuild,
34 + +files/lsof-4.85-arg.c.patch:
35 + Add fix from upstream #388555 by Lars Wendler (Polynomial-C).
36
37 *lsof-4.85 (29 Sep 2011)
38
39
40
41
42 1.1 sys-process/lsof/lsof-4.85-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/lsof/lsof-4.85-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/lsof/lsof-4.85-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: lsof-4.85-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.85-r1.ebuild,v 1.1 2011/10/30 23:28:18 vapier Exp $
52
53 EAPI="2"
54
55 inherit eutils flag-o-matic toolchain-funcs
56
57 MY_P=${P/-/_}
58 DESCRIPTION="Lists open files for running Unix processes"
59 HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
60 SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
61 ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
62 ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/${MY_P}.tar.bz2"
63
64 LICENSE="lsof"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
67 IUSE="ipv6 rpc selinux static"
68
69 RDEPEND="rpc? ( net-libs/libtirpc )
70 selinux? ( sys-libs/libselinux )"
71 DEPEND="${RDEPEND}"
72
73 S=${WORKDIR}/${MY_P}/${MY_P}_src
74
75 src_unpack() {
76 unpack ${A}
77 cd ${MY_P}
78 unpack ./${MY_P}_src.tar
79 }
80
81 src_prepare() {
82 epatch "${FILESDIR}"/${P}-arg.c.patch #388555
83 # convert `test -r header.h` into a compile test
84 sed -i -r \
85 -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \
86 -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
87 Configure || die
88 }
89
90 target() { usex kernel_FreeBSD freebsd linux ; }
91 src_configure() {
92 use static && append-ldflags -static
93
94 append-cppflags $(usex rpc "$($(tc-getPKG_CONFIG) libtirpc --cflags)" -DHASNOTRPC)
95 append-cppflags $(usex ipv6 -{D,U}HASIPv6)
96
97 export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
98 $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
99
100 # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
101 # around in it and mix /usr/include paths with cross-compile/etc.
102 touch .neverInv
103 LINUX_HASSELINUX=$(usex selinux y n) \
104 LSOF_INCLUDE=${T} \
105 LSOF_CC=$(tc-getCC) \
106 LSOF_AR="$(tc-getAR) rc" \
107 LSOF_RANLIB=$(tc-getRANLIB) \
108 LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
109 ./Configure -n $(target) || die
110 }
111
112 src_compile() {
113 emake DEBUG="" all || die
114 }
115
116 src_install() {
117 dobin lsof || die
118
119 insinto /usr/share/lsof/scripts
120 doins scripts/* || die
121
122 doman lsof.8 || die
123 dodoc 00*
124 }