Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libsemanage: ChangeLog libsemanage-2.0.45.ebuild
Date: Sat, 05 Feb 2011 11:16:00
Message-Id: 20110205111549.CDDD520054@flycatcher.gentoo.org
1 blueness 11/02/05 11:15:49
2
3 Modified: ChangeLog
4 Added: libsemanage-2.0.45.ebuild
5 Log:
6 New upstream release.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.30 sys-libs/libsemanage/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 16 Apr 2010 19:36:39 -0000 1.29
24 +++ ChangeLog 5 Feb 2011 11:15:49 -0000 1.30
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-libs/libsemanage
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.29 2010/04/16 19:36:39 arfrever Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.30 2011/02/05 11:15:49 blueness Exp $
31 +
32 +*libsemanage-2.0.45 (05 Feb 2011)
33 +
34 + 05 Feb 2011; Anthony G. Basile <blueness@g.o>
35 + +libsemanage-2.0.45.ebuild:
36 + New upstream release.
37
38 16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
39 libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild,
40
41
42
43 1.1 sys-libs/libsemanage/libsemanage-2.0.45.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libsemanage-2.0.45.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.45.ebuild,v 1.1 2011/02/05 11:15:49 blueness Exp $
53
54 IUSE=""
55
56 inherit eutils multilib python toolchain-funcs
57
58 SEPOL_VER="2.0.41"
59 SELNX_VER="2.0.94"
60
61 DESCRIPTION="SELinux kernel and policy management library"
62 HOMEPAGE="http://userspace.selinuxproject.org"
63 SRC_URI="http://userspace.selinuxproject.org/releases/20100525/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 echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf"
81 echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
82 echo "# or debugging of policy." >> "${S}/src/semanage.conf"
83 echo "save-linked=false" >> "${S}/src/semanage.conf"
84 echo >> "${S}/src/semanage.conf"
85 echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
86 echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
87 echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
88 echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
89 echo "# would catch." >> "${S}/src/semanage.conf"
90 echo "expand-check=1" >> "${S}/src/semanage.conf"
91 echo >> "${S}/src/semanage.conf"
92 echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
93 echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
94 echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf"
95 echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
96 echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
97 echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
98 echo >> "${S}/src/semanage.conf"
99 echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
100 echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
101 echo "bzip-small=true" >> "${S}/src/semanage.conf"
102 }
103
104 src_compile() {
105 emake PYLIBVER="python$(python_get_version)" all || die
106 emake PYLIBVER="python$(python_get_version)" pywrap || die
107 }
108
109 src_install() {
110 python_need_rebuild
111 make DESTDIR="${D}" PYLIBVER="python$(python_get_version)" \
112 LIBDIR="${D}/usr/$(get_libdir)/" \
113 SHLIBDIR="${D}/$(get_libdir)/" install install-pywrap
114 dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so"
115 }
116
117 pkg_postinst() {
118 python_mod_optimize $(python_get_sitedir)
119 }
120
121 pkg_postrm() {
122 python_mod_cleanup $(python_get_sitedir)
123 }