mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
sys-libs/libsemanage: sync with Gentoo
Commit-Ref: ea4cd1f216
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
a38d44bd1c
commit
e1ff97556f
@ -1,2 +1,2 @@
|
||||
DIST libsemanage-3.1.tar.gz 179601 BLAKE2B 69450a4eda1f3728d339f65db1eec9940995fcea5208d17dca531ebc998aefbfec48fe91beffa3490e1502953aa550405fb696635d01b0eb8050c8f00f11106a SHA512 8609ca7d13b5c603677740f2b14558fea3922624af182d20d618237ba11fcf2559fab82fc68d1efa6ff118f064d426f005138521652c761de92cd66150102197
|
||||
DIST libsemanage-3.2.tar.gz 178839 BLAKE2B c0925812d784923a7a239ba919fc0a0e1d84cb528cbf4a357fb7938d3c06ebd2f0b60cd3eba40b76bf7c2922a081b99b16b32dc16638aa1bfce32553e241fb9f SHA512 6ad670bb298b1bab506217b12a3fda5d2209f4387a11410f0c1b65f765ffb579b0d70795dee19048909e0b72ef904fc318be60d5a01f80ab12742ce07647a084
|
||||
DIST libsemanage-3.4.tar.gz 185177 BLAKE2B 45276ae6f54cf3dc453bc0d99fb4d7439970bb14ff5b909ebc5511ec31bce1d2bdc477ba9c1fb4fd04ab494ccb37cd8bf47a90d81460c2974af2196d9019bf67 SHA512 831dc789545bb9a0b009bdb4f7fe52f6197ad8325946640f886a960d08e40b8a69eccd5a70cce51466bb5cb7f742feb78d19a9ec63383fbd03aa451508677e73
|
||||
DIST libsemanage-3.5.tar.gz 185060 BLAKE2B 3e08b15cb6b335a2747bd5f0bd84f74abdd22a7e8ec91ebb443ca6fe3886d5e8cd2827fefdaa0e9caf2af3280cffbf593ee828fee54dd423a21b257493cc754c SHA512 959fbd0d6bc6849da6caa13dc41c3f8818cbbd29f04b5d2ac7246c4b395b4f370f113a04cc9cfcb52be2afebfa636013ac4ad4011384c58c7ce066a45cae2751
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
#Type Path Mode UID GID Age Argument
|
||||
d /etc/selinux/ - - - - -
|
||||
L /etc/selinux/semanage.conf - - - - ../../usr/lib/selinux/semanage.conf
|
||||
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6..10} )
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
inherit python-r1 toolchain-funcs multilib-minimal
|
||||
|
||||
@ -18,7 +18,7 @@ if [[ ${PV} == 9999 ]]; then
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
||||
KEYWORDS="amd64 arm arm64 ~mips ~riscv x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
@ -26,7 +26,8 @@ LICENSE="GPL-2"
|
||||
SLOT="0/2"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND=">=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
|
||||
RDEPEND="app-arch/bzip2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libselinux-${PV}:=[${MULTILIB_USEDEP}]
|
||||
>=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
|
||||
${PYTHON_DEPS}"
|
||||
@ -84,6 +85,7 @@ multilib_src_compile() {
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
"$@"
|
||||
}
|
||||
@ -101,6 +103,7 @@ multilib_src_install() {
|
||||
installation_py() {
|
||||
emake DESTDIR="${ED}" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
install-pywrap
|
||||
python_optimize # bug 531638
|
||||
}
|
||||
@ -1,18 +1,13 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6..11} )
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
# flatcar changes
|
||||
TMPFILES_OPTIONAL=1
|
||||
inherit python-r1 toolchain-funcs multilib-minimal tmpfiles
|
||||
inherit python-r1 toolchain-funcs multilib-minimal
|
||||
|
||||
MY_P="${P//_/-}"
|
||||
MY_RELEASEDATE="20200710"
|
||||
|
||||
SEPOL_VER="${PV}"
|
||||
SELNX_VER="${PV}"
|
||||
MY_PV="${PV//_/-}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="SELinux kernel and policy management library"
|
||||
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
|
||||
@ -20,30 +15,27 @@ HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
|
||||
S="${WORKDIR}/${MY_P}/${PN}"
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_RELEASEDATE}/${MY_P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
|
||||
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||||
KEYWORDS="amd64 arm arm64 ~mips ~riscv x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="python"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
SLOT="0/2"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
|
||||
RDEPEND="app-arch/bzip2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libselinux-${PV}:=[${MULTILIB_USEDEP}]
|
||||
>=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
|
||||
python? ( ${PYTHON_DEPS} )"
|
||||
${PYTHON_DEPS}"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
python? (
|
||||
>=dev-lang/swig-2.0.4-r1
|
||||
virtual/pkgconfig
|
||||
)
|
||||
BDEPEND=">=dev-lang/swig-2.0.4-r1
|
||||
sys-devel/bison
|
||||
sys-devel/flex"
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig"
|
||||
|
||||
# tests are not meant to be run outside of the
|
||||
# full SELinux userland repo
|
||||
@ -80,18 +72,20 @@ src_prepare() {
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
|
||||
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
all
|
||||
|
||||
# flatcar changes
|
||||
if multilib_is_native_abi && use python; then
|
||||
if multilib_is_native_abi; then
|
||||
building_py() {
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
"$@"
|
||||
}
|
||||
@ -101,29 +95,20 @@ multilib_src_compile() {
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# flatcar changes
|
||||
emake \
|
||||
DEFAULT_SEMANAGE_CONF_LOCATION="/usr/lib/selinux/semanage.conf" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
SHLIBDIR="/usr/$(get_libdir)" \
|
||||
DESTDIR="${ED}" install
|
||||
|
||||
# flatcar changes
|
||||
if multilib_is_native_abi && use python; then
|
||||
if multilib_is_native_abi; then
|
||||
installation_py() {
|
||||
# flatcar changes
|
||||
emake DESTDIR="${ED}" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
SHLIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
LIBSEPOLA="${EPREFIX%/}/usr/$(get_libdir)/libsepol.a" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
install-pywrap
|
||||
python_optimize # bug 531638
|
||||
}
|
||||
python_foreach_impl installation_py
|
||||
fi
|
||||
|
||||
# flatcar changes
|
||||
dotmpfiles "${FILESDIR}/tmpfiles.d/libsemanage.conf"
|
||||
}
|
||||
|
||||
multiib_src_install_all() {
|
||||
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{6..10} )
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
inherit python-r1 toolchain-funcs multilib-minimal
|
||||
|
||||
@ -18,7 +18,7 @@ if [[ ${PV} == 9999 ]]; then
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
@ -26,7 +26,8 @@ LICENSE="GPL-2"
|
||||
SLOT="0/2"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND=">=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
|
||||
RDEPEND="app-arch/bzip2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libsepol-${PV}:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/libselinux-${PV}:=[${MULTILIB_USEDEP}]
|
||||
>=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
|
||||
${PYTHON_DEPS}"
|
||||
@ -84,6 +85,7 @@ multilib_src_compile() {
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
"$@"
|
||||
}
|
||||
@ -101,6 +103,7 @@ multilib_src_install() {
|
||||
installation_py() {
|
||||
emake DESTDIR="${ED}" \
|
||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
install-pywrap
|
||||
python_optimize # bug 531638
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>selinux@gentoo.org</email>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user