mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
sys-apps/checkpolicy: sync with the upstream
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
This commit is contained in:
parent
e44705e606
commit
3b1534f9da
@ -1 +1,2 @@
|
||||
DIST checkpolicy-2.4.tar.gz 65238 SHA256 9bbdac28a88de4c405c769730863f3adcd266adbfa45881a5de67e3a4895bcd4 SHA512 8c5c22d9510305e7f518d1a5818f5b36895210f48835d8d24a43b2d34e79881cebcc8cd588bb663c0613a4f878db125c22a4b4df3d0f63b8fb8f88350abc61cc WHIRLPOOL b717428b4411e526cc47ed2be88d7e7e4d48153404b90d50e510fd0cc10cc0452661d0b6b0cc200bb09ae1cc040ae59aae68a8c748611db3ca4cd262f8e8f932
|
||||
DIST checkpolicy-3.1.tar.gz 69072 BLAKE2B 31cb5ef52533b0a62f954e770278fc5766a961d87fb86260b04abe562bcd90d0025b33931c6ad54096c64ab54150c7562c112eac80eb2f60dbcdda57f4cacfe2 SHA512 2276a5a0919286049d2ceba386ef5f6de523745b588bb81cb4fed5eced5fd0b8070249b7a3ae5a85e2abb9369a86318f727d4073aad14ab75c43750a46069168
|
||||
DIST checkpolicy-3.2.tar.gz 69035 BLAKE2B 263c582c8ed3c38822513899f3591edfc5d0132977451503a8b45d2074b5a1c5ce03973353b3ceaad44da913b4e35546cfef1988b68bd517618efdb942f994ec SHA512 133639595c2acc66c02b5a637c5e0c60d80ce2bae04f4a709d9fafabd31f9497d1a6e3334904b985c2a1bd94a7a7e3df782c2af2ae41d1fd79b69156a835edeb
|
||||
|
@ -1,54 +0,0 @@
|
||||
# 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" \
|
||||
INCLUDEDIR="${ROOT}\$(PREFIX)/include" \
|
||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
||||
LDLIBS="${ROOT}\$(LIBDIR)/libsepol.a -lfl"
|
||||
}
|
||||
|
||||
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."
|
||||
}
|
57
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-3.1.ebuild
vendored
Normal file
57
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-3.1.ebuild
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="${P//_/-}"
|
||||
MY_RELEASEDATE="20200710"
|
||||
|
||||
SEPOL_VER="${PV}"
|
||||
SEMNG_VER="${PV}"
|
||||
|
||||
DESCRIPTION="SELinux policy compiler"
|
||||
HOMEPAGE="http://userspace.selinuxproject.org"
|
||||
|
||||
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://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND=">=sys-libs/libsepol-${SEPOL_VER}"
|
||||
BDEPEND="sys-devel/flex
|
||||
sys-devel/bison"
|
||||
|
||||
RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}"
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
YACC="bison -y" \
|
||||
LIBDIR="\$(PREFIX)/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use debug; then
|
||||
dobin "${S}/test/dismod"
|
||||
dobin "${S}/test/dispol"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! tc-is-cross-compiler; then
|
||||
einfo "This checkpolicy can compile version `checkpolicy -V | cut -f 1 -d ' '` policy."
|
||||
fi
|
||||
}
|
50
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-3.2.ebuild
vendored
Normal file
50
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-3.2.ebuild
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="SELinux policy compiler"
|
||||
HOMEPAGE="http://userspace.selinuxproject.org"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND=">=sys-libs/libsepol-${PV}"
|
||||
BDEPEND="sys-devel/flex
|
||||
sys-devel/bison"
|
||||
|
||||
RDEPEND=">=sys-libs/libsepol-${PV}"
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
YACC="bison -y" \
|
||||
LIBDIR="\$(PREFIX)/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use debug; then
|
||||
dobin "${S}/test/dismod"
|
||||
dobin "${S}/test/dispol"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! tc-is-cross-compiler; then
|
||||
einfo "This checkpolicy can compile version `checkpolicy -V | cut -f 1 -d ' '` policy."
|
||||
fi
|
||||
}
|
50
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-9999.ebuild
vendored
Normal file
50
sdk_container/src/third_party/coreos-overlay/sys-apps/checkpolicy/checkpolicy-9999.ebuild
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="SELinux policy compiler"
|
||||
HOMEPAGE="http://userspace.selinuxproject.org"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND=">=sys-libs/libsepol-${PV}"
|
||||
BDEPEND="sys-devel/flex
|
||||
sys-devel/bison"
|
||||
|
||||
RDEPEND=">=sys-libs/libsepol-${PV}"
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
YACC="bison -y" \
|
||||
LIBDIR="\$(PREFIX)/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use debug; then
|
||||
dobin "${S}/test/dismod"
|
||||
dobin "${S}/test/dispol"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! tc-is-cross-compiler; then
|
||||
einfo "This checkpolicy can compile version `checkpolicy -V | cut -f 1 -d ' '` policy."
|
||||
fi
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
<?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>
|
||||
<maintainer type="project">
|
||||
<email>selinux@gentoo.org</email>
|
||||
<name>SELinux Team</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
Loading…
Reference in New Issue
Block a user