mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 06:51:26 +02:00
checkpolicy: import from portage-stable
This commit is contained in:
parent
efde8e22e3
commit
f932e4d950
1
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/Manifest
vendored
Normal file
1
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST checkpolicy-2.4.tar.gz 65238 SHA256 9bbdac28a88de4c405c769730863f3adcd266adbfa45881a5de67e3a4895bcd4 SHA512 8c5c22d9510305e7f518d1a5818f5b36895210f48835d8d24a43b2d34e79881cebcc8cd588bb663c0613a4f878db125c22a4b4df3d0f63b8fb8f88350abc61cc WHIRLPOOL b717428b4411e526cc47ed2be88d7e7e4d48153404b90d50e510fd0cc10cc0452661d0b6b0cc200bb09ae1cc040ae59aae68a8c748611db3ca4cd262f8e8f932
|
51
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-2.4.ebuild
vendored
Normal file
51
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-2.4.ebuild
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.4.ebuild,v 1.3 2015/05/10 09:07:48 perfinion Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit toolchain-funcs eutils
|
||||
|
||||
MY_P="${P//_/-}"
|
||||
|
||||
SEPOL_VER="${PV}"
|
||||
SEMNG_VER="${PV}"
|
||||
|
||||
DESCRIPTION="SELinux policy compiler"
|
||||
HOMEPAGE="http://userspace.selinuxproject.org"
|
||||
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
|
||||
>=sys-libs/libsemanage-${SEMNG_VER}
|
||||
sys-devel/flex
|
||||
sys-devel/bison"
|
||||
|
||||
RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" YACC="bison -y" LIBDIR="\$(PREFIX)/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
if use debug; then
|
||||
dobin "${S}/test/dismod"
|
||||
dobin "${S}/test/dispol"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."
|
||||
}
|
6
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/metadata.xml
vendored
Normal file
6
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/metadata.xml
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>selinux</herd>
|
||||
<longdescription>SELinux policy compilier</longdescription>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user