From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QetWi-0008Np-KU for garchives@archives.gentoo.org; Thu, 07 Jul 2011 18:42:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB85F21C0D4; Thu, 7 Jul 2011 18:41:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 66E1621C0D4 for ; Thu, 7 Jul 2011 18:41:54 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C05DB2AC096 for ; Thu, 7 Jul 2011 18:41:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C63838004C for ; Thu, 7 Jul 2011 18:41:52 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <831380a7647bb9b1552da51953057777525dacfe.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/ X-VCS-Repository: proj/hardened-dev X-VCS-Files: sys-libs/libsemanage/ChangeLog sys-libs/libsemanage/libsemanage-2.0.45-r1.ebuild sys-libs/libsemanage/metadata.xml X-VCS-Directories: sys-libs/libsemanage/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 831380a7647bb9b1552da51953057777525dacfe Date: Thu, 7 Jul 2011 18:41:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 4de0a59ee514566a531af4b780181e8e commit: 831380a7647bb9b1552da51953057777525dacfe Author: Sven Vermeulen siphos be> AuthorDate: Thu Jul 7 18:40:12 2011 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Jul 7 18:40:12 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-dev.= git;a=3Dcommit;h=3D831380a7 Support python3 --- sys-libs/libsemanage/ChangeLog | 167 +++++++++++++++= ++++++ sys-libs/libsemanage/libsemanage-2.0.45-r1.ebuild | 120 +++++++++++++++ sys-libs/libsemanage/metadata.xml | 6 + 3 files changed, 293 insertions(+), 0 deletions(-) diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/Change= Log new file mode 100644 index 0000000..b57913a --- /dev/null +++ b/sys-libs/libsemanage/ChangeLog @@ -0,0 +1,167 @@ +# ChangeLog for sys-libs/libsemanage +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.36= 2011/06/30 10:40:52 blueness Exp $ + + 07 Jul 2011; +libsemanage-2.0.45-r1.ebuild, +metada= ta.xml: + Support python3 + +*libsemanage-2.0.45-r1 (04 Jul 2011) + + 04 Jul 2011; +libsemanage-2.0.45-r1.ebuild, +metada= ta.xml: + Swigify'ing to support python 3 ABI + + 30 Jun 2011; Anthony G. Basile + libsemanage-2.0.45.ebuild: + Only build libsemanage for python-2, fixes bug #369089 + + 28 May 2011; Anthony G. Basile + libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild: + Make RDEPEND explicit + + 28 May 2011; Anthony G. Basile + libsemanage-2.0.45.ebuild: + Stable amd64 x86 + + 13 Feb 2011; Anthony G. Basile metadata.xml: + Updated metadata.xml to reflect new selinux herd. + + 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis + libsemanage-2.0.45.ebuild: + Add "python" and "ruby" USE flags. + + 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis + libsemanage-2.0.45.ebuild: + Set SUPPORT_PYTHON_ABIS (bug #353764). Respect AR and CC. + +*libsemanage-2.0.45 (05 Feb 2011) + + 05 Feb 2011; Anthony G. Basile + +libsemanage-2.0.45.ebuild: + New upstream release. + + 16 Apr 2010; Arfrever Frehtes Taifersar Arahesis + libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild, + libsemanage-2.0.33-r1.ebuild: + Delete calls to deprecated python_version(). + +*libsemanage-2.0.33-r1 (24 Aug 2009) + + 24 Aug 2009; Chris PeBenito + +libsemanage-2.0.33-r1.ebuild, +files/libsemanage-2.0.33-bzip.diff: + Add patch to make bzip2 compression configurable. + + 03 Aug 2009; Chris PeBenito + libsemanage-2.0.33.ebuild: + Fix libsepol dependency. + + 02 Aug 2009; Chris PeBenito + libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild: + Add python_need_rebuild to libsemanage. + +*libsemanage-2.0.33 (02 Aug 2009) + + 02 Aug 2009; Chris PeBenito + +libsemanage-2.0.33.ebuild: + New upstream release. + + 18 Jul 2009; Chris PeBenito + -libsemanage-1.10.9.ebuild, libsemanage-2.0.27.ebuild: + Mark stable. Remove old ebuilds. + +*libsemanage-2.0.27 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito + +libsemanage-2.0.27.ebuild: + Initial commit of 2.0 libsemanage. + + 10 Sep 2008; Chris PeBenito + libsemanage-1.10.9.ebuild: + Tests cannot be run in the ebuild, they are supposed to be ran on the = full + SELinux userland repo. + + 29 May 2008; Ali Polatel libsemanage-1.10.9.ebuil= d: + python_mod_optimize is ROOT aware. Fixed python_mod_cleanup. + + 26 May 2008; Chris PeBenito + libsemanage-1.10.9.ebuild: + Fix libsepol dependency. + + 13 May 2008; Chris PeBenito -libsemanage-1.4.ebu= ild, + -libsemanage-1.6.ebuild, -libsemanage-1.10.0.ebuild, + -libsemanage-1.10.5.ebuild, libsemanage-1.10.9.ebuild: + Mark 1.10.9 stable, clear old ebuilds. + +*libsemanage-1.10.9 (29 Jan 2008) + + 29 Jan 2008; Chris PeBenito + +libsemanage-1.10.9.ebuild: + New upstream bugfix release. + +*libsemanage-1.10.5 (18 Oct 2007) + + 18 Oct 2007; Chris PeBenito + +libsemanage-1.10.5.ebuild: + New upstream release. + + 04 Jun 2007; Chris PeBenito + libsemanage-1.10.0.ebuild: + Mark stable. + +*libsemanage-1.10.0 (15 Feb 2007) + + 15 Feb 2007; Chris PeBenito + +libsemanage-1.10.0.ebuild: + New upstream release. + + 09 Oct 2006; Chris PeBenito + libsemanage-1.6.17-r1.ebuild: + Stable to make repoman happy. + +*libsemanage-1.6.17-r1 (08 Oct 2006) + + 08 Oct 2006; Chris PeBenito + -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild: + Install semanage.conf since this is masked on example policy-based pro= files. + +*libsemanage-1.6.17 (05 Oct 2006) + + 05 Oct 2006; Chris PeBenito + +libsemanage-1.6.17.ebuild: + Add SVN snapshot. + + 31 Jul 2006; Chris PeBenito libsemanage-1.6.ebui= ld: + Mark stable, long overdue. + + 27 Apr 2006; Alec Warner + files/digest-libsemanage-1.4, Manifest: + Fixing SHA256 digest, pass four + +*libsemanage-1.6 (18 Mar 2006) + + 18 Mar 2006; Chris PeBenito +libsemanage-1.6.ebu= ild: + New upstream release. + + 22 Feb 2006; Stephen Bennett libsemanage-1.4.ebuild: + Alpha stable + + 19 Feb 2006; Joshua Kinard libsemanage-1.4.ebuild: + Marked stable on mips. + + 09 Feb 2006; Chris PeBenito libsemanage-1.4.ebui= ld: + Set python version to fix compiles on non 2.4 pythons. + + 17 Jan 2006; Chris PeBenito libsemanage-1.4.ebui= ld: + Mark stable, x86, amd64, ppc, sparc. + + 14 Jan 2006; Stephen Bennett libsemanage-1.4.ebuild: + Added ~alpha + + 15 Dec 2005; Chris PeBenito libsemanage-1.4.ebui= ld: + Tighten up versioning to try to prevent mismatch problems as seen in #= 112348. + +*libsemanage-1.4 (09 Dec 2005) + + 09 Dec 2005; Chris PeBenito +metadata.xml, + +libsemanage-1.4.ebuild: + Initial commit. + diff --git a/sys-libs/libsemanage/libsemanage-2.0.45-r1.ebuild b/sys-libs= /libsemanage/libsemanage-2.0.45-r1.ebuild new file mode 100644 index 0000000..66811dd --- /dev/null +++ b/sys-libs/libsemanage/libsemanage-2.0.45-r1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.= 45.ebuild,v 1.7 2011/06/30 10:40:52 blueness Exp $ + +EAPI=3D"2" +PYTHON_DEPEND=3D"python? *" +SUPPORT_PYTHON_ABIS=3D"1" +RESTRICT_PYTHON_ABIS=3D"*-jython" + +inherit multilib python toolchain-funcs + +SEPOL_VER=3D"2.0.41" +SELNX_VER=3D"2.0.94" + +DESCRIPTION=3D"SELinux kernel and policy management library" +HOMEPAGE=3D"http://userspace.selinuxproject.org" +SRC_URI=3D"http://userspace.selinuxproject.org/releases/20100525/devel/$= {P}.tar.gz" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"python ruby" + +RDEPEND=3D">=3Dsys-libs/libsepol-${SEPOL_VER} + >=3Dsys-libs/libselinux-${SELNX_VER} + dev-libs/ustr + ruby? ( dev-lang/ruby )" +DEPEND=3D"${RDEPEND} + dev-lang/swig" + +# tests are not meant to be run outside of the +# full SELinux userland repo +RESTRICT=3D"test" + +pkg_setup() { + if use python; then + python_pkg_setup + fi +} + +src_prepare() { + echo "# Set this to true to save the linked policy." >> "${S}/src/seman= age.conf" + echo "# This is normally only useful for analysis" >> "${S}/src/semanag= e.conf" + echo "# or debugging of policy." >> "${S}/src/semanage.conf" + echo "save-linked=3Dfalse" >> "${S}/src/semanage.conf" + echo >> "${S}/src/semanage.conf" + echo "# Set this to 0 to disable assertion checking." >> "${S}/src/sema= nage.conf" + echo "# This should speed up building the kernel policy" >> "${S}/src/s= emanage.conf" + echo "# from policy modules, but may leave you open to" >> "${S}/src/se= manage.conf" + echo "# dangerous rules which assertion checking" >> "${S}/src/semanage= .conf" + echo "# would catch." >> "${S}/src/semanage.conf" + echo "expand-check=3D1" >> "${S}/src/semanage.conf" + echo >> "${S}/src/semanage.conf" + echo "# Modules in the module store can be compressed" >> "${S}/src/sem= anage.conf" + echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/sema= nage.conf" + echo "# 1-9 when compressing. The higher the number," >> "${S}/src/sem= anage.conf" + echo "# the more memory is traded off for disk space." >> "${S}/src/sem= anage.conf" + echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.c= onf" + echo "bzip-blocksize=3D0" >> "${S}/src/semanage.conf" + echo >> "${S}/src/semanage.conf" + echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/sem= anage.conf" + echo "# decompression of modules in the module store." >> "${S}/src/sem= anage.conf" + echo "bzip-small=3Dtrue" >> "${S}/src/semanage.conf" +} + +src_compile() { + emake AR=3D"$(tc-getAR)" CC=3D"$(tc-getCC)" all || die + + if use python; then + python_copy_sources src + building() { + emake CC=3D"$(tc-getCC)" PYLIBVER=3D"python$(python_get_version)" "$@= " + } + python_execute_function -s --source-dir src building -- swigify + python_execute_function -s --source-dir src building -- pywrap + fi + + if use ruby; then + emake -C src CC=3D"$(tc-getCC)" rubywrap || die + fi +} + +src_install() { + emake \ + DESTDIR=3D"${D}" \ + LIBDIR=3D"${D}usr/$(get_libdir)" \ + SHLIBDIR=3D"${D}$(get_libdir)" \ + install || die + dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsem= anage.so" || die + + if use python; then + installation() { + emake \ + DESTDIR=3D"${D}" \ + PYLIBVER=3D"python$(python_get_version)" \ + LIBDIR=3D"${D}usr/$(get_libdir)" \ + install-pywrap + } + python_execute_function -s --source-dir src installation + fi + + if use ruby; then + emake -C src \ + DESTDIR=3D"${D}" \ + LIBDIR=3D"${D}usr/$(get_libdir)" \ + install-rubywrap || die + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize semanage.py + fi +} + +pkg_postrm() { + if use python; then + python_mod_cleanup semanage.py + fi +} diff --git a/sys-libs/libsemanage/metadata.xml b/sys-libs/libsemanage/met= adata.xml new file mode 100644 index 0000000..ebc32c0 --- /dev/null +++ b/sys-libs/libsemanage/metadata.xml @@ -0,0 +1,6 @@ + + + + selinux + SELinux policy management libraries +