public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/
@ 2011-06-29 12:59 Sven Vermeulen
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Vermeulen @ 2011-06-29 12:59 UTC (permalink / raw
  To: gentoo-commits

commit:     dbe8c0883546060ea42396477c18b803621a2c1f
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Wed Jun 29 12:58:08 2011 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Wed Jun 29 12:58:08 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=dbe8c088

fix bug #369089

---
 sys-libs/libsemanage/ChangeLog                 |  158 ++++++++++++++++++++++++
 sys-libs/libsemanage/libsemanage-2.0.45.ebuild |  119 ++++++++++++++++++
 sys-libs/libsemanage/metadata.xml              |    6 +
 3 files changed, 283 insertions(+), 0 deletions(-)

diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog
new file mode 100644
index 0000000..82c8ff9
--- /dev/null
+++ b/sys-libs/libsemanage/ChangeLog
@@ -0,0 +1,158 @@
+# 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.35 2011/05/28 06:00:57 blueness Exp $
+
+  29 Jun 2011; <swift@gentoo.org> +libsemanage-2.0.45.ebuild, +metadata.xml:
+  Only build libsemanage for python-2, fixes bug #369089
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild:
+  Make RDEPEND explicit
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Stable amd64 x86
+
+  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+  Updated metadata.xml to reflect new selinux herd.
+
+  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Add "python" and "ruby" USE flags.
+
+  05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <blueness@gentoo.org>
+  +libsemanage-2.0.45.ebuild:
+  New upstream release.
+
+  16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +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 <pebenito@gentoo.org>
+  libsemanage-2.0.33.ebuild:
+  Fix libsepol dependency.
+
+  02 Aug 2009; Chris PeBenito <pebenito@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +libsemanage-2.0.33.ebuild:
+  New upstream release.
+
+  18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
+  -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 <pebenito@gentoo.org>
+  +libsemanage-2.0.27.ebuild:
+  Initial commit of 2.0 libsemanage.
+
+  10 Sep 2008; Chris PeBenito <pebenito@gentoo.org>
+  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 <hawking@gentoo.org> libsemanage-1.10.9.ebuild:
+  python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
+
+  26 May 2008; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.9.ebuild:
+  Fix libsepol dependency.
+
+  13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsemanage-1.4.ebuild,
+  -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 <pebenito@gentoo.org>
+  +libsemanage-1.10.9.ebuild:
+  New upstream bugfix release.
+
+*libsemanage-1.10.5 (18 Oct 2007)
+
+  18 Oct 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.5.ebuild:
+  New upstream release.
+
+  04 Jun 2007; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.0.ebuild:
+  Mark stable.
+
+*libsemanage-1.10.0 (15 Feb 2007)
+
+  15 Feb 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.0.ebuild:
+  New upstream release.
+
+  09 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.6.17-r1.ebuild:
+  Stable to make repoman happy.
+
+*libsemanage-1.6.17-r1 (08 Oct 2006)
+
+  08 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild:
+  Install semanage.conf since this is masked on example policy-based profiles.
+
+*libsemanage-1.6.17 (05 Oct 2006)
+
+  05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.6.17.ebuild:
+  Add SVN snapshot.
+
+  31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.6.ebuild:
+  Mark stable, long overdue.
+
+  27 Apr 2006; Alec Warner <antarus@gentoo.org>
+  files/digest-libsemanage-1.4, Manifest:
+  Fixing SHA256 digest, pass four
+
+*libsemanage-1.6 (18 Mar 2006)
+
+  18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsemanage-1.6.ebuild:
+  New upstream release.
+
+  22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Alpha stable
+
+  19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsemanage-1.4.ebuild:
+  Marked stable on mips.
+
+  09 Feb 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Set python version to fix compiles on non 2.4 pythons.
+
+  17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Mark stable, x86, amd64, ppc, sparc.
+
+  14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Added ~alpha
+
+  15 Dec 2005; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Tighten up versioning to try to prevent mismatch problems as seen in #112348.
+
+*libsemanage-1.4 (09 Dec 2005)
+
+  09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> +metadata.xml,
+  +libsemanage-1.4.ebuild:
+  Initial commit.
+

diff --git a/sys-libs/libsemanage/libsemanage-2.0.45.ebuild b/sys-libs/libsemanage/libsemanage-2.0.45.ebuild
new file mode 100644
index 0000000..8c35027
--- /dev/null
+++ b/sys-libs/libsemanage/libsemanage-2.0.45.ebuild
@@ -0,0 +1,119 @@
+# 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.6 2011/05/28 05:28:35 blueness Exp $
+
+EAPI="2"
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit multilib python toolchain-funcs
+
+SEPOL_VER="2.0.41"
+SELNX_VER="2.0.94"
+
+DESCRIPTION="SELinux kernel and policy management library"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="python ruby"
+
+RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
+	>=sys-libs/libselinux-${SELNX_VER}
+	dev-libs/ustr
+	ruby? ( dev-lang/ruby )"
+DEPEND="${RDEPEND}
+	ruby? ( dev-lang/swig )"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="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/semanage.conf"
+	echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
+	echo "# or debugging of policy." >> "${S}/src/semanage.conf"
+	echo "save-linked=false" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
+	echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
+	echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
+	echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
+	echo "# would catch." >> "${S}/src/semanage.conf"
+	echo "expand-check=1" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
+	echo "# with bzip2.  Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
+	echo "# 1-9 when compressing.  The higher the number," >> "${S}/src/semanage.conf"
+	echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
+	echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
+	echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
+	echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
+	echo "bzip-small=true" >> "${S}/src/semanage.conf"
+}
+
+src_compile() {
+	emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
+
+	if use python; then
+		python_copy_sources src
+		building() {
+			emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" pywrap
+		}
+		python_execute_function -s --source-dir src building
+	fi
+
+	if use ruby; then
+		emake -C src CC="$(tc-getCC)" rubywrap || die
+	fi
+}
+
+src_install() {
+	emake \
+		DESTDIR="${D}" \
+		LIBDIR="${D}usr/$(get_libdir)" \
+		SHLIBDIR="${D}$(get_libdir)" \
+		install || die
+	dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
+
+	if use python; then
+		installation() {
+			emake \
+				DESTDIR="${D}" \
+				PYLIBVER="python$(python_get_version)" \
+				LIBDIR="${D}usr/$(get_libdir)" \
+				install-pywrap
+		}
+		python_execute_function -s --source-dir src installation
+	fi
+
+	if use ruby; then
+		emake -C src \
+			DESTDIR="${D}" \
+			LIBDIR="${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/metadata.xml
new file mode 100644
index 0000000..ebc32c0
--- /dev/null
+++ b/sys-libs/libsemanage/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy management libraries</longdescription>
+</pkgmetadata>



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/
@ 2011-06-30 10:42 Anthony G. Basile
  0 siblings, 0 replies; 7+ messages in thread
From: Anthony G. Basile @ 2011-06-30 10:42 UTC (permalink / raw
  To: gentoo-commits

commit:     c96bf5076b1e3d7bf4598a50ddc9a076802c5619
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 30 10:42:30 2011 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 10:42:30 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=c96bf507

sys-libs/libsemanage: moved to tree

(Portage version: 2.1.9.42/git/Linux x86_64, signed Manifest commit with key 0xD0455535)

---
 sys-libs/libsemanage/ChangeLog                 |  158 ------------------------
 sys-libs/libsemanage/libsemanage-2.0.45.ebuild |  119 ------------------
 sys-libs/libsemanage/metadata.xml              |    6 -
 3 files changed, 0 insertions(+), 283 deletions(-)

diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog
deleted file mode 100644
index 82c8ff9..0000000
--- a/sys-libs/libsemanage/ChangeLog
+++ /dev/null
@@ -1,158 +0,0 @@
-# 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.35 2011/05/28 06:00:57 blueness Exp $
-
-  29 Jun 2011; <swift@gentoo.org> +libsemanage-2.0.45.ebuild, +metadata.xml:
-  Only build libsemanage for python-2, fixes bug #369089
-
-  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild:
-  Make RDEPEND explicit
-
-  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Stable amd64 x86
-
-  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
-  Updated metadata.xml to reflect new selinux herd.
-
-  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Add "python" and "ruby" USE flags.
-
-  05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  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 <blueness@gentoo.org>
-  +libsemanage-2.0.45.ebuild:
-  New upstream release.
-
-  16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  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 <pebenito@gentoo.org>
-  +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 <pebenito@gentoo.org>
-  libsemanage-2.0.33.ebuild:
-  Fix libsepol dependency.
-
-  02 Aug 2009; Chris PeBenito <pebenito@gentoo.org>
-  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 <pebenito@gentoo.org>
-  +libsemanage-2.0.33.ebuild:
-  New upstream release.
-
-  18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
-  -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 <pebenito@gentoo.org>
-  +libsemanage-2.0.27.ebuild:
-  Initial commit of 2.0 libsemanage.
-
-  10 Sep 2008; Chris PeBenito <pebenito@gentoo.org>
-  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 <hawking@gentoo.org> libsemanage-1.10.9.ebuild:
-  python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
-
-  26 May 2008; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.10.9.ebuild:
-  Fix libsepol dependency.
-
-  13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsemanage-1.4.ebuild,
-  -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 <pebenito@gentoo.org>
-  +libsemanage-1.10.9.ebuild:
-  New upstream bugfix release.
-
-*libsemanage-1.10.5 (18 Oct 2007)
-
-  18 Oct 2007; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.10.5.ebuild:
-  New upstream release.
-
-  04 Jun 2007; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.10.0.ebuild:
-  Mark stable.
-
-*libsemanage-1.10.0 (15 Feb 2007)
-
-  15 Feb 2007; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.10.0.ebuild:
-  New upstream release.
-
-  09 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.6.17-r1.ebuild:
-  Stable to make repoman happy.
-
-*libsemanage-1.6.17-r1 (08 Oct 2006)
-
-  08 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild:
-  Install semanage.conf since this is masked on example policy-based profiles.
-
-*libsemanage-1.6.17 (05 Oct 2006)
-
-  05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.6.17.ebuild:
-  Add SVN snapshot.
-
-  31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.6.ebuild:
-  Mark stable, long overdue.
-
-  27 Apr 2006; Alec Warner <antarus@gentoo.org>
-  files/digest-libsemanage-1.4, Manifest:
-  Fixing SHA256 digest, pass four
-
-*libsemanage-1.6 (18 Mar 2006)
-
-  18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsemanage-1.6.ebuild:
-  New upstream release.
-
-  22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
-  Alpha stable
-
-  19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsemanage-1.4.ebuild:
-  Marked stable on mips.
-
-  09 Feb 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Set python version to fix compiles on non 2.4 pythons.
-
-  17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Mark stable, x86, amd64, ppc, sparc.
-
-  14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
-  Added ~alpha
-
-  15 Dec 2005; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Tighten up versioning to try to prevent mismatch problems as seen in #112348.
-
-*libsemanage-1.4 (09 Dec 2005)
-
-  09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> +metadata.xml,
-  +libsemanage-1.4.ebuild:
-  Initial commit.
-

diff --git a/sys-libs/libsemanage/libsemanage-2.0.45.ebuild b/sys-libs/libsemanage/libsemanage-2.0.45.ebuild
deleted file mode 100644
index 8c35027..0000000
--- a/sys-libs/libsemanage/libsemanage-2.0.45.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# 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.6 2011/05/28 05:28:35 blueness Exp $
-
-EAPI="2"
-PYTHON_DEPEND="python? 2"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.* *-jython"
-
-inherit multilib python toolchain-funcs
-
-SEPOL_VER="2.0.41"
-SELNX_VER="2.0.94"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="http://userspace.selinuxproject.org"
-SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="python ruby"
-
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
-	>=sys-libs/libselinux-${SELNX_VER}
-	dev-libs/ustr
-	ruby? ( dev-lang/ruby )"
-DEPEND="${RDEPEND}
-	ruby? ( dev-lang/swig )"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="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/semanage.conf"
-	echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
-	echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-	echo "save-linked=false" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
-	echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
-	echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
-	echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
-	echo "# would catch." >> "${S}/src/semanage.conf"
-	echo "expand-check=1" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
-	echo "# with bzip2.  Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
-	echo "# 1-9 when compressing.  The higher the number," >> "${S}/src/semanage.conf"
-	echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
-	echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
-	echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
-	echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
-	echo "bzip-small=true" >> "${S}/src/semanage.conf"
-}
-
-src_compile() {
-	emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
-
-	if use python; then
-		python_copy_sources src
-		building() {
-			emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" pywrap
-		}
-		python_execute_function -s --source-dir src building
-	fi
-
-	if use ruby; then
-		emake -C src CC="$(tc-getCC)" rubywrap || die
-	fi
-}
-
-src_install() {
-	emake \
-		DESTDIR="${D}" \
-		LIBDIR="${D}usr/$(get_libdir)" \
-		SHLIBDIR="${D}$(get_libdir)" \
-		install || die
-	dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
-
-	if use python; then
-		installation() {
-			emake \
-				DESTDIR="${D}" \
-				PYLIBVER="python$(python_get_version)" \
-				LIBDIR="${D}usr/$(get_libdir)" \
-				install-pywrap
-		}
-		python_execute_function -s --source-dir src installation
-	fi
-
-	if use ruby; then
-		emake -C src \
-			DESTDIR="${D}" \
-			LIBDIR="${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/metadata.xml
deleted file mode 100644
index ebc32c0..0000000
--- a/sys-libs/libsemanage/metadata.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>selinux</herd>
-	<longdescription>SELinux policy management libraries</longdescription>
-</pkgmetadata>



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/
@ 2011-07-07 18:41 Sven Vermeulen
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Vermeulen @ 2011-07-07 18:41 UTC (permalink / raw
  To: gentoo-commits

commit:     831380a7647bb9b1552da51953057777525dacfe
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Thu Jul  7 18:40:12 2011 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Thu Jul  7 18:40:12 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=831380a7

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/ChangeLog
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; <swift@gentoo.org> +libsemanage-2.0.45-r1.ebuild, +metadata.xml:
+  Support python3
+
+*libsemanage-2.0.45-r1 (04 Jul 2011)
+
+  04 Jul 2011; <swift@gentoo.org> +libsemanage-2.0.45-r1.ebuild, +metadata.xml:
+  Swigify'ing to support python 3 ABI
+
+  30 Jun 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Only build libsemanage for python-2, fixes bug #369089
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild:
+  Make RDEPEND explicit
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Stable amd64 x86
+
+  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+  Updated metadata.xml to reflect new selinux herd.
+
+  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Add "python" and "ruby" USE flags.
+
+  05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <blueness@gentoo.org>
+  +libsemanage-2.0.45.ebuild:
+  New upstream release.
+
+  16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +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 <pebenito@gentoo.org>
+  libsemanage-2.0.33.ebuild:
+  Fix libsepol dependency.
+
+  02 Aug 2009; Chris PeBenito <pebenito@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +libsemanage-2.0.33.ebuild:
+  New upstream release.
+
+  18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
+  -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 <pebenito@gentoo.org>
+  +libsemanage-2.0.27.ebuild:
+  Initial commit of 2.0 libsemanage.
+
+  10 Sep 2008; Chris PeBenito <pebenito@gentoo.org>
+  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 <hawking@gentoo.org> libsemanage-1.10.9.ebuild:
+  python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
+
+  26 May 2008; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.9.ebuild:
+  Fix libsepol dependency.
+
+  13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsemanage-1.4.ebuild,
+  -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 <pebenito@gentoo.org>
+  +libsemanage-1.10.9.ebuild:
+  New upstream bugfix release.
+
+*libsemanage-1.10.5 (18 Oct 2007)
+
+  18 Oct 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.5.ebuild:
+  New upstream release.
+
+  04 Jun 2007; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.0.ebuild:
+  Mark stable.
+
+*libsemanage-1.10.0 (15 Feb 2007)
+
+  15 Feb 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.0.ebuild:
+  New upstream release.
+
+  09 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.6.17-r1.ebuild:
+  Stable to make repoman happy.
+
+*libsemanage-1.6.17-r1 (08 Oct 2006)
+
+  08 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild:
+  Install semanage.conf since this is masked on example policy-based profiles.
+
+*libsemanage-1.6.17 (05 Oct 2006)
+
+  05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.6.17.ebuild:
+  Add SVN snapshot.
+
+  31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.6.ebuild:
+  Mark stable, long overdue.
+
+  27 Apr 2006; Alec Warner <antarus@gentoo.org>
+  files/digest-libsemanage-1.4, Manifest:
+  Fixing SHA256 digest, pass four
+
+*libsemanage-1.6 (18 Mar 2006)
+
+  18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsemanage-1.6.ebuild:
+  New upstream release.
+
+  22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Alpha stable
+
+  19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsemanage-1.4.ebuild:
+  Marked stable on mips.
+
+  09 Feb 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Set python version to fix compiles on non 2.4 pythons.
+
+  17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Mark stable, x86, amd64, ppc, sparc.
+
+  14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Added ~alpha
+
+  15 Dec 2005; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Tighten up versioning to try to prevent mismatch problems as seen in #112348.
+
+*libsemanage-1.4 (09 Dec 2005)
+
+  09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> +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="2"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython"
+
+inherit multilib python toolchain-funcs
+
+SEPOL_VER="2.0.41"
+SELNX_VER="2.0.94"
+
+DESCRIPTION="SELinux kernel and policy management library"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="python ruby"
+
+RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
+	>=sys-libs/libselinux-${SELNX_VER}
+	dev-libs/ustr
+	ruby? ( dev-lang/ruby )"
+DEPEND="${RDEPEND}
+	dev-lang/swig"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="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/semanage.conf"
+	echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
+	echo "# or debugging of policy." >> "${S}/src/semanage.conf"
+	echo "save-linked=false" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
+	echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
+	echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
+	echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
+	echo "# would catch." >> "${S}/src/semanage.conf"
+	echo "expand-check=1" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
+	echo "# with bzip2.  Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
+	echo "# 1-9 when compressing.  The higher the number," >> "${S}/src/semanage.conf"
+	echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
+	echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
+	echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
+	echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
+	echo "bzip-small=true" >> "${S}/src/semanage.conf"
+}
+
+src_compile() {
+	emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
+
+	if use python; then
+		python_copy_sources src
+		building() {
+			emake CC="$(tc-getCC)" PYLIBVER="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="$(tc-getCC)" rubywrap || die
+	fi
+}
+
+src_install() {
+	emake \
+		DESTDIR="${D}" \
+		LIBDIR="${D}usr/$(get_libdir)" \
+		SHLIBDIR="${D}$(get_libdir)" \
+		install || die
+	dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
+
+	if use python; then
+		installation() {
+			emake \
+				DESTDIR="${D}" \
+				PYLIBVER="python$(python_get_version)" \
+				LIBDIR="${D}usr/$(get_libdir)" \
+				install-pywrap
+		}
+		python_execute_function -s --source-dir src installation
+	fi
+
+	if use ruby; then
+		emake -C src \
+			DESTDIR="${D}" \
+			LIBDIR="${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/metadata.xml
new file mode 100644
index 0000000..ebc32c0
--- /dev/null
+++ b/sys-libs/libsemanage/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy management libraries</longdescription>
+</pkgmetadata>



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/
@ 2011-07-13 21:57 Sven Vermeulen
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Vermeulen @ 2011-07-13 21:57 UTC (permalink / raw
  To: gentoo-commits

commit:     a329159f668a6338e6d6c51797057c355d9e78a1
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Wed Jul 13 21:52:21 2011 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Wed Jul 13 21:52:21 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=a329159f

remove obsolete ebuild

---
 sys-libs/libsemanage/ChangeLog                    |  167 ---------------------
 sys-libs/libsemanage/libsemanage-2.0.45-r1.ebuild |  120 ---------------
 sys-libs/libsemanage/metadata.xml                 |    6 -
 3 files changed, 0 insertions(+), 293 deletions(-)

diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog
deleted file mode 100644
index b57913a..0000000
--- a/sys-libs/libsemanage/ChangeLog
+++ /dev/null
@@ -1,167 +0,0 @@
-# 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; <swift@gentoo.org> +libsemanage-2.0.45-r1.ebuild, +metadata.xml:
-  Support python3
-
-*libsemanage-2.0.45-r1 (04 Jul 2011)
-
-  04 Jul 2011; <swift@gentoo.org> +libsemanage-2.0.45-r1.ebuild, +metadata.xml:
-  Swigify'ing to support python 3 ABI
-
-  30 Jun 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Only build libsemanage for python-2, fixes bug #369089
-
-  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild:
-  Make RDEPEND explicit
-
-  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Stable amd64 x86
-
-  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
-  Updated metadata.xml to reflect new selinux herd.
-
-  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Add "python" and "ruby" USE flags.
-
-  05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  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 <blueness@gentoo.org>
-  +libsemanage-2.0.45.ebuild:
-  New upstream release.
-
-  16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  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 <pebenito@gentoo.org>
-  +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 <pebenito@gentoo.org>
-  libsemanage-2.0.33.ebuild:
-  Fix libsepol dependency.
-
-  02 Aug 2009; Chris PeBenito <pebenito@gentoo.org>
-  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 <pebenito@gentoo.org>
-  +libsemanage-2.0.33.ebuild:
-  New upstream release.
-
-  18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
-  -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 <pebenito@gentoo.org>
-  +libsemanage-2.0.27.ebuild:
-  Initial commit of 2.0 libsemanage.
-
-  10 Sep 2008; Chris PeBenito <pebenito@gentoo.org>
-  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 <hawking@gentoo.org> libsemanage-1.10.9.ebuild:
-  python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
-
-  26 May 2008; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.10.9.ebuild:
-  Fix libsepol dependency.
-
-  13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsemanage-1.4.ebuild,
-  -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 <pebenito@gentoo.org>
-  +libsemanage-1.10.9.ebuild:
-  New upstream bugfix release.
-
-*libsemanage-1.10.5 (18 Oct 2007)
-
-  18 Oct 2007; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.10.5.ebuild:
-  New upstream release.
-
-  04 Jun 2007; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.10.0.ebuild:
-  Mark stable.
-
-*libsemanage-1.10.0 (15 Feb 2007)
-
-  15 Feb 2007; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.10.0.ebuild:
-  New upstream release.
-
-  09 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.6.17-r1.ebuild:
-  Stable to make repoman happy.
-
-*libsemanage-1.6.17-r1 (08 Oct 2006)
-
-  08 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild:
-  Install semanage.conf since this is masked on example policy-based profiles.
-
-*libsemanage-1.6.17 (05 Oct 2006)
-
-  05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.6.17.ebuild:
-  Add SVN snapshot.
-
-  31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.6.ebuild:
-  Mark stable, long overdue.
-
-  27 Apr 2006; Alec Warner <antarus@gentoo.org>
-  files/digest-libsemanage-1.4, Manifest:
-  Fixing SHA256 digest, pass four
-
-*libsemanage-1.6 (18 Mar 2006)
-
-  18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsemanage-1.6.ebuild:
-  New upstream release.
-
-  22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
-  Alpha stable
-
-  19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsemanage-1.4.ebuild:
-  Marked stable on mips.
-
-  09 Feb 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Set python version to fix compiles on non 2.4 pythons.
-
-  17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Mark stable, x86, amd64, ppc, sparc.
-
-  14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
-  Added ~alpha
-
-  15 Dec 2005; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Tighten up versioning to try to prevent mismatch problems as seen in #112348.
-
-*libsemanage-1.4 (09 Dec 2005)
-
-  09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> +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
deleted file mode 100644
index 66811dd..0000000
--- a/sys-libs/libsemanage/libsemanage-2.0.45-r1.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# 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="2"
-PYTHON_DEPEND="python? *"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="*-jython"
-
-inherit multilib python toolchain-funcs
-
-SEPOL_VER="2.0.41"
-SELNX_VER="2.0.94"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="http://userspace.selinuxproject.org"
-SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="python ruby"
-
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
-	>=sys-libs/libselinux-${SELNX_VER}
-	dev-libs/ustr
-	ruby? ( dev-lang/ruby )"
-DEPEND="${RDEPEND}
-	dev-lang/swig"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="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/semanage.conf"
-	echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
-	echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-	echo "save-linked=false" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
-	echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
-	echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
-	echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
-	echo "# would catch." >> "${S}/src/semanage.conf"
-	echo "expand-check=1" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
-	echo "# with bzip2.  Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
-	echo "# 1-9 when compressing.  The higher the number," >> "${S}/src/semanage.conf"
-	echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
-	echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
-	echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
-	echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
-	echo "bzip-small=true" >> "${S}/src/semanage.conf"
-}
-
-src_compile() {
-	emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
-
-	if use python; then
-		python_copy_sources src
-		building() {
-			emake CC="$(tc-getCC)" PYLIBVER="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="$(tc-getCC)" rubywrap || die
-	fi
-}
-
-src_install() {
-	emake \
-		DESTDIR="${D}" \
-		LIBDIR="${D}usr/$(get_libdir)" \
-		SHLIBDIR="${D}$(get_libdir)" \
-		install || die
-	dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
-
-	if use python; then
-		installation() {
-			emake \
-				DESTDIR="${D}" \
-				PYLIBVER="python$(python_get_version)" \
-				LIBDIR="${D}usr/$(get_libdir)" \
-				install-pywrap
-		}
-		python_execute_function -s --source-dir src installation
-	fi
-
-	if use ruby; then
-		emake -C src \
-			DESTDIR="${D}" \
-			LIBDIR="${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/metadata.xml
deleted file mode 100644
index ebc32c0..0000000
--- a/sys-libs/libsemanage/metadata.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>selinux</herd>
-	<longdescription>SELinux policy management libraries</longdescription>
-</pkgmetadata>



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/
@ 2011-07-13 21:57 Sven Vermeulen
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Vermeulen @ 2011-07-13 21:57 UTC (permalink / raw
  To: gentoo-commits

commit:     0b8f63f24219ab886f0fe3ab1e1f485f59adf94d
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Wed Jul 13 21:53:24 2011 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Wed Jul 13 21:53:24 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=0b8f63f2

Bump to 2.0.46

---
 sys-libs/libsemanage/ChangeLog                 |  167 ++++++++++++++++++++++++
 sys-libs/libsemanage/libsemanage-2.0.46.ebuild |  121 +++++++++++++++++
 sys-libs/libsemanage/metadata.xml              |    6 +
 3 files changed, 294 insertions(+), 0 deletions(-)

diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog
new file mode 100644
index 0000000..8ad1725
--- /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 $
+
+  13 Jul 2011; <swift@gentoo.org> +libsemanage-2.0.46.ebuild, +metadata.xml:
+  Bump to 2.0.46
+
+*libsemanage-2.0.46 (12 Jul 2011)
+
+  12 Jul 2011; <swift@gentoo.org> +libsemanage-2.0.46.ebuild, +metadata.xml:
+  Bump to 2.0.46
+
+  30 Jun 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Only build libsemanage for python-2, fixes bug #369089
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild:
+  Make RDEPEND explicit
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Stable amd64 x86
+
+  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+  Updated metadata.xml to reflect new selinux herd.
+
+  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Add "python" and "ruby" USE flags.
+
+  05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <blueness@gentoo.org>
+  +libsemanage-2.0.45.ebuild:
+  New upstream release.
+
+  16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +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 <pebenito@gentoo.org>
+  libsemanage-2.0.33.ebuild:
+  Fix libsepol dependency.
+
+  02 Aug 2009; Chris PeBenito <pebenito@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +libsemanage-2.0.33.ebuild:
+  New upstream release.
+
+  18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
+  -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 <pebenito@gentoo.org>
+  +libsemanage-2.0.27.ebuild:
+  Initial commit of 2.0 libsemanage.
+
+  10 Sep 2008; Chris PeBenito <pebenito@gentoo.org>
+  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 <hawking@gentoo.org> libsemanage-1.10.9.ebuild:
+  python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
+
+  26 May 2008; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.9.ebuild:
+  Fix libsepol dependency.
+
+  13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsemanage-1.4.ebuild,
+  -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 <pebenito@gentoo.org>
+  +libsemanage-1.10.9.ebuild:
+  New upstream bugfix release.
+
+*libsemanage-1.10.5 (18 Oct 2007)
+
+  18 Oct 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.5.ebuild:
+  New upstream release.
+
+  04 Jun 2007; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.0.ebuild:
+  Mark stable.
+
+*libsemanage-1.10.0 (15 Feb 2007)
+
+  15 Feb 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.0.ebuild:
+  New upstream release.
+
+  09 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.6.17-r1.ebuild:
+  Stable to make repoman happy.
+
+*libsemanage-1.6.17-r1 (08 Oct 2006)
+
+  08 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild:
+  Install semanage.conf since this is masked on example policy-based profiles.
+
+*libsemanage-1.6.17 (05 Oct 2006)
+
+  05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.6.17.ebuild:
+  Add SVN snapshot.
+
+  31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.6.ebuild:
+  Mark stable, long overdue.
+
+  27 Apr 2006; Alec Warner <antarus@gentoo.org>
+  files/digest-libsemanage-1.4, Manifest:
+  Fixing SHA256 digest, pass four
+
+*libsemanage-1.6 (18 Mar 2006)
+
+  18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsemanage-1.6.ebuild:
+  New upstream release.
+
+  22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Alpha stable
+
+  19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsemanage-1.4.ebuild:
+  Marked stable on mips.
+
+  09 Feb 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Set python version to fix compiles on non 2.4 pythons.
+
+  17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Mark stable, x86, amd64, ppc, sparc.
+
+  14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Added ~alpha
+
+  15 Dec 2005; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Tighten up versioning to try to prevent mismatch problems as seen in #112348.
+
+*libsemanage-1.4 (09 Dec 2005)
+
+  09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> +metadata.xml,
+  +libsemanage-1.4.ebuild:
+  Initial commit.
+

diff --git a/sys-libs/libsemanage/libsemanage-2.0.46.ebuild b/sys-libs/libsemanage/libsemanage-2.0.46.ebuild
new file mode 100644
index 0000000..6171235
--- /dev/null
+++ b/sys-libs/libsemanage/libsemanage-2.0.46.ebuild
@@ -0,0 +1,121 @@
+# 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="3"
+# Support for 4 depends on python.eclass
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython"
+
+inherit multilib python toolchain-funcs
+
+SEPOL_VER="2.0.42"
+SELNX_VER="2.0.98"
+
+DESCRIPTION="SELinux kernel and policy management library"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20101221/devel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="python ruby"
+
+RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
+	>=sys-libs/libselinux-${SELNX_VER}
+	dev-libs/ustr
+	ruby? ( dev-lang/ruby )"
+DEPEND="${RDEPEND}
+	ruby? ( dev-lang/swig )"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="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/semanage.conf"
+	echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
+	echo "# or debugging of policy." >> "${S}/src/semanage.conf"
+	echo "save-linked=false" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
+	echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
+	echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
+	echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
+	echo "# would catch." >> "${S}/src/semanage.conf"
+	echo "expand-check=1" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
+	echo "# with bzip2.  Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
+	echo "# 1-9 when compressing.  The higher the number," >> "${S}/src/semanage.conf"
+	echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
+	echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
+	echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
+	echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
+	echo "bzip-small=true" >> "${S}/src/semanage.conf"
+}
+
+src_compile() {
+	emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
+
+	if use python; then
+		python_copy_sources src
+		building() {
+			emake CC="$(tc-getCC)" PYLIBVER="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="$(tc-getCC)" rubywrap || die
+	fi
+}
+
+src_install() {
+	emake \
+		DESTDIR="${D}" \
+		LIBDIR="${D}usr/$(get_libdir)" \
+		SHLIBDIR="${D}$(get_libdir)" \
+		install || die
+	dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
+
+	if use python; then
+		installation() {
+			emake \
+				DESTDIR="${D}" \
+				PYLIBVER="python$(python_get_version)" \
+				LIBDIR="${D}usr/$(get_libdir)" \
+				install-pywrap
+		}
+		python_execute_function -s --source-dir src installation
+	fi
+
+	if use ruby; then
+		emake -C src \
+			DESTDIR="${D}" \
+			LIBDIR="${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/metadata.xml
new file mode 100644
index 0000000..ebc32c0
--- /dev/null
+++ b/sys-libs/libsemanage/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy management libraries</longdescription>
+</pkgmetadata>



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/
@ 2011-08-03  9:36 Anthony G. Basile
  0 siblings, 0 replies; 7+ messages in thread
From: Anthony G. Basile @ 2011-08-03  9:36 UTC (permalink / raw
  To: gentoo-commits

commit:     e20b3b0e48eb54189ed79030aa46e0026fa62be8
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  3 09:36:19 2011 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Aug  3 09:36:19 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=e20b3b0e

sys-libs/libsemanage: moved to tree

---
 sys-libs/libsemanage/ChangeLog                |  170 -------------------------
 sys-libs/libsemanage/libsemanage-2.1.0.ebuild |  121 ------------------
 sys-libs/libsemanage/metadata.xml             |    6 -
 3 files changed, 0 insertions(+), 297 deletions(-)

diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog
deleted file mode 100644
index 9f8fd18..0000000
--- a/sys-libs/libsemanage/ChangeLog
+++ /dev/null
@@ -1,170 +0,0 @@
-# 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.37 2011/07/15 21:00:46 blueness Exp $
-
-*libsemanage-2.1.0 (02 Aug 2011)
-
-  02 Aug 2011; <swift@gentoo.org> +libsemanage-2.1.0.ebuild, +metadata.xml:
-  Bump to 20110727 SELinux userspace release
-
-*libsemanage-2.0.46 (15 Jul 2011)
-
-  15 Jul 2011; Anthony G. Basile <blueness@gentoo.org>
-  +libsemanage-2.0.46.ebuild:
-  Bump to 2.0.46 - proxy for SwifT
-
-  30 Jun 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Only build libsemanage for python-2, fixes bug #369089
-
-  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild:
-  Make RDEPEND explicit
-
-  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Stable amd64 x86
-
-  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
-  Updated metadata.xml to reflect new selinux herd.
-
-  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  libsemanage-2.0.45.ebuild:
-  Add "python" and "ruby" USE flags.
-
-  05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  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 <blueness@gentoo.org>
-  +libsemanage-2.0.45.ebuild:
-  New upstream release.
-
-  16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  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 <pebenito@gentoo.org>
-  +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 <pebenito@gentoo.org>
-  libsemanage-2.0.33.ebuild:
-  Fix libsepol dependency.
-
-  02 Aug 2009; Chris PeBenito <pebenito@gentoo.org>
-  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 <pebenito@gentoo.org>
-  +libsemanage-2.0.33.ebuild:
-  New upstream release.
-
-  18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
-  -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 <pebenito@gentoo.org>
-  +libsemanage-2.0.27.ebuild:
-  Initial commit of 2.0 libsemanage.
-
-  10 Sep 2008; Chris PeBenito <pebenito@gentoo.org>
-  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 <hawking@gentoo.org> libsemanage-1.10.9.ebuild:
-  python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
-
-  26 May 2008; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.10.9.ebuild:
-  Fix libsepol dependency.
-
-  13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsemanage-1.4.ebuild,
-  -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 <pebenito@gentoo.org>
-  +libsemanage-1.10.9.ebuild:
-  New upstream bugfix release.
-
-*libsemanage-1.10.5 (18 Oct 2007)
-
-  18 Oct 2007; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.10.5.ebuild:
-  New upstream release.
-
-  04 Jun 2007; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.10.0.ebuild:
-  Mark stable.
-
-*libsemanage-1.10.0 (15 Feb 2007)
-
-  15 Feb 2007; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.10.0.ebuild:
-  New upstream release.
-
-  09 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  libsemanage-1.6.17-r1.ebuild:
-  Stable to make repoman happy.
-
-*libsemanage-1.6.17-r1 (08 Oct 2006)
-
-  08 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild:
-  Install semanage.conf since this is masked on example policy-based profiles.
-
-*libsemanage-1.6.17 (05 Oct 2006)
-
-  05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  +libsemanage-1.6.17.ebuild:
-  Add SVN snapshot.
-
-  31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.6.ebuild:
-  Mark stable, long overdue.
-
-  27 Apr 2006; Alec Warner <antarus@gentoo.org>
-  files/digest-libsemanage-1.4, Manifest:
-  Fixing SHA256 digest, pass four
-
-*libsemanage-1.6 (18 Mar 2006)
-
-  18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsemanage-1.6.ebuild:
-  New upstream release.
-
-  22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
-  Alpha stable
-
-  19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsemanage-1.4.ebuild:
-  Marked stable on mips.
-
-  09 Feb 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Set python version to fix compiles on non 2.4 pythons.
-
-  17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Mark stable, x86, amd64, ppc, sparc.
-
-  14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
-  Added ~alpha
-
-  15 Dec 2005; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
-  Tighten up versioning to try to prevent mismatch problems as seen in #112348.
-
-*libsemanage-1.4 (09 Dec 2005)
-
-  09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> +metadata.xml,
-  +libsemanage-1.4.ebuild:
-  Initial commit.
-

diff --git a/sys-libs/libsemanage/libsemanage-2.1.0.ebuild b/sys-libs/libsemanage/libsemanage-2.1.0.ebuild
deleted file mode 100644
index 2087adb..0000000
--- a/sys-libs/libsemanage/libsemanage-2.1.0.ebuild
+++ /dev/null
@@ -1,121 +0,0 @@
-# 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.46.ebuild,v 1.1 2011/07/15 21:00:46 blueness Exp $
-
-EAPI="3"
-# Support for 4 depends on python.eclass
-PYTHON_DEPEND="python? *"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="*-jython"
-
-inherit multilib python toolchain-funcs
-
-SEPOL_VER="2.1.0"
-SELNX_VER="2.1.0"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="http://userspace.selinuxproject.org"
-SRC_URI="http://userspace.selinuxproject.org/releases/20110727/devel/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="python ruby"
-
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
-	>=sys-libs/libselinux-${SELNX_VER}
-	dev-libs/ustr
-	ruby? ( dev-lang/ruby )"
-DEPEND="${RDEPEND}
-	ruby? ( dev-lang/swig )"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="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/semanage.conf"
-	echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
-	echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-	echo "save-linked=false" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
-	echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
-	echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
-	echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
-	echo "# would catch." >> "${S}/src/semanage.conf"
-	echo "expand-check=1" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
-	echo "# with bzip2.  Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
-	echo "# 1-9 when compressing.  The higher the number," >> "${S}/src/semanage.conf"
-	echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
-	echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
-	echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
-	echo >> "${S}/src/semanage.conf"
-	echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
-	echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
-	echo "bzip-small=true" >> "${S}/src/semanage.conf"
-}
-
-src_compile() {
-	emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
-
-	if use python; then
-		python_copy_sources src
-		building() {
-			emake CC="$(tc-getCC)" PYLIBVER="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="$(tc-getCC)" rubywrap || die
-	fi
-}
-
-src_install() {
-	emake \
-		DESTDIR="${D}" \
-		LIBDIR="${D}usr/$(get_libdir)" \
-		SHLIBDIR="${D}$(get_libdir)" \
-		install || die
-	dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
-
-	if use python; then
-		installation() {
-			emake \
-				DESTDIR="${D}" \
-				PYLIBVER="python$(python_get_version)" \
-				LIBDIR="${D}usr/$(get_libdir)" \
-				install-pywrap
-		}
-		python_execute_function -s --source-dir src installation
-	fi
-
-	if use ruby; then
-		emake -C src \
-			DESTDIR="${D}" \
-			LIBDIR="${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/metadata.xml
deleted file mode 100644
index ebc32c0..0000000
--- a/sys-libs/libsemanage/metadata.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>selinux</herd>
-	<longdescription>SELinux policy management libraries</longdescription>
-</pkgmetadata>



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/
@ 2012-05-26 14:48 Sven Vermeulen
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Vermeulen @ 2012-05-26 14:48 UTC (permalink / raw
  To: gentoo-commits

commit:     ca6487d1d6daa30ab15584883da8bb5996598441
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sat May 26 14:46:10 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Sat May 26 14:46:10 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=ca6487d1

Support python3

---
 sys-libs/libsemanage/ChangeLog                   |  208 ++++++++++++++++++++++
 sys-libs/libsemanage/libsemanage-2.1.6-r1.ebuild |  132 ++++++++++++++
 sys-libs/libsemanage/metadata.xml                |    6 +
 3 files changed, 346 insertions(+), 0 deletions(-)

diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog
new file mode 100644
index 0000000..0295d09
--- /dev/null
+++ b/sys-libs/libsemanage/ChangeLog
@@ -0,0 +1,208 @@
+# ChangeLog for sys-libs/libsemanage
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.48 2012/05/13 12:42:04 swift Exp $
+
+  13 May 2012; <swift@gentoo.org> -libsemanage-2.1.0.ebuild:
+  Removing obsoleted ebuild
+
+  29 Apr 2012; <swift@gentoo.org> libsemanage-2.1.6.ebuild:
+  Stabilization
+
+  05 Apr 2012; <swift@gentoo.org> libsemanage-2.1.0.ebuild,
+  libsemanage-2.1.6.ebuild:
+  Depending on swig-2.0.4-r1 to fix build failures as per bug #409959
+
+*libsemanage-2.1.6 (31 Mar 2012)
+
+  31 Mar 2012; <swift@gentoo.org> +libsemanage-2.1.6.ebuild:
+  Bump to version 2.1.6
+
+  12 Nov 2011; <swift@gentoo.org> -libsemanage-2.0.45.ebuild,
+  -libsemanage-2.0.46.ebuild:
+  Remove deprecated ebuilds
+
+  23 Oct 2011; <swift@gentoo.org> libsemanage-2.1.0.ebuild:
+  Stabilization (tracker #384231)
+
+  17 Sep 2011; <swift@gentoo.org> libsemanage-2.0.45.ebuild,
+  libsemanage-2.0.46.ebuild:
+  Adding dependencies on bison and flex as per bug #382583
+
+  17 Sep 2011; <swift@gentoo.org> libsemanage-2.1.0.ebuild:
+  Add dependency for flex and bison
+
+  12 Aug 2011; Anthony G. Basile <blueness@gentoo.org> ChangeLog:
+  Fix failed gpg signing of Manifest
+
+  12 Aug 2011; Anthony G. Basile <blueness@gentoo.org>
+  -libsemanage-2.0.27.ebuild, -libsemanage-2.0.33.ebuild,
+  -libsemanage-2.0.33-r1.ebuild, -files/libsemanage-2.0.33-bzip.diff:
+  Removed deprecated versions
+
+*libsemanage-2.1.0 (03 Aug 2011)
+
+  03 Aug 2011; Anthony G. Basile <blueness@gentoo.org>
+  +libsemanage-2.1.0.ebuild:
+  Bump to 20110727 SELinux userspace release
+
+*libsemanage-2.0.46 (15 Jul 2011)
+
+  15 Jul 2011; Anthony G. Basile <blueness@gentoo.org>
+  +libsemanage-2.0.46.ebuild:
+  Bump to 2.0.46 - proxy for SwifT
+
+  30 Jun 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Only build libsemanage for python-2, fixes bug #369089
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.27.ebuild, libsemanage-2.0.33.ebuild:
+  Make RDEPEND explicit
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Stable amd64 x86
+
+  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+  Updated metadata.xml to reflect new selinux herd.
+
+  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  libsemanage-2.0.45.ebuild:
+  Add "python" and "ruby" USE flags.
+
+  05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <blueness@gentoo.org>
+  +libsemanage-2.0.45.ebuild:
+  New upstream release.
+
+  16 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +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 <pebenito@gentoo.org>
+  libsemanage-2.0.33.ebuild:
+  Fix libsepol dependency.
+
+  02 Aug 2009; Chris PeBenito <pebenito@gentoo.org>
+  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 <pebenito@gentoo.org>
+  +libsemanage-2.0.33.ebuild:
+  New upstream release.
+
+  18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
+  -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 <pebenito@gentoo.org>
+  +libsemanage-2.0.27.ebuild:
+  Initial commit of 2.0 libsemanage.
+
+  10 Sep 2008; Chris PeBenito <pebenito@gentoo.org>
+  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 <hawking@gentoo.org> libsemanage-1.10.9.ebuild:
+  python_mod_optimize is ROOT aware. Fixed python_mod_cleanup.
+
+  26 May 2008; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.9.ebuild:
+  Fix libsepol dependency.
+
+  13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsemanage-1.4.ebuild,
+  -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 <pebenito@gentoo.org>
+  +libsemanage-1.10.9.ebuild:
+  New upstream bugfix release.
+
+*libsemanage-1.10.5 (18 Oct 2007)
+
+  18 Oct 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.5.ebuild:
+  New upstream release.
+
+  04 Jun 2007; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.10.0.ebuild:
+  Mark stable.
+
+*libsemanage-1.10.0 (15 Feb 2007)
+
+  15 Feb 2007; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.10.0.ebuild:
+  New upstream release.
+
+  09 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  libsemanage-1.6.17-r1.ebuild:
+  Stable to make repoman happy.
+
+*libsemanage-1.6.17-r1 (08 Oct 2006)
+
+  08 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  -libsemanage-1.6.17.ebuild, +libsemanage-1.6.17-r1.ebuild:
+  Install semanage.conf since this is masked on example policy-based profiles.
+
+*libsemanage-1.6.17 (05 Oct 2006)
+
+  05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  +libsemanage-1.6.17.ebuild:
+  Add SVN snapshot.
+
+  31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.6.ebuild:
+  Mark stable, long overdue.
+
+  27 Apr 2006; Alec Warner <antarus@gentoo.org>
+  files/digest-libsemanage-1.4, Manifest:
+  Fixing SHA256 digest, pass four
+
+*libsemanage-1.6 (18 Mar 2006)
+
+  18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsemanage-1.6.ebuild:
+  New upstream release.
+
+  22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Alpha stable
+
+  19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsemanage-1.4.ebuild:
+  Marked stable on mips.
+
+  09 Feb 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Set python version to fix compiles on non 2.4 pythons.
+
+  17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Mark stable, x86, amd64, ppc, sparc.
+
+  14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsemanage-1.4.ebuild:
+  Added ~alpha
+
+  15 Dec 2005; Chris PeBenito <pebenito@gentoo.org> libsemanage-1.4.ebuild:
+  Tighten up versioning to try to prevent mismatch problems as seen in #112348.
+
+*libsemanage-1.4 (09 Dec 2005)
+
+  09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> +metadata.xml,
+  +libsemanage-1.4.ebuild:
+  Initial commit.
+

diff --git a/sys-libs/libsemanage/libsemanage-2.1.6-r1.ebuild b/sys-libs/libsemanage/libsemanage-2.1.6-r1.ebuild
new file mode 100644
index 0000000..36a3301
--- /dev/null
+++ b/sys-libs/libsemanage/libsemanage-2.1.6-r1.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.1.6.ebuild,v 1.3 2012/04/29 10:07:19 swift Exp $
+
+EAPI="3"
+# Support for 4 depends on python.eclass
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython"
+
+inherit multilib python toolchain-funcs eutils
+
+SEPOL_VER="2.1.4"
+SELNX_VER="2.1.9"
+
+DESCRIPTION="SELinux kernel and policy management library"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz
+		http://dev.gentoo.org/~swift/patches/libsemanage/patchbundle-libsemanage-2.1.6-gentoo-r1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="python ruby"
+
+RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
+	>=sys-libs/libselinux-${SELNX_VER}
+	dev-libs/ustr
+	ruby? ( dev-lang/ruby )"
+DEPEND="${RDEPEND}
+	sys-devel/bison
+	sys-devel/flex
+	ruby? ( >=dev-lang/swig-2.0.4-r1 )
+	python? ( >=dev-lang/swig-2.0.4-r1 )"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="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/semanage.conf"
+	echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
+	echo "# or debugging of policy." >> "${S}/src/semanage.conf"
+	echo "save-linked=false" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
+	echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
+	echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
+	echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
+	echo "# would catch." >> "${S}/src/semanage.conf"
+	echo "expand-check=1" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
+	echo "# with bzip2.  Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
+	echo "# 1-9 when compressing.  The higher the number," >> "${S}/src/semanage.conf"
+	echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
+	echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
+	echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
+	echo >> "${S}/src/semanage.conf"
+	echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
+	echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
+	echo "bzip-small=true" >> "${S}/src/semanage.conf"
+
+	EPATCH_MULTI_MSG="Applying libsemanage patches ... " \
+	EPATCH_SUFFIX="patch" \
+	EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
+	EPATCH_FORCE="yes" \
+	epatch
+}
+
+src_compile() {
+	emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
+
+	if use python; then
+		python_copy_sources src
+		building() {
+			emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" PYPREFIX="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="$(tc-getCC)" rubywrap || die
+	fi
+}
+
+src_install() {
+	emake \
+		DESTDIR="${D}" \
+		LIBDIR="${D}usr/$(get_libdir)" \
+		SHLIBDIR="${D}$(get_libdir)" \
+		install || die
+	dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
+
+	if use python; then
+		installation() {
+			emake \
+				DESTDIR="${D}" \
+				PYLIBVER="python$(python_get_version)" \
+				PYPREFIX="python-$(python_get_version)" \
+				LIBDIR="${D}usr/$(get_libdir)" \
+				install-pywrap
+		}
+		python_execute_function -s --source-dir src installation
+	fi
+
+	if use ruby; then
+		emake -C src \
+			DESTDIR="${D}" \
+			LIBDIR="${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/metadata.xml
new file mode 100644
index 0000000..ebc32c0
--- /dev/null
+++ b/sys-libs/libsemanage/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy management libraries</longdescription>
+</pkgmetadata>



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-26 14:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 10:42 [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/ Anthony G. Basile
  -- strict thread matches above, loose matches on Subject: below --
2012-05-26 14:48 Sven Vermeulen
2011-08-03  9:36 Anthony G. Basile
2011-07-13 21:57 Sven Vermeulen
2011-07-13 21:57 Sven Vermeulen
2011-07-07 18:41 Sven Vermeulen
2011-06-29 12:59 Sven Vermeulen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox