Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libcap: ChangeLog libcap-1.10-r11.ebuild
Date: Tue, 02 Oct 2007 08:15:26
Message-Id: E1Iccls-0006P0-9E@stork.gentoo.org
1 robbat2 07/10/02 08:06:24
2
3 Modified: ChangeLog
4 Added: libcap-1.10-r11.ebuild
5 Log:
6 Bug #193332, handle cleanup/optimize of python modules if applicable.
7 (Portage version: 2.1.3.11)
8
9 Revision Changes Path
10 1.50 sys-libs/libcap/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libcap/ChangeLog?rev=1.50&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libcap/ChangeLog?rev=1.50&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libcap/ChangeLog?r1=1.49&r2=1.50
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v
19 retrieving revision 1.49
20 retrieving revision 1.50
21 diff -u -r1.49 -r1.50
22 --- ChangeLog 2 Apr 2007 00:15:04 -0000 1.49
23 +++ ChangeLog 2 Oct 2007 08:06:23 -0000 1.50
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-libs/libcap
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.49 2007/04/02 00:15:04 pebenito Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/ChangeLog,v 1.50 2007/10/02 08:06:23 robbat2 Exp $
29 +
30 +*libcap-1.10-r11 (02 Oct 2007)
31 +
32 + 02 Oct 2007; Robin H. Johnson <robbat2@g.o>
33 + +libcap-1.10-r11.ebuild:
34 + Bug #193332, handle cleanup/optimize of python modules if applicable.
35
36 *libcap-1.10-r10 (02 Apr 2007)
37
38
39
40
41 1.1 sys-libs/libcap/libcap-1.10-r11.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libcap/libcap-1.10-r11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libcap/libcap-1.10-r11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libcap-1.10-r11.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r11.ebuild,v 1.1 2007/10/02 08:06:23 robbat2 Exp $
51
52 inherit flag-o-matic eutils python multilib toolchain-funcs
53
54 DEB_PVER="14"
55 DESCRIPTION="POSIX 1003.1e capabilities"
56 HOMEPAGE="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
57 SRC_URI="http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${P}.tar.bz2
58 mirror://debian/pool/main/libc/libcap/libcap_${PV}-${DEB_PVER}.diff.gz"
59
60 LICENSE="GPL-2 BSD"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
63 IUSE="python"
64
65 #patch is in recent 2.2 kernels so it works there
66 DEPEND="virtual/os-headers
67 python? ( >=virtual/python-2.2.1 >=dev-lang/swig-1.3.10 )"
68 RDEPEND="python? ( >=virtual/python-2.2.1 )"
69
70 src_unpack() {
71 unpack ${P}.tar.bz2
72 cd "${S}"
73 epatch "${DISTDIR}"/libcap_${PV}-${DEB_PVER}.diff.gz
74 epatch "${FILESDIR}"/${PV}-python.patch
75 epatch "${FILESDIR}"/libcap-1.10-r4-staticfix.diff
76 epatch "${FILESDIR}"/libcap-1.10-nostrip.patch
77 epatch "${FILESDIR}"/libcap-1.10-headers.patch
78 epatch "${FILESDIR}"/libcap-1.10-auditcaps.diff
79 sed -i -e 's|WARNINGS=-ansi|WARNINGS=|' Make.Rules
80 }
81
82 src_compile() {
83 local myflags=
84 if ! tc-is-cross-compiler && use python ; then
85 python_version
86 myflags="${myflags} PYTHON=1 PYTHONMODDIR=/usr/$(get_libdir)/python${PYVER}/site-packages"
87 append-flags "-I/usr/include/python${PYVER}"
88 fi
89
90 emake COPTFLAG="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${myflags} || die
91 }
92
93 src_install() {
94 into /
95 dosbin progs/{sucap,execcap,setpcaps,getpcaps} || die
96 dolib.so libcap/libcap.so.${PV} || die
97 dosym libcap.so.${PV} /$(get_libdir)/libcap.so.1
98 dosym libcap.so.1 /$(get_libdir)/libcap.so
99 gen_usr_ldscript libcap.so
100 into /usr
101 dolib.a libcap/libcap.a
102
103 insinto /usr/include/sys
104 doins libcap/include/sys/capability.h
105
106 dodoc CHANGELOG README pgp.keys.asc doc/capability.notes capfaq-0.2.txt
107 doman doc/*.3
108
109 if ! tc-is-cross-compiler && use python ; then
110 python_version
111 local PYTHONMODDIR="/usr/$(get_libdir)/python${PYVER}/site-packages"
112 exeinto "${PYTHONMODDIR}"
113 doexe libcap/libcapmodule.so
114 insinto "${PYTHONMODDIR}"
115 doins libcap/libcap.py
116 fi
117 }
118
119 pkg_postinst() {
120 use python && python_mod_optimize
121 }
122
123 pkg_postrm() {
124 use python && python_mod_cleanup
125 }
126
127
128
129 --
130 gentoo-commits@g.o mailing list