commit:     744a3c7a3ebb44060db3e59a4a80b5b468230e2f
Author:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 13 05:19:59 2017 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Tue Jun 13 15:10:57 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=744a3c7a

sys-apps/semodule-utils: bump to 2.7_rc1

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 sys-apps/semodule-utils/Manifest                   |  1 +
 .../semodule-utils/semodule-utils-2.7_rc1.ebuild   | 53 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/sys-apps/semodule-utils/Manifest b/sys-apps/semodule-utils/Manifest
new file mode 100644
index 00000000000..c61922b62ef
--- /dev/null
+++ b/sys-apps/semodule-utils/Manifest
@@ -0,0 +1 @@
+DIST semodule-utils-2.7-rc1.tar.gz 15446 SHA256 
929b469e5c8ab806f0acd233352a52b257c5b59b3a75ae950d290138f2d2eef9 SHA512 
4bc0c05e36dc01d53c178c507461e64d8842aa808758370d3920d18bd26410cfceed75ec70c6441f1d40e5ca594e13c12c99bb592b5a018bae9fff47e1177e57
 WHIRLPOOL 
c1101fe791d48a8caea9be20ee15801696dba942084a1f9678e1a86e2f1079e69d19598121d63ebcc4b631ae92635da83499e9a571c99754db4ed432a155d0a6

diff --git a/sys-apps/semodule-utils/semodule-utils-2.7_rc1.ebuild 
b/sys-apps/semodule-utils/semodule-utils-2.7_rc1.ebuild
new file mode 100644
index 00000000000..34cb5744d69
--- /dev/null
+++ b/sys-apps/semodule-utils/semodule-utils-2.7_rc1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+MY_RELEASEDATE="20170609"
+SEPOL_VER="${PV}"
+SELNX_VER="${PV}"
+
+MY_P="${P//_/-}"
+IUSE=""
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
+       S="${WORKDIR}/${MY_P}/${PN}"
+else
+       
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz";
+       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+       S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="SELinux policy module utilities"
+HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=sys-libs/libsepol-${SEPOL_VER}:="
+
+RDEPEND="${DEPEND}
+       !<sys-apps/policycoreutils-2.7_pre"
+
+src_prepare() {
+       default
+
+       sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
+}
+
+src_compile() {
+       emake \
+               CC="$(tc-getCC)" \
+               LIBDIR="\$(PREFIX)/$(get_libdir)"
+}
+
+src_install() {
+       emake DESTDIR="${D}" \
+               LIBDIR="\$(PREFIX)/$(get_libdir)" \
+               LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \
+               install
+}

Reply via email to