summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-11-21 16:48:36 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-11-21 16:48:36 +0200
commit2ef47d494f82c5e68de1edc169d3ad66a6b3831b (patch)
tree918a779f23ab2cce2ccfbc128ae10a57f7230922
parent994a404eda6e31d99762e74700f6a4f950d47734 (diff)
Added libsepol for safe keeping
-rw-r--r--sys-libs/libsepol/ChangeLog308
-rw-r--r--sys-libs/libsepol/Manifest4
-rw-r--r--sys-libs/libsepol/libsepol-2.2.ebuild46
-rw-r--r--sys-libs/libsepol/libsepol-2.3.ebuild49
-rw-r--r--sys-libs/libsepol/libsepol-2.4_rc2.ebuild43
-rw-r--r--sys-libs/libsepol/libsepol-2.4_rc5.ebuild43
-rw-r--r--sys-libs/libsepol/metadata.xml6
7 files changed, 499 insertions, 0 deletions
diff --git a/sys-libs/libsepol/ChangeLog b/sys-libs/libsepol/ChangeLog
new file mode 100644
index 00000000..3a022760
--- /dev/null
+++ b/sys-libs/libsepol/ChangeLog
@@ -0,0 +1,308 @@
+# ChangeLog for sys-libs/libsepol
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/ChangeLog,v 1.70 2014/10/29 17:32:26 swift Exp $
+
+*libsepol-2.4_rc5 (29 Oct 2014)
+
+ 29 Oct 2014; Sven Vermeulen <swift@gentoo.org> +libsepol-2.4_rc5.ebuild,
+ -libsepol-2.4_rc4.ebuild:
+ Bump to 2.4_rc5
+
+*libsepol-2.4_rc4 (07 Oct 2014)
+
+ 07 Oct 2014; Sven Vermeulen <swift@gentoo.org> +libsepol-2.4_rc4.ebuild:
+ Bump to 2.4-rc4
+
+*libsepol-2.4_rc2 (21 Sep 2014)
+
+ 21 Sep 2014; Sven Vermeulen <swift@gentoo.org> +libsepol-2.4_rc2.ebuild,
+ libsepol-2.3.ebuild:
+ Noved to github; also add in masked 2.4 series
+
+ 05 Aug 2014; Sven Vermeulen <swift@gentoo.org> -libsepol-2.1.9-r3.ebuild:
+ Remove old ebuilds
+
+ 30 Jul 2014; Sven Vermeulen <swift@gentoo.org> libsepol-2.3.ebuild:
+ Fix bug #514194 - Stabilization of SELinux userspace 2.3
+
+ 10 May 2014; Sven Vermeulen <swift@gentoo.org> -libsepol-2.1.9-r1.ebuild,
+ -libsepol-2.1.9-r2.ebuild, -libsepol-2.3_rc1.ebuild,
+ -files/libsepol-2.1.4-fix_role_fix_callback.patch:
+ Spring cleanup
+
+*libsepol-2.3 (09 May 2014)
+
+ 09 May 2014; Sven Vermeulen <swift@gentoo.org> +libsepol-2.3.ebuild:
+ Bump for 2.3 release
+
+*libsepol-2.3_rc1 (28 Apr 2014)
+
+ 28 Apr 2014; Sven Vermeulen <swift@gentoo.org> +libsepol-2.3_rc1.ebuild:
+ 2.3-rc1 release
+
+ 20 Jan 2014; Sven Vermeulen <swift@gentoo.org> -libsepol-2.1.8.ebuild,
+ -libsepol-2.1.8-r1.ebuild, libsepol-2.2.ebuild:
+ Stabilize for x86 and amd64
+
+ 23 Dec 2013; Sven Vermeulen <swift@gentoo.org> -libsepol-2.1.8.ebuild,
+ -libsepol-2.1.8-r1.ebuild:
+ Cleanup old versions
+
+*libsepol-2.2 (04 Nov 2013)
+
+ 04 Nov 2013; Sven Vermeulen <swift@gentoo.org> +libsepol-2.2.ebuild:
+ New libsepol release
+
+ 04 Nov 2013; Sven Vermeulen <swift@gentoo.org> libsepol-2.1.9-r3.ebuild:
+ Stabilize
+
+*libsepol-2.1.9-r3 (23 Aug 2013)
+
+ 23 Aug 2013; Sven Vermeulen <swift@gentoo.org> +libsepol-2.1.9-r3.ebuild:
+ Fix bug #481782 - Put right library paths in libsepol.pc file to get proper
+ pkg-config --libs output
+
+*libsepol-2.1.9-r2 (15 Aug 2013)
+
+ 15 Aug 2013; Sven Vermeulen <swift@gentoo.org> +libsepol-2.1.9-r2.ebuild:
+ Improving multilib for libsepol
+
+ 07 Jul 2013; Sven Vermeulen <swift@gentoo.org> -libsepol-2.1.4-r1.ebuild:
+ Summar cleaning
+
+ 16 Jun 2013; Sven Vermeulen <swift@gentoo.org> libsepol-2.1.9-r1.ebuild:
+ Stabilization
+
+*libsepol-2.1.9-r1 (25 Apr 2013)
+
+ 25 Apr 2013; Sven Vermeulen <swift@gentoo.org> +libsepol-2.1.9-r1.ebuild:
+ New upstream release
+
+ 30 Dec 2012; Sven Vermeulen libsepol-2.1.8-r1.ebuild:
+ Stabilize
+
+*libsepol-2.1.8-r1 (09 Dec 2012)
+
+ 09 Dec 2012; <swift@gentoo.org> +libsepol-2.1.8-r1.ebuild:
+ Adding proper RANLIB support, see bug #444374
+
+ 17 Nov 2012; <swift@gentoo.org> libsepol-2.1.8.ebuild:
+ Stabilization
+
+ 13 Oct 2012; <swift@gentoo.org> libsepol-2.1.8.ebuild:
+ Supporting user-provided patches using epatch_user
+
+*libsepol-2.1.8 (09 Oct 2012)
+
+ 09 Oct 2012; <swift@gentoo.org> +libsepol-2.1.8.ebuild:
+ Introducing upstream release
+
+ 03 Oct 2012; Mike Frysinger <vapier@gentoo.org> libsepol-2.1.4-r1.ebuild:
+ Update to EAPI=4.
+
+ 13 May 2012; <swift@gentoo.org> -libsepol-2.1.0.ebuild:
+ Removing obsoleted ebuild
+
+ 29 Apr 2012; <swift@gentoo.org> libsepol-2.1.4-r1.ebuild:
+ Stabilization
+
+*libsepol-2.1.4-r1 (31 Mar 2012)
+
+ 31 Mar 2012; <swift@gentoo.org> +libsepol-2.1.4-r1.ebuild,
+ +files/libsepol-2.1.4-fix_role_fix_callback.patch:
+ Bump to version 2.1.4
+
+ 12 Nov 2011; <swift@gentoo.org> -libsepol-2.0.41.ebuild,
+ -libsepol-2.0.42.ebuild:
+ removing deprecated ebuilds
+
+ 23 Oct 2011; <swift@gentoo.org> libsepol-2.1.0.ebuild:
+ Stabilization (tracker #384231)
+
+ 12 Aug 2011; Anthony G. Basile <blueness@gentoo.org> -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 <blueness@gentoo.org> +libsepol-2.1.0.ebuild:
+ Bump to 20110727 SELinux userspace release
+
+*libsepol-2.0.42 (15 Jul 2011)
+
+ 15 Jul 2011; Anthony G. Basile <blueness@gentoo.org> +libsepol-2.0.42.ebuild:
+ Bump to 2.0.42 - proxy for SwifT
+
+ 28 May 2011; Anthony G. Basile <blueness@gentoo.org> libsepol-2.0.32.ebuild,
+ libsepol-2.0.37.ebuild:
+ Make RDEPEND explicit
+
+ 28 May 2011; Anthony G. Basile <blueness@gentoo.org> libsepol-2.0.41.ebuild:
+ Stable amd64 x86
+
+ 13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+ Updated metadata.xml to reflect new selinux herd.
+
+ 05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ libsepol-2.0.41.ebuild:
+ Respect AR and CC.
+
+*libsepol-2.0.41 (05 Feb 2011)
+
+ 05 Feb 2011; Anthony G. Basile <blueness@gentoo.org>
+ +libsepol-2.0.41.ebuild:
+ New upstream release.
+
+ 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> 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 <pebenito@gentoo.org> +libsepol-2.0.37.ebuild:
+ New upstream release.
+
+ 18 Jul 2009; Chris PeBenito <pebenito@gentoo.org>
+ -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 <pebenito@gentoo.org>
+ +files/libsepol-2.0.32-expand_rule.diff, +libsepol-2.0.32.ebuild:
+ Initial commit of 2.0 libsepol.
+
+ 10 Sep 2008; Chris PeBenito <pebenito@gentoo.org> libsepol-1.16.11.ebuild:
+ Tests cannot be run in the ebuild, they are supposed to be ran on the full
+ SELinux userland repo.
+
+ 13 May 2008; Chris PeBenito <pebenito@gentoo.org> -libsepol-1.10.ebuild,
+ -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 <pebenito@gentoo.org>
+ -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 <pebenito@gentoo.org>
+ +libsepol-1.16.10.ebuild:
+ New upstream bugfix release.
+
+*libsepol-1.16.6 (18 Oct 2007)
+
+ 18 Oct 2007; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.16.6.ebuild:
+ New upstream release.
+
+ 04 Jun 2007; Chris PeBenito <pebenito@gentoo.org> libsepol-1.16.3.ebuild:
+ Mark stable.
+
+*libsepol-1.16.3 (10 May 2007)
+
+ 10 May 2007; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.16.3.ebuild:
+ New stable bugfix release.
+
+ 17 Apr 2007; Chris PeBenito <pebenito@gentoo.org> libsepol-1.16.2.ebuild:
+ This was a critical bug fix for SELinux policy linking, mark stable.
+
+*libsepol-1.16.2 (04 Apr 2007)
+
+ 04 Apr 2007; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.16.2.ebuild:
+ Add bugfix release to fix boolean mapping problem.
+
+ 25 Mar 2007; Chris PeBenito <pebenito@gentoo.org> libsepol-1.16.0.ebuild:
+ Mark stable.
+
+*libsepol-1.16.0 (15 Feb 2007)
+
+ 15 Feb 2007; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.16.0.ebuild:
+ New upstream release.
+
+ 09 Oct 2006; Chris PeBenito <pebenito@gentoo.org> libsepol-1.12.28.ebuild:
+ Stable to make repoman happy.
+
+*libsepol-1.12.28 (05 Oct 2006)
+
+ 05 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+ +libsepol-1.12.28.ebuild:
+ Add SVN snapshot.
+
+ 31 Jul 2006; Chris PeBenito <pebenito@gentoo.org> libsepol-1.12-r1.ebuild:
+ Mark stable, long overdue.
+
+*libsepol-1.12-r1 (27 Mar 2006)
+
+ 27 Mar 2006; Chris PeBenito <pebenito@gentoo.org>
+ +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 of big
+ endian systems should remerge checkpolicy as it statically links against
+ libsepol.
+
+*libsepol-1.12 (18 Mar 2006)
+
+ 18 Mar 2006; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.12.ebuild:
+ New upstream release.
+
+ 22 Feb 2006; Stephen Bennett <spb@gentoo.org> libsepol-1.10.ebuild:
+ Alpha stable
+
+ 19 Feb 2006; Joshua Kinard <kumba@gentoo.org> libsepol-1.10.ebuild:
+ Marked stable on mips.
+
+ 17 Jan 2006; Chris PeBenito <pebenito@gentoo.org> libsepol-1.10.ebuild:
+ Mark stable, x86, amd64, ppc, sparc.
+
+ 14 Jan 2006; Stephen Bennett <spb@gentoo.org> libsepol-1.10.ebuild:
+ Added ~alpha
+
+*libsepol-1.10 (09 Dec 2005)
+
+ 09 Dec 2005; Chris PeBenito <pebenito@gentoo.org> -libsepol-1.4.ebuild,
+ +libsepol-1.10.ebuild:
+ New upstream release.
+
+ 09 Sep 2005; Chris PeBenito <pebenito@gentoo.org> libsepol-1.6.ebuild:
+ Mark stable.
+
+*libsepol-1.6 (25 Jun 2005)
+
+ 25 Jun 2005; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.6.ebuild:
+ New upstream release.
+
+ 10 May 2005; Stephen Bennett <spb@gentoo.org> libsepol-1.4.ebuild:
+ mips stable
+
+ 01 May 2005; Stephen Bennett <spb@gentoo.org> libsepol-1.4.ebuild:
+ Added ~mips.
+
+ 01 May 2005; Chris PeBenito <pebenito@gentoo.org> libsepol-1.4.ebuild:
+ Mark stable.
+
+*libsepol-1.4 (13 Mar 2005)
+
+ 13 Mar 2005; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.4.ebuild:
+ New upstream release.
+
+ 07 Jan 2005; Chris PeBenito <pebenito@gentoo.org> libsepol-1.0.ebuild,
+ libsepol-1.2.ebuild:
+ Mark 1.2 stable. Change glibc dep to libc virtual.
+
+ 15 Nov 2004; Chris PeBenito <pebenito@gentoo.org> libsepol-1.2.ebuild:
+ Fix non mls compile.
+
+*libsepol-1.2 (14 Nov 2004)
+
+ 14 Nov 2004; Chris PeBenito <pebenito@gentoo.org> +libsepol-1.2.ebuild:
+ New upstream release.
+
+*libsepol-1.0 (07 Sep 2004)
+
+ 07 Sep 2004; Chris PeBenito <pebenito@gentoo.org> +metadata.xml,
+ +libsepol-1.0.ebuild:
+ Initial commit.
diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest
new file mode 100644
index 00000000..453a484e
--- /dev/null
+++ b/sys-libs/libsepol/Manifest
@@ -0,0 +1,4 @@
+DIST libsepol-2.2.tar.gz 209622 SHA256 77a4b27006295805bdbd7f240038cb32a49be1d60847d413899501702933fc0f SHA512 96e489eb29f5256fbcb1a522d3738e0c5f05fff55041989c7c26331987abc71d80ed8fdbe228aadb60248869552c5d62fa5721b6218fb093ad027bfb44fac772 WHIRLPOOL 4d1eeaa0e1964461b0b28de9e3d19e38bb28e386413280c8ef45919906c25abaf575a3ecd0f40dce0de82800d34b5e1c3d5060f1e93d0270e5fe3c3105964305
+DIST libsepol-2.3.tar.gz 209570 SHA256 cc8d8642c3b7b95d6928d65dcbca2ab0627abc1c05166637851e63c1a6eae68f SHA512 5155645642f7f09c7e1d17736d7ce1654c973d1feb9401ee67aad0a96f9bd561105b4ab1f564c60362821985023ac523d20ed40da0e5a52973f7984217ad0d03 WHIRLPOOL 15b19d021c4a52cfdae118a7a1ddd7057722286553a0e1dccfe5d92f0b8c5b1291388b8bb8d37b8f5e51fd162f57708746ccde67d0d9ae035506839cf9ba3bc0
+DIST libsepol-2.4-rc2.tar.gz 569842 SHA256 43303df588d8531d686e76724b597d0d02b7dcd10205201424ed6a3fa0da8632 SHA512 cd22ac9aff7d3bc3d4d462955eb5994f112cf9436e35ceb6f06057cfb1f45d62355f20d33a27409d28d2a4fc08ce5eea1b432f4d4df50b43b4d7388bd61cc889 WHIRLPOOL 5e7ed7c6c2c5222532c60c4dde516e82d06c97e3ed3b3907b9ab4d6c9c55629ffbad4a69e3204c41876c4279e593a157f225bd70e4ebca66eb44ddf07bc484a6
+DIST libsepol-2.4-rc5.tar.gz 570069 SHA256 19e52e92de29b26efeb8c029586d110ba77c1ddf03c2f146a89edb658174ff87 SHA512 af02f0ead43fc4b2d76aaf6b268ff03da42b4510ba74e0f2dce2321e686ed5304f4739d3e8293cb0b8cccd99780cd96747f29a912c9769456513b76732766577 WHIRLPOOL bacf9fad7e53b529a799dcfa9b22bad1963c25bbd0f930ea85cc6a62dd3962da962565854253ba642e771dde476757abc0e517844167f66203759fdbcbededc4
diff --git a/sys-libs/libsepol/libsepol-2.2.ebuild b/sys-libs/libsepol/libsepol-2.2.ebuild
new file mode 100644
index 00000000..64493087
--- /dev/null
+++ b/sys-libs/libsepol/libsepol-2.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.2.ebuild,v 1.2 2014/01/20 20:02:17 swift Exp $
+
+EAPI="4"
+
+inherit multilib toolchain-funcs eutils multilib-minimal
+
+DESCRIPTION="SELinux binary policy representation library"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz"
+# http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}-r1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="test"
+
+src_prepare() {
+# EPATCH_MULTI_MSG="Applying libsepol patches ... " \
+# EPATCH_SUFFIX="patch" \
+# EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
+# EPATCH_FORCE="yes" \
+# epatch
+
+ epatch_user
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ tc-export RANLIB;
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+multilib_src_install() {
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake DESTDIR="${D}" install
+}
diff --git a/sys-libs/libsepol/libsepol-2.3.ebuild b/sys-libs/libsepol/libsepol-2.3.ebuild
new file mode 100644
index 00000000..a6de99a9
--- /dev/null
+++ b/sys-libs/libsepol/libsepol-2.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.3.ebuild,v 1.3 2014/09/21 10:21:23 swift Exp $
+
+EAPI="4"
+
+inherit multilib toolchain-funcs eutils multilib-minimal
+
+MY_P="${P//_/-}"
+
+DESCRIPTION="SELinux binary policy representation library"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140506/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="test"
+
+src_prepare() {
+# EPATCH_MULTI_MSG="Applying libsepol patches ... " \
+# EPATCH_SUFFIX="patch" \
+# EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
+# EPATCH_FORCE="yes" \
+# epatch
+
+ epatch_user
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ tc-export RANLIB;
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+multilib_src_install() {
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake DESTDIR="${D}" install
+}
diff --git a/sys-libs/libsepol/libsepol-2.4_rc2.ebuild b/sys-libs/libsepol/libsepol-2.4_rc2.ebuild
new file mode 100644
index 00000000..e5b5237e
--- /dev/null
+++ b/sys-libs/libsepol/libsepol-2.4_rc2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.4_rc2.ebuild,v 1.1 2014/09/21 10:21:23 swift Exp $
+
+EAPI="4"
+
+inherit multilib toolchain-funcs eutils multilib-minimal
+
+MY_P="${P//_/-}"
+
+DESCRIPTION="SELinux binary policy representation library"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
+SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="test"
+
+src_prepare() {
+ epatch_user
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ tc-export RANLIB;
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+multilib_src_install() {
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake DESTDIR="${D}" install
+}
diff --git a/sys-libs/libsepol/libsepol-2.4_rc5.ebuild b/sys-libs/libsepol/libsepol-2.4_rc5.ebuild
new file mode 100644
index 00000000..014f9043
--- /dev/null
+++ b/sys-libs/libsepol/libsepol-2.4_rc5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.4_rc5.ebuild,v 1.1 2014/10/29 17:32:26 swift Exp $
+
+EAPI="4"
+
+inherit multilib toolchain-funcs eutils multilib-minimal
+
+MY_P="${P//_/-}"
+
+DESCRIPTION="SELinux binary policy representation library"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
+SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="test"
+
+src_prepare() {
+ epatch_user
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ tc-export RANLIB;
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+multilib_src_install() {
+ LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
+ emake DESTDIR="${D}" install
+}
diff --git a/sys-libs/libsepol/metadata.xml b/sys-libs/libsepol/metadata.xml
new file mode 100644
index 00000000..b13f947c
--- /dev/null
+++ b/sys-libs/libsepol/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 library for manipulating binary security policies</longdescription>
+</pkgmetadata>