summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2014-12-04 18:19:06 +0900
committerBenda Xu <heroxbd@gentoo.org>2014-12-04 18:19:06 +0900
commit5efbed34049b3c973ee54108e1779234bfeaceda (patch)
tree61d11c45729543703da4eec0b5e08861e2900a53
parentdev-python/wxpython from gx86 directly: the version from prefix is old. (diff)
downloadandroid-5efbed34049b3c973ee54108e1779234bfeaceda.tar.gz
android-5efbed34049b3c973ee54108e1779234bfeaceda.tar.bz2
android-5efbed34049b3c973ee54108e1779234bfeaceda.zip
sys-process/lsof: import from gx86, Prefix tree is too old.
-rw-r--r--sys-process/lsof/ChangeLog517
-rw-r--r--sys-process/lsof/Manifest30
-rw-r--r--sys-process/lsof/files/lsof-4.85-arg.c.patch30
-rw-r--r--sys-process/lsof/files/lsof-4.85-cross.patch33
-rw-r--r--sys-process/lsof/lsof-4.85-r2.ebuild80
-rw-r--r--sys-process/lsof/lsof-4.87-r1.ebuild97
-rw-r--r--sys-process/lsof/lsof-4.88.ebuild97
-rw-r--r--sys-process/lsof/metadata.xml8
8 files changed, 892 insertions, 0 deletions
diff --git a/sys-process/lsof/ChangeLog b/sys-process/lsof/ChangeLog
new file mode 100644
index 0000000..fc8b77d
--- /dev/null
+++ b/sys-process/lsof/ChangeLog
@@ -0,0 +1,517 @@
+# ChangeLog for sys-process/lsof
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/ChangeLog,v 1.107 2014/12/03 09:39:37 ago Exp $
+
+ 03 Dec 2014; Agostino Sarubbo <ago@gentoo.org> lsof-4.87-r1.ebuild:
+ Stable for ppc, wrt bug #529126
+
+ 02 Dec 2014; Agostino Sarubbo <ago@gentoo.org> lsof-4.87-r1.ebuild:
+ Stable for alpha, wrt bug #529126
+
+ 01 Dec 2014; Agostino Sarubbo <ago@gentoo.org> lsof-4.87-r1.ebuild:
+ Stable for sparc, wrt bug #529126
+
+ 23 Nov 2014; Mikle Kolyada <zlogene@gentoo.org> lsof-4.87-r1.ebuild:
+ x86 stable wrt bug #529126
+
+ 21 Nov 2014; Mike Frysinger <vapier@gentoo.org> lsof-4.87-r1.ebuild,
+ lsof-4.88.ebuild:
+ Update SRC_URI #529643 by Łukasz Stelmach.
+
+ 14 Nov 2014; Jeroen Roovers <jer@gentoo.org> lsof-4.87-r1.ebuild:
+ Stable for HPPA (bug #529126).
+
+ 14 Nov 2014; Markus Meier <maekke@gentoo.org> lsof-4.87-r1.ebuild:
+ arm stable, bug #529126
+
+ 13 Nov 2014; Agostino Sarubbo <ago@gentoo.org> lsof-4.87-r1.ebuild:
+ Stable for amd64, wrt bug #529126
+
+*lsof-4.88 (13 Nov 2014)
+
+ 13 Nov 2014; Lars Wendler <polynomial-c@gentoo.org> +lsof-4.88.ebuild:
+ Version bump.
+
+ 20 Jan 2014; Mike Frysinger <vapier@gentoo.org> lsof-4.85-r2.ebuild,
+ lsof-4.87-r1.ebuild:
+ Depend on virtual/pkgconfig when USE=rpc due to libtirpc functionality #498584
+ by palme3000.
+
+ 18 Jan 2014; Mike Frysinger <vapier@gentoo.org> lsof-4.85-r2.ebuild,
+ lsof-4.87-r1.ebuild:
+ Add arm64 love.
+
+ 07 Jan 2014; Lars Wendler <polynomial-c@gentoo.org> -lsof-4.82.ebuild,
+ -lsof-4.83.ebuild, -lsof-4.84.ebuild, -lsof-4.84-r1.ebuild,
+ -lsof-4.85.ebuild, -lsof-4.85-r1.ebuild, -lsof-4.86.ebuild,
+ -lsof-4.87.ebuild, -files/lsof-4.84-rpc.patch:
+ Removed old versions and files.
+
+*lsof-4.87-r1 (27 Apr 2013)
+
+ 27 Apr 2013; Mike Frysinger <vapier@gentoo.org> +lsof-4.87-r1.ebuild:
+ Update to EAPI=4 and merge some random prefix changes #405973 by Dan Wallis.
+
+*lsof-4.87 (06 Jan 2013)
+
+ 06 Jan 2013; Mike Frysinger <vapier@gentoo.org> +lsof-4.87.ebuild:
+ Version bump #450624 by Agostino Sarubbo.
+
+*lsof-4.86 (04 Sep 2012)
+
+ 04 Sep 2012; Mike Frysinger <vapier@gentoo.org> +lsof-4.86.ebuild:
+ Version bump #433605 by teidakankan.
+
+ 22 Aug 2012; Mike Frysinger <vapier@gentoo.org> +files/lsof-4.85-cross.patch,
+ lsof-4.85-r2.ebuild:
+ Fix cross-compiling by avoiding executing compiled configure tests #432120 by
+ Dennis Schridde.
+
+ 28 May 2012; Raúl Porcel <armin76@gentoo.org> lsof-4.85-r2.ebuild:
+ alpha/ia64/m68k/s390/sh/sparc stable wrt #413273
+
+ 24 May 2012; Mike Frysinger <vapier@gentoo.org> lsof-4.84-r1.ebuild:
+ Move to usex() from eutils.eclass.
+
+ 29 Apr 2012; Markus Meier <maekke@gentoo.org> lsof-4.85-r2.ebuild:
+ arm stable, bug #413273
+
+ 28 Apr 2012; <nixnut@gentoo.org> lsof-4.85-r2.ebuild:
+ ppc stable #413273
+
+ 24 Apr 2012; Jeroen Roovers <jer@gentoo.org> lsof-4.85-r2.ebuild:
+ Stable for HPPA (bug #413273).
+
+ 24 Apr 2012; Agostino Sarubbo <ago@gentoo.org> lsof-4.85-r2.ebuild:
+ Stable for amd64, wrt bug #413273
+
+ 24 Apr 2012; Jeff Horelick <jdhore@gentoo.org> lsof-4.85-r2.ebuild:
+ marked x86 per bug 413273
+
+ 23 Apr 2012; Brent Baude <ranger@gentoo.org> lsof-4.85-r2.ebuild:
+ Marking lsof-4.85-r2 ppc64 for bug 413273
+
+ 23 Apr 2012; Mike Frysinger <vapier@gentoo.org> lsof-4.84-r1.ebuild,
+ lsof-4.85-r1.ebuild, lsof-4.85-r2.ebuild, lsof-4.85.ebuild:
+ We need -DHASNORPC_H too to disable rpc support.
+
+*lsof-4.85-r2 (15 Nov 2011)
+
+ 15 Nov 2011; Mike Frysinger <vapier@gentoo.org> +lsof-4.85-r2.ebuild:
+ Put example scripts behind USE=examples.
+
+*lsof-4.85-r1 (30 Oct 2011)
+
+ 30 Oct 2011; Mike Frysinger <vapier@gentoo.org> +lsof-4.85-r1.ebuild,
+ +files/lsof-4.85-arg.c.patch:
+ Add fix from upstream #388555 by Lars Wendler (Polynomial-C).
+
+*lsof-4.85 (29 Sep 2011)
+
+ 29 Sep 2011; Mike Frysinger <vapier@gentoo.org> +lsof-4.85.ebuild:
+ Version bump.
+
+*lsof-4.84-r1 (17 Sep 2011)
+
+ 17 Sep 2011; Mike Frysinger <vapier@gentoo.org> +lsof-4.84-r1.ebuild,
+ +files/lsof-4.84-rpc.patch, metadata.xml:
+ Clean up build logic by testing the compiler rather than poking around the
+ filesystem. Support USE=ipv6. Support building with libtirpc rather than
+ glibc and do so with USE=rpc #370833 by kabel.
+
+ 29 Aug 2010; Raúl Porcel <armin76@gentoo.org> lsof-4.83.ebuild:
+ alpha/ia64/m68k/s390/sh/sparc stable wrt #331143
+
+ 13 Aug 2010; Jeremy Olexa <darkside@gentoo.org> lsof-4.83.ebuild:
+ arm stable, bug 331143
+
+ 11 Aug 2010; Joseph Jezak <josejx@gentoo.org> lsof-4.84.ebuild:
+ Marked ppc/ppc64 stable for bug #331143.
+
+ 06 Aug 2010; Christian Faulhammer <fauli@gentoo.org> lsof-4.83.ebuild:
+ stable x86, bug 331143
+
+ 05 Aug 2010; Jeroen Roovers <jer@gentoo.org> lsof-4.83.ebuild:
+ Stable for HPPA (bug #331143).
+
+ 04 Aug 2010; Markos Chandras <hwoarang@gentoo.org> lsof-4.83.ebuild:
+ Stable on amd64 wrt bug #331143
+
+*lsof-4.84 (04 Aug 2010)
+
+ 04 Aug 2010; Mike Frysinger <vapier@gentoo.org> +lsof-4.84.ebuild:
+ Version bump #330771 by Jim.
+
+ 01 Feb 2010; Markos Chandras <hwoarang@gentoo.org> lsof-4.82.ebuild:
+ Stable on amd64 wrt bug #301443
+
+ 24 Jan 2010; Raúl Porcel <armin76@gentoo.org> lsof-4.82.ebuild:
+ alpha/arm/ia64/m68k/s390/sh stable wrt #301443
+
+ 22 Jan 2010; Brent Baude <ranger@gentoo.org> lsof-4.82.ebuild:
+ stable ppc, bug 301443
+
+ 21 Jan 2010; Christian Faulhammer <fauli@gentoo.org> lsof-4.82.ebuild:
+ stable x86, bug 301443
+
+ 20 Jan 2010; Brent Baude <ranger@gentoo.org> lsof-4.82.ebuild:
+ stable ppc64, bug 301443
+
+ 19 Jan 2010; Tiago Cunha <tcunha@gentoo.org> lsof-4.82.ebuild:
+ stable sparc, bug 301443
+
+ 19 Jan 2010; Jeroen Roovers <jer@gentoo.org> lsof-4.82.ebuild:
+ Stable for HPPA (bug #301443).
+
+*lsof-4.83 (18 Jan 2010)
+
+ 18 Jan 2010; Mike Frysinger <vapier@gentoo.org> +lsof-4.83.ebuild:
+ Version bump.
+
+ 11 May 2009; Mike Frysinger <vapier@gentoo.org> lsof-4.82.ebuild:
+ Improve how we past build flags/settings to avoid custom patches.
+
+*lsof-4.82 (11 May 2009)
+
+ 11 May 2009; Mike Frysinger <vapier@gentoo.org> +lsof-4.82.ebuild:
+ Version bump #269341 by Lars Wendler.
+
+ 17 Mar 2009; Raúl Porcel <armin76@gentoo.org> lsof-4.81-r2.ebuild:
+ m68k stable wrt #258195, thanks to kolla for testing
+
+ 14 Feb 2009; Raúl Porcel <armin76@gentoo.org> lsof-4.81-r2.ebuild:
+ arm/ia64/s390/sh/sparc stable wrt #258195
+
+ 12 Feb 2009; Brent Baude <ranger@gentoo.org> lsof-4.81-r2.ebuild:
+ stable ppc64, bug 258195
+
+ 09 Feb 2009; Markus Meier <maekke@gentoo.org> lsof-4.81-r2.ebuild:
+ amd64/x86 stable, bug #258195
+
+ 09 Feb 2009; nixnut <nixnut@gentoo.org> lsof-4.81-r2.ebuild:
+ ppc stable #258195
+
+ 09 Feb 2009; Tobias Klausmann <klausman@gentoo.org> lsof-4.81-r2.ebuild:
+ Stable on alpha, bug #258195
+
+ 09 Feb 2009; Jeroen Roovers <jer@gentoo.org> lsof-4.81-r2.ebuild:
+ Stable for HPPA (bug #244660).
+
+ 10 Dec 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/lsof-4.81-recmake.patch, lsof-4.81-r2.ebuild:
+ Fix build on G/FreeBSD. Bug #250383
+
+*lsof-4.81-r2 (17 Nov 2008)
+
+ 17 Nov 2008; Joshua Kinard <kumba@gentoo.org>
+ files/lsof-4.81-proc_c.patch, -lsof-4.81-r1.ebuild, +lsof-4.81-r2.ebuild:
+ Update patch provided by upstream that addressed #244660.
+
+*lsof-4.81-r1 (02 Nov 2008)
+
+ 02 Nov 2008; Joshua Kinard <kumba@gentoo.org>
+ +files/lsof-4.81-proc_c.patch, -lsof-4.81.ebuild, +lsof-4.81-r1.ebuild:
+ Bump lsof-4.81 to -r1 and include a patch to address Bug #244660.
+
+*lsof-4.81 (26 Oct 2008)
+
+ 26 Oct 2008; Mike Frysinger <vapier@gentoo.org> +lsof-4.81.ebuild:
+ Version bump.
+
+*lsof-4.80-r1 (03 Oct 2008)
+
+ 03 Oct 2008; Diego Pettenò <flameeyes@gentoo.org> +lsof-4.80-r1.ebuild:
+ Add a new revision that doesn't install the static library. Since we don't
+ install any header file it's pointless to have it. Also, it's just an
+ internal help library, of no use once lsof is installed.
+
+ 18 Aug 2008; Brent Baude <ranger@gentoo.org> lsof-4.78-r2.ebuild:
+ stable ppc64, bug 234929
+
+ 17 Aug 2008; Santiago M. Mola <coldwind@gentoo.org> lsof-4.78-r2.ebuild:
+ amd64 stable wrt bug #234929
+
+ 16 Aug 2008; nixnut <nixnut@gentoo.org> lsof-4.78-r2.ebuild:
+ Stable on ppc wrt bug 234929
+
+ 16 Aug 2008; Raúl Porcel <armin76@gentoo.org> lsof-4.78-r2.ebuild:
+ alpha/ia64/sparc/x86 stable wrt #234929
+
+ 16 Aug 2008; Jeroen Roovers <jer@gentoo.org> lsof-4.78-r2.ebuild:
+ Stable for HPPA (bug #234929).
+
+*lsof-4.80 (16 Aug 2008)
+
+ 16 Aug 2008; Mike Frysinger <vapier@gentoo.org> +lsof-4.80.ebuild:
+ Version bump #233673 by Lars (Polynomial-C).
+
+*lsof-4.78-r2 (14 May 2008)
+
+ 14 May 2008; Doug Goldstein <cardoe@gentoo.org> +lsof-4.78-r2.ebuild:
+ fix automagical depend on selinux. bug #188272. patch provided by Peter
+ Alfredsen <peter.alfredsen@gmail.com>
+
+ 28 Mar 2008; Jeroen Roovers <jer@gentoo.org> lsof-4.78-r1.ebuild:
+ Stable for HPPA too.
+
+ 01 Dec 2007; Markus Rothe <corsair@gentoo.org> lsof-4.78-r1.ebuild:
+ Stable on ppc64
+
+ 20 Nov 2007; Joshua Kinard <kumba@gentoo.org> lsof-4.78.ebuild:
+ Stable on mips.
+
+ 01 Nov 2007; <solar@gentoo.org> lsof-4.78-r1.ebuild:
+ - stable on ia64/amd64/x86
+
+ 19 Jul 2007; Joshua Kinard <kumba@gentoo.org> ChangeLog:
+ Stable on mips, per #185155.
+
+ 13 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> lsof-4.78.ebuild:
+ Stable on sparc wrt #185155
+
+ 13 Jul 2007; Raúl Porcel <armin76@gentoo.org> lsof-4.78.ebuild:
+ alpha/ia64/x86 stable wrt #185155
+
+ 13 Jul 2007; Joseph Jezak <josejx@gentoo.org> lsof-4.78.ebuild:
+ Marked ppc and ppc64 stable for bug #185155.
+
+ 13 Jul 2007; Mike Doty <kingtaco@gentoo.org> lsof-4.78.ebuild:
+ amd64 stable bug 185155
+
+ 13 Jul 2007; Jeroen Roovers <jer@gentoo.org> lsof-4.78.ebuild:
+ Stable for HPPA (bug #185155).
+
+*lsof-4.78-r1 (13 Jul 2007)
+
+ 13 Jul 2007; Mike Frysinger <vapier@gentoo.org> +lsof-4.78-r1.ebuild:
+ Move lsof to /usr/bin #185145 by Hanno Boeck.
+
+ 18 May 2007; Roy Marples <uberlord@gentoo.org>
+ +files/lsof-4.78-answer-config.patch, +files/lsof-4.78-freebsd.patch,
+ lsof-4.78.ebuild:
+ Add patch to compile on FreeBSD and keyword ~x86-fbsd, #132085.
+
+*lsof-4.78 (12 May 2007)
+
+ 12 May 2007; Mike Frysinger <vapier@gentoo.org> +lsof-4.78.ebuild:
+ Version bump #177986 by Andrej Kacian.
+
+ 05 Sep 2006; Joshua Kinard <kumba@gentoo.org> lsof-4.77.ebuild:
+ Marked stable on mips.
+
+ 04 Sep 2006; Saleem Abdulrasool <compnerd@gentoo.org> lsof-4.77.ebuild:
+ stable on x86 (bug #144925)
+
+ 29 Aug 2006; Bryan Østergaard <kloeri@gentoo.org> lsof-4.77.ebuild:
+ Stable on alpha.
+
+ 25 Aug 2006; Gustavo Zacarias <gustavoz@gentoo.org> lsof-4.77.ebuild:
+ Stable on sparc wrt #144925
+
+ 24 Aug 2006; Jeroen Roovers <jer@gentoo.org> lsof-4.77.ebuild:
+ Stable for HPPA (bug #144925).
+
+ 24 Aug 2006; Markus Rothe <corsair@gentoo.org> lsof-4.77.ebuild:
+ Stable on ppc64; bug #144925
+
+ 23 Aug 2006; Stephanie Lockwood-Childs <wormo@gentoo.org> lsof-4.77.ebuild:
+ stable on ppc (Bug #144925)
+
+ 24 Aug 2006; Olivier Crête <tester@gentoo.org> lsof-4.77.ebuild:
+ Stable on amd64 per bug #144925
+
+ 09 Jul 2006; Joshua Kinard <kumba@gentoo.org> lsof-4.76.ebuild:
+ Marked stable on mips.
+
+ 14 May 2006; Tobias Scherbaum <dertobi123@gentoo.org> lsof-4.76.ebuild:
+ ppc stable, bug #133233
+
+ 14 May 2006; Markus Rothe <corsair@gentoo.org> lsof-4.76.ebuild:
+ Stable on ppc64; bug #133233
+
+ 13 May 2006; Jason Wever <weeve@gentoo.org> lsof-4.76.ebuild:
+ Stable on SPARC wrt bug #133233.
+
+ 13 May 2006; Chris Gianelloni <wolf31o2@gentoo.org> lsof-4.76.ebuild:
+ Stable on x86 wrt bug #133233.
+
+ 13 May 2006; Thomas Cort <tcort@gentoo.org> lsof-4.76.ebuild:
+ Stable on alpha and amd64 wrt Bug #133233.
+
+*lsof-4.77 (13 May 2006)
+
+ 13 May 2006; Mike Frysinger <vapier@gentoo.org> +lsof-4.77.ebuild:
+ Version bump.
+
+ 17 Sep 2005; Ciaran McCreesh <ciaranm@gentoo.org> ChangeLog:
+ Converted to UTF-8, fixed encoding screwups
+
+*lsof-4.76 (10 Sep 2005)
+
+ 10 Sep 2005; Mike Frysinger <vapier@gentoo.org> +lsof-4.76.ebuild:
+ Version bump #105357 by Andrej Kacian.
+
+ 23 Aug 2005; Aron Griffis <agriffis@gentoo.org> lsof-4.75.ebuild:
+ stable on ia64
+
+ 13 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> lsof-4.75.ebuild:
+ Stable on ppc.
+
+ 08 Aug 2005; Markus Rothe <corsair@gentoo.org> lsof-4.75.ebuild:
+ Stable on ppc64
+
+ 08 Aug 2005; Aaron Walker <ka0ttic@gentoo.org> lsof-4.75.ebuild:
+ Stable on mips.
+
+ 07 Aug 2005; Rene Nussbaumer <killerfox@gentoo.org> lsof-4.75.ebuild:
+ Stable on hppa.
+
+ 05 Aug 2005; Gustavo Zacarias <gustavoz@gentoo.org> lsof-4.75.ebuild:
+ Stable on sparc
+
+*lsof-4.75 (11 Jun 2005)
+
+ 11 Jun 2005; Mike Frysinger <vapier@gentoo.org> +lsof-4.75.ebuild:
+ Version bump #95676 by Andrej Kacian.
+
+ 09 Apr 2005; Markus Rothe <corsair@gentoo.org> lsof-4.73.ebuild:
+ Stable on ppc64
+
+ 19 Mar 2005; Bryan Østergaard <kloeri@gentoo.org> lsof-4.73.ebuild:
+ Stable on alpha.
+
+ 07 Mar 2005; Konstantin Arkhipov <voxus@gentoo.org> lsof-4.73.ebuild:
+ Stable on amd64.
+
+*lsof-4.73 (03 Mar 2005)
+
+ 03 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml,
+ +files/4.73-answer-config.patch, +lsof-4.71.ebuild, +lsof-4.73.ebuild,
+ +lsof-4.74.ebuild:
+ Moved from sys-apps/lsof to sys-process/lsof.
+
+ 06 Feb 2005; Joshua Kinard <kumba@gentoo.org> lsof-4.73.ebuild:
+ Marked stable on mips.
+
+ 05 Feb 2005; Michael Hanselmann <hansmi@gentoo.org> lsof-4.73.ebuild:
+ Stable on ppc.
+
+ 27 Jan 2005; Gustavo Zacarias <gustavoz@gentoo.org> lsof-4.73.ebuild:
+ Stable on sparc
+
+*lsof-4.74 (26 Jan 2005)
+
+ 26 Jan 2005; Mike Frysinger <vapier@gentoo.org> +lsof-4.74.ebuild:
+ Version bump #78610 by Andrej Kacian.
+
+ 07 Nov 2004; Joshua Kinard <kumba@gentoo.org> lsof-4.71.ebuild:
+ Marked stable on mips.
+
+ 05 Nov 2004; Jason Wever <weeve@gentoo.org> lsof-4.71.ebuild:
+ Stable on sparc wrt bug #70199.
+
+ 06 Nov 2004; Bryan Østergaard <kloeri@gentoo.org> lsof-4.71.ebuild:
+ Stable on alpha, requested in bug 70201.
+
+*lsof-4.73 (05 Nov 2004)
+
+ 05 Nov 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/4.73-answer-config.patch, +lsof-4.73.ebuild:
+ Version bump and clean up #70150 by Ervin Németh.
+
+ 05 Nov 2004; Travis Tilley <lv@gentoo.org> lsof-4.71.ebuild:
+ stable on amd64
+
+ 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> lsof-4.67.ebuild,
+ lsof-4.69.ebuild, lsof-4.71.ebuild:
+ Masked lsof-4.71.ebuild stable for ppc
+
+ 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> lsof-4.67.ebuild,
+ lsof-4.69.ebuild:
+ Masked lsof-4.69.ebuild stable for ppc
+
+ 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> lsof-4.67.ebuild:
+ Masked lsof-4.67.ebuild stable for ppc
+
+ 11 Jul 2004; Tom Gall <tgall@gentoo.org> lsof-4.71.ebuild:
+ stable on ppc64, bug #56286
+
+ 22 Apr 2004; Michael McCabe <randy@gentoo.org> lsof-4.71.ebuild:
+ added s390 keywords
+
+*lsof-4.71 (24 Mar 2004)
+
+ 24 Mar 2004; Martin Holzer <mholzer@gentoo.org> lsof-4.71.ebuild:
+ Version bumped. Closes 45605
+
+*lsof-4.69 (26 Oct 2003)
+
+ 26 Oct 2003; Daniel Ahlberg <aliz@gentoo.org lsof-4.69.ebuild:
+ Version bump
+
+*lsof-4.68 (30 Jun 2003)
+
+ 21 Sep 2003; Mike Frysinger <vapier@gentoo.org> :
+ Add static support #29270.
+
+ 15 Aug 2003; Tavis Ormandy <taviso@gentoo.org> lsof-4.68.ebuild:
+ #26576 lsof 4.68 compile with -fstack-protector fails on Alpha
+
+ 03 Aug 2003; Joshua Kinard <kumba@gentoo.org> lsof-4.68.ebuild:
+ Changed ~sparc to sparc and added ~mips to KEYWORDS
+
+ 06 Jul 2003; Guy Martin <gmsoft@gentoo.org> lsof-4.68.ebuild :
+ Marked stable on hppa.
+
+ 30 Jun 2003; Ned Ludd <solar@gentoo.org> lsof-4.68.ebuild:
+ bump to latest version
+
+ 24 Jun 2003; Aron Griffis <agriffis@gentoo.org> lsof-4.67.ebuild:
+ Mark stable on alpha
+
+*lsof-4.67 (20 May 2003)
+
+ 20 May 2003; Zach Welch <zwelch@gentoo.org> lsof-4.67.ebuild:
+ bump to latest version; mark stable on arm; add empty IUSE
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*lsof-4.64 (29 Jun 2002)
+
+ 16 Jul 2003; Jan Seidel <tuxus@gentoo.org> lsof-4.64.ebuild :
+ Marked stable on mips
+
+ 14 Apr 2003; Guy Martin <gmsoft@gentoo.org> lsof-4.64.ebuild :
+ Added hppa to KEYWORDS.
+
+ 09 Jan 2002; Brandon Low <lostlogic@gentoo.org>:
+ Remove linux-sources from depends because it only needs the
+ headers and they are in system.
+
+ 26 Sep 2002; Mike Frysinger <vapier@gentoo.org>:
+ updated keywords (alpha)
+
+ 21 Jul 2002; Mark Guertin <gerk@gentoo.org>:
+ updated keywords (ppc)
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> lsof-4.64.ebuild :
+ Added KEYWORDS.
+
+ 29 Jun 2002; Seemant Kulleen <seemant@gentoo.org> lsof-4.64.ebuild
+ files/digest-lsof-4.64 :
+
+ Version bump (old version's tarball does not even exist at SRC_URI).
+ thanks to: paidhi@mospheira.net in bug #4310
+
+*lsof-4.60-r1 (1 Feb 2002)
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> lsof-4.60-r1.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest
new file mode 100644
index 0000000..65ba72a
--- /dev/null
+++ b/sys-process/lsof/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX lsof-4.85-arg.c.patch 703 SHA256 a517f97ae897dc1d1c7c4e1eeb2fe4a4dab646004c07457709f823e41e57bd43 SHA512 fa0b510e02647ae13515491240f7a2aa169c19f14a3a02ac9735a067ca509613a0aaf00b4f01e8f00a032a6320d15495d876fad3b4903c48df926ef5e8a397df WHIRLPOOL 80ee5f343120caa1ef104d6c0d542357eccf7e14981605cb8f5f82206e17a5f6d25675e3aeeb9c3cfdaa51e8c781aed8273f5e99dab115e0af926cfb0521353f
+AUX lsof-4.85-cross.patch 1000 SHA256 5067c73c65d9cbe75213572423d0ddea02a12ba7f3509767082cd9b6faf8b174 SHA512 399df859f225a69a7211c81439883afba38562d72b0d320dcf19acf7b705031963e97469a322af919d05aa14af501af6137301c24a29f871f59253c6d6a647d7 WHIRLPOOL b258a537f44d24c3e2bbc771476e98f79a3bcbf9b4d9d1e0f2779f9eae75e0a19eb8348a0d23ca2c9ad4d1835b859ec4f6ded74fd9fd5b8594d19bb1c8ff086b
+DIST lsof_4.85.tar.bz2 763397 SHA256 49aa58e63539c45bada514a6a2e5a1c9f946ada1f4137dc9154cf4bf6054a1c1 SHA512 f38356d300e18feaac09043f19c3ef612ac22cb89608cbecbc3594dd170705be855ebc5ce80b069db4a5af9bb517b1f4e571c2e175aa579214014d7f77ac30cb WHIRLPOOL 7cc1476bae92699b5b52e2e9a31713840308768b9536d2f4c904439458cd8778311facafffeea93f743db4488dc296fccfaf852d739f2b68859e10031289a6d3
+DIST lsof_4.87.tar.bz2 773664 SHA256 dfdd3709d82bc79ccdf3e404b84aafa9aede5948642a824ecaefd0aac589da2c SHA512 5e811225dd65366e3ef49628d567864fadda1dbda2d66a5e473123e73c468f5a3a577ae4e1b701a55ac49c2a759dab5c413663121c260a2804fca10ece902766 WHIRLPOOL 4ef01b855dbd8418e1533ebb293c3faacfa38c7a3cd30436d0a8174a974b7cd0eebfb79b23c4c3f13b66a65813a6fbdf5aa483d3f8d2689325fe7d0f48bfb5eb
+DIST lsof_4.88.tar.bz2 778563 SHA256 fe6f9b0e26b779ccd0ea5a0b6327c2b5c38d207a6db16f61ac01bd6c44e5c99b SHA512 acf3901ac08bac5acaa123af835de03fcf86c1cb851a2cba5bb6d08c53dff62570e4129c18ffa241ae84a83d5e6fc5207fb12e43b5ff5a21a0c1967ca117848b WHIRLPOOL 74d85794e5f05920ac83b160b02e510442ebe3f390a8f30bbf514f31bb8ff74ad191f89bed5b3eee47033cc7d6fe01ba4d9d812050d7132e041899d96264076f
+EBUILD lsof-4.85-r2.ebuild 2384 SHA256 c15ed72a62bd90c308c1a892407ca60bb25129e2b20fd2bbdc663a68b612506c SHA512 026c55efeb974319b713a67053b069ead9c7a0f29dbe41912afa34a2c484f9540827a593b6d465a33a88339dadd5baecd06c10e26c6990f6169a0d1fd8ccdc1d WHIRLPOOL 1bb12e1157f7ad68fe29335d620acfa3df07d90f3dbbdcb77134fa01e1b2ec81f19308bc865b1356991ead0bfcc375d346dc191e9d08fed23a0a1241f609f772
+EBUILD lsof-4.87-r1.ebuild 2873 SHA256 2bf307753d915d15122b819d38d91b3c6a8428443272dacb3d259c1f590b54e0 SHA512 75852b9af5ee49b164794b83aa8202911220ea034f9d880825f910fd87d18f487b8234dc07f6c7115fa732d428eedbd7972c54220925307fa7e43856e76bc47e WHIRLPOOL a642588a184dcb8d220a4f5374ca283c482f86d96bc1865efd731427e36e02cbf9d0dc997d7fc2c1750a454f58aa3a47f074e619c6e74c8d72656f666e89e054
+EBUILD lsof-4.88.ebuild 2879 SHA256 808a9479b1caa6a38a96aa5fefd79e9d6ca08c3d55ab4bf97bf17981606c2b89 SHA512 cbb1410c6a01de56462d74505e03fcc5f41759a2c56fd54158697b7e20d6a10c660f1991a4398c3d2b65222412d5ae1a0fc187e6f5cca60e726f1b38805a3970 WHIRLPOOL c76a555fb79f3c47efd67d03bd6119bb6f9bcf5535223afc0e9d0bd46560a3978c1f9409ff181683f9981445fc665a057ee11cb4754294e2bf495e7cc6db078e
+MISC ChangeLog 17122 SHA256 89adb3e3939cca61d8b119b9991a1077978edb5fd35c97e9c6d74ac1e2eb8d66 SHA512 8397e3bdd5fd98717a0daf16af25cb4a9129f4efe49d02ef840b82cf506cdce90f271a8c67aae57798ee286f8f2ed693fec76e045e070ba7673fc19cd2335086 WHIRLPOOL 146b6452ca005f57757f9afe7ff45787184c9e7bb4965e84347aa89ffb5fc84d2c8d8295ea27c7fa72d8a4dfbf81e8a95fb6598ea6846efe7dd7dd126343e6ed
+MISC metadata.xml 238 SHA256 27f27d7c7ba9fb670a6867a79ff8af354e48735f9bd672d387d96b4bd49d415b SHA512 b8434ca8a5f116234268cca5c8d7cf20b3187e1f2c326bfe3693e2e85c2dac961618b39a20d0d5b7a01744b5159057e2861eeaff7fef6a08e0fc4c1b47bbf778 WHIRLPOOL f3ada27de4f86d469929230f1649727d91cc303e007ae728038062a04522053f0b49559d5bc4b6dd203744ba117d1577d03d62a1cb5d7c24c86c268edf057761
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAEBCAAGBQJUftpaAAoJELp701BxlEWffpwQAIdOabwlPvkL0oUhPVeJim3G
+n20FldPlmoqn0lVMGgKGrzRYLASMIgIqkpBNg6uJwgS7ME43kVGKyC73QXSaoOHu
+FHiF8Qs0bpdHCA5+cKewzAoM4Rdxy1HF26ozzNDHzxn45aY8CkXk5GkSZQvpA5Xq
+rqrJ40bCQrxRwf45qua8KNlrDF9cNLr2qFcSrhOPEA9Y9WxGJ43W+loTpI2dA+7T
+GAE6gHJ+hpjiSuXgfY5DOu4oHmP38ixxyLlVrvh9HdEL+KfKho97wtc6S+4PxNEc
+n0WOOmggCW5KRTQ+hzVFvfXgzLPL43mrVfbw9QWd2wAUdu+lDRN0ERfxli+Oh4MT
+Qk0bP/uhl/J5zuxBt8ndqz7+HQd9q6shkcFn1/BT7x6pUWa9u853MwH93WL6HQin
+jb9onUgHoOHdFa24hR+UcX0B2GIFVfJUs7WFEtrkcv52IQE2PdDjPdGPJRnXGrNu
+jXxcidxxFr+Txdm8j5lGC2HXh44dNqtTh3PkdZDX9pB2015E1202g3rm+fiYD/PO
+YheEJ8SFwCh+j4/ImrVVeCl3ek6UwXS5CsyVdzc13EUeJcpYjqbLfay4O1l5//1F
+/rVkPpk9/T3/LBakQMClJHtxMT/gnWG+cNobFLUnr93prv5328ogIVseIBlIByHs
+6815w3Q/4/JH3mBZdZQ1
+=q5OC
+-----END PGP SIGNATURE-----
diff --git a/sys-process/lsof/files/lsof-4.85-arg.c.patch b/sys-process/lsof/files/lsof-4.85-arg.c.patch
new file mode 100644
index 0000000..98838cd
--- /dev/null
+++ b/sys-process/lsof/files/lsof-4.85-arg.c.patch
@@ -0,0 +1,30 @@
+arg.c.patch Patches: lsof_4.85_src/arg.c
+
+ Importance: major for all dialects supporting
+ the +|-e option (e.g., Linux)
+
+ Function: this patch corrects a bug in the
+ accumulation of multiple +|-e
+ option values
+
+*** /tmp/T0iAaaeo Thu Oct 20 14:08:43 2011
+--- arg.c Thu Oct 20 14:03:49 2011
+***************
+*** 778,785 ****
+ ep->pathl = i;
+ ep->rdlnk = rdlnk;
+ ep->mp = (struct mounts *)NULL;
+! if (!(ep->next = Efsysl))
+! Efsysl = ep;
+ return(0);
+ }
+ #endif /* defined(HASEOPT) */
+--- 778,785 ----
+ ep->pathl = i;
+ ep->rdlnk = rdlnk;
+ ep->mp = (struct mounts *)NULL;
+! ep->next = Efsysl;
+! Efsysl = ep;
+ return(0);
+ }
+ #endif /* defined(HASEOPT) */
diff --git a/sys-process/lsof/files/lsof-4.85-cross.patch b/sys-process/lsof/files/lsof-4.85-cross.patch
new file mode 100644
index 0000000..186c6d8
--- /dev/null
+++ b/sys-process/lsof/files/lsof-4.85-cross.patch
@@ -0,0 +1,33 @@
+let the preprocessor work its magic rather than executing the code
+
+https://bugs.gentoo.org/432120
+
+--- a/Configure
++++ b/Configure
+@@ -2730,20 +2730,17 @@ LOCKF_OWNER4
+ rm -f ${LSOF_TMPC}.*
+ cat > $LSOF_TMPC.c << .LSOF_END_HERE_DOC1
+ #include <features.h>
+-main() {
++#undef XXX
+ #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
+-printf("-DGLIBCV=%d\n",__GLIBC__*100+__GLIBC_MINOR__);
++XXX: __GLIBC__ * 100 + __GLIBC_MINOR__
+ #elif defined(__GLIBC__)
+-printf("-DGLIBCV=%d00\n",__GLIBC__);
+-#else
+-printf("\n");
++XXX: __GLIBC__ * 100
+ #endif
+-return(0); }
+ .LSOF_END_HERE_DOC1
+- $LINUX_CONF_CC ${LSOF_TMPC}.c -I$LSOF_INCLUDE -o ${LSOF_TMPC}.x > /dev/null 2>&1
++ $LINUX_CONF_CC ${LSOF_TMPC}.c -E -I$LSOF_INCLUDE 2>/dev/null | sed -n '/^XXX:/s|.*:||p' > ${LSOF_TMPC}.x
+- if test -x ${LSOF_TMPC}.x # {
++ if test -s ${LSOF_TMPC}.x # {
+ then
+- LINUX_CLIB=`${LSOF_TMPC}.x`
++ LINUX_CLIB="-DGLIBCV=$(( `cat ${LSOF_TMPC}.x` ))"
+ LSOF_TMP=$?
+ else
+ LINUX_CLIB=""
diff --git a/sys-process/lsof/lsof-4.85-r2.ebuild b/sys-process/lsof/lsof-4.85-r2.ebuild
new file mode 100644
index 0000000..b91bb69
--- /dev/null
+++ b/sys-process/lsof/lsof-4.85-r2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.85-r2.ebuild,v 1.12 2014/01/20 06:40:56 vapier Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P=${P/-/_}
+DESCRIPTION="Lists open files for running Unix processes"
+HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
+SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
+ ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
+ ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/${MY_P}.tar.bz2"
+
+LICENSE="lsof"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE="examples ipv6 rpc selinux static"
+
+RDEPEND="rpc? ( net-libs/libtirpc )
+ selinux? ( sys-libs/libselinux )"
+DEPEND="${RDEPEND}
+ rpc? ( virtual/pkgconfig )"
+
+S=${WORKDIR}/${MY_P}/${MY_P}_src
+
+src_unpack() {
+ unpack ${A}
+ cd ${MY_P}
+ unpack ./${MY_P}_src.tar
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-arg.c.patch #388555
+ epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120
+ # convert `test -r header.h` into a compile test
+ sed -i -r \
+ -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \
+ -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
+ Configure || die
+}
+
+target() { usex kernel_FreeBSD freebsd linux ; }
+src_configure() {
+ use static && append-ldflags -static
+
+ append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
+ append-cppflags $(usex ipv6 -{D,U}HASIPv6)
+
+ export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
+ $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
+
+ # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
+ # around in it and mix /usr/include paths with cross-compile/etc.
+ touch .neverInv
+ LINUX_HASSELINUX=$(usex selinux y n) \
+ LSOF_INCLUDE=${T} \
+ LSOF_CC=$(tc-getCC) \
+ LSOF_AR="$(tc-getAR) rc" \
+ LSOF_RANLIB=$(tc-getRANLIB) \
+ LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
+ ./Configure -n $(target) || die
+}
+
+src_compile() {
+ emake DEBUG="" all || die
+}
+
+src_install() {
+ dobin lsof || die
+
+ if use examples ; then
+ insinto /usr/share/lsof/scripts
+ doins scripts/* || die
+ fi
+
+ doman lsof.8 || die
+ dodoc 00*
+}
diff --git a/sys-process/lsof/lsof-4.87-r1.ebuild b/sys-process/lsof/lsof-4.87-r1.ebuild
new file mode 100644
index 0000000..080afcb
--- /dev/null
+++ b/sys-process/lsof/lsof-4.87-r1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.87-r1.ebuild,v 1.11 2014/12/03 09:39:37 ago Exp $
+
+EAPI="4"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P=${P/-/_}
+DESCRIPTION="Lists open files for running Unix processes"
+HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
+SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
+ ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2"
+
+LICENSE="lsof"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples ipv6 rpc selinux static"
+
+RDEPEND="rpc? ( net-libs/libtirpc )
+ selinux? ( sys-libs/libselinux )"
+DEPEND="${RDEPEND}
+ rpc? ( virtual/pkgconfig )"
+
+S=${WORKDIR}/${MY_P}/${MY_P}_src
+
+src_unpack() {
+ unpack ${A}
+ cd ${MY_P}
+ unpack ./${MY_P}_src.tar
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120
+ # convert `test -r header.h` into a compile test
+ sed -i -r \
+ -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \
+ -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
+ Configure || die
+}
+
+target() {
+ case ${CHOST} in
+ *-darwin*) echo darwin ;;
+ *-freebsd*) echo freebsd ;;
+ *-solaris*) echo solaris ;;
+ *-aix*) echo aixgcc ;;
+ *) echo linux ;;
+ esac
+}
+
+src_configure() {
+ use static && append-ldflags -static
+
+ append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
+ append-cppflags $(usex ipv6 -{D,U}HASIPv6)
+
+ export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
+ $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
+
+ # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
+ # around in it and mix /usr/include paths with cross-compile/etc.
+ touch .neverInv
+ LINUX_HASSELINUX=$(usex selinux y n) \
+ LSOF_INCLUDE=${T} \
+ LSOF_CC=$(tc-getCC) \
+ LSOF_AR="$(tc-getAR) rc" \
+ LSOF_RANLIB=$(tc-getRANLIB) \
+ LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
+ ./Configure -n $(target) || die
+}
+
+src_compile() {
+ emake DEBUG="" all
+}
+
+src_install() {
+ dobin lsof
+
+ if use examples ; then
+ insinto /usr/share/lsof/scripts
+ doins scripts/*
+ fi
+
+ doman lsof.8
+ dodoc 00*
+}
+
+pkg_postinst() {
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ einfo "Note: to use lsof on Solaris you need read permissions on"
+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
+ elif [[ ${CHOST} == *-aix* ]] ; then
+ einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and"
+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group system"
+ fi
+}
diff --git a/sys-process/lsof/lsof-4.88.ebuild b/sys-process/lsof/lsof-4.88.ebuild
new file mode 100644
index 0000000..b68a358
--- /dev/null
+++ b/sys-process/lsof/lsof-4.88.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/lsof/lsof-4.88.ebuild,v 1.2 2014/11/21 08:11:37 vapier Exp $
+
+EAPI="4"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P=${P/-/_}
+DESCRIPTION="Lists open files for running Unix processes"
+HOMEPAGE="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/"
+SRC_URI="ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${MY_P}.tar.bz2
+ ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/${MY_P}.tar.bz2"
+
+LICENSE="lsof"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples ipv6 rpc selinux static"
+
+RDEPEND="rpc? ( net-libs/libtirpc )
+ selinux? ( sys-libs/libselinux )"
+DEPEND="${RDEPEND}
+ rpc? ( virtual/pkgconfig )"
+
+S=${WORKDIR}/${MY_P}/${MY_P}_src
+
+src_unpack() {
+ unpack ${A}
+ cd ${MY_P}
+ unpack ./${MY_P}_src.tar
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.85-cross.patch #432120
+ # convert `test -r header.h` into a compile test
+ sed -i -r \
+ -e 's:test -r \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\1>" | ${LSOF_CC} ${LSOF_CFGF} -E - >/dev/null 2>\&1:' \
+ -e 's:grep (.*) \$\{LSOF_INCLUDE\}/([[:alnum:]/._]*):echo "#include <\2>" | ${LSOF_CC} ${LSOF_CFGF} -E -P -dD - 2>/dev/null | grep \1:' \
+ Configure || die
+}
+
+target() {
+ case ${CHOST} in
+ *-darwin*) echo darwin ;;
+ *-freebsd*) echo freebsd ;;
+ *-solaris*) echo solaris ;;
+ *-aix*) echo aixgcc ;;
+ *) echo linux ;;
+ esac
+}
+
+src_configure() {
+ use static && append-ldflags -static
+
+ append-cppflags $(use rpc && $(tc-getPKG_CONFIG) libtirpc --cflags || echo "-DHASNOTRPC -DHASNORPC_H")
+ append-cppflags $(usex ipv6 -{D,U}HASIPv6)
+
+ export LSOF_CFGL="${CFLAGS} ${LDFLAGS} \
+ $(use rpc && $(tc-getPKG_CONFIG) libtirpc --libs)"
+
+ # Set LSOF_INCLUDE to a dummy location so the script doesn't poke
+ # around in it and mix /usr/include paths with cross-compile/etc.
+ touch .neverInv
+ LINUX_HASSELINUX=$(usex selinux y n) \
+ LSOF_INCLUDE=${T} \
+ LSOF_CC=$(tc-getCC) \
+ LSOF_AR="$(tc-getAR) rc" \
+ LSOF_RANLIB=$(tc-getRANLIB) \
+ LSOF_CFGF="${CFLAGS} ${CPPFLAGS}" \
+ ./Configure -n $(target) || die
+}
+
+src_compile() {
+ emake DEBUG="" all
+}
+
+src_install() {
+ dobin lsof
+
+ if use examples ; then
+ insinto /usr/share/lsof/scripts
+ doins scripts/*
+ fi
+
+ doman lsof.8
+ dodoc 00*
+}
+
+pkg_postinst() {
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ einfo "Note: to use lsof on Solaris you need read permissions on"
+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
+ elif [[ ${CHOST} == *-aix* ]] ; then
+ einfo "Note: to use lsof on AIX you need read permissions on /dev/mem and"
+ einfo "/dev/kmem, i.e. you need to be root, or to be in the group system"
+ fi
+}
diff --git a/sys-process/lsof/metadata.xml b/sys-process/lsof/metadata.xml
new file mode 100644
index 0000000..49fb858
--- /dev/null
+++ b/sys-process/lsof/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+<use>
+ <flag name='rpc'>support looking up RPC service info</flag>
+</use>
+</pkgmetadata>