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 1S102L-0008HL-0o for garchives@archives.gentoo.org; Fri, 24 Feb 2012 18:38:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6118E0E26; Fri, 24 Feb 2012 18:38:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4AFB6E0E26 for ; Fri, 24 Feb 2012 18:38:25 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 708051B400A for ; Fri, 24 Feb 2012 18:38:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 312BCE53FF for ; Fri, 24 Feb 2012 18:38:23 +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: <1330108635.e520b7cc4841ef68e1ba3040a6297149f62efe90.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-dev:master commit in: sys-libs/libsemanage/, sys-apps/policycoreutils/, sys-libs/libselinux/, ... X-VCS-Repository: proj/hardened-dev X-VCS-Files: dev-python/sepolgen/ChangeLog dev-python/sepolgen/metadata.xml dev-python/sepolgen/sepolgen-1.1.5.ebuild sys-apps/checkpolicy/ChangeLog sys-apps/checkpolicy/checkpolicy-2.1.8.ebuild sys-apps/checkpolicy/metadata.xml sys-apps/policycoreutils/ChangeLog sys-apps/policycoreutils/metadata.xml sys-apps/policycoreutils/policycoreutils-2.1.10.ebuild sys-libs/libselinux/ChangeLog sys-libs/libselinux/libselinux-2.1.9.ebuild sys-libs/libselinux/metadata.xml sys-libs/libsemanage/ChangeLog sys-libs/libsemanage/libsemanage-2.1.6.ebuild sys-libs/libsemanage/metadata.xml sys-libs/libsepol/ChangeLog sys-libs/libsepol/libsepol-2.1.4.ebuild sys-libs/libsepol/metadata.xml X-VCS-Directories: sys-libs/libsemanage/ sys-apps/policycoreutils/ sys-libs/libselinux/ sys-apps/checkpolicy/ dev-python/sepolgen/ sys-libs/libsepol/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: e520b7cc4841ef68e1ba3040a6297149f62efe90 X-VCS-Branch: master Date: Fri, 24 Feb 2012 18:38:23 +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: 17c075ed-3858-4051-941e-5a64389a6df0 X-Archives-Hash: 6cd4f955abe63b739e4515d77ca8d0c9 commit: e520b7cc4841ef68e1ba3040a6297149f62efe90 Author: Sven Vermeulen siphos be> AuthorDate: Fri Feb 24 18:37:15 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Fri Feb 24 18:37:15 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/hardened-dev.= git;a=3Dcommit;h=3De520b7cc Update userland utilies for SELinux --- dev-python/sepolgen/ChangeLog | 69 +++ dev-python/sepolgen/metadata.xml | 6 + dev-python/sepolgen/sepolgen-1.1.5.ebuild | 58 +++ sys-apps/checkpolicy/ChangeLog | 283 ++++++++++++ sys-apps/checkpolicy/checkpolicy-2.1.8.ebuild | 41 ++ sys-apps/checkpolicy/metadata.xml | 6 + sys-apps/policycoreutils/ChangeLog | 481 ++++++++++++++= ++++++ sys-apps/policycoreutils/metadata.xml | 21 + .../policycoreutils/policycoreutils-2.1.10.ebuild | 151 ++++++ sys-libs/libselinux/ChangeLog | 344 ++++++++++++++ sys-libs/libselinux/libselinux-2.1.9.ebuild | 83 ++++ sys-libs/libselinux/metadata.xml | 10 + sys-libs/libsemanage/ChangeLog | 198 ++++++++ sys-libs/libsemanage/libsemanage-2.1.6.ebuild | 129 ++++++ sys-libs/libsemanage/metadata.xml | 6 + sys-libs/libsepol/ChangeLog | 204 +++++++++ sys-libs/libsepol/libsepol-2.1.4.ebuild | 39 ++ sys-libs/libsepol/metadata.xml | 6 + 18 files changed, 2135 insertions(+), 0 deletions(-) diff --git a/dev-python/sepolgen/ChangeLog b/dev-python/sepolgen/ChangeLo= g new file mode 100644 index 0000000..6b7672a --- /dev/null +++ b/dev-python/sepolgen/ChangeLog @@ -0,0 +1,69 @@ +# ChangeLog for dev-python/sepolgen +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/ChangeLog,v 1.14 = 2011/10/23 12:41:16 swift Exp $ + +*sepolgen-1.1.5 (20 Feb 2012) + + 20 Feb 2012; +sepolgen-1.1.5.ebuild, +metadata.xml: + Bump to 1.1.5 + + 23 Oct 2011; sepolgen-1.1.0.ebuild: + Stabilization (tracker #384231) + + 12 Aug 2011; Anthony G. Basile -sepolgen-1.0.13.= ebuild, + -sepolgen-1.0.17.ebuild, -sepolgen-1.0.17-r1.ebuild: + Removed deprecated versions + +*sepolgen-1.1.0 (03 Aug 2011) + + 03 Aug 2011; Anthony G. Basile +sepolgen-1.1.0.e= build: + Bump to 20110727 release of SELinux userspace + + 28 May 2011; Anthony G. Basile sepolgen-1.0.23.e= build: + Stable amd64 x86 + + 25 Apr 2011; Arfrever Frehtes Taifersar Arahesis + sepolgen-1.0.13.ebuild, sepolgen-1.0.17.ebuild, sepolgen-1.0.17-r1.ebu= ild: + Fix deprecation warnings. + + 13 Feb 2011; Anthony G. Basile metadata.xml: + Updated metadata.xml to reflect new selinux herd. + + 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis + sepolgen-1.0.23.ebuild: + Set SUPPORT_PYTHON_ABIS (bug #345551). + +*sepolgen-1.0.23 (06 Feb 2011) + + 06 Feb 2011; Anthony G. Basile + +sepolgen-1.0.23.ebuild: + New upstream release. + + 04 Apr 2010; Arfrever Frehtes Taifersar Arahesis + sepolgen-1.0.13.ebuild, sepolgen-1.0.17.ebuild, sepolgen-1.0.17-r1.ebu= ild: + Delete calls to deprecated python_version(). + +*sepolgen-1.0.17-r1 (16 Dec 2009) + + 16 Dec 2009; Chris PeBenito + +sepolgen-1.0.17-r1.ebuild: + Fix build tests for #296737. + + 02 Aug 2009; Chris PeBenito sepolgen-1.0.13.ebui= ld, + sepolgen-1.0.17.ebuild: + Fix bug #244742. + +*sepolgen-1.0.17 (02 Aug 2009) + + 02 Aug 2009; Chris PeBenito +sepolgen-1.0.17.ebu= ild: + New upstream release. + + 18 Jul 2009; Chris PeBenito sepolgen-1.0.13.ebui= ld: + Mark stable. Remove old ebuilds. + +*sepolgen-1.0.13 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito +metadata.xml, + +sepolgen-1.0.13.ebuild: + Initial commit. + diff --git a/dev-python/sepolgen/metadata.xml b/dev-python/sepolgen/metad= ata.xml new file mode 100644 index 0000000..d75890e --- /dev/null +++ b/dev-python/sepolgen/metadata.xml @@ -0,0 +1,6 @@ + + + + selinux + Python module needed for audit2allow + diff --git a/dev-python/sepolgen/sepolgen-1.1.5.ebuild b/dev-python/sepol= gen/sepolgen-1.1.5.ebuild new file mode 100644 index 0000000..1fd22bc --- /dev/null +++ b/dev-python/sepolgen/sepolgen-1.1.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.1.0.eb= uild,v 1.2 2011/10/23 12:41:16 swift Exp $ + +EAPI=3D"3" +PYTHON_DEPEND=3D"*" +SUPPORT_PYTHON_ABIS=3D"1" +RESTRICT_PYTHON_ABIS=3D"3.* *-jython" + +inherit python + +DESCRIPTION=3D"SELinux policy generation library" +HOMEPAGE=3D"http://userspace.selinuxproject.org" +SRC_URI=3D"http://userspace.selinuxproject.org/releases/20120216/${P}.ta= r.gz" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"" + +DEPEND=3D">=3Dsys-libs/libselinux-2.0[python] + >=3Dapp-admin/setools[python]" +RDEPEND=3D"${DEPEND}" + +src_prepare() { + # fix up default paths to not be RH specific + sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict:' \ + "${S}/src/sepolgen/defaults.py" || die + sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict/include= :' \ + "${S}/src/sepolgen/module.py" || die +} + +src_compile() { + : +} + +src_test() { + if has_version sec-policy/selinux-base-policy; then + python_src_test + else + ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests." + fi +} + +src_install() { + installation() { + emake DESTDIR=3D"${D}" PYTHONLIBDIR=3D"$(python_get_sitedir)" install + } + python_execute_function installation +} + +pkg_postinst() { + python_mod_optimize sepolgen +} + +pkg_postrm() { + python_mod_cleanup sepolgen +} diff --git a/sys-apps/checkpolicy/ChangeLog b/sys-apps/checkpolicy/Change= Log new file mode 100644 index 0000000..5d532af --- /dev/null +++ b/sys-apps/checkpolicy/ChangeLog @@ -0,0 +1,283 @@ +# ChangeLog for sys-apps/checkpolicy +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.63= 2011/11/12 18:14:27 swift Exp $ + +*checkpolicy-2.1.8 (20 Feb 2012) + + 20 Feb 2012; +checkpolicy-2.1.8.ebuild, +metadata.x= ml: + Bump to 2.1.8 + + 12 Nov 2011; -checkpolicy-2.0.21.ebuild, + -checkpolicy-2.0.23.ebuild: + Removing obsoleted ebuilds + + 23 Oct 2011; checkpolicy-2.1.0.ebuild: + Stabilization (tracker #384231) + + 12 Aug 2011; Anthony G. Basile + -checkpolicy-2.0.16.ebuild, -checkpolicy-2.0.19.ebuild: + Removed deprecated versions + +*checkpolicy-2.1.0 (03 Aug 2011) + + 03 Aug 2011; Anthony G. Basile + +checkpolicy-2.1.0.ebuild: + Bump to 20110727 SELinux userspace + +*checkpolicy-2.0.23 (15 Jul 2011) + + 15 Jul 2011; Anthony G. Basile + +checkpolicy-2.0.23.ebuild: + Bump to 2.0.23 - proxy for SwifT + + 08 Jul 2011; Samuli Suominen + checkpolicy-2.0.16.ebuild, checkpolicy-2.0.19.ebuild: + Convert from "useq" to "use". + + 28 May 2011; Anthony G. Basile + checkpolicy-2.0.19.ebuild: + Fixed minor syntax + + 28 May 2011; Anthony G. Basile + checkpolicy-2.0.21.ebuild: + Stable amd64 x86 + + 13 Feb 2011; Anthony G. Basile metadata.xml: + Updated metadata.xml to reflect new selinux herd. + + 08 Feb 2011; Arfrever Frehtes Taifersar Arahesis + checkpolicy-2.0.21.ebuild: + Respect CC. + +*checkpolicy-2.0.21 (05 Feb 2011) + + 05 Feb 2011; Anthony G. Basile + +checkpolicy-2.0.21.ebuild: + New upstream release. + +*checkpolicy-2.0.19 (02 Aug 2009) + + 02 Aug 2009; Chris PeBenito + +checkpolicy-2.0.19.ebuild: + New upstream release. + + 22 Jul 2009; Chris PeBenito + -checkpolicy-1.34.4.ebuild, checkpolicy-2.0.16.ebuild: + Mark stable. Remove old ebuilds. + +*checkpolicy-2.0.16 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito + +checkpolicy-2.0.16.ebuild: + Initial commit of checkpolicy 2.0. + + 10 Sep 2008; Chris PeBenito + checkpolicy-1.34.4.ebuild: + Remove rdep on flex and bison as they are build tools. + + 26 May 2008; Chris PeBenito + checkpolicy-1.34.4.ebuild: + Fix libsemanage dependency. + + 13 May 2008; Chris PeBenito + -files/checkpolicy-1.30.1.diff, -checkpolicy-1.28.ebuild, + -checkpolicy-1.30-r1.ebuild, -checkpolicy-1.34.0.ebuild, + -checkpolicy-1.34.3.ebuild, checkpolicy-1.34.4.ebuild: + Mark 1.34.4 stable, clear old ebuilds. + +*checkpolicy-1.34.4 (29 Jan 2008) + + 29 Jan 2008; Chris PeBenito + +checkpolicy-1.34.4.ebuild: + New upstream bugfix release. + +*checkpolicy-1.34.3 (18 Oct 2007) + + 18 Oct 2007; Chris PeBenito + +checkpolicy-1.34.3.ebuild: + New upstream release. + + 04 Jun 2007; Chris PeBenito + checkpolicy-1.34.0.ebuild: + Mark stable. + +*checkpolicy-1.34.0 (15 Feb 2007) + + 15 Feb 2007; Chris PeBenito + +checkpolicy-1.34.0.ebuild: + New upstream release. + +*checkpolicy-1.30.12 (05 Oct 2006) + + 05 Oct 2006; Chris PeBenito + +checkpolicy-1.30.12.ebuild: + Add SVN snapshot. + + 31 Jul 2006; Chris PeBenito + checkpolicy-1.30-r1.ebuild: + Mark stable, long overdue. + +*checkpolicy-1.30-r1 (24 Mar 2006) + + 24 Mar 2006; Chris PeBenito + +files/checkpolicy-1.30.1.diff, -checkpolicy-1.30.ebuild, + +checkpolicy-1.30-r1.ebuild: + Upstream bugfix for require blocks in base module. + +*checkpolicy-1.30 (18 Mar 2006) + + 18 Mar 2006; Chris PeBenito + +checkpolicy-1.30.ebuild: + New upstream release. + + 22 Feb 2006; Stephen Bennett checkpolicy-1.28.ebuild: + Alpha stable + + 19 Feb 2006; Joshua Kinard checkpolicy-1.28.ebuild: + Marked stable on mips. + + 17 Jan 2006; Chris PeBenito checkpolicy-1.28.ebu= ild: + Mark stable, x86, amd64, ppc, sparc. + + 14 Jan 2006; Stephen Bennett checkpolicy-1.28.ebuild: + Added ~alpha + + 15 Dec 2005; Chris PeBenito checkpolicy-1.24.ebu= ild, + checkpolicy-1.28.ebuild: + Tighten up versioning to try to prevent mismatch problems as seen in #= 112348. + +*checkpolicy-1.28 (09 Dec 2005) + + 09 Dec 2005; Chris PeBenito + -checkpolicy-1.22.ebuild, +checkpolicy-1.28.ebuild: + New upstream release. + + 09 Sep 2005; Chris PeBenito checkpolicy-1.24.ebu= ild: + Mark stable. + +*checkpolicy-1.24 (25 Jun 2005) + + 25 Jun 2005; Chris PeBenito + -checkpolicy-1.20.ebuild, +checkpolicy-1.24.ebuild: + New upstream release. + + 10 May 2005; Stephen Bennett checkpolicy-1.22.ebuild: + mips stable + + 01 May 2005; Stephen Bennett checkpolicy-1.22.ebuild: + Added ~mips. + + 01 May 2005; Chris PeBenito checkpolicy-1.22.ebu= ild: + Mark stable. + +*checkpolicy-1.22 (13 Mar 2005) + + 13 Mar 2005; Chris PeBenito + +checkpolicy-1.22.ebuild: + New upstream release. + + 13 Feb 2005; Chris PeBenito checkpolicy-1.20.ebu= ild: + Mark stable. + +*checkpolicy-1.20 (07 Jan 2005) + + 07 Jan 2005; Chris PeBenito checkpolicy-1.18.ebu= ild, + +checkpolicy-1.20.ebuild: + New upstream release. Mark 1.18 stable. + +*checkpolicy-1.18 (14 Nov 2004) + + 14 Nov 2004; Chris PeBenito + +checkpolicy-1.18.ebuild: + New upstream release. + + 15 Sep 2004; Chris PeBenito checkpolicy-1.16.ebu= ild: + Fix Makefile for multiple compile jobs. + +*checkpolicy-1.16 (07 Sep 2004) + + 07 Sep 2004; Chris PeBenito +checkpolicy-1.16.eb= uild: + New upstream release. + +*checkpolicy-1.14 (02 Jul 2004) + + 02 Jul 2004; Chris PeBenito +checkpolicy-1.14.eb= uild: + New upstream version. This compiles policy versions 15 to 18. + + 27 Apr 2004; Chris PeBenito checkpolicy-1.10.ebu= ild: + Make it listen to LDFLAGS. + +*checkpolicy-1.10 (18 Apr 2004) + + 18 Apr 2004; Chris PeBenito +checkpolicy-1.10.eb= uild: + New upstream version. + + 08 Apr 2004; Chris PeBenito checkpolicy-1.8.ebui= ld: + Mark stable for 2004.1 + +*checkpolicy-1.8 (12 Mar 2004) + + 12 Mar 2004; Chris PeBenito checkpolicy-1.8.ebui= ld: + New upstream release. + +*checkpolicy-1.6 (24 Feb 2004) + + 24 Feb 2004; Chris PeBenito checkpolicy-1.6.ebui= ld: + New upstream release. + + 26 Jan 2004; Chris PeBenito checkpolicy-1.4-r1.e= build: + Mark stable. + +*checkpolicy-1.4-r1 (17 Jan 2004) + + 17 Jan 2004; Chris PeBenito checkpolicy-1.4-r1.e= build, + files/checkpolicy-1.4-negset.diff: + Add patch to exclude types in TE rules. + + 16 Dec 2003; Chris PeBenito checkpolicy-1.4.ebui= ld: + Mark stable. + +*checkpolicy-1.4 (06 Dec 2003) + + 06 Dec 2003; Chris PeBenito checkpolicy-1.4.ebui= ld: + New upstream version. + + 29 Oct 2003; Joshua Brindle checkpolicy-1.2.ebuild= : + added sparc + + 07 Oct 2003; Chris PeBenito checkpolicy-1.2.ebui= ld: + Mark stable. + +*checkpolicy-1.2 (03 Oct 2003) + + 03 Oct 2003; Chris PeBenito checkpolicy-1.2.ebui= ld, + files/checkpolicy-1.2-gentoo.diff: + New upstream version. + + 22 Sep 2003; Chris PeBenito checkpolicy-1.1.ebui= ld: + Add selinux-base-policy dependancy. + + 22 Sep 2003; metadata.xml: + Fix metadata.xml + + 24 Aug 2003; Chris PeBenito checkpolicy-1.0-r1.e= build, + checkpolicy-1.1.ebuild, files/checkpolicy-little_endian.diff: + Mark stable + +*checkpolicy-1.1 (14 Aug 2003) + + 14 Aug 2003; Chris PeBenito checkpolicy-1.1.ebui= ld: + New upstream version + +*checkpolicy-1.0-r1 (13 Aug 2003) + + 13 Aug 2003; Chris PeBenito checkpolicy-1.0-r1.e= build, + checkpolicy-1.0.ebuild, files/checkpolicy-little_endian.diff: + Add endian-ness fix + +*checkpolicy-1.0 (03 Aug 2003) + + 03 Aug 2003; Chris PeBenito checkpolicy-1.0.ebui= ld, + metadata.xml, files/checkpolicy-1.0-gentoo.diff: + Initial commit + diff --git a/sys-apps/checkpolicy/checkpolicy-2.1.8.ebuild b/sys-apps/che= ckpolicy/checkpolicy-2.1.8.ebuild new file mode 100644 index 0000000..204c3f5 --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-2.1.8.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.1.= 0.ebuild,v 1.2 2011/10/23 12:40:36 swift Exp $ + +inherit toolchain-funcs + +SEPOL_VER=3D"2.1.4" +SEMNG_VER=3D"2.1.6" + +DESCRIPTION=3D"SELinux policy compiler" +HOMEPAGE=3D"http://userspace.selinuxproject.org" +SRC_URI=3D"http://userspace.selinuxproject.org/releases/20120216/${P}.ta= r.gz" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"debug" + +DEPEND=3D">=3Dsys-libs/libsepol-${SEPOL_VER} + >=3Dsys-libs/libsemanage-${SEMNG_VER} + sys-devel/flex + sys-devel/bison" + +RDEPEND=3D">=3Dsys-libs/libsemanage-${SEMNG_VER}" + +src_compile() { + emake CC=3D"$(tc-getCC)" YACC=3D"bison -y" || die +} + +src_install() { + emake DESTDIR=3D"${D}" install || die + + if use debug; then + dobin "${S}/test/dismod" + dobin "${S}/test/dispol" + fi +} + +pkg_postinst() { + einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -= d ' '` policy." +} diff --git a/sys-apps/checkpolicy/metadata.xml b/sys-apps/checkpolicy/met= adata.xml new file mode 100644 index 0000000..92f48e0 --- /dev/null +++ b/sys-apps/checkpolicy/metadata.xml @@ -0,0 +1,6 @@ + + + + selinux + SELinux policy compilier + diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutil= s/ChangeLog new file mode 100644 index 0000000..1949629 --- /dev/null +++ b/sys-apps/policycoreutils/ChangeLog @@ -0,0 +1,481 @@ +# ChangeLog for sys-apps/policycoreutils +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v = 1.95 2012/01/14 19:57:53 swift Exp $ + +*policycoreutils-2.1.10 (20 Feb 2012) + + 20 Feb 2012; +policycoreutils-2.1.10.ebuild, + +metadata.xml: + Bump to 2.1.10 + + 14 Jan 2012; +policycoreutils-2.1.0-r2.ebuild, + metadata.xml: + Mark audit as a local USE flag + +*policycoreutils-2.1.0-r2 (14 Jan 2012) + + 14 Jan 2012; +policycoreutils-2.1.0-r2.ebuild: + Override auto-detection of pam and audit, use USE flags for this + + 12 Nov 2011; -policycoreutils-2.0.82.ebuild, + -policycoreutils-2.0.82-r1.ebuild, -policycoreutils-2.0.85.ebuild, + -policycoreutils-2.1.0.ebuild: + removing obsoleted ebuilds + + 23 Oct 2011; policycoreutils-2.1.0-r1.ebuild: + Stabilization (tracker #384231) + + 23 Oct 2011; policycoreutils-2.0.82-r1.ebuild: + Stabilize 2.0.82-r1 to fix #372807 + +*policycoreutils-2.1.0-r1 (17 Sep 2011) + + 17 Sep 2011; +policycoreutils-2.1.0-r1.ebuild: + Add /var/lib/selinux directory, needed for 'semodule permissive' suppo= rt (bug + #381755) + + 02 Sep 2011; policycoreutils-2.0.85.ebuild, + policycoreutils-2.1.0.ebuild: + Update patch locations to dev.g.o instead of files/ folder + + 12 Aug 2011; Anthony G. Basile + -policycoreutils-2.0.55.ebuild, -policycoreutils-2.0.69.ebuild, + -policycoreutils-2.0.69-r1.ebuild, -policycoreutils-2.0.69-r2.ebuild, + -files/policycoreutils-2.0.69-setfiles.diff: + Removed deprecated versions + +*policycoreutils-2.1.0 (03 Aug 2011) + + 03 Aug 2011; Anthony G. Basile + +policycoreutils-2.1.0.ebuild: + Bump to 20110727 SELinux userspace release + +*policycoreutils-2.0.85 (15 Jul 2011) + + 15 Jul 2011; Anthony G. Basile + +policycoreutils-2.0.85.ebuild, + +files/policycoreutils-2.0.85-fix-seunshare-vuln.patch.gz, + +files/policycoreutils-2.0.85-sesandbox.patch.gz: + Add fix for bug #374897 and initial support for python3 + + 08 Jul 2011; Samuli Suominen + policycoreutils-2.0.55.ebuild, policycoreutils-2.0.69.ebuild, + policycoreutils-2.0.69-r1.ebuild, policycoreutils-2.0.69-r2.ebuild: + Convert from "useq" to "use". + +*policycoreutils-2.0.82-r1 (30 Jun 2011) + + 30 Jun 2011; Anthony G. Basile + +policycoreutils-2.0.82-r1.ebuild: + Overwrite invalid .po files with valid ones, fixes bug #372807 + + 16 Jun 2011; Anthony G. Basile + policycoreutils-2.0.82.ebuild: + Drop use_nls dependency on gettext. Its mandatory. See bug #299681. + Also put gettext in COMMON_DEPS, it is more than a RDEPEND. + + 28 May 2011; Anthony G. Basile + policycoreutils-2.0.82.ebuild: + Stable amd64 x86 + + 16 Apr 2011; Anthony G. Basile metadata.xml: + Updated metadata info. + + 08 Feb 2011; Arfrever Frehtes Taifersar Arahesis + policycoreutils-2.0.82.ebuild: + Set SUPPORT_PYTHON_ABIS (bug #353762). Fix dependencies. Fix installat= ion + with FEATURES=3D"multilib-strict". + +*policycoreutils-2.0.82 (05 Feb 2011) + + 05 Feb 2011; Anthony G. Basile + +policycoreutils-2.0.82.ebuild: + New upstream release. + +*policycoreutils-2.0.69-r2 (05 Feb 2011) + + 05 Feb 2011; Anthony G. Basile + +policycoreutils-2.0.69-r2.ebuild, + +files/policycoreutils-2.0.69-setfiles.diff: + Fixed bug #300613 + + 04 Apr 2010; Arfrever Frehtes Taifersar Arahesis + policycoreutils-2.0.55.ebuild, policycoreutils-2.0.69.ebuild, + policycoreutils-2.0.69-r1.ebuild: + Delete calls to deprecated python_version(). + +*policycoreutils-2.0.69-r1 (20 Sep 2009) + + 20 Sep 2009; Chris PeBenito + +policycoreutils-2.0.69-r1.ebuild: + Update rlpkg for ext4 and btrfs. + + 14 Sep 2009; Chris PeBenito + policycoreutils-2.0.69.ebuild: + Fix libsemanage DEP. + + 02 Aug 2009; Chris PeBenito + policycoreutils-2.0.55.ebuild, policycoreutils-2.0.69.ebuild: + Add python_need_rebuild. + +*policycoreutils-2.0.69 (02 Aug 2009) + + 02 Aug 2009; Chris PeBenito + +policycoreutils-2.0.69.ebuild: + New upstream release. + + 18 Jul 2009; Chris PeBenito + -policycoreutils-1.34.15.ebuild, policycoreutils-2.0.55.ebuild: + Mark stable. Remove old ebuilds. + +*policycoreutils-2.0.55 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito + +policycoreutils-2.0.55.ebuild: + Initial commit of policycoreutils 2.0. + + 29 May 2008; Ali Polatel + policycoreutils-1.34.15.ebuild: + python_mod_optimize is ROOT aware. Fixed python_mod_cleanup. + + 26 May 2008; Chris PeBenito + policycoreutils-1.34.15.ebuild: + Fix libsemanage dependency. + + 13 May 2008; Chris PeBenito + -files/policycoreutils-1.28-quietlp.diff, + -files/policycoreutils-1.32-quietlp.diff, + -files/policycoreutils-unsigned-char-ppc.diff, + -policycoreutils-1.28.ebuild, -policycoreutils-1.30-r1.ebuild, + -policycoreutils-1.34.1.ebuild, -policycoreutils-1.34.11.ebuild, + policycoreutils-1.34.15.ebuild: + Mark 1.34.15 stable, clear old ebuilds. + +*policycoreutils-1.34.15 (29 Jan 2008) + + 29 Jan 2008; Chris PeBenito + +policycoreutils-1.34.15.ebuild: + New upstream bugfix release. + + 19 Oct 2007; Chris PeBenito + policycoreutils-1.34.11.ebuild: + Fix quoting in unpack. + +*policycoreutils-1.34.11 (18 Oct 2007) + + 18 Oct 2007; Chris PeBenito + +policycoreutils-1.34.11.ebuild: + New upstream release. + + 04 Jun 2007; Chris PeBenito + policycoreutils-1.34.1.ebuild: + Mark stable. + +*policycoreutils-1.34.1 (15 Feb 2007) + + 15 Feb 2007; Chris PeBenito + +policycoreutils-1.34.1.ebuild: + New upstream release. + + 24 Oct 2006; Chris PeBenito + policycoreutils-1.30.30.ebuild: + Fix glibc handling. + + 09 Oct 2006; Chris PeBenito + policycoreutils-1.30.30.ebuild: + Stable to make repoman happy. + +*policycoreutils-1.30.30 (05 Oct 2006) + + 05 Oct 2006; Chris PeBenito + +files/policycoreutils-1.32-quietlp.diff, +policycoreutils-1.30.30.ebu= ild: + Add SVN snapshot and updated extras in preparation for reference polic= y. + + 31 Jul 2006; Chris PeBenito + policycoreutils-1.30-r1.ebuild: + Mark stable, long overdue. + +*policycoreutils-1.30-r1 (28 Mar 2006) + + 28 Mar 2006; Chris PeBenito + -policycoreutils-1.30.ebuild, +policycoreutils-1.30-r1.ebuild: + Fix install location of python site packages. + + 22 Feb 2006; Stephen Bennett policycoreutils-1.28.ebu= ild: + Alpha stable + + 19 Feb 2006; Joshua Kinard policycoreutils-1.28.ebu= ild: + Marked stable on mips. + +*policycoreutils-1.30 (18 Mar 2006) + + 18 Mar 2006; Chris PeBenito + +policycoreutils-1.30.ebuild: + New upstream release. + + 05 Feb 2006; Chris PeBenito + +files/policycoreutils-unsigned-char-ppc.diff, + policycoreutils-1.28.ebuild: + Add patch to fix #121689. + + 17 Jan 2006; Chris PeBenito + policycoreutils-1.28.ebuild: + Mark stable, x86, amd64, ppc, sparc. + + 14 Jan 2006; Stephen Bennett policycoreutils-1.28.ebu= ild: + Added ~alpha + + 15 Dec 2005; Chris PeBenito + policycoreutils-1.22.ebuild, policycoreutils-1.24-r2.ebuild, + policycoreutils-1.28.ebuild: + Tighten up versioning to try to prevent mismatch problems as seen in #= 112348. + +*policycoreutils-1.28 (09 Dec 2005) + + 09 Dec 2005; Chris PeBenito + +files/policycoreutils-1.28-quietlp.diff, -policycoreutils-1.24-r1.ebu= ild, + +policycoreutils-1.28.ebuild: + New upstream release. + +*policycoreutils-1.24-r2 (08 Dec 2005) + + 08 Dec 2005; Chris PeBenito + +policycoreutils-1.24-r2.ebuild: + Add compatability symlink for genhomedircon. + +*policycoreutils-1.24-r1 (09 Sep 2005) + + 09 Sep 2005; Chris PeBenito + +policycoreutils-1.24-r1.ebuild: + Update for fixed selinuxconfig source policy path. + + 11 Jul 2005; Chris PeBenito + policycoreutils-1.22.ebuild, policycoreutils-1.24.ebuild: + Fix RDEPEND for building stages. Libsepol is required now. + +*policycoreutils-1.24 (25 Jun 2005) + + 25 Jun 2005; Chris PeBenito + +files/policycoreutils-1.24-genhomedircon-quiet.diff, + -policycoreutils-1.20-r1.ebuild, +policycoreutils-1.24.ebuild: + New upstream release. + + 10 May 2005; Stephen Bennett policycoreutils-1.22.ebu= ild: + mips stable + + 01 May 2005; Stephen Bennett policycoreutils-1.22.ebu= ild: + Added ~mips. + + 01 May 2005; Chris PeBenito + policycoreutils-1.22.ebuild: + Mark stable. + +*policycoreutils-1.22 (13 Mar 2005) + + 13 Mar 2005; Chris PeBenito + +files/policycoreutils-1.22-genhomedircon-quiet.diff, + +policycoreutils-1.22.ebuild: + New upstream release. + +*policycoreutils-1.20-r1 (13 Feb 2005) + + 13 Feb 2005; Chris PeBenito + -policycoreutils-1.16.ebuild, +policycoreutils-1.20-r1.ebuild, + -policycoreutils-1.20.ebuild: + Add back some tools deleted from upstream libselinux. + +*policycoreutils-1.20 (07 Jan 2005) + + 07 Jan 2005; Chris PeBenito + policycoreutils-1.18-r1.ebuild, +policycoreutils-1.20.ebuild: + New upstream release. Mark 1.18-r1 stable. + +*policycoreutils-1.18-r1 (03 Jan 2005) + + 03 Jan 2005; Chris PeBenito + +files/policycoreutils-nonls.diff, +policycoreutils-1.18-r1.ebuild: + Make pam and nls optional for embedded systems use. + + 22 Nov 2004; Chris PeBenito + policycoreutils-1.18.ebuild: + Ensure a few dirs and perms during stage1 build. + + 15 Nov 2004; Chris PeBenito + policycoreutils-1.18.ebuild: + Fix libsepol dep. + +*policycoreutils-1.18 (14 Nov 2004) + + 14 Nov 2004; Chris PeBenito + +policycoreutils-1.18.ebuild: + New upstream release. + +*policycoreutils-1.16 (07 Sep 2004) + + 07 Sep 2004; Chris PeBenito + +files/policycoreutils-1.16-genhomedircon-compat.diff, + +policycoreutils-1.16.ebuild: + New upstream release. + + 08 Aug 2004; Tom Martin policycoreutils-1.12-r1.eb= uild, + policycoreutils-1.12-r2.ebuild, policycoreutils-1.14.ebuild, + policycoreutils-1.4-r1.ebuild: + Typo in DESCRIPTION: utilites -> utilities. Bug 59717. + + 06 Jul 2004; Chris PeBenito + policycoreutils-1.14.ebuild: + Bump extras to fix free() bug in runscript_selinux.so. + +*policycoreutils-1.12-r2 (06 Jul 2004) + + 06 Jul 2004; Chris PeBenito + +files/runscript-selinux.diff, +policycoreutils-1.12-r2.ebuild: + Fix free() error in runscript_selinux.so. + + 03 Jul 2004; Chris PeBenito + policycoreutils-1.14.ebuild: + Update extras. + +*policycoreutils-1.14 (02 Jul 2004) + + 02 Jul 2004; Chris PeBenito + +files/policycoreutils-1.14-genhomedircon-compat.diff, + +policycoreutils-1.14.ebuild: + New upstream version. + +*policycoreutils-1.12-r1 (28 Jun 2004) + + 28 Jun 2004; Chris PeBenito + +policycoreutils-1.12-r1.ebuild: + Add toggle_bool to extras. + + 11 Jun 2004; Chris PeBenito + -policycoreutils-1.10-r1.ebuild, policycoreutils-1.12.ebuild: + Mark stable + +*policycoreutils-1.12 (14 May 2004) + + 14 May 2004; Chris PeBenito + +policycoreutils-1.12.ebuild: + New upstream release. + +*policycoreutils-1.10-r1 (28 Apr 2004) + + 28 Apr 2004; Chris PeBenito + +policycoreutils-1.10-r1.ebuild, -policycoreutils-1.10.ebuild, + -policycoreutils-1.8.ebuild: + Update extras and mark stable. + +*policycoreutils-1.10 (20 Apr 2004) + + 08 Apr 2004; Chris PeBenito + policycoreutils-1.4-r1.ebuild, policycoreutils-1.8.ebuild: + More specific versioning for libselinux. + + 08 Apr 2004; Chris PeBenito + policycoreutils-1.8.ebuild: + Mark stable for 2004.1 + + 15 Mar 2004; Chris PeBenito + policycoreutils-1.8.ebuild: + Update extras. + +*policycoreutils-1.8 (12 Mar 2004) + + 12 Mar 2004; Chris PeBenito + policycoreutils-1.8.ebuild: + New upstream release. + +*policycoreutils-1.6 (24 Feb 2004) + + 24 Feb 2004; Chris PeBenito + policycoreutils-1.4-r1.ebuild, policycoreutils-1.6.ebuild: + New upstream release. Mark 1.4-r1 stable. + +*policycoreutils-1.4-r1 (09 Feb 2004) + + 09 Feb 2004; Chris PeBenito + policycoreutils-1.4-r1.ebuild: + Move extras to mirrors, and add runscript_selinux.so. + + 31 Jan 2004; Chris PeBenito files/rlpkg: + Switch to portageq from inline python. Add missing quotes for complet= eness. + + 16 Dec 2003; Chris PeBenito + policycoreutils-1.4.ebuild: + Mark stable. + +*policycoreutils-1.4 (06 Dec 2003) + + 06 Dec 2003; Chris PeBenito + policycoreutils-1.4.ebuild: + New upstream version. + +*policycoreutils-1.2-r2 (23 Nov 2003) + + 23 Nov 2003; Chris PeBenito + policycoreutils-1.2-r2.ebuild: + Bump to add /sbin/seinit. + + 29 Oct 2003; Joshua Brindle + policycoreutils-1.2-r1.ebuild: + added sparc + +*policycoreutils-1.2-r1 (20 Oct 2003) + + 20 Oct 2003; Chris PeBenito + policycoreutils-1.2-r1.ebuild: + Remove unneeded -lattr linking from Makefiles. + + 07 Oct 2003; Chris PeBenito + policycoreutils-1.2.ebuild: + Mark stable. + +*policycoreutils-1.2 (03 Oct 2003) + + 03 Oct 2003; Chris PeBenito + policycoreutils-1.2.ebuild, files/policycoreutils-1.2-gentoo.diff: + New upstream version. + + 29 Sep 2003; Chris PeBenito + policycoreutils-1.1-r1.ebuild: + Add build USE flag; when asserted, only setfiles is built and merged. + + 22 Sep 2003; Chris PeBenito + policycoreutils-1.1-r1.ebuild: + Move selinux-base-policy RDEPEND to checkpolicy. No longer RDEPEND on + checkpolicy. + + 22 Sep 2003; metadata.xml: + Fix metadata.xml + + 24 Aug 2003; Chris PeBenito + policycoreutils-1.1-r1.ebuild, policycoreutils-1.1.ebuild: + Mark stable + +*policycoreutils-1.1-r1 (18 Aug 2003) + + 18 Aug 2003; Chris PeBenito metadata.xml, + policycoreutils-1.0.ebuild, policycoreutils-1.1-r1.ebuild, + files/avc_enforcing, files/avc_toggle, + files/policycoreutils-1.1-setfiles.diff: + Add setfiles patch for alternate root. Add avc_enforcing and avc_toggl= e + scripts for ease of use for old API users. Use package description fro= m RPM + spec file in metadata.xml long description. + +*policycoreutils-1.1 (14 Aug 2003) + + 14 Aug 2003; Chris PeBenito + policycoreutils-1.1.ebuild: + New upstream version + + 10 Aug 2003; Chris PeBenito + policycoreutils-1.0.ebuild, files/rlpkg: + Add mkinitrd RDEP, add rlpkg. + +*policycoreutils-1.0 (03 Aug 2003) + + 03 Aug 2003; Chris PeBenito metadata.xml, + policycoreutils-1.0.ebuild, files/policycoreutils-1.0-gentoo.diff: + Initial commit + diff --git a/sys-apps/policycoreutils/metadata.xml b/sys-apps/policycoreu= tils/metadata.xml new file mode 100644 index 0000000..e7a78d9 --- /dev/null +++ b/sys-apps/policycoreutils/metadata.xml @@ -0,0 +1,21 @@ + + + + selinux + + Policycoreutils contains the policy core utilities that are required + for basic operation of a SELinux system. These utilities include + load_policy to load policies, setfiles to label filesystems, newrole + to switch roles, and run_init to run /etc/init.d scripts in the proper + context. + + Gentoo-specific tools include rlpkg for relabeling packages by name, + avc_toggle to toggle between enforcing and permissive modes, and + avc_enforcing to query the current mode of the system, enforcing or + permissive. + + + Enable support for sys-process/audit = and use the audit_* functions (like audit_getuid instead of getuid()) + Enable support for SELinux sandbox applicati= on + + diff --git a/sys-apps/policycoreutils/policycoreutils-2.1.10.ebuild b/sys= -apps/policycoreutils/policycoreutils-2.1.10.ebuild new file mode 100644 index 0000000..d2f8454 --- /dev/null +++ b/sys-apps/policycoreutils/policycoreutils-2.1.10.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreut= ils-2.1.0-r2.ebuild,v 1.1 2012/01/14 19:57:53 swift Exp $ + +EAPI=3D"3" +PYTHON_DEPEND=3D"*" +PYTHON_USE_WITH=3D"xml" +SUPPORT_PYTHON_ABIS=3D"1" +RESTRICT_PYTHON_ABIS=3D"*-jython" + +inherit multilib python toolchain-funcs eutils + +EXTRAS_VER=3D"1.21" +SEMNG_VER=3D"2.1.6" +SELNX_VER=3D"2.1.9" +SEPOL_VER=3D"2.1.4" + +IUSE=3D"audit pam dbus sesandbox" + +DESCRIPTION=3D"SELinux core utilities" +HOMEPAGE=3D"http://userspace.selinuxproject.org" +SRC_URI=3D"http://userspace.selinuxproject.org/releases/20120216/${P}.ta= r.gz + http://dev.gentoo.org/~swift/patches/policycoreutils/policycoreutils-2.= 1.10-sesandbox.patch.gz + http://dev.gentoo.org/~swift/patches/policycoreutils/policycoreutils-2.= 1.10-fix-makefile-pam-audit.patch.gz + http://dev.gentoo.org/~swift/patches/policycoreutils/policycoreutils-2.= 1.10-fix-seunshare.patch.gz + http://dev.gentoo.org/~swift/patches/policycoreutils/policycoreutils-2.= 1.10-fix-nodbus_or_libcg.patch.gz + mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2 + mirror://gentoo/policycoreutils-2.0.85-python3.tar.gz" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" + +COMMON_DEPS=3D">=3Dsys-libs/libselinux-${SELNX_VER}[python] + >=3Dsys-libs/glibc-2.4 + >=3Dsys-libs/libcap-1.10-r10 + >=3Dsys-libs/libsemanage-${SEMNG_VER}[python] + sys-libs/libcap-ng + >=3Dsys-libs/libsepol-${SEPOL_VER} + sys-devel/gettext + sesandbox? ( dev-libs/libcgroup ) + dbus? ( + sys-apps/dbus + dev-libs/dbus-glib + ) + audit? ( >=3Dsys-process/audit-1.5.1 ) + pam? ( sys-libs/pam )" + +### libcgroup -> seunshare +### dbus -> restorecond + +# pax-utils for scanelf used by rlpkg +RDEPEND=3D"${COMMON_DEPS} + dev-python/sepolgen + app-misc/pax-utils" + +DEPEND=3D"${COMMON_DEPS}" + +S2=3D${WORKDIR}/policycoreutils-extra + +src_prepare() { + # rlpkg is more useful than fixfiles + sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \ + || die "fixfiles sed 1 failed" + sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \ + || die "fixfiles sed 2 failed" + # We currently do not support MCS, so the sandbox code in policycoreuti= ls + # is not usable yet. However, work for MCS is on the way and a reported + # vulnerability (bug #374897) might go by unnoticed if we ignore it now= . + # As such, we will + # - prepare support for switching name from "sandbox" to "sesandbox" + epatch "${DISTDIR}/policycoreutils-2.1.10-sesandbox.patch.gz" + # Disable auto-detection of PAM and audit related stuff and override + epatch "${DISTDIR}/policycoreutils-2.1.10-fix-makefile-pam-audit.patch.= gz" + # - Fix build failure on seunshare + epatch "${DISTDIR}/policycoreutils-2.1.10-fix-seunshare.patch.gz" + # - Make sandbox & dbus-depending stuff (restorecond) USE-triggered + epatch "${DISTDIR}/policycoreutils-2.1.10-fix-nodbus_or_libcg.patch.gz" + # Overwrite gl.po, id.po and et.po with valid PO file + cp "${S}/po/sq.po" "${S}/po/gl.po" || die "failed to copy ${S}/po/sq.po= to gl.po" + cp "${S}/po/sq.po" "${S}/po/id.po" || die "failed to copy ${S}/po/sq.po= to id.po" + cp "${S}/po/sq.po" "${S}/po/et.po" || die "failed to copy ${S}/po/sq.po= to et.po" + # Fixed scripts for Python 3 support + cp "${WORKDIR}/seobject.py" "${S}/semanage/seobject.py" || die "failed = to copy seobject.py" + cp "${WORKDIR}/semanage" "${S}/semanage/semanage" || die "failed to cop= y semanage" + cp "${WORKDIR}/chcat" "${S}/scripts/chcat" || die "failed to copy chcat= " + cp "${WORKDIR}/audit2allow" "${S}/audit2allow/audit2allow" || die "fail= ed to copy audit2allow" +} + +src_compile() { + local use_audit=3D"n"; + local use_pam=3D"n"; + local use_dbus=3D"n"; + local use_sesandbox=3D"n"; + + use audit && use_audit=3D"y"; + use pam && use_pam=3D"y"; + use dbus && use_dbus=3D"y"; + use sesandbox && use_sesandbox=3D"y"; + + python_copy_sources semanage sandbox + building() { + einfo "Compiling policycoreutils" + emake -C "${S}" AUDIT_LOG_PRIVS=3D"y" AUDITH=3D"${use_audit}" PAMH=3D"= ${use_pam}" INOTIFYH=3D"${use_dbus}" SESANDBOX=3D"${use_sesandbox}" CC=3D= "$(tc-getCC)" PYLIBVER=3D"python$(python_get_version)" || die + einfo "Compiling policycoreutils-extra " + emake -C "${S2}" AUDIT_LOG_PRIVS=3D"y" AUDITH=3D"${use_audit}" PAMH=3D= "${use_pam}" INOTIFYH=3D"${use_dbus}" SESANDBOX=3D"${use_sesandbox}" CC=3D= "$(tc-getCC)" PYLIBVER=3D"python$(python_get_version)" || die + } + python_execute_function -s --source-dir semanage building +} + +src_install() { + local use_audit=3D"n"; + local use_pam=3D"n"; + local use_dbus=3D"n"; + local use_sesandbox=3D"n"; + + use audit && use_audit=3D"y"; + use pam && use_pam=3D"y"; + use dbus && use_dbus=3D"y"; + use sesandbox && use_sesandbox=3D"y"; + + # Python scripts are present in many places. There are no extension mod= ules. + installation() { + einfo "Installing policycoreutils" + emake -C "${S}" DESTDIR=3D"${T}/images/${PYTHON_ABI}" AUDITH=3D"${use_= audit}" PAMH=3D"${use_pam}" INOTIFYH=3D"${use_dbus}" SESANDBOX=3D"${use_s= esandbox}" AUDIT_LOG_PRIV=3D"y" PYLIBVER=3D"python$(python_get_version)" = install || return 1 + + einfo "Installing policycoreutils-extra" + emake -C "${S2}" DESTDIR=3D"${T}/images/${PYTHON_ABI}" SHLIBDIR=3D"${D= }$(get_libdir)/rc" install || return 1 + } + python_execute_function installation + python_merge_intermediate_installation_images "${T}/images" + + # remove redhat-style init script + rm -fR "${D}/etc/rc.d" + + # compatibility symlinks + dosym /sbin/setfiles /usr/sbin/setfiles + dosym /$(get_libdir)/rc/runscript_selinux.so /$(get_libdir)/rcscripts/r= unscript_selinux.so + + # location for permissive definitions + dodir /var/lib/selinux + keepdir /var/lib/selinux +} + +pkg_postinst() { + python_mod_optimize seobject.py +} + +pkg_postrm() { + python_mod_cleanup seobject.py +} diff --git a/sys-libs/libselinux/ChangeLog b/sys-libs/libselinux/ChangeLo= g new file mode 100644 index 0000000..04c52be --- /dev/null +++ b/sys-libs/libselinux/ChangeLog @@ -0,0 +1,344 @@ +# ChangeLog for sys-libs/libselinux +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.76 = 2011/11/12 16:31:44 swift Exp $ + +*libselinux-2.1.9 (20 Feb 2012) + + 20 Feb 2012; +libselinux-2.1.9.ebuild, +metadata.xm= l: + Bump to 2.1.9 + + 12 Nov 2011; -libselinux-2.0.94.ebuild, + -libselinux-2.0.98.ebuild: + Remove deprecated ebuilds + + 23 Oct 2011; libselinux-2.1.0.ebuild: + Stabilization (tracker #384231) + + 12 Aug 2011; Anthony G. Basile + -libselinux-2.0.71.ebuild, -libselinux-2.0.85.ebuild, + -files/libselinux-2.0.85-headers.patch, -files/compat.py: + Removed deprecated versions + +*libselinux-2.1.0 (03 Aug 2011) + + 03 Aug 2011; Anthony G. Basile + +libselinux-2.1.0.ebuild: + Bump to 20110727 SELinux userspace release + +*libselinux-2.0.98 (15 Jul 2011) + + 15 Jul 2011; Anthony G. Basile + +libselinux-2.0.98.ebuild: + Bump to 2.0.98 - proxy for SwifT + + 28 May 2011; Anthony G. Basile + libselinux-2.0.94.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 + libselinux-2.0.94.ebuild: + Add "python" USE flag. + + 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis + libselinux-2.0.94.ebuild: + Set SUPPORT_PYTHON_ABIS (bug #353763). Respect AR and CC. + +*libselinux-2.0.94 (05 Feb 2011) + + 05 Feb 2011; Anthony G. Basile + +libselinux-2.0.94.ebuild: + New upstream release. + + 29 Sep 2010; Mike Frysinger libselinux-2.0.85.ebui= ld, + +files/libselinux-2.0.85-headers.patch: + Fix by Chris Richards for building with glibc-2.12 #338302. + + 16 Apr 2010; Arfrever Frehtes Taifersar Arahesis + libselinux-2.0.71.ebuild, libselinux-2.0.85.ebuild: + Delete calls to deprecated python_version(). + + 02 Aug 2009; Chris PeBenito + libselinux-2.0.71.ebuild, libselinux-2.0.85.ebuild: + Add python_need_rebuild. + +*libselinux-2.0.85 (02 Aug 2009) + + 02 Aug 2009; Chris PeBenito + +libselinux-2.0.85.ebuild: + New upstream release. + + 18 Jul 2009; Chris PeBenito + -libselinux-1.34.14.ebuild, libselinux-2.0.71.ebuild: + Mark stable. Remove old ebuilds. + +*libselinux-2.0.71 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito + +libselinux-2.0.71.ebuild: + Initial commit of 2.0 libselinux. + + 29 May 2008; Ali Polatel libselinux-1.34.14.ebuil= d: + python_mod_optimize is ROOT aware. Fixed python_mod_cleanup. + + 13 May 2008; Chris PeBenito + -libselinux-1.28-r1.ebuild, -libselinux-1.30.ebuild, + -libselinux-1.34.0.ebuild, -libselinux-1.34.13.ebuild, + libselinux-1.34.14.ebuild: + Mark 1.34.14 stable, clear old ebuilds. + + 11 May 2008; Chris PeBenito + libselinux-1.34.0.ebuild, libselinux-1.34.13.ebuild, + libselinux-1.34.14.ebuild: + Fix bug #221501. + +*libselinux-1.34.14 (29 Jan 2008) + + 29 Jan 2008; Chris PeBenito + +libselinux-1.34.14.ebuild: + New upstream bugfix release. + +*libselinux-1.34.13 (18 Oct 2007) + + 18 Oct 2007; Chris PeBenito + +libselinux-1.34.13.ebuild: + New upstream release. + + 04 Jun 2007; Chris PeBenito + libselinux-1.34.0.ebuild: + Mark stable. + + 16 Feb 2007; Stephen Bennett libselinux-1.34.0.ebuild= : + Add missing swig depend. Bug #167007 + +*libselinux-1.34.0 (15 Feb 2007) + + 15 Feb 2007; Chris PeBenito + +libselinux-1.34.0.ebuild: + New upstream release. + + 23 Oct 2006; Chris PeBenito + libselinux-1.30.29.ebuild: + Fix depend for glibc + + 09 Oct 2006; Chris PeBenito + libselinux-1.30.29.ebuild: + Stable to make repoman happy. + +*libselinux-1.30.29 (05 Oct 2006) + + 05 Oct 2006; Chris PeBenito + +libselinux-1.30.29.ebuild: + Add SVN snapshot. + + 31 Jul 2006; Chris PeBenito libselinux-1.30.ebui= ld: + Mark stable, long overdue. + + 07 Apr 2006; Chris PeBenito libselinux-1.30.ebui= ld: + Split python wrapper compile into a separate emake to ensure the main + library is built before trying to build the wrapper. Fixes bug #129074= . + + 22 Mar 2006; Chris PeBenito -libselinux-1.24.ebu= ild, + -libselinux-1.28.ebuild, libselinux-1.28-r1.ebuild: + Mark 1.28-r1 stable, clean out old ebuilds. + +*libselinux-1.30 (18 Mar 2006) + + 18 Mar 2006; Chris PeBenito +libselinux-1.30.ebu= ild: + New upstream release. + + 22 Feb 2006; Stephen Bennett libselinux-1.28.ebuild: + Alpha stable + +*libselinux-1.28-r1 (20 Feb 2006) + + 20 Feb 2006; Chris PeBenito +files/compat.py, + +libselinux-1.28-r1.ebuild: + Add python-selinux compatability aliases to swig wrapper. + + 19 Feb 2006; Joshua Kinard libselinux-1.28.ebuild: + Marked stable on mips. + + 09 Feb 2006; Chris PeBenito libselinux-1.28.ebui= ld: + Move python_version out of global scope. + + 29 Jan 2006; Chris PeBenito libselinux-1.28.ebui= ld: + Add python version handling to fix #120829, and add -fPIC to LDFLAGS t= o + hopefully fix #119271. + + 17 Jan 2006; Chris PeBenito libselinux-1.28.ebui= ld: + Mark stable, x86, amd64, ppc, sparc. + + 14 Jan 2006; Stephen Bennett libselinux-1.28.ebuild: + Added ~alpha + + 15 Dec 2005; Chris PeBenito libselinux-1.28.ebui= ld: + Tighten up versioning to try to prevent mismatch problems as seen in #= 112348. + +*libselinux-1.28 (09 Dec 2005) + + 09 Dec 2005; Chris PeBenito + -files/libselinux-1.22.diff, -libselinux-1.22-r1.ebuild, + +libselinux-1.28.ebuild: + New upstream release. + + 09 Sep 2005; Chris PeBenito libselinux-1.24.ebui= ld: + Mark stable. + +*libselinux-1.24 (25 Jun 2005) + + 25 Jun 2005; Chris PeBenito -libselinux-1.20.ebu= ild, + -libselinux-1.22.ebuild, +libselinux-1.24.ebuild: + New upstream release. + + 13 May 2005; Chris PeBenito + libselinux-1.22-r1.ebuild: + Mark stable. + + 10 May 2005; Stephen Bennett libselinux-1.22.ebuild: + mips stable + +*libselinux-1.22-r1 (08 May 2005) + + 08 May 2005; Chris PeBenito + +files/libselinux-1.22.diff, +libselinux-1.22-r1.ebuild: + A couple fixes, including one for bug #91921. + + 01 May 2005; Stephen Bennett libselinux-1.22.ebuild: + Mark ~mips. + + 01 May 2005; Chris PeBenito libselinux-1.22.ebui= ld: + Mark stable. + +*libselinux-1.22 (13 Mar 2005) + + 13 Mar 2005; Chris PeBenito +libselinux-1.22.ebu= ild: + New upstream release. + + 13 Feb 2005; Chris PeBenito libselinux-1.20.ebui= ld: + Mark stable. + +*libselinux-1.20 (07 Jan 2005) + + 07 Jan 2005; Chris PeBenito libselinux-1.18.ebui= ld, + +libselinux-1.20.ebuild: + New upstream release. Mark 1.18 stable. + + 03 Jan 2005; Chris PeBenito libselinux-1.16.ebui= ld, + libselinux-1.18.ebuild: + Switch to libc virtual for DEP since uclibc now has xattr support. + +*libselinux-1.18 (14 Nov 2004) + + 14 Nov 2004; Chris PeBenito + +files/selinuxconfig.c.diff, +libselinux-1.18.ebuild: + New upstream release. + +*libselinux-1.16 (07 Sep 2004) + + 07 Sep 2004; Chris PeBenito +libselinux-1.16.ebu= ild: + New upstream release. + +*libselinux-1.14 (02 Jul 2004) + + 02 Jul 2004; Chris PeBenito +libselinux-1.14.ebu= ild: + New upstream version. + + 11 Jun 2004; Chris PeBenito -libselinux-1.10.ebu= ild, + libselinux-1.12.ebuild: + Mark stable + +*libselinux-1.12 (14 May 2004) + + 14 May 2004; Chris PeBenito +libselinux-1.12.ebu= ild: + New upstream release. + +*libselinux-1.10 (17 Apr 2004) + + 17 Apr 2004; Chris PeBenito +libselinux-1.10.ebu= ild: + New upstream version. + + 08 Apr 2004; Chris PeBenito libselinux-1.8.ebuil= d: + Mark stable for 2004.1 + +*libselinux-1.8 (12 Mar 2004) + + 12 Mar 2004; Chris PeBenito libselinux-1.8.ebuil= d: + New upstream release. + +*libselinux-1.6 (24 Feb 2004) + + 24 Feb 2004; Chris PeBenito libselinux-1.6.ebuil= d: + New upstream release. + + 16 Dec 2003; Chris PeBenito libselinux-1.4.ebuil= d: + Mark stable. + +*libselinux-1.4 (06 Dec 2003) + + 06 Dec 2003; Chris PeBenito libselinux-1.4.ebuil= d: + New upstream version. + + 29 Oct 2003; Joshua Brindle libselinux-1.2-r2.ebui= ld: + added sparc + +*libselinux-1.2-r2 (20 Oct 2003) + + 20 Oct 2003; Chris PeBenito libselinux-1.2-r2.eb= uild, + files/libselinux-1.2-attr.diff: + Compile against sys-apps/attr only if linux-headers are older than 2.4= .20. + +*libselinux-1.2-r1 (07 Oct 2003) + + 07 Oct 2003; Chris PeBenito libselinux-1.2-r1.eb= uild, + files/libselinux-1.2-gentoo.diff: + Move libraries to /lib, to fix problems with having a separate /usr du= ring + booting. + +*libselinux-1.2 (03 Oct 2003) + + 03 Oct 2003; Chris PeBenito libselinux-1.2.ebuil= d, + files/libselinux-1.2-const.diff: + New upstream version. + + 22 Sep 2003; metadata.xml: + Fix metadata.xml + + 21 Aug 2003; Chris PeBenito libselinux-1.1-r1.eb= uild: + Add a dep for portage. The newer versions have labelling support for t= he old + API. + + 18 Aug 2003; Chris PeBenito libselinux-1.1-r1.eb= uild, + metadata.xml: + Fix license, this is public-domain, not GPL-2. Use package description= in RPM + spec file as metadata.xml long description. + + 15 Aug 2003; Chris PeBenito libselinux-1.0.ebuil= d, + libselinux-1.1-r1.ebuild, files/libselinux-1.0-gentoo.diff: + Mark stable + +*libselinux-1.1-r1 (14 Aug 2003) + + 14 Aug 2003; Chris PeBenito libselinux-1.1-r1.eb= uild, + libselinux-1.1.ebuild, files/libselinux-1.1-linkfix.diff: + Add fix for a random linking problem that causes libselinux to work + incorrectly. + +*libselinux-1.1 (14 Aug 2003) + + 14 Aug 2003; Chris PeBenito libselinux-1.1.ebuil= d, + files/libselinux-1.1-gentoo.diff: + New upstream version + + 04 Aug 2003; Chris PeBenito + files/libselinux-1.0-gentoo.diff: + Add on a NSA nullbyte patch to the gentoo patch + +*libselinux-1.0 (03 Aug 2003) + + 03 Aug 2003; Chris PeBenito libselinux-1.0.ebuil= d, + metadata.xml, files/libselinux-1.0-gentoo.diff: + Initial commit + diff --git a/sys-libs/libselinux/libselinux-2.1.9.ebuild b/sys-libs/libse= linux/libselinux-2.1.9.ebuild new file mode 100644 index 0000000..04c7b13 --- /dev/null +++ b/sys-libs/libselinux/libselinux-2.1.9.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.1.0.= ebuild,v 1.2 2011/10/23 12:39:16 swift 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.1.4" + +DESCRIPTION=3D"SELinux userland library" +HOMEPAGE=3D"http://userspace.selinuxproject.org" +SRC_URI=3D"http://userspace.selinuxproject.org/releases/20120216/${P}.ta= r.gz" + +LICENSE=3D"public-domain" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"python ruby" + +RDEPEND=3D">=3Dsys-libs/libsepol-${SEPOL_VER} + ruby? ( dev-lang/ruby )" +DEPEND=3D"${RDEPEND} + ruby? ( dev-lang/swig )" + +pkg_setup() { + if use python; then + python_pkg_setup + fi +} + +src_prepare() { + # fix up paths for multilib + sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \ + || die "Fix for multilib LIBDIR failed." + sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" "${S}/src/Makefile" \ + || die "Fix for multilib SHLIBDIR failed." +} + +src_compile() { + emake AR=3D"$(tc-getAR)" CC=3D"$(tc-getCC)" LDFLAGS=3D"-fPIC ${LDFLAGS}= " all || die + + if use python; then + python_copy_sources src + building() { + emake CC=3D"$(tc-getCC)" PYLIBVER=3D"python$(python_get_version)" PYP= REFIX=3D"python-$(python_get_version)" LDFLAGS=3D"-fPIC ${LDFLAGS}" pywra= p + } + python_execute_function -s --source-dir src building + fi + + if use ruby; then + emake CC=3D"$(tc-getCC)" rubywrap || die + fi +} + +src_install() { + emake DESTDIR=3D"${D}" install || die + + if use python; then + installation() { + emake DESTDIR=3D"${D}" PYLIBVER=3D"python$(python_get_version)" PYPRE= FIX=3D"python-$(python_get_version)" install-pywrap + } + python_execute_function -s --source-dir src installation + fi + + if use ruby; then + emake DESTDIR=3D"${D}" install-rubywrap || die + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize selinux + fi +} + +pkg_postrm() { + if use python; then + python_mod_cleanup selinux + fi +} diff --git a/sys-libs/libselinux/metadata.xml b/sys-libs/libselinux/metad= ata.xml new file mode 100644 index 0000000..0c7f186 --- /dev/null +++ b/sys-libs/libselinux/metadata.xml @@ -0,0 +1,10 @@ + + + + selinux + + Libselinux provides an API for SELinux applications to get and set + process and file security contexts and to obtain security policy + decisions. Required for any applications that use the SELinux API. + + diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/Change= Log new file mode 100644 index 0000000..151ee6b --- /dev/null +++ b/sys-libs/libsemanage/ChangeLog @@ -0,0 +1,198 @@ +# 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.44= 2011/11/12 16:58:49 swift Exp $ + +*libsemanage-2.1.6 (20 Feb 2012) + + 20 Feb 2012; +libsemanage-2.1.6.ebuild, +metadata.x= ml: + Bump to 2.1.6 + + 12 Nov 2011; -libsemanage-2.0.45.ebuild, + -libsemanage-2.0.46.ebuild: + Remove deprecated ebuilds + + 23 Oct 2011; libsemanage-2.1.0.ebuild: + Stabilization (tracker #384231) + + 17 Sep 2011; libsemanage-2.0.45.ebuild, + libsemanage-2.0.46.ebuild: + Adding dependencies on bison and flex as per bug #382583 + + 17 Sep 2011; libsemanage-2.1.0.ebuild: + Add dependency for flex and bison + + 12 Aug 2011; Anthony G. Basile ChangeLog: + Fix failed gpg signing of Manifest + + 12 Aug 2011; Anthony G. Basile + -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 + +libsemanage-2.1.0.ebuild: + Bump to 20110727 SELinux userspace release + +*libsemanage-2.0.46 (15 Jul 2011) + + 15 Jul 2011; Anthony G. Basile + +libsemanage-2.0.46.ebuild: + Bump to 2.0.46 - proxy for SwifT + + 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.1.6.ebuild b/sys-libs/lib= semanage/libsemanage-2.1.6.ebuild new file mode 100644 index 0000000..fc19aac --- /dev/null +++ b/sys-libs/libsemanage/libsemanage-2.1.6.ebuild @@ -0,0 +1,129 @@ +# 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.= 0.ebuild,v 1.4 2011/10/23 12:39:35 swift Exp $ + +EAPI=3D"3" +# Support for 4 depends on python.eclass +PYTHON_DEPEND=3D"python? *" +SUPPORT_PYTHON_ABIS=3D"1" +RESTRICT_PYTHON_ABIS=3D"*-jython" + +inherit multilib python toolchain-funcs eutils + +SEPOL_VER=3D"2.1.4" +SELNX_VER=3D"2.1.9" + +DESCRIPTION=3D"SELinux kernel and policy management library" +HOMEPAGE=3D"http://userspace.selinuxproject.org" +SRC_URI=3D"http://userspace.selinuxproject.org/releases/20120216/${P}.ta= r.gz + http://dev.gentoo.org/~swift/patches/libsemanage/libsemanage-2.1.6-nol= evel.patch.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} + sys-devel/bison + sys-devel/flex + ruby? ( dev-lang/swig ) + python? ( 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" + + # Apply patch to support non-leveled types (like strict or targeted) + epatch "${DISTDIR}/libsemanage-2.1.6-nolevel.patch.gz" +} + +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)" PYP= REFIX=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)" \ + PYPREFIX=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 + diff --git a/sys-libs/libsepol/ChangeLog b/sys-libs/libsepol/ChangeLog new file mode 100644 index 0000000..ebc025b --- /dev/null +++ b/sys-libs/libsepol/ChangeLog @@ -0,0 +1,204 @@ +# ChangeLog for sys-libs/libsepol +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/ChangeLog,v 1.45 20= 11/11/12 18:11:13 swift Exp $ + +*libsepol-2.1.4 (20 Feb 2012) + + 20 Feb 2012; +libsepol-2.1.4.ebuild, +metadata.xml: + Bump to 2.1.4 + + 12 Nov 2011; -libsepol-2.0.41.ebuild, + -libsepol-2.0.42.ebuild: + removing deprecated ebuilds + + 23 Oct 2011; libsepol-2.1.0.ebuild: + Stabilization (tracker #384231) + + 12 Aug 2011; Anthony G. Basile -libsepol-2.0.32.= ebuild, + -files/libsepol-2.0.32-expand_rule.diff, -libsepol-2.0.37.ebuild: + Removed deprecated versions + +*libsepol-2.1.0 (03 Aug 2011) + + 03 Aug 2011; Anthony G. Basile +libsepol-2.1.0.e= build: + Bump to 20110727 SELinux userspace release + +*libsepol-2.0.42 (15 Jul 2011) + + 15 Jul 2011; Anthony G. Basile +libsepol-2.0.42.= ebuild: + Bump to 2.0.42 - proxy for SwifT + + 28 May 2011; Anthony G. Basile libsepol-2.0.32.e= build, + libsepol-2.0.37.ebuild: + Make RDEPEND explicit + + 28 May 2011; Anthony G. Basile libsepol-2.0.41.e= build: + Stable amd64 x86 + + 13 Feb 2011; Anthony G. Basile metadata.xml: + Updated metadata.xml to reflect new selinux herd. + + 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis + libsepol-2.0.41.ebuild: + Respect AR and CC. + +*libsepol-2.0.41 (05 Feb 2011) + + 05 Feb 2011; Anthony G. Basile + +libsepol-2.0.41.ebuild: + New upstream release. + + 23 Sep 2009; Patrick Lauer libsepol-2.0.32.ebuild= , + libsepol-2.0.37.ebuild: + Remove virtual/libc + +*libsepol-2.0.37 (02 Aug 2009) + + 02 Aug 2009; Chris PeBenito +libsepol-2.0.37.ebu= ild: + New upstream release. + + 18 Jul 2009; Chris PeBenito + -files/libsepol-1.12.2.diff, -libsepol-1.16.11.ebuild, + libsepol-2.0.32.ebuild: + Mark stable. Remove old ebuilds. + +*libsepol-2.0.32 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito + +files/libsepol-2.0.32-expand_rule.diff, +libsepol-2.0.32.ebuild: + Initial commit of 2.0 libsepol. + + 10 Sep 2008; Chris PeBenito libsepol-1.16.11.ebu= ild: + Tests cannot be run in the ebuild, they are supposed to be ran on the = full + SELinux userland repo. + + 13 May 2008; Chris PeBenito -libsepol-1.10.ebuil= d, + -libsepol-1.12-r1.ebuild, -libsepol-1.16.3.ebuild, + -libsepol-1.16.6.ebuild, libsepol-1.16.11.ebuild: + Mark 1.16.11 stable, clear old ebuilds. + +*libsepol-1.16.11 (07 Feb 2008) + + 07 Feb 2008; Chris PeBenito + -libsepol-1.16.10.ebuild, +libsepol-1.16.11.ebuild: + sys-libs/libsepol: upstream bugfix release. + +*libsepol-1.16.10 (29 Jan 2008) + + 29 Jan 2008; Chris PeBenito + +libsepol-1.16.10.ebuild: + New upstream bugfix release. + +*libsepol-1.16.6 (18 Oct 2007) + + 18 Oct 2007; Chris PeBenito +libsepol-1.16.6.ebu= ild: + New upstream release. + + 04 Jun 2007; Chris PeBenito libsepol-1.16.3.ebui= ld: + Mark stable. + +*libsepol-1.16.3 (10 May 2007) + + 10 May 2007; Chris PeBenito +libsepol-1.16.3.ebu= ild: + New stable bugfix release. + + 17 Apr 2007; Chris PeBenito libsepol-1.16.2.ebui= ld: + This was a critical bug fix for SELinux policy linking, mark stable. + +*libsepol-1.16.2 (04 Apr 2007) + + 04 Apr 2007; Chris PeBenito +libsepol-1.16.2.ebu= ild: + Add bugfix release to fix boolean mapping problem. + + 25 Mar 2007; Chris PeBenito libsepol-1.16.0.ebui= ld: + Mark stable. + +*libsepol-1.16.0 (15 Feb 2007) + + 15 Feb 2007; Chris PeBenito +libsepol-1.16.0.ebu= ild: + New upstream release. + + 09 Oct 2006; Chris PeBenito libsepol-1.12.28.ebu= ild: + Stable to make repoman happy. + +*libsepol-1.12.28 (05 Oct 2006) + + 05 Oct 2006; Chris PeBenito + +libsepol-1.12.28.ebuild: + Add SVN snapshot. + + 31 Jul 2006; Chris PeBenito libsepol-1.12-r1.ebu= ild: + Mark stable, long overdue. + +*libsepol-1.12-r1 (27 Mar 2006) + + 27 Mar 2006; Chris PeBenito + +files/libsepol-1.12.2.diff, -libsepol-1.12.ebuild, + +libsepol-1.12-r1.ebuild: + Uptream bugfix patch, including a fix for big endian machines. Users o= f big + endian systems should remerge checkpolicy as it statically links again= st + libsepol. + +*libsepol-1.12 (18 Mar 2006) + + 18 Mar 2006; Chris PeBenito +libsepol-1.12.ebuil= d: + New upstream release. + + 22 Feb 2006; Stephen Bennett libsepol-1.10.ebuild: + Alpha stable + + 19 Feb 2006; Joshua Kinard libsepol-1.10.ebuild: + Marked stable on mips. + + 17 Jan 2006; Chris PeBenito libsepol-1.10.ebuild= : + Mark stable, x86, amd64, ppc, sparc. + + 14 Jan 2006; Stephen Bennett libsepol-1.10.ebuild: + Added ~alpha + +*libsepol-1.10 (09 Dec 2005) + + 09 Dec 2005; Chris PeBenito -libsepol-1.4.ebuild= , + +libsepol-1.10.ebuild: + New upstream release. + + 09 Sep 2005; Chris PeBenito libsepol-1.6.ebuild: + Mark stable. + +*libsepol-1.6 (25 Jun 2005) + + 25 Jun 2005; Chris PeBenito +libsepol-1.6.ebuild= : + New upstream release. + + 10 May 2005; Stephen Bennett libsepol-1.4.ebuild: + mips stable + + 01 May 2005; Stephen Bennett libsepol-1.4.ebuild: + Added ~mips. + + 01 May 2005; Chris PeBenito libsepol-1.4.ebuild: + Mark stable. + +*libsepol-1.4 (13 Mar 2005) + + 13 Mar 2005; Chris PeBenito +libsepol-1.4.ebuild= : + New upstream release. + + 07 Jan 2005; Chris PeBenito libsepol-1.0.ebuild, + libsepol-1.2.ebuild: + Mark 1.2 stable. Change glibc dep to libc virtual. + + 15 Nov 2004; Chris PeBenito libsepol-1.2.ebuild: + Fix non mls compile. + +*libsepol-1.2 (14 Nov 2004) + + 14 Nov 2004; Chris PeBenito +libsepol-1.2.ebuild= : + New upstream release. + +*libsepol-1.0 (07 Sep 2004) + + 07 Sep 2004; Chris PeBenito +metadata.xml, + +libsepol-1.0.ebuild: + Initial commit. + diff --git a/sys-libs/libsepol/libsepol-2.1.4.ebuild b/sys-libs/libsepol/= libsepol-2.1.4.ebuild new file mode 100644 index 0000000..3762eef --- /dev/null +++ b/sys-libs/libsepol/libsepol-2.1.4.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.1.0.ebui= ld,v 1.2 2011/10/23 12:39:55 swift Exp $ + +EAPI=3D"2" + +inherit multilib toolchain-funcs + +DESCRIPTION=3D"SELinux binary policy representation library" +HOMEPAGE=3D"http://userspace.selinuxproject.org" +SRC_URI=3D"http://userspace.selinuxproject.org/releases/20120216/${P}.ta= r.gz" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"" + +DEPEND=3D"" +RDEPEND=3D"" + +# tests are not meant to be run outside of the +# full SELinux userland repo +RESTRICT=3D"test" + +src_prepare() { + # fix up paths for multilib + sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" src/Makefile \ + || die "Fix for multilib LIBDIR failed." + sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" src/Makefile \ + || die "Fix for multilib SHLIBDIR failed." +} + +src_compile() { + emake AR=3D"$(tc-getAR)" CC=3D"$(tc-getCC)" || die +} + +src_install() { + emake DESTDIR=3D"${D}" install || die +} diff --git a/sys-libs/libsepol/metadata.xml b/sys-libs/libsepol/metadata.= xml new file mode 100644 index 0000000..b13f947 --- /dev/null +++ b/sys-libs/libsepol/metadata.xml @@ -0,0 +1,6 @@ + + + + selinux + SELinux library for manipulating binary security polic= ies +