mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-09 20:52:03 +01:00
sys-libs/libsepol: Sync with Gentoo
It's from Gentoo commit 73a775712b08395812bfc0ec0fef0a01a03963ea. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
2e051720e5
commit
9890d063ce
@ -1,3 +1 @@
|
|||||||
DIST libsepol-3.6.tar.gz 509100 BLAKE2B c073c9437004df0c723125971ed26354dc6b8a78b069c593977062527342061303bcc48917fcd9623d17998748254f63408b233173f3c62e92ee0ea2f3c4a430 SHA512 35a42d2749fc4f71bc6b7488380714f56975564007128566f1c73e5c50bf81c17535b2cfda4583aacb4870aa2cd5885321c01523e415bda8b3326bfefb13d58e
|
|
||||||
DIST libsepol-3.7.tar.gz 511487 BLAKE2B 8e4a0b2b3731f49d8bc8ea03bd5269672428119578046bc7f38230e3c77459e6b9d4ab39285ea33c89d8e807499ef89faa606e4b4e1ecfac2c3d445454b16420 SHA512 85d12d0ba5a7a3225f08d041a18fd59641608db5e0a78a1e9649754e45be54a807cd422d4889b88da6e806b4af546336c7a0913448f08ac33dc6ffb983890ef8
|
|
||||||
DIST libsepol-3.8.1.tar.gz 513830 BLAKE2B f1877499a31289af941e36b80c1c25ca2b32205684d958c4a8b04e05006346138046e3f263e73db3889f918e2ff93818f4d6176de5d17669b863c853d04928e0 SHA512 6a66fbbc25f4ca5f58b07d19a70f3f6c233594ea5bc5a9f5d9f008eb03a83cea84ae0f03329f340b95e4f7135981d06cb9e66a7b3ca2f1494a71bbdcb5a01665
|
DIST libsepol-3.8.1.tar.gz 513830 BLAKE2B f1877499a31289af941e36b80c1c25ca2b32205684d958c4a8b04e05006346138046e3f263e73db3889f918e2ff93818f4d6176de5d17669b863c853d04928e0 SHA512 6a66fbbc25f4ca5f58b07d19a70f3f6c233594ea5bc5a9f5d9f008eb03a83cea84ae0f03329f340b95e4f7135981d06cb9e66a7b3ca2f1494a71bbdcb5a01665
|
||||||
|
|||||||
@ -1,50 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="7"
|
|
||||||
|
|
||||||
inherit toolchain-funcs multilib-minimal
|
|
||||||
|
|
||||||
MY_PV="${PV//_/-}"
|
|
||||||
MY_P="${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="SELinux binary policy representation library"
|
|
||||||
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}/${P}/${PN}"
|
|
||||||
else
|
|
||||||
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/2"
|
|
||||||
|
|
||||||
# tests are not meant to be run outside of the full SELinux userland repo
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eapply_user
|
|
||||||
multilib_copy_sources
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
tc-export CC AR RANLIB
|
|
||||||
|
|
||||||
local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
|
|
||||||
|
|
||||||
emake \
|
|
||||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
|
||||||
SHLIBDIR="/$(get_libdir)"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
emake DESTDIR="${D}" \
|
|
||||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
|
||||||
SHLIBDIR="/$(get_libdir)" \
|
|
||||||
install
|
|
||||||
}
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="8"
|
|
||||||
|
|
||||||
inherit toolchain-funcs multilib-minimal
|
|
||||||
|
|
||||||
MY_PV="${PV//_/-}"
|
|
||||||
MY_P="${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="SELinux binary policy representation library"
|
|
||||||
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}/${P}/${PN}"
|
|
||||||
else
|
|
||||||
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/2"
|
|
||||||
IUSE="+static-libs"
|
|
||||||
|
|
||||||
# tests are not meant to be run outside of the full SELinux userland repo
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eapply_user
|
|
||||||
multilib_copy_sources
|
|
||||||
}
|
|
||||||
|
|
||||||
my_make() {
|
|
||||||
emake \
|
|
||||||
PREFIX="${EPREFIX}/usr" \
|
|
||||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
|
||||||
SHLIBDIR="${EPREFIX}/$(get_libdir)" \
|
|
||||||
"${@}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
tc-export CC AR RANLIB
|
|
||||||
|
|
||||||
local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
|
|
||||||
|
|
||||||
my_make
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
my_make DESTDIR="${D}" install
|
|
||||||
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user