summaryrefslogtreecommitdiff
path: root/dev-libs/libbpf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-07-12 12:25:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-07-12 12:25:39 +0100
commit37bccfe5e76c5740c4ef5ba1179e9488d8404075 (patch)
treec0c962a2e83c1f38816a021ecd34c2e8c80db528 /dev-libs/libbpf
parent496ef6155c315ac3628b472dc9b4146fa2684286 (diff)
gentoo auto-resync : 12:07:2024 - 12:25:38
Diffstat (limited to 'dev-libs/libbpf')
-rw-r--r--dev-libs/libbpf/Manifest6
-rw-r--r--dev-libs/libbpf/libbpf-1.3.2.ebuild (renamed from dev-libs/libbpf/libbpf-1.4.2.ebuild)0
-rw-r--r--dev-libs/libbpf/libbpf-1.4.5.ebuild65
3 files changed, 69 insertions, 2 deletions
diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest
index bfbab759a4f8..b350876aef98 100644
--- a/dev-libs/libbpf/Manifest
+++ b/dev-libs/libbpf/Manifest
@@ -1,9 +1,11 @@
AUX libbpf-9999-paths.patch 883 BLAKE2B 663e03ae01afd7be73c281e8b83cf5534717c28f5960b4b7ca5530096840568dedf4e5f58f2139ab56c5f57382a80540294cb492f6ad619f174184172b3441af SHA512 de78131baa08874000cc52b0b21db4055246a653503301bd82c2e8f5818c955d63727d957d7834f1aed63abad42607480911fa0c2ea8d07d833ebd1f8b338039
DIST libbpf-0.8.1.tar.gz 942702 BLAKE2B 084be7d4258500fa894560ed2e52821addcc5d150dcd77fd646271b614d788b7931271be9c3e46fdbc4ed93d053ea3e09023158a8e4a31f9452d10dcb0677b58 SHA512 e3bb602f55215a4f030e564af7321ba6338937c426fcaee478b607f88b0c773c40a0c3f59a2b345bda951a19e79061733f8a3fdc10a6292e92782e65754b584a
DIST libbpf-1.3.0.tar.gz 999282 BLAKE2B 5ee0a45cd06be482c9523ec2a9bb26cf12b89df23f515b037badda868770069d5ffb751c011222b86b1d43034a1cdd537cb263883ed0645641548adc9c9896eb SHA512 59990189538e47765542e9ed6e88bc78c9d29bc077b5666bb1303cf15579c90b3d35a0d631b9bbd4bff2708243dc91d901bd68c119fb74dfd10a3e1066aa9acc
-DIST libbpf-1.4.2.tar.gz 1016045 BLAKE2B 7529e6521337d45210ee2e3d00aae7c8cac309a4b3f36ffdd9c4a6c4439f266ee654b6ad6abaea2e43310260182bd9ad52ff162339545027050329d8307fe0d5 SHA512 b0faf45e77fc0197239b87d74010bad6b7ef7d48c1b3de2a3960164d9029851e2ad204b92d0cccb2fde2d0dfe44d9fa7f24b35a4917179dbab1bee192d3780db
+DIST libbpf-1.3.2.tar.gz 999726 BLAKE2B 1e8bf6275b5542acebd021c1594f8b069e786b091099111bfa01efbc9975e014c3cd5fac680ffa6467cacf293890449cd857b6127a857711d42b7f8326b7d965 SHA512 0817c144ecdc9b02866e8d70fd87b103fc4909430417388930ccf9b6f8e9abef0ae2783bfd5a85830dd909459087642e987d2627f9d0f571f2279c64a29fc791
+DIST libbpf-1.4.5.tar.gz 1016457 BLAKE2B 4aa57b67a184938cfb9e24afced63c816715a1f38f1446320bb7c9b59ca446fdd5addda63b05c880499df9ed7820e02764c5299c7609164cf22bcd5512467a6d SHA512 c5ed459e89a8897ef7c892723c61efb2f2fdb0e7bea63eaff1c9936d368d2cc9e63b8c093207eef0df3109c021156c52ddb570757f69c54e713909e866dbb2f5
EBUILD libbpf-0.8.1.ebuild 1153 BLAKE2B 98da8cd35ab316a4bbf9d4e6a9c40b278ecd1385d8077a16e4582fb9a4209c40ebcf4ec9e24d3312334ace6c2f99da9732e7a9379a0dd478baa66bdd790a4793 SHA512 16a7e9a08fe9d782da9f57727b50592d42c7cfcd5cbf407197c5764e2a7175f0277a116e25379092e0f67adac353513f614d9bfe2edac2990d0fc91d5adc9a26
EBUILD libbpf-1.3.0.ebuild 1244 BLAKE2B 1d5e177c1413d136a9e27220d7e3a7da0eb315191eaecdb32bc3409120e5bea0082cbee6110bdfec47c12c39a69de2a67cb2a7944deeecb0f9675983b3892d74 SHA512 e7b817cc258547e83399e3546ded27a1074f36c27aa0a47fd631e520d8a43a7c10277f45bc45acd48ec2176b7df0e516736797276cca594e8eda90d4a423fe59
-EBUILD libbpf-1.4.2.ebuild 1257 BLAKE2B 34b5183bd4bb8c605eb8de29a6f4634e173fc6f435bbbc05ef233ec6e6a75416083e447c861c8f7c5762c520d7d83a1dd90528b3352273becab8ef272df93555 SHA512 6b08a58ae46cb5c7927e7e2591cb14e56ba01eb0512c0e3bf877eb2d1454f239cd2cba7e649963167bab16b5bd588e45d4c60fe6f2b73e0a86734cebdce153f4
+EBUILD libbpf-1.3.2.ebuild 1257 BLAKE2B 34b5183bd4bb8c605eb8de29a6f4634e173fc6f435bbbc05ef233ec6e6a75416083e447c861c8f7c5762c520d7d83a1dd90528b3352273becab8ef272df93555 SHA512 6b08a58ae46cb5c7927e7e2591cb14e56ba01eb0512c0e3bf877eb2d1454f239cd2cba7e649963167bab16b5bd588e45d4c60fe6f2b73e0a86734cebdce153f4
+EBUILD libbpf-1.4.5.ebuild 1257 BLAKE2B 34b5183bd4bb8c605eb8de29a6f4634e173fc6f435bbbc05ef233ec6e6a75416083e447c861c8f7c5762c520d7d83a1dd90528b3352273becab8ef272df93555 SHA512 6b08a58ae46cb5c7927e7e2591cb14e56ba01eb0512c0e3bf877eb2d1454f239cd2cba7e649963167bab16b5bd588e45d4c60fe6f2b73e0a86734cebdce153f4
EBUILD libbpf-9999.ebuild 1251 BLAKE2B 2ede02f43b6d6849a3ecc57bbfa29d2089013cb14c18604ea57454fe5ced1c3bcc77aff74684e7b1286acca7d7c42dcbce2c4553e3c694813b83ff1e5f54317b SHA512 9bd941c52ea5b4582f1818a728dabb4668358c0eab1a20444c4c2249a1d92290207f50c16647c267e04155a6c0148c42c424f3db13de84aba7e2fef81ef550ff
MISC metadata.xml 306 BLAKE2B 6af2288a09cffb8801efe6841d11dae5e8f3659dd75be45f746bab3f48686458916dab796fd9d535e1a6fa0ca78567e8227e29ef06cc22c4a9d0b1cbebd30ab0 SHA512 c027c14965069ece90130984bab710dc19f199a184e834666449f4bc0874de3b5f5d878f3a1fe6f817a85eef2bc45914e640f0140878b7454a32738a7f500032
diff --git a/dev-libs/libbpf/libbpf-1.4.2.ebuild b/dev-libs/libbpf/libbpf-1.3.2.ebuild
index 6cd9245fc9a6..6cd9245fc9a6 100644
--- a/dev-libs/libbpf/libbpf-1.4.2.ebuild
+++ b/dev-libs/libbpf/libbpf-1.3.2.ebuild
diff --git a/dev-libs/libbpf/libbpf-1.4.5.ebuild b/dev-libs/libbpf/libbpf-1.4.5.ebuild
new file mode 100644
index 000000000000..6cd9245fc9a6
--- /dev/null
+++ b/dev-libs/libbpf/libbpf-1.4.5.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2019-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Stand-alone build of libbpf from the Linux kernel"
+HOMEPAGE="https://github.com/libbpf/libbpf"
+
+if [[ ${PV} =~ [9]{4,} ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/libbpf/libbpf.git"
+else
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+S="${WORKDIR}/${P}/src"
+
+LICENSE="GPL-2 LGPL-2.1 BSD-2"
+SLOT="0/$(ver_cut 1-2 ${PV})"
+IUSE="static-libs"
+
+DEPEND="
+ sys-kernel/linux-headers
+ virtual/libelf
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+DOCS=(
+ ../{README,SYNC}.md
+)
+
+PATCHES=(
+ "${FILESDIR}"/libbpf-9999-paths.patch
+)
+
+src_configure() {
+ append-cflags -fPIC
+ tc-export CC AR PKG_CONFIG
+ export LIBSUBDIR="$(get_libdir)"
+ export PREFIX="${EPREFIX}/usr"
+ export V=1
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ LIBSUBDIR="${LIBSUBDIR}" \
+ install install_uapi_headers
+
+ if ! use static-libs; then
+ find "${ED}" -name '*.a' -delete || die
+ fi
+
+ dodoc "${DOCS[@]}"
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${PN}.pc
+}