1 |
pebenito 09/08/24 18:36:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libsemanage-2.0.33-r1.ebuild |
5 |
Log: |
6 |
sys-libs/libsemanage: Add patch to make bzip2 compression configurable. |
7 |
(Portage version: 2.2_rc38/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.28 sys-libs/libsemanage/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.28&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.28&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.27&r2=1.28 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v |
19 |
retrieving revision 1.27 |
20 |
retrieving revision 1.28 |
21 |
diff -u -r1.27 -r1.28 |
22 |
--- ChangeLog 3 Aug 2009 13:30:03 -0000 1.27 |
23 |
+++ ChangeLog 24 Aug 2009 18:36:16 -0000 1.28 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sys-libs/libsemanage |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.27 2009/08/03 13:30:03 pebenito Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.28 2009/08/24 18:36:16 pebenito Exp $ |
29 |
+ |
30 |
+*libsemanage-2.0.33-r1 (24 Aug 2009) |
31 |
+ |
32 |
+ 24 Aug 2009; Chris PeBenito <pebenito@g.o> |
33 |
+ +libsemanage-2.0.33-r1.ebuild, +files/libsemanage-2.0.33-bzip.diff: |
34 |
+ Add patch to make bzip2 compression configurable. |
35 |
|
36 |
03 Aug 2009; Chris PeBenito <pebenito@g.o> |
37 |
libsemanage-2.0.33.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-libs/libsemanage/libsemanage-2.0.33-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.33-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.33-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libsemanage-2.0.33-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.33-r1.ebuild,v 1.1 2009/08/24 18:36:16 pebenito Exp $ |
51 |
|
52 |
IUSE="" |
53 |
|
54 |
inherit eutils multilib python |
55 |
|
56 |
BUGFIX_PATCH="${FILESDIR}/libsemanage-2.0.33-bzip.diff" |
57 |
|
58 |
SEPOL_VER="2.0.37" |
59 |
SELNX_VER="2.0" |
60 |
|
61 |
DESCRIPTION="SELinux kernel and policy management library" |
62 |
HOMEPAGE="http://userspace.selinuxproject.org" |
63 |
SRC_URI="http://userspace.selinuxproject.org/releases/current/devel/${P}.tar.gz" |
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
DEPEND=">=sys-libs/libsepol-${SEPOL_VER} |
68 |
>=sys-libs/libselinux-${SELNX_VER} |
69 |
dev-libs/ustr" |
70 |
RDEPEND="${DEPEND}" |
71 |
|
72 |
# tests are not meant to be run outside of the |
73 |
# full SELinux userland repo |
74 |
RESTRICT="test" |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${A} |
78 |
cd "${S}" |
79 |
|
80 |
[ ! -z "${BUGFIX_PATCH}" ] && epatch "${BUGFIX_PATCH}" |
81 |
|
82 |
echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf" |
83 |
echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf" |
84 |
echo "# or debugging of policy." >> "${S}/src/semanage.conf" |
85 |
echo "save-linked=false" >> "${S}/src/semanage.conf" |
86 |
echo >> "${S}/src/semanage.conf" |
87 |
echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf" |
88 |
echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf" |
89 |
echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf" |
90 |
echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf" |
91 |
echo "# would catch." >> "${S}/src/semanage.conf" |
92 |
echo "expand-check=1" >> "${S}/src/semanage.conf" |
93 |
echo >> "${S}/src/semanage.conf" |
94 |
echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf" |
95 |
echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf" |
96 |
echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf" |
97 |
echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf" |
98 |
echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf" |
99 |
echo "bzip-blocksize=0" >> "${S}/src/semanage.conf" |
100 |
echo >> "${S}/src/semanage.conf" |
101 |
echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf" |
102 |
echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf" |
103 |
echo "bzip-small=true" >> "${S}/src/semanage.conf" |
104 |
} |
105 |
|
106 |
src_compile() { |
107 |
python_version |
108 |
emake PYLIBVER="python${PYVER}" all || die |
109 |
emake PYLIBVER="python${PYVER}" pywrap || die |
110 |
} |
111 |
|
112 |
src_install() { |
113 |
python_version |
114 |
python_need_rebuild |
115 |
make DESTDIR="${D}" PYLIBVER="python${PYVER}" \ |
116 |
LIBDIR="${D}/usr/$(get_libdir)/" \ |
117 |
SHLIBDIR="${D}/$(get_libdir)/" install install-pywrap |
118 |
} |
119 |
|
120 |
pkg_postinst() { |
121 |
python_version |
122 |
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages |
123 |
} |
124 |
|
125 |
pkg_postrm() { |
126 |
python_version |
127 |
python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages |
128 |
} |