summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-03-16 07:49:12 +0000
committerMike Frysinger <vapier@gentoo.org>2008-03-16 07:49:12 +0000
commit3b650c8537b17338e33c34454c3824d2b151b111 (patch)
treeefa90b807874cbdbf92f70f9db3c6d41423d4b53 /sys-libs
parentarm/s390/sh stable (diff)
downloadhistorical-3b650c8537b17338e33c34454c3824d2b151b111.tar.gz
historical-3b650c8537b17338e33c34454c3824d2b151b111.tar.bz2
historical-3b650c8537b17338e33c34454c3824d2b151b111.zip
Version bump #211362 by Arfrever Frehtes Taifersar Arahesis.
Package-Manager: portage-2.2_pre2
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libcap/ChangeLog8
-rw-r--r--sys-libs/libcap/Manifest15
-rw-r--r--sys-libs/libcap/files/2.08/0006-cleanup-build-system.patch199
-rw-r--r--sys-libs/libcap/libcap-2.08.ebuild48
4 files changed, 268 insertions, 2 deletions
diff --git a/sys-libs/libcap/ChangeLog b/sys-libs/libcap/ChangeLog
index 0174171adc87..1d35650745c6 100644
--- a/sys-libs/libcap/ChangeLog
+++ b/sys-libs/libcap/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-libs/libcap
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.62 2008/02/18 14:42:57 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.63 2008/03/16 07:49:11 vapier Exp $
+
+*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)
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest
index a9ada50f36af..b07483a8e9af 100644
--- a/sys-libs/libcap/Manifest
+++ b/sys-libs/libcap/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 1.10-python.patch 2796 RMD160 b8fa02d2141048c95bcd07854f3b1a079475467b SHA1 c2514ea37904469fc0e6ee7d9534210f917910b5 SHA256 52ddf875d1ab0553b66c83c01cf145f3e4c714a948a52a568dc1a7642ab3ba73
AUX 2.06/0001-set-FAKEROOT-to-DESTDIR-by-default.patch 800 RMD160 da095e588267ed7f4561ae74cfc69b9e55b3839f SHA1 2cd6e500c6f8e31194bd7fd62fae1b614f7aaac5 SHA256 ecc9a210bd441fe4f566a2ed74fc18a86f16b0ac55013dd5030276a52c7cec9c
AUX 2.06/0002-do-not-use-the-s-flag-with-install.patch 930 RMD160 ced887aa7f8739d25466aa805dc338e5f159c175 SHA1 c3a1c46a607ad56a2d2cf2a90ea8218a2e385928 SHA256 fe37bfb904ca8d67fd84354d7f4ed073320f54527b3280fc766685bf004d1d7b
@@ -5,6 +8,7 @@ AUX 2.06/0003-Add-.gitignore-files.patch 1294 RMD160 fdc4380137ccd12c6870b08422e
AUX 2.06/0004-Do-not-run-ldconfig-for-FAKEROOT-installs.patch 1030 RMD160 468f0684eb1b0002d795096778744acdc98ef8d6 SHA1 d66aa93977200102f2d375e18bbef09b441a8af8 SHA256 77d41772682d124bfb02ef2a9cd123077383b1ec2950d54954a801afa25cae03
AUX 2.06/0005-Do-not-hard-code-toolchain-binaries.patch 1543 RMD160 64807ed0e80588b4dfc0836b3bf87bfcb1f53976 SHA1 de92ba2febc538c13af72e456e4d87561002f00a SHA256 f1a77398df4d131016e15bcc53ff7932424fb5db45fe2e51b1a0c993083f3d81
AUX 2.06/0006-cleanup-build-system.patch 5909 RMD160 8223cf9559295053d42b0a5372c437981989d0e2 SHA1 667174e4116ed740436d2584f4fd8865051466f3 SHA256 97bc2509be1da90d2fdc9daa714a308cb3fb3dc088e325164aae64022b98e75c
+AUX 2.08/0006-cleanup-build-system.patch 5928 RMD160 19411fe90cbe51a96423307779c4b06b8c3777fc SHA1 c0abcdbbdb1a7f02c257ced843da073ff23195c6 SHA256 80318098984202e6faa336291a3e8251b714d40e6f409d7aee7d029bd282fdec
AUX libcap-1.10-auditcaps.diff 443 RMD160 a53709c50e907c0a250caa86966c4af36b08629d SHA1 6ce77a09480e5b8b216348ddfad0b4a164cb1356 SHA256 1147f37baedb71d3c1242fa3ff5dd7f784d06d0815ce77429ba3570b0be40b3f
AUX libcap-1.10-headers.patch 422 RMD160 b1177097e4e76acb295e4ee4de478eb214c4e45e SHA1 17d7c7e025205a5d8f250b0527f7026ed980f594 SHA256 75a478e4e7b01ae67b93f80580310259e7d436c3ef32da8d8562690881ccf550
AUX libcap-1.10-nostrip.patch 325 RMD160 f4bb1eedfee569c5ea92836f6944555fb2197e24 SHA1 760505b69d6e5156bcddd85b4b08bce374da2fca SHA256 ee2f10a6b8f9d5d680f19fe58e3dd03f1d8045e0cbf0bef5b9cb9b1c8329dc74
@@ -13,6 +17,7 @@ AUX libcap-1.10-r4-staticfix.diff 2113 RMD160 b99eb439f6254ce468d6ed492dcbf4129e
AUX libcap-1.10-syscall.patch 1051 RMD160 b369627ad27c14559fdf6e6225c6f0ee607c3e8d SHA1 e8ce4d9b32903f2799f29524ab40b82bc023ac9c SHA256 d07ade0e8c784074d23cd8a26c5619178f8aa16174543d41bd4e2a9aaf266254
DIST libcap-1.10.tar.bz2 26686 RMD160 c1fad30889f0651039efc9db34e72060c4567f71 SHA1 04e699788d98c9ceffaf1292f22a88189ac3d7b7 SHA256 66c3f033fdc8f9ba0bd9d0ae2d1f2c11f9fa51bf0d1418e5cb75e29e6577a5bc
DIST libcap-2.06.tar.bz2 39523 RMD160 94b8d65023633e66dd81e94b7d771b83ea5437fc SHA1 7e414d2dade34769775d59751098889f6a89b73d SHA256 41d5b04208e9539dbd4e41ad21d94fdb3ee3251a9dee4c0d2aa1b10cbc82d4df
+DIST libcap-2.08.tar.bz2 40758 RMD160 d062de7bc29bfdfdd081f7449b82af3526c68ff9 SHA1 73973bb8776a79e6a3047d88ec99e76f6f94c370 SHA256 be775d6fd65c378b8d9688e87758af55da2ee3df94e144e81be809f13b62bbab
DIST libcap_1.10-14.diff.gz 12928 RMD160 7fbf66ca5795ae8ee05d208d74a76619ad81afae SHA1 e6661aec051ccb201061839d275f2282968d8b93 SHA256 e8fdb798774d49439dd07a6a2858da08a27e6b8057e0f87456a0bc223b74f706
EBUILD libcap-1.10-r10.ebuild 2282 RMD160 adb1185013886c4b924d1603aa7fd7ebbf41e650 SHA1 73e9a1a6aac0584d066597b0a38206631d7d9543 SHA256 d8a54cddb62af2c8fbdc26db97107fa2d091b3424d4086d072552b5a870c4338
EBUILD libcap-1.10-r11.ebuild 2375 RMD160 132e34d7de34a8091c5409f92e6af9a4555649a3 SHA1 3102d144a934cfe44596d387c170a673c48b8e83 SHA256 6ab0fbfa7d71ec9c26587f2ee4f48199f8ed1fa3b6de7980f7897b6b653d1625
@@ -21,5 +26,13 @@ EBUILD libcap-1.10-r8.ebuild 2136 RMD160 3c44061c68c60ae368e30e4c83eba7620ebf7c5
EBUILD libcap-1.10-r9.ebuild 2217 RMD160 4709b38cf001980835311b0c45538ead80c5752d SHA1 09a7cb05b308ad9edb4fe353bb231a06709cb930 SHA256 39b65d70ec65684049d1f38ab095c4d5b1b233a44e6fa26ab85ee27bbe6354be
EBUILD libcap-2.06-r1.ebuild 1348 RMD160 2038b9f5bb6480115b872776798f8715833c79c2 SHA1 30b9ed201f11badb37c162b9bb19bcbd900fe00e SHA256 880fb901840e2adddec3a49d4ef000c2a6aaec30a8786ab3248060ca514e70c6
EBUILD libcap-2.06.ebuild 1200 RMD160 a9aca6e07a95d62e3fc27e9075b07e4afd55f772 SHA1 ebf2cbb14eff16257950ee8aa97bc5a6614d50b4 SHA256 c6b36301ebdc5663b34acecb69c16200906d6e7313e4b2b96616c86b00e0bee1
-MISC ChangeLog 8838 RMD160 da0b30bbca2228bf47f48410fe8546a9429c05e6 SHA1 82aa8fd719eb32ec1ae7b95f9a4c73b659240d31 SHA256 c9c70295fb58f0494447545256493ae9053645068c9e9ad8f83134958529cd9f
+EBUILD libcap-2.08.ebuild 1342 RMD160 fc477f22503ecf2f305066d9bf5d59607ea9f48a SHA1 b4a4a2aa40e64fa85abc162c755e94c0c2310644 SHA256 ac68bd1e6a9060add7494321fe81e020e1f24120e8d98c228f81542967529b52
+MISC ChangeLog 9045 RMD160 56a494a9d9e3ed2ac9797be2798b5eb7e6c30c1e SHA1 bd31e315592388b7410b3b084609a53370820e0b SHA256 4ac81320c2bcb62d4b189202941192976ef59f189f20c89a5935c67bdfe37ec5
MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFH3NFCj9hvisErhMIRAl8CAKDn5gEj89Xnuu33nOtBsurJkCLyMwCgtuOQ
+iG2JSnsN0/CLeG8R/VWeRTM=
+=2Wol
+-----END PGP SIGNATURE-----
diff --git a/sys-libs/libcap/files/2.08/0006-cleanup-build-system.patch b/sys-libs/libcap/files/2.08/0006-cleanup-build-system.patch
new file mode 100644
index 000000000000..8b13a3b0d9b9
--- /dev/null
+++ b/sys-libs/libcap/files/2.08/0006-cleanup-build-system.patch
@@ -0,0 +1,199 @@
+From 5ec19bea0899c6e305337331ad4f8f8669492f28 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sat, 16 Feb 2008 16:51:53 -0500
+Subject: [PATCH] cleanup build system
+
+This refactors the homebrewed build system to work much better "out of the
+box" for people. It moves tools/flags into appropriate env-overridable
+variables as well as simplifies the subdirectory handling and flag passing.
+A few bug fixes are also mixed in such as proper link order, parallel build
+failure due to local header generation, and splitting up of logic between
+binaries compiled and run on the build system and binaries compiled to run
+on the target system.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ Make.Rules | 27 +++++++++++----------------
+ Makefile | 8 ++++----
+ libcap/Makefile | 18 ++++++++++--------
+ pam_cap/Makefile | 9 ++++++---
+ progs/Makefile | 7 +++++--
+ 5 files changed, 36 insertions(+), 33 deletions(-)
+
+diff --git a/Make.Rules b/Make.Rules
+index 3f38e72..17e71c1 100644
+--- a/Make.Rules
++++ b/Make.Rules
+@@ -43,33 +43,28 @@ MINOR=06
+ # Compilation specifics
+
+ CC ?= gcc
++BUILD_CC ?= $(CC)
+ AR ?= ar
+ RANLIB ?= ranlib
+-COPTFLAGS=-O2
+-DEBUG=-O2 -g #-DDEBUG
+-WARNINGS=-fPIC -Wall -Wwrite-strings \
++CFLAGS ?= -O2
++BUILD_CFLAGS ?= $(CFLAGS)
++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
+
+ KERNEL_HEADERS = $(topdir)/libcap/include
+-SYSTEM_HEADERS = /usr/include
+-IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
++LIBCAP_CPPFLAGS = -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
++CPPFLAGS += $(LIBCAP_CPPFLAGS)
++BUILD_CPPFLAGS += $(LIBCAP_CPPFLAGS)
+ INCS=$(topdir)/libcap/include/sys/capability.h
+-LIBS=-L$(topdir)/libcap -lcap
+-CFLAGS=-Dlinux $(WARNINGS) $(DEBUG) $(COPTFLAG) $(IPATH)
++LDFLAGS += -L$(topdir)/libcap
++CPPFLAGS += -Dlinux
++CFLAGS += $(WARNINGS)
+ PAM_CAP ?= $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
+ # Global cleanup stuff
+
+ LOCALCLEAN=rm -f *~ core
+ DISTCLEAN=@find . \( -name '*.orig' -o -name '*.rej' \) | xargs rm -f
+-
+-# Flags to pass down recursive makes
+-
+-MAKE_DEFS = CC='$(CC)' CFLAGS='$(CFLAGS)' \
+- LD='$(LD)' LIBS='$(LIBS)' LDFLAGS='$(LDFLAGS)' \
+- VERSION='$(VERSION)' MINOR='$(MINOR)' \
+- LIBDIR='$(LIBDIR)' INCDIR='$(INCDIR)' \
+- SBINDIR='$(SBINDIR)' MANDIR='$(MANDIR)'
+diff --git a/Makefile b/Makefile
+index 52f7b42..9076724 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,12 +9,12 @@ include Make.Rules
+ #
+
+ all install clean: %: %-here
+- $(MAKE) -C libcap $(MAKE_DEFS) $@
++ $(MAKE) -C libcap $@
+ ifneq ($(PAM_CAP),no)
+- $(MAKE) -C pam_cap $(MAKE_DEFS) $@
++ $(MAKE) -C pam_cap $@
+ endif
+- $(MAKE) -C progs $(MAKE_DEFS) $@
+- $(MAKE) -C doc $(MAKE_DEFS) $@
++ $(MAKE) -C progs $@
++ $(MAKE) -C doc $@
+
+ all-here:
+
+diff --git a/libcap/Makefile b/libcap/Makefile
+index 09a12d2..4bcc279 100644
+--- a/libcap/Makefile
++++ b/libcap/Makefile
+@@ -17,7 +17,9 @@ OBJS=$(addsuffix .o, $(FILES))
+ MAJLIBNAME=$(LIBNAME).$(VERSION)
+ MINLIBNAME=$(MAJLIBNAME).$(MINOR)
+ GPERF_OUTPUT = _caps_output.gperf
+-LDFLAGS+=-lattr
++LDLIBS += -lattr
++CFLAGS += -fPIC
++INCLS += cap_names.h
+
+ all: $(MINLIBNAME) $(STALIBNAME)
+
+@@ -27,7 +29,7 @@ INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT)
+ endif
+
+ _makenames: _makenames.c cap_names.sed
+- $(CC) $(CFLAGS) $< -o $@
++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
+
+ cap_names.h: _makenames
+ ./_makenames > cap_names.h
+@@ -40,19 +42,19 @@ cap_names.sed: Makefile $(KERNEL_HEADERS)/linux/capability.h
+ @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define \([^ \t]*\)[ \t]*\([^ \t]*\)/\{\"\1\",\2\},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < $(KERNEL_HEADERS)/linux/capability.h | fgrep -v 0x > $@
+
+ $(STALIBNAME): $(OBJS)
+- $(AR) rcs $(STALIBNAME) $(OBJS)
+- $(RANLIB) $(STALIBNAME)
++ $(AR) rcs $@ $^
++ $(RANLIB) $@
+
+ $(MINLIBNAME): $(OBJS)
+- $(LD) $(LDFLAGS) $(COPTFLAG) -Wl,-soname,$(MAJLIBNAME) -o $@ $(OBJS)
++ $(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 $@
++cap_text.o: cap_text.c $(USE_GPERF_OUTPUT) $(INCLS)
++ $(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 3b3d266..e20d059 100644
+--- a/pam_cap/Makefile
++++ b/pam_cap/Makefile
+@@ -3,6 +3,9 @@
+ topdir=$(shell pwd)/..
+ include ../Make.Rules
+
++LDLIBS += -lcap -lpam
++CFLAGS += -fPIC
++
+ all: pam_cap.so
+ $(MAKE) testcompile
+
+@@ -14,13 +17,13 @@ install:
+ @echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
+
+ pam_cap.so: pam_cap.o
+- $(LD) -o pam_cap.so $< $(LIBS)
++ $(LD) $(CFLAGS) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
+
+ pam_cap.o: pam_cap.c
+- $(CC) $(CFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ testcompile: test.c pam_cap.o
+- $(CC) $(CFLAGS) -o $@ $+ -lpam -ldl $(LIBS)
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
+
+ clean:
+ rm -f *.o *.so testcompile *~
+diff --git a/progs/Makefile b/progs/Makefile
+index d711656..9b6b11c 100644
+--- a/progs/Makefile
++++ b/progs/Makefile
+@@ -6,13 +6,16 @@ include $(topdir)/Make.Rules
+ #
+ PROGS=getpcaps getcap setcap capsh
+
++LDFLAGS += --static
++LDLIBS += -lcap
++
+ all: $(PROGS)
+
+ $(PROGS): %: %.o
+- $(CC) --static $(COPTFLAG) $(LDFLAGS) -o $@ $< $(LIBS)
++ $(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.5.4
+
diff --git a/sys-libs/libcap/libcap-2.08.ebuild b/sys-libs/libcap/libcap-2.08.ebuild
new file mode 100644
index 000000000000..9734c2e7c257
--- /dev/null
+++ b/sys-libs/libcap/libcap-2.08.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-2.08.ebuild,v 1.1 2008/03/16 07:49:11 vapier Exp $
+
+inherit eutils multilib toolchain-funcs pam
+
+DESCRIPTION="POSIX 1003.1e capabilities"
+HOMEPAGE="http://www.friedhoff.org/posixfilecaps.html"
+SRC_URI="http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap${PV:0:1}/${P}.tar.bz2"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="pam"
+
+RDEPEND="sys-apps/attr"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers"
+
+src_unpack() {
+ unpack ${P}.tar.bz2
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}/*.patch
+ sed -i 's:gperf:false:' libcap/Makefile #210424
+
+ sed -i -e '/cap_setfcap.*morgan/s:^:#:' pam_cap/capability.conf
+}
+
+src_compile() {
+ tc-export BUILD_CC CC AR RANLIB
+ export PAM_CAP=$(use pam && echo yes || echo no)
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" lib=$(get_libdir) || die
+
+ dolib.a libcap/libcap.a || die
+ gen_usr_ldscript libcap.so
+
+ dopammod pam_cap/pam_cap.so
+ dopamsecurity '' pam_cap/capability.conf
+
+ dodoc CHANGELOG README doc/capability.notes
+
+ # let man-pages handle these, especially since theirs are better
+ rm "${D}"/usr/share/man/man2/cap{g,s}et.2 || die
+}