diff options
author | Jason Zaman <perfinion@gentoo.org> | 2016-11-19 20:42:08 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2016-11-20 13:26:22 +0800 |
commit | 94898082d1bfa1879ee16160268c010525a919a1 (patch) | |
tree | e58c75971f3a43a90fd41b259961d419318c1f2c /sys-apps/semodule-utils | |
parent | sys-apps/s390-tools: drop old <1.23.1 versions (diff) | |
download | gentoo-94898082d1bfa1879ee16160268c010525a919a1.tar.gz gentoo-94898082d1bfa1879ee16160268c010525a919a1.tar.bz2 gentoo-94898082d1bfa1879ee16160268c010525a919a1.zip |
sys-apps/semodule-utils: New package live ebuild
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-apps/semodule-utils')
-rw-r--r-- | sys-apps/semodule-utils/metadata.xml | 15 | ||||
-rw-r--r-- | sys-apps/semodule-utils/semodule-utils-9999.ebuild | 52 |
2 files changed, 67 insertions, 0 deletions
diff --git a/sys-apps/semodule-utils/metadata.xml b/sys-apps/semodule-utils/metadata.xml new file mode 100644 index 000000000000..35a209da7acf --- /dev/null +++ b/sys-apps/semodule-utils/metadata.xml @@ -0,0 +1,15 @@ +<?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> + semodule-utils are utilities to create and link SELinux policy module packages. + </longdescription> + <upstream> + <remote-id type="cpe">cpe:/a:redhat:policycoreutils</remote-id> + <remote-id type="github">SELinuxProject/selinux</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-apps/semodule-utils/semodule-utils-9999.ebuild b/sys-apps/semodule-utils/semodule-utils-9999.ebuild new file mode 100644 index 000000000000..9c3f9abf96b5 --- /dev/null +++ b/sys-apps/semodule-utils/semodule-utils-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="6" + +inherit toolchain-funcs + +MY_RELEASEDATE="20161014" +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 \ + LIBDIR="\$(PREFIX)/$(get_libdir)" +} + +src_install() { + emake DESTDIR="${D}" \ + LIBDIR="\$(PREFIX)/$(get_libdir)" \ + install +} |