diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/mcstrans |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/mcstrans')
-rw-r--r-- | sys-apps/mcstrans/Manifest | 5 | ||||
-rwxr-xr-x | sys-apps/mcstrans/files/mcstransd.init | 31 | ||||
-rw-r--r-- | sys-apps/mcstrans/mcstrans-2.7.ebuild | 57 | ||||
-rw-r--r-- | sys-apps/mcstrans/mcstrans-9999.ebuild | 57 | ||||
-rw-r--r-- | sys-apps/mcstrans/metadata.xml | 14 |
5 files changed, 164 insertions, 0 deletions
diff --git a/sys-apps/mcstrans/Manifest b/sys-apps/mcstrans/Manifest new file mode 100644 index 000000000000..12e0fdf9547a --- /dev/null +++ b/sys-apps/mcstrans/Manifest @@ -0,0 +1,5 @@ +AUX mcstransd.init 659 SHA256 cf185fb243d5592a00c816ec4733f6a2390e63b6ebd54f83bfd31e24ff337fa6 SHA512 de97bb70286bd2b772ac6e98346ffcb96dcad95925ebb3bb44e6ffd4cf22b88d27aea103c89973f0fcc6334c98a9399d077e9cd52eaf7da70c5fce3da96ef3a3 WHIRLPOOL 0e88040a2e1a94241d62400ad6adaf4dfcf07438bfc5ae10501d1464af71abd3c8ecdd2a5fb83251966b8f7d3b4e1b28a46cdcd0e8eca6601df866a3914db7c1 +DIST mcstrans-2.7.tar.gz 41137 SHA256 cdca003282d160b50ad695ab5b013c05ca21387a419b2f89288534184d16e1e2 SHA512 2e59f26fad3423a0c8e2ea49d619f99022c72e1aebb00e842defb4fad56f187f9ed0f069ef78d3b209ba76f5ebdcba1668f51ff881b753dada5716ee942519b3 WHIRLPOOL 0a63443d0a0c1e11a000c923b9c23e8b6e128543665c11b84d122bcd8afec298617680b9543110ae5d44a9ea64564a2c361a8a9426f65c17505848c91f6ca555 +EBUILD mcstrans-2.7.ebuild 1217 SHA256 b7adfd4f0b8865b54c037c777616c14a1a22e1e3d72779025c3ea5efa62cf708 SHA512 d26037fd0d2f2ef722a21da5ba974410a5441608e32fb35d8674ebae48dd2eb485b30af50d7f54a3d3181b8c7af838e03d744336181f8bd3b8d8b8a47a906250 WHIRLPOOL f0ca1e7fe9071e598c8af92164f5386a2c63677ea9c4dc77adce54c0de789e21596da72ccd86995bebbefcb6ee58ca2086a4de21b21a209223ebc53808132ee4 +EBUILD mcstrans-9999.ebuild 1219 SHA256 9936177900b96b9c7807dba2822c55a41783799b531231ca68e31ac944a275f5 SHA512 12506c47944a8c532374d87be5f8a6ff7c9b7b7d71a9a22571852866533cbd1e8fa4f9392dd14a40449acce30094a1b9848fea7e1f6226ad2249c132b512483a WHIRLPOOL 737711cd01b65c6a5f2bb7408a2a3e596f907f29d88304220fffed7fc5a4277dc86d8370185f3be8881ed060aa5dc37aeddf6d7f74665124ef894c5bbb134bf4 +MISC metadata.xml 451 SHA256 0d5731e927ea28aca4af67827a099005c4d384920bd0a87208c6556f82db7ee1 SHA512 9d1f5669661c1fe232b18517a954640350c8f0c606d3ca91e429f53790532bfc9b73d7c18e575c4055d3ea7ba4a5ade632d1814700ed1d3d000fe5ebfa065744 WHIRLPOOL e36e3a495541222d89311cb424d9e462a3ec2ec9dc6c5f03c12bbaf5ce4fe158ce6373012e50848dac17331bdcb4f8bff1253589ebc1faa744dcf5c02df0ed64 diff --git a/sys-apps/mcstrans/files/mcstransd.init b/sys-apps/mcstrans/files/mcstransd.init new file mode 100755 index 000000000000..7c90e771b383 --- /dev/null +++ b/sys-apps/mcstrans/files/mcstransd.init @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 2006-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +is_selinux_enabled() { + local SE_ENABL="/usr/sbin/selinuxenabled" + + if [ -x "$SE_ENABL" ]; then + $SE_ENABL && return 0 || return 1 + else + ewarn "mcstransd: Unable to determine SELinux status" + return 1 + fi +} + +start() { + if is_selinux_enabled; then + ebegin "Starting mcstransd" + checkpath -q -d -m 0755 /run/setrans + start-stop-daemon --start --quiet --exec /sbin/mcstransd + eend $? + fi +} + +stop() { + if is_selinux_enabled; then + ebegin "Stopping mcstransd" + start-stop-daemon --stop --quiet --name mcstransd + eend $? + fi +} diff --git a/sys-apps/mcstrans/mcstrans-2.7.ebuild b/sys-apps/mcstrans/mcstrans-2.7.ebuild new file mode 100644 index 000000000000..48b476249e7e --- /dev/null +++ b/sys-apps/mcstrans/mcstrans-2.7.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +MY_RELEASEDATE="20170804" + +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() { + emake \ + CC="$(tc-getCC)" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" \ + install + + rm -rf "${D}/etc/rc.d" || die + + newinitd "${FILESDIR}/mcstransd.init" mcstransd +} diff --git a/sys-apps/mcstrans/mcstrans-9999.ebuild b/sys-apps/mcstrans/mcstrans-9999.ebuild new file mode 100644 index 000000000000..2f7feeef0119 --- /dev/null +++ b/sys-apps/mcstrans/mcstrans-9999.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +MY_RELEASEDATE="20170804" + +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() { + emake \ + CC="$(tc-getCC)" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" \ + install + + rm -rf "${D}/etc/rc.d" || die + + newinitd "${FILESDIR}/mcstransd.init" mcstransd +} diff --git a/sys-apps/mcstrans/metadata.xml b/sys-apps/mcstrans/metadata.xml new file mode 100644 index 000000000000..4236a792e95c --- /dev/null +++ b/sys-apps/mcstrans/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>selinux@gentoo.org</email> + <name>SELinux Team</name> + </maintainer> + <longdescription> + MCS translation daemon translates SELinux contexts to human readable format + </longdescription> + <upstream> + <remote-id type="github">SELinuxProject/selinux</remote-id> + </upstream> +</pkgmetadata> |