diff options
author | Jason Zaman <perfinion@gentoo.org> | 2018-05-25 12:34:36 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2018-05-25 15:27:52 +0800 |
commit | bf87dfd8eb5b5bcb44ef238069c9e7e38404b584 (patch) | |
tree | 97c3b5ab80feb7cf3ece6b3ec36048a8b08a0792 /sys-apps/mcstrans | |
parent | sys-apps/secilc: bump to 2.8 (diff) | |
download | gentoo-bf87dfd8eb5b5bcb44ef238069c9e7e38404b584.tar.gz gentoo-bf87dfd8eb5b5bcb44ef238069c9e7e38404b584.tar.bz2 gentoo-bf87dfd8eb5b5bcb44ef238069c9e7e38404b584.zip |
sys-apps/mcstrans: bump to 2.8
Package-Manager: Portage-2.3.39, Repoman-2.3.9
Diffstat (limited to 'sys-apps/mcstrans')
-rw-r--r-- | sys-apps/mcstrans/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/mcstrans/mcstrans-2.8.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/sys-apps/mcstrans/Manifest b/sys-apps/mcstrans/Manifest index 193b590ed2c7..e985230ffa49 100644 --- a/sys-apps/mcstrans/Manifest +++ b/sys-apps/mcstrans/Manifest @@ -2,3 +2,4 @@ DIST mcstrans-2.7.tar.gz 41137 BLAKE2B 83f195dee4bf61c36f65b009cf40dd58459e01d75 DIST mcstrans-2.8-rc1.tar.gz 41385 BLAKE2B 7aa05d9ec7230e5a2c0b5555368c46af31a5f92318300a07db3242ae18c7855225dd399f2874c2ba09ecbbebcdec686c20f604c2a86e104900b1eaaf50460a44 SHA512 6927d3b06012fb351d04558f26e602c084058911ca095891d49286976cc9f96446476057c09c044564eba25aca920bc99f2218182551a957d0dac6ce1a9bc2db DIST mcstrans-2.8-rc2.tar.gz 41387 BLAKE2B ddded091b0167ae6c465d7459a70da3e5567e1a548992c206785dc99f8c23568dfd00575ecdc5518d2825a88a8199fca42798a912a0f506a51c6919b2dca865d SHA512 3b4cb62eece6db434272a3d0c30b2b8b982793008aad6f02b73dd88822ae50e91aa422d972c92f58d3e132a1bc6f871924ba144078d26c72a2f95098cf3a20f9 DIST mcstrans-2.8-rc3.tar.gz 41392 BLAKE2B 31c08eea9f9866da2fc16d734f8ced6a1acc6c0b0d5294cc3cfb07085535d7ed6202662f45b43b42aaa28642194c19b1d26fb5b98dda42e259562b6729e2956d SHA512 d25ab36b9b764abf8805764a457f870659e92ef440990d8b442caf64eaff082d7717b9b5c0b731fc1fd2ab4def9ea9ac82090b5cc5c0a63631418c6831ea2c72 +DIST mcstrans-2.8.tar.gz 41385 BLAKE2B 08cdb2588ab2cb48824816fd3eb578a77bfb6696f00fac7b808250ae88a5c85ae02824f047ac6cd6f3653d4b8550352f3570b63969ebfef5b396478ef191b97c SHA512 b20b369fea926ed55db4e454e82ef842fd39a8194190c9feb063b36126f6334f9d3401ef1c3636c03230a813c69648b5efbcc35b163387495175cde80dd6bd39 diff --git a/sys-apps/mcstrans/mcstrans-2.8.ebuild b/sys-apps/mcstrans/mcstrans-2.8.ebuild new file mode 100644 index 000000000000..7de09ec4120d --- /dev/null +++ b/sys-apps/mcstrans/mcstrans-2.8.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +MY_RELEASEDATE="20180524" + +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 context translation to human readable names" +HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=">=sys-libs/libsepol-${PV}:= + >=sys-libs/libselinux-${PV}:= + dev-libs/libpcre:= + >=sys-libs/libcap-1.10-r10:=" + +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() { + tc-export CC + default +} + +src_install() { + emake DESTDIR="${D}" install + + rm -rf "${D}/etc/rc.d" || die + + newinitd "${FILESDIR}/mcstransd.init" mcstransd +} |