mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
sys-libs/libsemanage: apply flatcar changes
Signed-off-by: Mathieu Tortuyaux <mathieu@kinvolk.io>
This commit is contained in:
parent
5738da828c
commit
b7419c3548
@ -1 +1,3 @@
|
|||||||
|
#Type Path Mode UID GID Age Argument
|
||||||
|
d /etc/selinux/ - - - - -
|
||||||
L /etc/selinux/semanage.conf - - - - ../../usr/lib/selinux/semanage.conf
|
L /etc/selinux/semanage.conf - - - - ../../usr/lib/selinux/semanage.conf
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
EAPI=7
|
EAPI=7
|
||||||
PYTHON_COMPAT=( python3_6 )
|
PYTHON_COMPAT=( python3_6 )
|
||||||
|
|
||||||
inherit python-r1 toolchain-funcs multilib-minimal
|
# flatcar changes
|
||||||
|
inherit python-r1 toolchain-funcs multilib-minimal systemd
|
||||||
|
|
||||||
MY_P="${P//_/-}"
|
MY_P="${P//_/-}"
|
||||||
MY_RELEASEDATE="20200710"
|
MY_RELEASEDATE="20200710"
|
||||||
@ -27,17 +28,21 @@ fi
|
|||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
IUSE="python"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
|
RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
|
||||||
>=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
|
>=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
|
||||||
>=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
|
>=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
|
||||||
${PYTHON_DEPS}"
|
python? ( ${PYTHON_DEPS} )"
|
||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
BDEPEND=">=dev-lang/swig-2.0.4-r1
|
BDEPEND="
|
||||||
|
python? (
|
||||||
|
>=dev-lang/swig-2.0.4-r1
|
||||||
|
virtual/pkgconfig
|
||||||
|
)
|
||||||
sys-devel/bison
|
sys-devel/bison
|
||||||
sys-devel/flex
|
sys-devel/flex"
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
# tests are not meant to be run outside of the
|
# tests are not meant to be run outside of the
|
||||||
# full SELinux userland repo
|
# full SELinux userland repo
|
||||||
@ -80,7 +85,8 @@ multilib_src_compile() {
|
|||||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||||
all
|
all
|
||||||
|
|
||||||
if multilib_is_native_abi; then
|
# flatcar changes
|
||||||
|
if multilib_is_native_abi && use python; then
|
||||||
building_py() {
|
building_py() {
|
||||||
emake \
|
emake \
|
||||||
AR="$(tc-getAR)" \
|
AR="$(tc-getAR)" \
|
||||||
@ -94,19 +100,29 @@ multilib_src_compile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
|
# flatcar changes
|
||||||
emake \
|
emake \
|
||||||
|
DEFAULT_SEMANAGE_CONF_LOCATION="/usr/lib/selinux/semanage.conf" \
|
||||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||||
|
SHLIBDIR="/usr/$(get_libdir)" \
|
||||||
DESTDIR="${ED}" install
|
DESTDIR="${ED}" install
|
||||||
|
|
||||||
if multilib_is_native_abi; then
|
# flatcar changes
|
||||||
|
if multilib_is_native_abi && use python; then
|
||||||
installation_py() {
|
installation_py() {
|
||||||
|
# flatcar changes
|
||||||
emake DESTDIR="${ED}" \
|
emake DESTDIR="${ED}" \
|
||||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||||
|
SHLIBDIR="${EPREFIX}/usr/$(get_libdir)" \
|
||||||
|
LIBSEPOLA="${EPREFIX%/}/usr/$(get_libdir)/libsepol.a" \
|
||||||
install-pywrap
|
install-pywrap
|
||||||
python_optimize # bug 531638
|
python_optimize # bug 531638
|
||||||
}
|
}
|
||||||
python_foreach_impl installation_py
|
python_foreach_impl installation_py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# flatcar changes
|
||||||
|
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/libsemanage.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
multiib_src_install_all() {
|
multiib_src_install_all() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user