aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/libcap')
-rw-r--r--sys-libs/libcap/ChangeLog473
-rw-r--r--sys-libs/libcap/Manifest10
-rw-r--r--sys-libs/libcap/files/2.16/0001-build-system-fixes.patch154
-rw-r--r--sys-libs/libcap/files/libcap-2.20-build-system-fixes.patch162
-rw-r--r--sys-libs/libcap/files/libcap-2.20-ignore-RAISE_SETFCAP-install-failures.patch29
-rw-r--r--sys-libs/libcap/files/libcap-2.21-include.patch10
-rw-r--r--sys-libs/libcap/files/libcap-2.22-build-system-fixes.patch171
-rw-r--r--sys-libs/libcap/files/libcap-2.22-no-perl.patch54
-rw-r--r--sys-libs/libcap/libcap-2.22-r2.ebuild58
-rw-r--r--sys-libs/libcap/metadata.xml5
10 files changed, 1126 insertions, 0 deletions
diff --git a/sys-libs/libcap/ChangeLog b/sys-libs/libcap/ChangeLog
new file mode 100644
index 0000000..282c4bb
--- /dev/null
+++ b/sys-libs/libcap/ChangeLog
@@ -0,0 +1,473 @@
+# ChangeLog for sys-libs/libcap
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.122 2013/02/17 07:58:20 zmedico Exp $
+
+ 17 Feb 2013; Zac Medico <zmedico@gentoo.org> libcap-2.22-r1.ebuild:
+ Add ~arm-linux keyword.
+
+*libcap-2.22-r1 (26 Nov 2012)
+
+ 26 Nov 2012; Christoph Junghans <ottxor@gentoo.org> +libcap-2.22-r1.ebuild:
+ added prefix support (bug #444724)
+
+ 23 Sep 2012; Mike Frysinger <vapier@gentoo.org>
+ files/libcap-2.22-build-system-fixes.patch:
+ Install libcap.so with +x bits.
+
+ 22 Sep 2012; Mike Frysinger <vapier@gentoo.org> libcap-2.22.ebuild:
+ Export BUILD_CFLAGS and friends #435708 by Ambroz Bizjak.
+
+ 20 Mar 2012; Diego E. Pettenò <flameeyes@gentoo.org> libcap-2.22.ebuild:
+ Clarify license statement.
+
+ 18 Dec 2011; Mark Loeser <halcy0n@gentoo.org> libcap-2.22.ebuild:
+ Stable for ppc64; bug #389201
+
+ 26 Nov 2011; Raúl Porcel <armin76@gentoo.org> libcap-2.22.ebuild:
+ alpha/ia64/m68k/s390/sh/sparc stable wrt #389201
+
+ 12 Nov 2011; Mike Frysinger <vapier@gentoo.org> libcap-2.22.ebuild,
+ +files/libcap-2.22-no-perl.patch:
+ Do not require perl to build #390263 by Bruno.
+
+ 06 Nov 2011; Brent Baude <ranger@gentoo.org> libcap-2.22.ebuild:
+ Marking libcap-2.22 ppc for bug 389201
+
+ 06 Nov 2011; Markus Meier <maekke@gentoo.org> libcap-2.22.ebuild:
+ arm stable, bug #389201
+
+ 06 Nov 2011; Andreas Schuerch <nativemad@gentoo.org> libcap-2.22.ebuild:
+ x86 stable, bug 389201. Thanks JD and Myckel.
+
+ 05 Nov 2011; Mike Frysinger <vapier@gentoo.org> libcap-2.22.ebuild:
+ Trim spurious pam lib in /usr, and touchup ebuild.
+
+ 03 Nov 2011; Tony Vroon <chainsaw@gentoo.org> libcap-2.22.ebuild:
+ Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo & Ian
+ "idella4" Delaney in security bug #389201.
+
+ 02 Nov 2011; Jeroen Roovers <jer@gentoo.org> libcap-2.22.ebuild:
+ Stable for HPPA (bug #389201).
+
+*libcap-2.22 (01 Nov 2011)
+
+ 01 Nov 2011; Mike Frysinger <vapier@gentoo.org> +libcap-2.22.ebuild,
+ +files/libcap-2.22-build-system-fixes.patch:
+ Version bump #389201 by Jack Szpot.
+
+*libcap-2.21 (15 Jun 2011)
+
+ 15 Jun 2011; Jeroen Roovers <jer@gentoo.org> +libcap-2.21.ebuild,
+ +files/libcap-2.21-include.patch:
+ Version bump. Fix one compiler warning.
+
+ 26 Jan 2011; Mike Frysinger <vapier@gentoo.org>
+ files/libcap-2.20-build-system-fixes.patch:
+ Also build pam module with -fPIC #352758 by Seemant Kulleen.
+
+*libcap-2.20 (25 Jan 2011)
+
+ 25 Jan 2011; Mike Frysinger <vapier@gentoo.org> +libcap-2.20.ebuild,
+ +files/libcap-2.20-build-system-fixes.patch,
+ +files/libcap-2.20-ignore-RAISE_SETFCAP-install-failures.patch:
+ Version bump #352680 by Marc Koschewski.
+
+*libcap-2.19 (07 Mar 2010)
+
+ 07 Mar 2010; Mike Frysinger <vapier@gentoo.org> +libcap-2.19.ebuild:
+ Version bump #307269 by Arfrever Frehtes Taifersar Arahesis.
+
+ 24 Jan 2010; Raúl Porcel <armin76@gentoo.org> libcap-2.17.ebuild:
+ ia64/s390/sh/sparc stable wrt #290045
+
+ 09 Dec 2009; Brent Baude <ranger@gentoo.org> libcap-2.17.ebuild:
+ Marking libcap-2.17 ppc64 for bug 290045
+
+ 11 Nov 2009; Jeroen Roovers <jer@gentoo.org> libcap-2.17.ebuild:
+ Stable for HPPA (bug #290045).
+
+ 10 Nov 2009; Markus Meier <maekke@gentoo.org> libcap-2.17.ebuild:
+ arm/x86 stable, bug #290045
+
+ 08 Nov 2009; Tobias Klausmann <klausman@gentoo.org> libcap-2.17.ebuild:
+ Stable on alpha, bug #290045
+
+ 24 Oct 2009; nixnut <nixnut@gentoo.org> libcap-2.17.ebuild:
+ ppc stable #290045
+
+ 23 Oct 2009; Samuli Suominen <ssuominen@gentoo.org> libcap-2.17.ebuild:
+ amd64 stable wrt #290045
+
+ 11 Oct 2009; Mike Frysinger <vapier@gentoo.org>
+ files/2.16/0001-build-system-fixes.patch:
+ Dont default BUILD_CFLAGS to CFLAGS #272479 by Markus Rathgeb.
+
+*libcap-2.17 (31 Aug 2009)
+
+ 31 Aug 2009; Mike Frysinger <vapier@gentoo.org> +libcap-2.17.ebuild:
+ Version bump #283137 by Arfrever Frehtes Taifersar Arahesis.
+
+ 03 Jul 2009; Christian Ruppert <idl0r@gentoo.org>
+ files/2.16/0001-build-system-fixes.patch:
+ Add missing -lpam to 0001-build-system-fixes.patch due to link issues with
+ -Wl,--no-undefined.
+
+*libcap-2.16-r1 (16 May 2009)
+
+ 16 May 2009; Mike Frysinger <vapier@gentoo.org> libcap-2.16.ebuild,
+ +libcap-2.16-r1.ebuild, +files/libcap-2.16-drop-linux-workarounds.patch:
+ Drop linux header workarounds #265304 by Johan Hovold.
+
+ 26 Apr 2009; Brent Baude <ranger@gentoo.org> libcap-2.16.ebuild:
+ stable ppc, bug 265791
+
+ 18 Apr 2009; Raúl Porcel <armin76@gentoo.org> libcap-2.16.ebuild:
+ arm/ia64/m68k/s390/sh/sparc/x86 stable wrt #265791
+
+ 16 Apr 2009; Jeroen Roovers <jer@gentoo.org> libcap-2.16.ebuild:
+ Stable for HPPA (bug #265791).
+
+ 14 Apr 2009; Thomas Anderson <gentoofan23@gentoo.org> libcap-2.16.ebuild:
+ stable amd64, bug 265791
+
+ 12 Apr 2009; Brent Baude <ranger@gentoo.org> libcap-2.16.ebuild:
+ stable ppc64, bug 265791
+
+ 12 Apr 2009; Tobias Klausmann <klausman@gentoo.org> libcap-2.16.ebuild:
+ Stable on alpha, bug #265791
+
+ 17 Jan 2009; Mike Frysinger <vapier@gentoo.org> libcap-2.15.ebuild,
+ libcap-2.16.ebuild:
+ Move variable setting to src_unpack #254840 by Bruno.
+
+ 05 Jan 2009; Jeroen Roovers <jer@gentoo.org> libcap-2.15.ebuild:
+ Stable for HPPA (bug #252321).
+
+ 28 Dec 2008; Tobias Scherbaum <dertobi123@gentoo.org> libcap-2.15.ebuild:
+ ppc stable, bug #252321
+
+ 27 Dec 2008; Brent Baude <ranger@gentoo.org> libcap-2.15.ebuild:
+ stable ppc64, bug 252321
+
+ 26 Dec 2008; Raúl Porcel <armin76@gentoo.org> libcap-2.15.ebuild:
+ ia64 stable wrt #252321
+
+ 25 Dec 2008; Friedrich Oslage <bluebird@gentoo.org> libcap-2.15.ebuild:
+ Stable on sparc, bug #252321
+
+ 25 Dec 2008; Tobias Klausmann <klausman@gentoo.org> libcap-2.15.ebuild:
+ Stable on alpha, bug #252321
+
+ 25 Dec 2008; Markus Meier <maekke@gentoo.org> libcap-2.15.ebuild:
+ amd64/x86 stable, bug #252321
+
+*libcap-2.16 (24 Dec 2008)
+
+ 24 Dec 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.16/0001-build-system-fixes.patch, +libcap-2.16.ebuild:
+ Version bump #252319 by Arfrever Frehtes Taifersar Arahesis.
+
+*libcap-2.15 (27 Nov 2008)
+
+ 27 Nov 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.15/0001-build-system-fixes.patch, +libcap-2.15.ebuild:
+ Version bump #248930 by Arfrever Frehtes Taifersar Arahesis.
+
+ 16 Nov 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.14/0001-Make.Rules-fix-INDENT-test.patch:
+ Fix typo in build system for indent test #247080 by Mark Nowiasz.
+
+*libcap-2.14 (16 Nov 2008)
+
+ 16 Nov 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.14/0001-cleanup-build-system.patch, +libcap-2.14.ebuild:
+ Version bump #246944 by Arfrever Frehtes Taifersar Arahesis.
+
+ 25 Oct 2008; Mike Frysinger <vapier@gentoo.org> libcap-2.11.ebuild:
+ Add fix for USE=-pam builds by Bruno #242748.
+
+ 16 Oct 2008; Jeroen Roovers <jer@gentoo.org> libcap-2.11.ebuild:
+ Stable for HPPA (bug #240290).
+
+ 14 Oct 2008; Brent Baude <ranger@gentoo.org> libcap-2.11.ebuild:
+ stable ppc64, bug 240290
+
+ 12 Oct 2008; Raúl Porcel <armin76@gentoo.org> libcap-2.11.ebuild:
+ alpha/ia64 stable wrt #240290
+
+ 12 Oct 2008; nixnut <nixnut@gentoo.org> libcap-2.11.ebuild:
+ Stable on ppc wrt bug 240290
+
+ 12 Oct 2008; Friedrich Oslage <bluebird@gentoo.org> libcap-2.11.ebuild:
+ Stable on sparc, bug #240290
+
+ 09 Oct 2008; Markus Meier <maekke@gentoo.org> libcap-2.11.ebuild:
+ amd64/x86 stable, bug #240290
+
+ 19 Aug 2008; Mike Frysinger <vapier@gentoo.org>
+ files/2.11/0001-Make-fixes.patch:
+ Fix typo in BUILD_CFLAGS #235209 by zimous.
+
+*libcap-2.11 (18 Aug 2008)
+
+ 18 Aug 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.11/0001-Make-fixes.patch, +libcap-2.11.ebuild:
+ Version bump #231688 by Arfrever Frehtes Taifersar Arahesis and fix
+ USE=pam dep #231187.
+
+*libcap-2.10 (01 Jun 2008)
+
+ 01 Jun 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.10/0001-Make-fixes.patch,
+ +files/2.10/0002-cleanup-build-system.patch, +libcap-2.10.ebuild:
+ Version bump #221505 by Arfrever Frehtes Taifersar Arahesis.
+
+*libcap-2.08-r1 (24 Mar 2008)
+
+ 24 Mar 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/libcap-2.08-no-static.patch, +libcap-2.08-r1.ebuild:
+ Dont build helper progs statically.
+
+*libcap-2.08 (16 Mar 2008)
+
+ 16 Mar 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.08/0006-cleanup-build-system.patch, +libcap-2.08.ebuild:
+ Version bump #211362 by Arfrever Frehtes Taifersar Arahesis.
+
+*libcap-2.06-r1 (18 Feb 2008)
+
+ 18 Feb 2008; Diego Pettenò <flameeyes@gentoo.org>
+ files/2.06/0006-cleanup-build-system.patch, +libcap-2.06-r1.ebuild:
+ Revision bump to fix PAM handling: now the pam USE flag does not only build
+ but also install pam_cap.so, and the built pam_cap.so is actually working
+ with PAM. Not that I was able to get my user to receive any additional
+ capability, yet.
+
+ 18 Feb 2008; Mike Frysinger <vapier@gentoo.org> libcap-2.06.ebuild:
+ Dont install the capget(2)/capset(2) man pages since the man-pages package
+ installs better ones #210443.
+
+ 17 Feb 2008; Christoph Mende <angelos@gentoo.org> libcap-1.10-r11.ebuild:
+ Stable on amd64, bug #200512
+
+ 17 Feb 2008; Mike Frysinger <vapier@gentoo.org> libcap-2.06.ebuild:
+ Depend on attr and make sure we disable gperf #210424.
+
+*libcap-2.06 (16 Feb 2008)
+
+ 16 Feb 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/2.06/0001-set-FAKEROOT-to-DESTDIR-by-default.patch,
+ +files/2.06/0002-do-not-use-the-s-flag-with-install.patch,
+ +files/2.06/0003-Add-.gitignore-files.patch,
+ +files/2.06/0004-Do-not-run-ldconfig-for-FAKEROOT-installs.patch,
+ +files/2.06/0005-Do-not-hard-code-toolchain-binaries.patch,
+ +files/2.06/0006-cleanup-build-system.patch, +libcap-2.06.ebuild:
+ Version bump #209905 by Arfrever Frehtes Taifersar Arahesis.
+
+ 14 Feb 2008; nixnut <nixnut@gentoo.org> ChangeLog:
+ Stable on ppc wrt bug 200512
+
+ 14 Feb 2008; Jeroen Roovers <jer@gentoo.org> libcap-1.10-r11.ebuild:
+ Stable for HPPA (bug #200512).
+
+ 11 Feb 2008; Raúl Porcel <armin76@gentoo.org> libcap-1.10-r11.ebuild:
+ alpha/ia64 stable wrt #200512
+
+ 11 Feb 2008; Ferris McCormick <fmccor@gentoo.org> libcap-1.10-r11.ebuild:
+ Sparc stable --- Bug #200512.
+
+ 11 Feb 2008; Christian Faulhammer <opfer@gentoo.org>
+ libcap-1.10-r11.ebuild:
+ stable x86, bug 200512
+
+ 11 Feb 2008; Brent Baude <ranger@gentoo.org> libcap-1.10-r11.ebuild:
+ stable ppc64, bug 200512
+
+ 19 Nov 2007; Joshua Kinard <kumba@gentoo.org> libcap-1.10-r9.ebuild:
+ Stable on mips, per #165742.
+
+*libcap-1.10-r11 (02 Oct 2007)
+
+ 02 Oct 2007; Robin H. Johnson <robbat2@gentoo.org>
+ +libcap-1.10-r11.ebuild:
+ Bug #193332, handle cleanup/optimize of python modules if applicable.
+
+*libcap-1.10-r10 (02 Apr 2007)
+
+ 02 Apr 2007; Chris PeBenito <pebenito@gentoo.org>
+ +files/libcap-1.10-auditcaps.diff, +libcap-1.10-r10.ebuild:
+ Update capability.h with #defines for audit capabilities.
+
+ 13 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org> libcap-1.10-r9.ebuild:
+ Stable on ppc wrt bug #165742.
+
+ 13 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org> libcap-1.10-r9.ebuild:
+ Stable on alpha wrt bug #165742.
+
+ 13 Feb 2007; Markus Rothe <corsair@gentoo.org> libcap-1.10-r9.ebuild:
+ Stable on ppc64; bug #165742
+
+ 12 Feb 2007; Gustavo Zacarias <gustavoz@gentoo.org> libcap-1.10-r9.ebuild:
+ Stable on sparc wrt #165742
+
+ 12 Feb 2007; Jeroen Roovers <jer@gentoo.org> libcap-1.10-r9.ebuild:
+ Stable for HPPA (bug #165742).
+
+ 12 Feb 2007; Simon Stelling <blubb@gentoo.org> libcap-1.10-r9.ebuild:
+ stable on amd64; bug 165742
+
+ 10 Feb 2007; Christian Faulhammer <opfer@gentoo.org>
+ libcap-1.10-r9.ebuild:
+ stable x86; bug #165742
+
+ 10 Feb 2007; Mike Frysinger <vapier@gentoo.org>
+ +files/libcap-1.10-headers.patch, libcap-1.10-r9.ebuild:
+ Include stdlib.h for proper exit() prototype.
+
+*libcap-1.10-r9 (30 Jul 2006)
+
+ 30 Jul 2006; <solar@gentoo.org> +libcap-1.10-r9.ebuild:
+ - many things link with libcap.so.1 but that file is not owned by libcap
+ till now
+
+*libcap-1.10-r8 (15 Jul 2006)
+
+ 15 Jul 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/libcap-1.10-nostrip.patch, libcap-1.10-r8.ebuild:
+ Cleanup ebuild a bit, fix stripping via patch rather than sed, and fixup
+ library install #140410.
+
+ 14 Jul 2006; <solar@gentoo.org> -libcap-1.10-r6.ebuild:
+ - removed broken libcap-1.10-r6 from the tree. It is causing way to many
+ problems
+
+ 13 Jul 2006; <solar@gentoo.org> libcap-1.10-r7.ebuild:
+ - work around broken python support when cross compile. Yanked the hack
+ known as USE=static
+
+*libcap-1.10-r7 (13 Jul 2006)
+
+ 13 Jul 2006; Martin Schlemmer <azarah@gentoo.org> +libcap-1.10-r7.ebuild:
+ The ldscript should be called 'libcap.so', and not versioned like it was.
+ Quoting and other cleanups.
+
+*libcap-1.10-r6 (01 Jun 2006)
+
+ 01 Jun 2006; Robin H. Johnson <robbat2@gentoo.org> +libcap-1.10-r6.ebuild:
+ Fix QA error with pre-stripped binaries being installed, and clean up the
+ horrible mess in src_install.
+
+*libcap-1.10-r5 (09 Feb 2005)
+
+ 09 Feb 2005; Mike Frysinger <vapier@gentoo.org> +libcap-1.10-r5.ebuild:
+ Make sure we install a linker script in /usr/lib alongside the static library.
+
+ 03 Feb 2005; <solar@gentoo.org> -libcap-1.10-r3.ebuild,
+ libcap-1.10-r4.ebuild:
+ - removed old -r3 ebuild as -r4 is stable on all arches. removed unused pic
+ USE flag. added support for nocxx to keep swig from getting pulled in via the
+ python use flag for this package - bug #73635
+
+ 01 Oct 2004; Simon Stelling <blubb@gentoo.org> libcap-1.10-r3.ebuild,
+ libcap-1.10-r4.ebuild:
+ get_libdir-ized
+
+ 15 Jul 2004; Tom Gall <tgall@gentoo.org> libcap-1.10-r4.ebuild:
+ stable on ppc64, bug #55530
+
+ 02 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ libcap-1.10-r3.ebuild, libcap-1.10-r4.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 23 Jun 2004; Mike Frysinger <vapier@gentoo.org> files/1.10-python.patch,
+ libcap-1.10-r4.ebuild:
+ Update the swig/python module to build with the shared objects instead of the
+ static objects so we get a PIC aware module #52813 by Joe Jezak.
+
+ 03 May 2004; Michael Sterrett <mr_bones_@gentoo.org> libcap-1.10-r2.ebuild,
+ libcap-1.10.ebuild:
+ clean extra ebuilds
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> libcap-1.10-r2.ebuild,
+ libcap-1.10.ebuild:
+ Add inherit eutils
+
+*libcap-1.10-r4 (25 Apr 2004)
+
+ 25 Apr 2004; Robin H. Johnson <robbat2@gentoo.org> libcap-1.10-r4.ebuild,
+ files/libcap-1.10-r4-staticfix.diff:
+ finally finish static support from bug #22495, slight cleanup and latest
+ debian patch.
+
+ 05 Apr 2004; Jason Wever <weeve@gentoo.org> libcap-1.10-r3.ebuild:
+ Stable on sparc.
+
+ 28 Mar 2004; <solar@gentoo.org> libcap-1.10-r3.ebuild:
+ stable on x86. Bugzilla Bug 44955
+
+ 24 Feb 2004; <agriffis@gentoo.org> libcap-1.10-r3.ebuild:
+ stable on alpha and ia64
+
+ 24 Feb 2004; Rajiv Aaron Manglani <rajiv@gentoo.org> libcap-1.10.ebuild,
+ libcap-1.10-r2.ebuild, libcap-1.10-r3.ebuild:
+ updated HOMEPAGE url.
+
+ 14 Dec 2003; Guy Martin <gmsoft@gentoo.org> libcap-1.10-r3.ebuild:
+ Marked stable on hppa.
+
+ 16 Nov 2003; Alexander Gabert <pappy@gentoo.org> libcap-1.10.ebuild:
+ removed text relocations out of the libcap library for hardened-gcc via
+ syscall removal patch
+
+ 04 Nov 2003; Brad House <brad_mssw@gentoo.org> libcap-1.10-r3.ebuild:
+ add amd64 flag
+
+ 16 Oct 2003; Aron Griffis <agriffis@gentoo.org> libcap-1.10-r3.ebuild:
+ Use -fPIC on alpha
+
+ 10 Oct 2003; Alexander Gabert <pappy@gentoo.org> libcap-1.10.ebuild:
+ changed hardened-gcc flags
+
+ 09 Oct 2003; Alexander Gabert <pappy@gentoo.org> libcap-1.10.ebuild:
+ added new hardened-gcc flags for hppa
+
+ 09 Oct 2003; <tuxus@gentoo.org> libcap-1.10-r2.ebuild:
+ stable on mips
+
+*libcap-1.10-r3 (29 Sep 2003)
+
+ 29 Sep 2003; Mike Frysinger <vapier@gentoo.org> libcap-1.10-r3.ebuild:
+ Version bump to add deb patch and add full pic support #29958.
+
+ 29 Sep 2003; Mike Frysinger <vapier@gentoo.org> libcap-1.10.ebuild:
+ Filtered out -fPIC from CFLAGS #29958.
+
+ 27 Sep 2003; Alexander Gabert <pappy@gentoo.org> libcap-1.10.ebuild:
+ added hcc exclusion for PIC but leave propolice in place
+
+ 26 Sep 2003; Aron Griffis <agriffis@gentoo.org> libcap-1.10-r2.ebuild:
+ Stable on alpha
+
+ 23 Aug 2003; <rac@gentoo.org> libcap-1.10-r2.ebuild:
+ Add amd64 support
+
+*libcap-1.10-r2 (17 Aug 2003)
+
+ 29 Aug 2003; Stefan Jones <cretin@gentoo.org> :
+ Only add -fPIC to the library objectfiles
+
+ 27 Aug 2003; Stefan Jones <cretin@gentoo.org> :
+ Add patch which removes the wrapping of the syscall, glibc wraps all syscalls
+ for you. Now the library can be built with -fPIC on all platforms.
+
+ 17 Aug 2003; Robin H. Johnson <robbat2@gentoo.org> libcap-1.10-r2.ebuild:
+ remove -ansi from WARNINGS in the Make system as it seems to break non-x86
+
+ 11 Aug 2003; Robin H. Johnson <robbat2@gentoo.org> :
+ hopefully fix non-x86 bugs with -fPIC being needed
+
+*libcap-1.10 (15 May 2003)
+ 15 May 2003; Robin Johnson <robbat2@gentoo.org> Manifest,
+ files/libcap-1.10-python.patch, files/digest-libcap-1.10,
+ libcap-1.10.ebuild, ChangeLog:
+ Initial import. Ebuild submitted by Francisco Gimeno <kikov@fco-gimeno.com>
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest
new file mode 100644
index 0000000..625f69b
--- /dev/null
+++ b/sys-libs/libcap/Manifest
@@ -0,0 +1,10 @@
+AUX 2.16/0001-build-system-fixes.patch 4632 SHA256 4c4e5dc5d465e7db63076d80b627705e8c65adb55d2e97aeaa976e2fe5c12a1e SHA512 1b6d2e5e19f479eb6fd016965896613ab91ecd2c29e7e38e4c6ef86ce84c850bca738891b2e339e28d153977df2fb4b374f91692019ec00619e965d0c8e4dde6 WHIRLPOOL 2ce649612f96c653594a9c8e4670d81b412c6c34add94d7c90b69fd0ee49f6617d396da805ce921a0ef2d1d193e31d9433bf5b1a9fd5d3ac302bac7fc1f4ba96
+AUX libcap-2.20-build-system-fixes.patch 4832 SHA256 67a741af74c13a283e73cd3d9e828b73e1db68db19e8010e942c341b6d280842 SHA512 c8f4a3b6a9e8fa51f3095f11c5320a96ffce48ace96de5fe632b7087fe9f0813428b45cdebf6fa954ee1ace7acdf6cb11620df642194108097fc80969c668676 WHIRLPOOL 6216c3359bd72700938f9c4843f2b2312765db81e06e03cf7c51d954f2479a4b459b2b48b643820266319baac1d593c46b9bf74eafdf9eabc99784ef3d110d40
+AUX libcap-2.20-ignore-RAISE_SETFCAP-install-failures.patch 840 SHA256 29be1427227f9b045151bd02597192bff1c6761c649014b0fd1384f08e010616 SHA512 59936147919f3a8959d87831583df96ab3e1883e58b746f6542cc6430434d2a93c07e79ff7e9fdf9698626aa42e60c6c57981025e46923be76ff2d65720d606c WHIRLPOOL c721054ac8538b748367b9a17971d3021831fdaf49260a2290484a506638ee8598946f001272e014937abb99569b17b0a3f9daed31ea426b6ce74f9a09460867
+AUX libcap-2.21-include.patch 290 SHA256 60038e5f67928edbf7e1b43b8799d5a92cff40dd7c3678135c793ed434c29305 SHA512 6f4867c64121e1294824a2dc1ac02578c9900cd051aea41d0920f1f65e162e3acec86a42f7e4fa6ee1dff08554fe25bd740951e9dc8a11bf79471229f268cffd WHIRLPOOL c3233cf04efc380c274bbd2860576f68494a16e4b0a2827284a692b560650379e33497532b347c2e8aa5019d229f8ceb6be3e0a990e21eae5d459134115aafd1
+AUX libcap-2.22-build-system-fixes.patch 5319 SHA256 f0c3323a5ec34e07eb397d6e1527ac3d6c519c4a91261a206019d25eb161f426 SHA512 d57181ce1dbe95c2c40cdc49cff8d7368287d512b0f05c296266071cb689b94891aca201c978d316cf2851b806b7bcb2acaef3aeef69ead6a380490aecaea0c7 WHIRLPOOL bf076c3bbba28c861cdccf1639d4fe3205fa4e3ec2c50da9a7d052d439cb7b4f8bfb4e8a770ffeaca4fa1612497a04ea151fadcb439f188f6576952933a88646
+AUX libcap-2.22-no-perl.patch 2360 SHA256 4eca873685da1aec0d06e9d7681c285166f9ad7e7cb14c65da6e05cbb135e9ef SHA512 8c49d829cbae15f28ded70b96bc0715819b13183136d90b64b7b6bfbd85c262f0161d89450579e9b58961c724b34816919d111f839e3f5a7a68427ffe441881d WHIRLPOOL 1da9b5b8b54c38bf45117653122ee6dc55949c21c39152d18d2dc0c721d4b906f777a8734d184d18b2c7a25b2aa06aa68d1ccc4409b16915aeb8d9b014951759
+DIST libcap-2.22.tar.bz2 60051 SHA256 73ebbd4877b5f69dd28b72098e510c5b318bc480f8201c4061ac98b78c04050f SHA512 d4e070cfed7dbf416c949e79fbfbfcde2da4705d4f55527b18482c9959b80fea2841bf70f317fa5e620e13a75a8e5da69f94304b8e54195f2d0492f14d342339 WHIRLPOOL 000e3c76e83366423efc0e935c6191496c0e9bf1cc559babdbeea74c8c81009e883985c5f1c739b4fb1744522e09bda253f6012b7e52284f291eabeaf20f6a88
+EBUILD libcap-2.22-r2.ebuild 1480 SHA256 29bf58d8639f90393982148fdf517cf37a9b8f4297ee9966aefb8a207933bb2a SHA512 19720efc50b8567dad1725d64d87fe046a67322be4eae8c185812919b0f322c13aef1c3b4f6fe1cae66fe7a5e37244c999b966d360a8ea4e2b092bbfb113f6f1 WHIRLPOOL 28322a2fabf9a42003517e5973c9af9f3abdaa3be0173885bd5537026c8e66ec942c26dfac1efc81201209a6541b244a4073315ecb76affa3859c17d0dcb3160
+MISC ChangeLog 16975 SHA256 b7104e5eb79b624b06a496bd35e46894628e37fc01d0ae3ff804cab7815e3755 SHA512 b68aae6e2c774d62e113b31c0c55186617a9ea8feb9fd114211885db7938e6d42c96e952a73bef62fdd39fa43678f426570832cc41c4b5393efc8c96e7ccebbe WHIRLPOOL 8f507cc56330248ecf7942b2ce514b5eb97a154f302a8f73c2869d91e7091fa8348c9fdbf6b5a555793ee59e606b79e1c5e0eb92532d5f7b1b5eb58aaf0b2b9c
+MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52
diff --git a/sys-libs/libcap/files/2.16/0001-build-system-fixes.patch b/sys-libs/libcap/files/2.16/0001-build-system-fixes.patch
new file mode 100644
index 0000000..e82975b
--- /dev/null
+++ b/sys-libs/libcap/files/2.16/0001-build-system-fixes.patch
@@ -0,0 +1,154 @@
+From 7ee197885e113878aedab58bdda80302e42aff4c Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 16 Nov 2008 09:10:31 -0500
+Subject: [PATCH] build system fixes
+
+This touches up the homebrewed build system to work much better "out of the
+box" for people. Specifically:
+ - allow toolchain vars to be set via environment
+ - CC / BUILD_CC / AR / RANLIB
+ - CFLAGS / CPPFLAGS / LDFLAGS
+ - split CPPFLAGS out of CFLAGS
+ - break -fPIC out of global CFLAGS and only use where needed
+ - use LDLIBS for libraries, not LDFLAGS
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ Make.Rules | 28 ++++++++++++++--------------
+ libcap/Makefile | 11 ++++++-----
+ pam_cap/Makefile | 6 +++---
+ progs/Makefile | 2 +-
+ 4 files changed, 24 insertions(+), 23 deletions(-)
+
+diff --git a/Make.Rules b/Make.Rules
+index 6e63a5b..32cb5ea 100644
+--- a/Make.Rules
++++ b/Make.Rules
+@@ -42,27 +42,27 @@ MINOR=16
+
+ # Compilation specifics
+
+-KERNEL_HEADERS := $(topdir)/libcap/include
+-IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
+-
+-CC := gcc
+-CFLAGS := -O2
+-BUILD_CC := $(CC)
+-BUILD_CFLAGS := $(CFLAGS) $(IPATH)
+-AR := ar
+-RANLIB := ranlib
+-DEBUG = -g #-DDEBUG
+-WARNINGS=-fPIC -Wall -Wwrite-strings \
++CC ?= gcc
++BUILD_CC ?= $(CC)
++AR ?= ar
++RANLIB ?= ranlib
++CFLAGS ?= -O2
++BUILD_CFLAGS ?= -O2 -pipe
++WARNINGS=-Wall -Wwrite-strings \
+ -Wpointer-arith -Wcast-qual -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes \
+ -Wnested-externs -Winline -Wshadow
+ LD=$(CC) -Wl,-x -shared
+-LDFLAGS := #-g
++LDFLAGS ?= #-g
+
+-SYSTEM_HEADERS = /usr/include
++KERNEL_HEADERS = $(topdir)/libcap/include
++LIBCAP_CPPFLAGS = -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
++CPPFLAGS += $(LIBCAP_CPPFLAGS)
++BUILD_CPPFLAGS += $(LIBCAP_CPPFLAGS)
+ INCS=$(topdir)/libcap/include/sys/capability.h
+ LDFLAGS += -L$(topdir)/libcap
+-CFLAGS += -Dlinux $(WARNINGS) $(DEBUG) $(IPATH)
++CPPFLAGS += -Dlinux
++CFLAGS += $(WARNINGS)
+ PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
+ INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
+ DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
+diff --git a/libcap/Makefile b/libcap/Makefile
+index 8a61752..cf99523 100644
+--- a/libcap/Makefile
++++ b/libcap/Makefile
+@@ -16,7 +16,7 @@ FILES=cap_alloc cap_proc cap_extint cap_flag cap_text
+ # no support).
+ ifeq ($(LIBATTR),yes)
+ FILES += cap_file
+-LDFLAGS += -lattr
++LDLIBS += -lattr
+ endif
+
+ INCLS=libcap.h cap_names.h $(INCS)
+@@ -24,6 +24,7 @@ OBJS=$(addsuffix .o, $(FILES))
+ MAJLIBNAME=$(LIBNAME).$(VERSION)
+ MINLIBNAME=$(MAJLIBNAME).$(MINOR)
+ GPERF_OUTPUT = _caps_output.gperf
++CFLAGS += -fPIC
+
+ all: $(MINLIBNAME) $(STALIBNAME)
+
+@@ -33,7 +34,7 @@ INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT)
+ endif
+
+ _makenames: _makenames.c cap_names.list.h
+- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
+
+ cap_names.h: _makenames
+ ./_makenames > cap_names.h
+@@ -50,15 +51,15 @@ $(STALIBNAME): $(OBJS)
+ $(RANLIB) $@
+
+ $(MINLIBNAME): $(OBJS)
+- $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^
++ $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^ $(LDLIBS)
+ ln -sf $(MINLIBNAME) $(MAJLIBNAME)
+ ln -sf $(MAJLIBNAME) $(LIBNAME)
+
+ %.o: %.c $(INCLS)
+- $(CC) $(CFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ cap_text.o: cap_text.c $(USE_GPERF_OUTPUT) $(INCLS)
+- $(CC) $(CFLAGS) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
+
+ install: all
+ mkdir -p -m 0755 $(INCDIR)/sys
+diff --git a/pam_cap/Makefile b/pam_cap/Makefile
+index eae88ed..bef59d2 100644
+--- a/pam_cap/Makefile
++++ b/pam_cap/Makefile
+@@ -14,13 +14,13 @@ install: all
+ install -m 0755 pam_cap.so $(LIBDIR)/security
+
+ pam_cap.so: pam_cap.o
+- $(LD) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
++ $(LD) $(CFLAGS) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS) -lpam
+
+ pam_cap.o: pam_cap.c
+- $(CC) $(CFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ testcompile: test.c pam_cap.o
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
+
+ clean:
+ rm -f *.o *.so testcompile *~
+diff --git a/progs/Makefile b/progs/Makefile
+index a1542dc..612cf86 100644
+--- a/progs/Makefile
++++ b/progs/Makefile
+@@ -22,7 +22,7 @@ $(BUILD): %: %.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
+
+ %.o: %.c $(INCS)
+- $(CC) $(CFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ install: all
+ mkdir -p -m 0755 $(SBINDIR)
+--
+1.6.0.4
+
diff --git a/sys-libs/libcap/files/libcap-2.20-build-system-fixes.patch b/sys-libs/libcap/files/libcap-2.20-build-system-fixes.patch
new file mode 100644
index 0000000..c7273df
--- /dev/null
+++ b/sys-libs/libcap/files/libcap-2.20-build-system-fixes.patch
@@ -0,0 +1,162 @@
+From 5540f3c2a3bd70ebc8140b74ac5a0aecdbc53234 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 16 Nov 2008 09:10:31 -0500
+Subject: [PATCH] build system fixes
+
+This touches up the homebrewed build system to work much better "out of the
+box" for people. Specifically:
+ - allow toolchain vars to be set via environment
+ - CC / BUILD_CC / AR / RANLIB
+ - CFLAGS / CPPFLAGS / LDFLAGS
+ - split CPPFLAGS out of CFLAGS
+ - break -fPIC out of global CFLAGS and only use where needed
+ - use LDLIBS for libraries, not LDFLAGS
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ Make.Rules | 25 +++++++++++++------------
+ libcap/Makefile | 11 ++++++-----
+ pam_cap/Makefile | 8 +++++---
+ progs/Makefile | 2 +-
+ 4 files changed, 25 insertions(+), 21 deletions(-)
+
+diff --git a/Make.Rules b/Make.Rules
+index 011aa14..6e432a6 100644
+--- a/Make.Rules
++++ b/Make.Rules
+@@ -44,27 +44,28 @@ MINOR=19
+
+ # Compilation specifics
+
+-KERNEL_HEADERS := $(topdir)/libcap/include
+-IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
+-
+-CC := gcc
+-CFLAGS := -O2
+-BUILD_CC := $(CC)
+-BUILD_CFLAGS := $(CFLAGS) $(IPATH)
+-AR := ar
+-RANLIB := ranlib
++CC ?= gcc
++CFLAGS ?= -O2
++BUILD_CC ?= $(CC)
++BUILD_CFLAGS ?= $(CFLAGS)
++AR ?= ar
++RANLIB ?= ranlib
+ DEBUG = -g #-DDEBUG
+ WARNINGS=-Wall -Wwrite-strings \
+ -Wpointer-arith -Wcast-qual -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes \
+ -Wnested-externs -Winline -Wshadow
+ LD=$(CC) -Wl,-x -shared
+-LDFLAGS := #-g
++LDFLAGS ?= #-g
+
+-SYSTEM_HEADERS = /usr/include
++KERNEL_HEADERS = $(topdir)/libcap/include
++LIBCAP_CPPFLAGS = -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
++CPPFLAGS += $(LIBCAP_CPPFLAGS)
++BUILD_CPPFLAGS += $(LIBCAP_CPPFLAGS)
+ INCS=$(topdir)/libcap/include/sys/capability.h
+ LDFLAGS += -L$(topdir)/libcap
+-CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
++CPPFLAGS += -Dlinux
++CFLAGS += $(WARNINGS) $(DEBUG)
+ PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
+ INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
+ DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
+diff --git a/libcap/Makefile b/libcap/Makefile
+index 4762c60..cf99523 100644
+--- a/libcap/Makefile
++++ b/libcap/Makefile
+@@ -16,7 +16,7 @@ FILES=cap_alloc cap_proc cap_extint cap_flag cap_text
+ # no support).
+ ifeq ($(LIBATTR),yes)
+ FILES += cap_file
+-LDFLAGS += -lattr
++LDLIBS += -lattr
+ endif
+
+ INCLS=libcap.h cap_names.h $(INCS)
+@@ -24,6 +24,7 @@ OBJS=$(addsuffix .o, $(FILES))
+ MAJLIBNAME=$(LIBNAME).$(VERSION)
+ MINLIBNAME=$(MAJLIBNAME).$(MINOR)
+ GPERF_OUTPUT = _caps_output.gperf
++CFLAGS += -fPIC
+
+ all: $(MINLIBNAME) $(STALIBNAME)
+
+@@ -33,7 +34,7 @@ INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT)
+ endif
+
+ _makenames: _makenames.c cap_names.list.h
+- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
+
+ cap_names.h: _makenames
+ ./_makenames > cap_names.h
+@@ -50,15 +51,15 @@ $(STALIBNAME): $(OBJS)
+ $(RANLIB) $@
+
+ $(MINLIBNAME): $(OBJS)
+- $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^
++ $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^ $(LDLIBS)
+ ln -sf $(MINLIBNAME) $(MAJLIBNAME)
+ ln -sf $(MAJLIBNAME) $(LIBNAME)
+
+ %.o: %.c $(INCLS)
+- $(CC) $(CFLAGS) $(IPATH) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ cap_text.o: cap_text.c $(USE_GPERF_OUTPUT) $(INCLS)
+- $(CC) $(CFLAGS) $(IPATH) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
+
+ install: all
+ mkdir -p -m 0755 $(INCDIR)/sys
+diff --git a/pam_cap/Makefile b/pam_cap/Makefile
+index 9ca5bef..bdae933 100644
+--- a/pam_cap/Makefile
++++ b/pam_cap/Makefile
+@@ -9,6 +9,8 @@ include ../Make.Rules
+ # written (and you know why it fails), email me and explain why. Thanks!
+ LDLIBS += -L../libcap -lcap
+
++CFLAGS += -fPIC
++
+ all: pam_cap.so
+ $(MAKE) testcompile
+
+@@ -17,13 +19,13 @@ install: all
+ install -m 0755 pam_cap.so $(LIBDIR)/security
+
+ pam_cap.so: pam_cap.o
+- $(LD) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
++ $(LD) $(CFLAGS) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
+
+ pam_cap.o: pam_cap.c
+- $(CC) $(CFLAGS) $(IPATH) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ testcompile: test.c pam_cap.o
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
+
+ clean:
+ rm -f *.o *.so testcompile *~
+diff --git a/progs/Makefile b/progs/Makefile
+index ef51dc6..c261f57 100644
+--- a/progs/Makefile
++++ b/progs/Makefile
+@@ -22,7 +22,7 @@ $(BUILD): %: %.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
+
+ %.o: %.c $(INCS)
+- $(CC) $(IPATH) $(CFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ install: all
+ mkdir -p -m 0755 $(SBINDIR)
+--
+1.7.4.rc2
+
diff --git a/sys-libs/libcap/files/libcap-2.20-ignore-RAISE_SETFCAP-install-failures.patch b/sys-libs/libcap/files/libcap-2.20-ignore-RAISE_SETFCAP-install-failures.patch
new file mode 100644
index 0000000..1bc4d63
--- /dev/null
+++ b/sys-libs/libcap/files/libcap-2.20-ignore-RAISE_SETFCAP-install-failures.patch
@@ -0,0 +1,29 @@
+From f2020ee4ee4b2f245637c77e81d62ab6d1db3c6c Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 25 Jan 2011 15:52:31 -0500
+Subject: [PATCH] ignore RAISE_SETFCAP install failures
+
+While the new RAISE_SETFCAP feature is nifty, its failure to run (often
+due to the fs not supporting it) shouldn't impair the default install.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ progs/Makefile | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/progs/Makefile b/progs/Makefile
+index c261f57..9e1a84d 100644
+--- a/progs/Makefile
++++ b/progs/Makefile
+@@ -30,7 +30,7 @@ install: all
+ install -m 0755 $$p $(SBINDIR) ; \
+ done
+ ifeq ($(RAISE_SETFCAP),yes)
+- $(SBINDIR)/setcap cap_setfcap=i $(SBINDIR)/setcap
++ -$(SBINDIR)/setcap cap_setfcap=i $(SBINDIR)/setcap
+ endif
+
+ clean:
+--
+1.7.4.rc2
+
diff --git a/sys-libs/libcap/files/libcap-2.21-include.patch b/sys-libs/libcap/files/libcap-2.21-include.patch
new file mode 100644
index 0000000..2a53424
--- /dev/null
+++ b/sys-libs/libcap/files/libcap-2.21-include.patch
@@ -0,0 +1,10 @@
+--- libcap/libcap.h.org 2011-06-15 07:25:58.912480899 +0200
++++ libcap/libcap.h 2011-06-15 07:26:16.421329661 +0200
+@@ -13,6 +13,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/capability.h>
++#include <sys/prctl.h> /* prctl() */
+
+ #ifndef __u8
+ #define __u8 unsigned char
diff --git a/sys-libs/libcap/files/libcap-2.22-build-system-fixes.patch b/sys-libs/libcap/files/libcap-2.22-build-system-fixes.patch
new file mode 100644
index 0000000..888c089
--- /dev/null
+++ b/sys-libs/libcap/files/libcap-2.22-build-system-fixes.patch
@@ -0,0 +1,171 @@
+From 5540f3c2a3bd70ebc8140b74ac5a0aecdbc53234 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 16 Nov 2008 09:10:31 -0500
+Subject: [PATCH] build system fixes
+
+This touches up the homebrewed build system to work much better "out of the
+box" for people. Specifically:
+ - allow toolchain vars to be set via environment
+ - CC / BUILD_CC / AR / RANLIB
+ - CFLAGS / CPPFLAGS / LDFLAGS
+ - split CPPFLAGS out of CFLAGS
+ - break -fPIC out of global CFLAGS and only use where needed
+ - use LDLIBS for libraries, not LDFLAGS
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ Make.Rules | 25 +++++++++++++------------
+ libcap/Makefile | 11 ++++++-----
+ pam_cap/Makefile | 8 +++++---
+ progs/Makefile | 2 +-
+ 4 files changed, 25 insertions(+), 21 deletions(-)
+
+diff --git a/Make.Rules b/Make.Rules
+index 011aa14..6e432a6 100644
+--- a/Make.Rules
++++ b/Make.Rules
+@@ -44,27 +44,28 @@ MINOR=19
+
+ # Compilation specifics
+
+-KERNEL_HEADERS := $(topdir)/libcap/include
+-IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
+-
+-CC := gcc
+-CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+-BUILD_CC := $(CC)
+-BUILD_CFLAGS := $(CFLAGS) $(IPATH)
+-AR := ar
+-RANLIB := ranlib
++CC ?= gcc
++CFLAGS ?= -O2
++BUILD_CC ?= $(CC)
++BUILD_CFLAGS ?= $(CFLAGS)
++AR ?= ar
++RANLIB ?= ranlib
+ DEBUG = -g #-DDEBUG
+ WARNINGS=-Wall -Wwrite-strings \
+ -Wpointer-arith -Wcast-qual -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes \
+ -Wnested-externs -Winline -Wshadow
+ LD=$(CC) -Wl,-x -shared
+-LDFLAGS := #-g
++LDFLAGS ?= #-g
+
+-SYSTEM_HEADERS = /usr/include
++KERNEL_HEADERS = $(topdir)/libcap/include
++LIBCAP_CPPFLAGS = -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
++CPPFLAGS += $(LIBCAP_CPPFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
++BUILD_CPPFLAGS += $(LIBCAP_CPPFLAGS)
+ INCS=$(topdir)/libcap/include/sys/capability.h
+ LDFLAGS += -L$(topdir)/libcap
+-CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
++CPPFLAGS += -Dlinux
++CFLAGS += $(WARNINGS) $(DEBUG)
+ PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
+ INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
+ DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
+diff --git a/libcap/Makefile b/libcap/Makefile
+index 4762c60..cf99523 100644
+--- a/libcap/Makefile
++++ b/libcap/Makefile
+@@ -16,7 +16,7 @@ FILES=cap_alloc cap_proc cap_extint cap_flag cap_text
+ # no support).
+ ifeq ($(LIBATTR),yes)
+ FILES += cap_file
+-LDFLAGS += -lattr
++LDLIBS += -lattr
+ endif
+
+ INCLS=libcap.h cap_names.h $(INCS)
+@@ -24,6 +24,7 @@ OBJS=$(addsuffix .o, $(FILES))
+ MAJLIBNAME=$(LIBNAME).$(VERSION)
+ MINLIBNAME=$(MAJLIBNAME).$(MINOR)
+ GPERF_OUTPUT = _caps_output.gperf
++CFLAGS += -fPIC
+
+ all: $(MINLIBNAME) $(STALIBNAME)
+
+@@ -33,7 +34,7 @@ INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT)
+ endif
+
+ _makenames: _makenames.c cap_names.list.h
+- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
+
+ cap_names.h: _makenames
+ ./_makenames > cap_names.h
+@@ -50,15 +51,15 @@ $(STALIBNAME): $(OBJS)
+ $(RANLIB) $@
+
+ $(MINLIBNAME): $(OBJS)
+- $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^
++ $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^ $(LDLIBS)
+ ln -sf $(MINLIBNAME) $(MAJLIBNAME)
+ ln -sf $(MAJLIBNAME) $(LIBNAME)
+
+ %.o: %.c $(INCLS)
+- $(CC) $(CFLAGS) $(IPATH) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ cap_text.o: cap_text.c $(USE_GPERF_OUTPUT) $(INCLS)
+- $(CC) $(CFLAGS) $(IPATH) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
+
+ install: all
+ mkdir -p -m 0755 $(INCDIR)/sys
+@@ -77,7 +77,7 @@ install: all
+ install -m 0644 include/sys/capability.h $(INCDIR)/sys
+ mkdir -p -m 0755 $(LIBDIR)
+ install -m 0644 $(STALIBNAME) $(LIBDIR)/$(STALIBNAME)
+- install -m 0644 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME)
++ install -m 0755 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME)
+ ln -sf $(MINLIBNAME) $(LIBDIR)/$(MAJLIBNAME)
+ ln -sf $(MAJLIBNAME) $(LIBDIR)/$(LIBNAME)
+ ifeq ($(FAKEROOT),)
+diff --git a/pam_cap/Makefile b/pam_cap/Makefile
+index 9ca5bef..bdae933 100644
+--- a/pam_cap/Makefile
++++ b/pam_cap/Makefile
+@@ -9,6 +9,8 @@ include ../Make.Rules
+ # written (and you know why it fails), email me and explain why. Thanks!
+ LDLIBS += -L../libcap -lcap
+
++CFLAGS += -fPIC
++
+ all: pam_cap.so
+ $(MAKE) testcompile
+
+@@ -17,13 +19,13 @@ install: all
+ install -m 0755 pam_cap.so $(LIBDIR)/security
+
+ pam_cap.so: pam_cap.o
+- $(LD) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
++ $(LD) $(CFLAGS) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
+
+ pam_cap.o: pam_cap.c
+- $(CC) $(CFLAGS) $(IPATH) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ testcompile: test.c pam_cap.o
+- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
+
+ clean:
+ rm -f *.o *.so testcompile *~
+diff --git a/progs/Makefile b/progs/Makefile
+index ef51dc6..c261f57 100644
+--- a/progs/Makefile
++++ b/progs/Makefile
+@@ -22,7 +22,7 @@ $(BUILD): %: %.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
+
+ %.o: %.c $(INCS)
+- $(CC) $(IPATH) $(CFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ install: all
+ mkdir -p -m 0755 $(SBINDIR)
+--
+1.7.4.rc2
+
diff --git a/sys-libs/libcap/files/libcap-2.22-no-perl.patch b/sys-libs/libcap/files/libcap-2.22-no-perl.patch
new file mode 100644
index 0000000..9c29e7e
--- /dev/null
+++ b/sys-libs/libcap/files/libcap-2.22-no-perl.patch
@@ -0,0 +1,54 @@
+From fdd0f3b207785711663f48e0dd3414d90d1f2e86 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sat, 12 Nov 2011 14:24:08 -0500
+Subject: [PATCH] use awk/sed instead of perl for creating header files
+
+More systems should have awk/sed than perl.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ libcap/Makefile | 20 ++++++++++++++++----
+ 1 files changed, 16 insertions(+), 4 deletions(-)
+
+diff --git a/libcap/Makefile b/libcap/Makefile
+index 4762c60..68845e0 100644
+--- a/libcap/Makefile
++++ b/libcap/Makefile
+@@ -24,6 +24,8 @@ OBJS=$(addsuffix .o, $(FILES))
+ MINLIBNAME=$(MAJLIBNAME).$(MINOR)
+ GPERF_OUTPUT = _caps_output.gperf
+ CFLAGS += -fPIC
++AWK = awk
++SED = sed
+
+ all: $(MINLIBNAME) $(STALIBNAME)
+
+@@ -39,11 +41,21 @@ cap_names.h: _makenames
+ ./_makenames > cap_names.h
+
+ $(GPERF_OUTPUT): cap_names.list.h
+- perl -e 'print "struct __cap_token_s { const char *name; int index; };\n%{\nconst struct __cap_token_s *__cap_lookup_name(const char *, unsigned int);\n%}\n%%\n"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --readonly --null-strings --global-table --hash-function-name=__cap_hash_name --lookup-function-name="__cap_lookup_name" -c -t -m20 $(INDENT) > $@
++ (printf "%b" "struct __cap_token_s { const char *name; int index; };\n%{\nconst struct __cap_token_s *__cap_lookup_name(const char *, unsigned int);\n%}\n%%\n"; \
++ $(SED) -e 's:["{}]::g' -e 's:,$$::' $<) | \
++ gperf \
++ --ignore-case \
++ --language=ANSI-C \
++ --readonly \
++ --null-strings \
++ --global-table \
++ --hash-function-name=__cap_hash_name \
++ --lookup-function-name="__cap_lookup_name" \
++ -c -t -m20 $(INDENT) > $@
+
+-cap_names.list.h: Makefile $(KERNEL_HEADERS)/linux/capability.h
+- @echo "=> making $@ from $(KERNEL_HEADERS)/linux/capability.h"
+- perl -e 'while ($$l=<>) { if ($$l =~ /^\#define[ \t](CAP[_A-Z]+)[ \t]+([0-9]+)\s+$$/) { $$tok=$$1; $$val=$$2; $$tok =~ tr/A-Z/a-z/; print "{\"$$tok\",$$val},\n"; } }' $(KERNEL_HEADERS)/linux/capability.h | fgrep -v 0x > $@
++cap_names.list.h: $(KERNEL_HEADERS)/linux/capability.h Makefile
++ @echo "=> making $@ from $<"
++ $(AWK) '($$0 ~ /^#define[[:space:]]+CAP[_A-Z]+[[:space:]]+[0-9]+[[:space:]]*$$/) { printf "{\"%s\",%s},\n", tolower($$2), $$3 }' $< > $@
+
+ $(STALIBNAME): $(OBJS)
+ $(AR) rcs $@ $^
+--
+1.7.6.1
+
diff --git a/sys-libs/libcap/libcap-2.22-r2.ebuild b/sys-libs/libcap/libcap-2.22-r2.ebuild
new file mode 100644
index 0000000..9fec869
--- /dev/null
+++ b/sys-libs/libcap/libcap-2.22-r2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs pam multilib-minimal
+
+DESCRIPTION="POSIX 1003.1e capabilities"
+HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
+# SRC_URI="mirror://kernel/linux/libs/security/linux-privs/libcap${PV:0:1}/${P}.tar.bz2"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+# it's available under either of the licenses
+LICENSE="|| ( GPL-2 BSD )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="pam"
+
+RDEPEND="sys-apps/attr
+ pam? ( virtual/pam[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.22-build-system-fixes.patch
+ epatch "${FILESDIR}"/${PN}-2.22-no-perl.patch
+ epatch "${FILESDIR}"/${PN}-2.20-ignore-RAISE_SETFCAP-install-failures.patch
+ epatch "${FILESDIR}"/${PN}-2.21-include.patch
+ sed -i \
+ -e "/^PAM_CAP/s:=.*:=$(usex pam):" \
+ -e '/^DYNAMIC/s:=.*:=yes:' \
+ Make.Rules
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ sed -i \
+ -e "/^lib=/s:=.*:=/usr/$(get_libdir):" \
+ Make.Rules
+}
+
+multilib_src_install() {
+ tc-export_build_env BUILD_CC
+ tc-export CC AR RANLIB
+ # no configure, needs explicit install line #444724#c3
+ emake install DESTDIR="${ED}"
+
+ gen_usr_ldscript -a cap
+
+ rm -rf "${ED}"/usr/$(get_libdir)/security
+ dopammod pam_cap/pam_cap.so
+ dopamsecurity '' pam_cap/capability.conf
+}
+
+multilib_src_install_all() {
+ dodoc CHANGELOG README doc/capability.notes
+}
diff --git a/sys-libs/libcap/metadata.xml b/sys-libs/libcap/metadata.xml
new file mode 100644
index 0000000..96a2d58
--- /dev/null
+++ b/sys-libs/libcap/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>