summaryrefslogtreecommitdiff
path: root/dev-libs/libbpf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-04 19:18:10 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-04 19:18:10 +0100
commit07b0c0005f55e652101816d9f4cfe73403bf0906 (patch)
treeb29108de370177e8ce7c0d0d60e1e4319851d99b /dev-libs/libbpf
parent78754950ffa3aaba0f48b1ca1d505caa4a3dfbfa (diff)
gentoo auto-resync : 04:10:2022 - 19:18:10
Diffstat (limited to 'dev-libs/libbpf')
-rw-r--r--dev-libs/libbpf/Manifest2
-rw-r--r--dev-libs/libbpf/libbpf-1.0.1.ebuild52
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest
index 0f96ef9562e5..dc87bf85fff1 100644
--- a/dev-libs/libbpf/Manifest
+++ b/dev-libs/libbpf/Manifest
@@ -1,7 +1,9 @@
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.0.0.tar.gz 917108 BLAKE2B 5bde5a9147330f11dcf1e37aace971624293aae3914459a6b8be327530fa2c2774edaf1b798225ade2771edd88bddc2a74d7f523791f83558417b759eb417f7a SHA512 e99aea1ff477114549b41c272a975169a79ffc1daf4bcaba586cd13d0fc0b23c336cb406fd8e64b73350fe16e2d423fa68a29601d15e2477955c7a92358fb7f8
+DIST libbpf-1.0.1.tar.gz 917269 BLAKE2B 24e43f9a2b20e6f708b74ff50c8ce243546681201b1d72d6b35a95dd85b59032069814792739d3b2a6adaa007958a142a687e901e36a193fd02cdca69926d08f SHA512 2ee6d85c0a33f723e5b93ddddf97118e67754c9e44ca0449ceb49126820f89fea9ddc282a5add764dc4da090af6164cc6641b497489253d192ed01bc397df9be
EBUILD libbpf-0.8.1.ebuild 1084 BLAKE2B dc1a4b3f72e0b0ee6e2a02eaea9cced199292d3123ea561d4500ecb046aed913a3b36953ab0834835e21ba479ce5e6e5dfa2886f0dee3a11b3931f5923c346d9 SHA512 a28fa90a912fe5a83c0698f59461d24de22b7176940e248eb217910c58ad4a39f80a942d608bdfee98b256ae15d16f025eec497aeb2c0439cecb014c94fffda1
EBUILD libbpf-1.0.0-r1.ebuild 1138 BLAKE2B f6921b078310adf0838c8c2261ec326100253390915bdcc51715acb4bbe70f72cb461ef4308c82ca0118b1592b067ca2322d0c0d78c785fbc8cc3521d8969269 SHA512 1f852b104a6701dda73bb85bb2e65c8af1bc6d1df0072220e44c0ada2c92365e4c4962c760a8116bea5de1c1b7b15647a54974ba4c14e0efa1bcce5a0e507694
+EBUILD libbpf-1.0.1.ebuild 1138 BLAKE2B f6921b078310adf0838c8c2261ec326100253390915bdcc51715acb4bbe70f72cb461ef4308c82ca0118b1592b067ca2322d0c0d78c785fbc8cc3521d8969269 SHA512 1f852b104a6701dda73bb85bb2e65c8af1bc6d1df0072220e44c0ada2c92365e4c4962c760a8116bea5de1c1b7b15647a54974ba4c14e0efa1bcce5a0e507694
EBUILD libbpf-9999.ebuild 1138 BLAKE2B f6921b078310adf0838c8c2261ec326100253390915bdcc51715acb4bbe70f72cb461ef4308c82ca0118b1592b067ca2322d0c0d78c785fbc8cc3521d8969269 SHA512 1f852b104a6701dda73bb85bb2e65c8af1bc6d1df0072220e44c0ada2c92365e4c4962c760a8116bea5de1c1b7b15647a54974ba4c14e0efa1bcce5a0e507694
MISC metadata.xml 420 BLAKE2B c61b50bd86dd9d110c35d57a9352ca3862790460f0a6f8e4be9e4ac2eb603fe6c1d6bbe8d77e9fdf32d08e7aaf19349516f25a0fdcb29e2671d71d2c230fc1f5 SHA512 131f77e33aa5b3cbc037a297fe0ed9affbcb956b4c7ddc64889eba5f8315f5090ae4fd7a6054f8961461072ca77d13f8bc6674f3ed27372b7b96c4322c487676
diff --git a/dev-libs/libbpf/libbpf-1.0.1.ebuild b/dev-libs/libbpf/libbpf-1.0.1.ebuild
new file mode 100644
index 000000000000..d106d0c7a863
--- /dev/null
+++ b/dev-libs/libbpf/libbpf-1.0.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+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"
+
+DESCRIPTION="Stand-alone build of libbpf from the Linux kernel"
+HOMEPAGE="https://github.com/libbpf/libbpf"
+
+LICENSE="GPL-2 LGPL-2.1 BSD-2"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="static-libs"
+
+DEPEND="
+ sys-kernel/linux-headers
+ virtual/libelf"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/libbpf-9999-paths.patch
+)
+
+src_configure() {
+ append-cflags -fPIC
+ tc-export CC AR
+ export LIBSUBDIR="$(get_libdir)"
+ export LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ export V=1
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ install install_uapi_headers
+
+ if ! use static-libs; then
+ find "${ED}" -name '*.a' -delete || die
+ fi
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${PN}.pc
+}