Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/semodule-utils/
Date: Sun, 09 Jul 2017 10:04:11
Message-Id: 1499594574.8489804c3c021c481b182979197a9f0d829fbb5c.perfinion@gentoo
1 commit: 8489804c3c021c481b182979197a9f0d829fbb5c
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 9 08:06:31 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 9 10:02:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8489804c
7
8 sys-apps/semodule-utils: bump to 2.7_rc4
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 sys-apps/semodule-utils/Manifest | 1 +
13 .../semodule-utils/semodule-utils-2.7_rc4.ebuild | 53 ++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/sys-apps/semodule-utils/Manifest b/sys-apps/semodule-utils/Manifest
17 index c61922b62ef..a53a22a10e5 100644
18 --- a/sys-apps/semodule-utils/Manifest
19 +++ b/sys-apps/semodule-utils/Manifest
20 @@ -1 +1,2 @@
21 DIST semodule-utils-2.7-rc1.tar.gz 15446 SHA256 929b469e5c8ab806f0acd233352a52b257c5b59b3a75ae950d290138f2d2eef9 SHA512 4bc0c05e36dc01d53c178c507461e64d8842aa808758370d3920d18bd26410cfceed75ec70c6441f1d40e5ca594e13c12c99bb592b5a018bae9fff47e1177e57 WHIRLPOOL c1101fe791d48a8caea9be20ee15801696dba942084a1f9678e1a86e2f1079e69d19598121d63ebcc4b631ae92635da83499e9a571c99754db4ed432a155d0a6
22 +DIST semodule-utils-2.7-rc4.tar.gz 15445 SHA256 91a76625538d0e5faea3828b5401c1fbce634cfb8101262006063a91c0fbf26c SHA512 a4bd50d69cfb7484057169c1e0292edaa455436d2e8853f4e5a10e241b8508d2ff162a2f2f8857545a70b459f40b4d400b7ef8b4edcd6eb34e1096fd7e18c7c1 WHIRLPOOL cacb8dea0881d9ab3d49df0cd704e5d17f20976c009189243b6a8998a6a89240d47c06d7bc80e12dcd71c862141819532ac5ac089d58cf31925d5cbd0faaca53
23
24 diff --git a/sys-apps/semodule-utils/semodule-utils-2.7_rc4.ebuild b/sys-apps/semodule-utils/semodule-utils-2.7_rc4.ebuild
25 new file mode 100644
26 index 00000000000..a0a13c35c86
27 --- /dev/null
28 +++ b/sys-apps/semodule-utils/semodule-utils-2.7_rc4.ebuild
29 @@ -0,0 +1,53 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="6"
34 +
35 +inherit toolchain-funcs
36 +
37 +MY_RELEASEDATE="20170630"
38 +SEPOL_VER="${PV}"
39 +SELNX_VER="${PV}"
40 +
41 +MY_P="${P//_/-}"
42 +IUSE=""
43 +
44 +if [[ ${PV} == *9999 ]] ; then
45 + inherit git-r3
46 + EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
47 + S="${WORKDIR}/${MY_P}/${PN}"
48 +else
49 + SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz"
50 + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
51 + S="${WORKDIR}/${MY_P}"
52 +fi
53 +
54 +DESCRIPTION="SELinux policy module utilities"
55 +HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
56 +
57 +LICENSE="GPL-2"
58 +SLOT="0"
59 +
60 +DEPEND=">=sys-libs/libsepol-${SEPOL_VER}:="
61 +
62 +RDEPEND="${DEPEND}
63 + !<sys-apps/policycoreutils-2.7_pre"
64 +
65 +src_prepare() {
66 + default
67 +
68 + sed -i 's/-Werror//g' "${S}"/*/Makefile || die "Failed to remove Werror"
69 +}
70 +
71 +src_compile() {
72 + emake \
73 + CC="$(tc-getCC)" \
74 + LIBDIR="\$(PREFIX)/$(get_libdir)"
75 +}
76 +
77 +src_install() {
78 + emake DESTDIR="${D}" \
79 + LIBDIR="\$(PREFIX)/$(get_libdir)" \
80 + LIBSEPOLA="/usr/$(get_libdir)/libsepol.a" \
81 + install
82 +}