diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-06 06:30:53 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-06 06:30:53 +0100 |
commit | f4ee508de68f4da495d887f2855afbe02434a561 (patch) | |
tree | b0947e32df8014f5418e739ec5528027c8981c46 /dev-libs/libbpf | |
parent | 9323524b4d44f4ec3dc923bd8e9ea04bdde8a067 (diff) |
gentoo auto-resync : 06:04:2024 - 06:30:53
Diffstat (limited to 'dev-libs/libbpf')
-rw-r--r-- | dev-libs/libbpf/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/libbpf/libbpf-1.4.0.ebuild | 65 | ||||
-rw-r--r-- | dev-libs/libbpf/libbpf-9999.ebuild | 25 |
3 files changed, 86 insertions, 8 deletions
diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest index e0e398475d49..8aea6e1061ec 100644 --- a/dev-libs/libbpf/Manifest +++ b/dev-libs/libbpf/Manifest @@ -2,8 +2,10 @@ AUX libbpf-9999-paths.patch 883 BLAKE2B 663e03ae01afd7be73c281e8b83cf5534717c28f DIST libbpf-0.8.1.tar.gz 942702 BLAKE2B 084be7d4258500fa894560ed2e52821addcc5d150dcd77fd646271b614d788b7931271be9c3e46fdbc4ed93d053ea3e09023158a8e4a31f9452d10dcb0677b58 SHA512 e3bb602f55215a4f030e564af7321ba6338937c426fcaee478b607f88b0c773c40a0c3f59a2b345bda951a19e79061733f8a3fdc10a6292e92782e65754b584a DIST libbpf-1.2.2.tar.gz 1000104 BLAKE2B 45a2ceabd38b3ea55f466de68d0806df6ae802b509063ca12d670ba972bac3dc5c7e518e8c9904915dbc9877c27ea892a7b857aa03d4e86016969b2d278b0b4a SHA512 bc7620207e6f521b9b5baab00bd81346084b8eabf81bff3ec24e5367d389f2a331a0b082798f8bb5d4fea836c3c0cc961fc881abc3a4e05d91152150bdfe47be DIST libbpf-1.3.0.tar.gz 999282 BLAKE2B 5ee0a45cd06be482c9523ec2a9bb26cf12b89df23f515b037badda868770069d5ffb751c011222b86b1d43034a1cdd537cb263883ed0645641548adc9c9896eb SHA512 59990189538e47765542e9ed6e88bc78c9d29bc077b5666bb1303cf15579c90b3d35a0d631b9bbd4bff2708243dc91d901bd68c119fb74dfd10a3e1066aa9acc +DIST libbpf-1.4.0.tar.gz 1015490 BLAKE2B 46932f972201581f9f5be98063888216fd522ac549561efdec09603dfcbf0132418f50c2aed80d656fd25b235a9dc3b4ffe459cab9445a8508a7af620989072f SHA512 400c91a4870be8bb115f7abcc12c460700980fb6a3afdf43c885b1cdbe28fed1d37142d3987a85e12b4c565787a48f5cd0b07cafff067d91902d70713528929f EBUILD libbpf-0.8.1.ebuild 1153 BLAKE2B 98da8cd35ab316a4bbf9d4e6a9c40b278ecd1385d8077a16e4582fb9a4209c40ebcf4ec9e24d3312334ace6c2f99da9732e7a9379a0dd478baa66bdd790a4793 SHA512 16a7e9a08fe9d782da9f57727b50592d42c7cfcd5cbf407197c5764e2a7175f0277a116e25379092e0f67adac353513f614d9bfe2edac2990d0fc91d5adc9a26 EBUILD libbpf-1.2.2.ebuild 1185 BLAKE2B 57c4bfa90f1601343e66e0233c30af684c47688eda103bd2672472cf6a199f8849f0821d2e889e583dc09a4a8e36b9a9f92fb3d1abb6e2db844b5f57c3566489 SHA512 ab6998bfa3a4674c6df8ccfa0b46216779d6ea48d22f33a45836f233f3c755b714aeada2f8950814a083a1a490ca10672df60351b9c8ece555fe98a3a1bb5c27 EBUILD libbpf-1.3.0.ebuild 1244 BLAKE2B 1d5e177c1413d136a9e27220d7e3a7da0eb315191eaecdb32bc3409120e5bea0082cbee6110bdfec47c12c39a69de2a67cb2a7944deeecb0f9675983b3892d74 SHA512 e7b817cc258547e83399e3546ded27a1074f36c27aa0a47fd631e520d8a43a7c10277f45bc45acd48ec2176b7df0e516736797276cca594e8eda90d4a423fe59 -EBUILD libbpf-9999.ebuild 1192 BLAKE2B e26a265cb13392e4e90e48ab96cabad38188e9b28ccf40e8e7b11a08117193dbe025f5ab71c09da29a7e3ab2561c154389e87be9b1a1fba8e7d57eb3105a07bb SHA512 955be1dde34476c2b66014f9b3da584ea38459105f49980e29fd943198feb3ee228a6ffb121c9bbce7c109712c37bbc8996f8cc4715eba626bd08aadaa23d7e8 +EBUILD libbpf-1.4.0.ebuild 1257 BLAKE2B 34b5183bd4bb8c605eb8de29a6f4634e173fc6f435bbbc05ef233ec6e6a75416083e447c861c8f7c5762c520d7d83a1dd90528b3352273becab8ef272df93555 SHA512 6b08a58ae46cb5c7927e7e2591cb14e56ba01eb0512c0e3bf877eb2d1454f239cd2cba7e649963167bab16b5bd588e45d4c60fe6f2b73e0a86734cebdce153f4 +EBUILD libbpf-9999.ebuild 1251 BLAKE2B 2ede02f43b6d6849a3ecc57bbfa29d2089013cb14c18604ea57454fe5ced1c3bcc77aff74684e7b1286acca7d7c42dcbce2c4553e3c694813b83ff1e5f54317b SHA512 9bd941c52ea5b4582f1818a728dabb4668358c0eab1a20444c4c2249a1d92290207f50c16647c267e04155a6c0148c42c424f3db13de84aba7e2fef81ef550ff MISC metadata.xml 420 BLAKE2B c61b50bd86dd9d110c35d57a9352ca3862790460f0a6f8e4be9e4ac2eb603fe6c1d6bbe8d77e9fdf32d08e7aaf19349516f25a0fdcb29e2671d71d2c230fc1f5 SHA512 131f77e33aa5b3cbc037a297fe0ed9affbcb956b4c7ddc64889eba5f8315f5090ae4fd7a6054f8961461072ca77d13f8bc6674f3ed27372b7b96c4322c487676 diff --git a/dev-libs/libbpf/libbpf-1.4.0.ebuild b/dev-libs/libbpf/libbpf-1.4.0.ebuild new file mode 100644 index 000000000000..6cd9245fc9a6 --- /dev/null +++ b/dev-libs/libbpf/libbpf-1.4.0.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 +} diff --git a/dev-libs/libbpf/libbpf-9999.ebuild b/dev-libs/libbpf/libbpf-9999.ebuild index 4bc4f9eafffd..a666bd28bfd5 100644 --- a/dev-libs/libbpf/libbpf-9999.ebuild +++ b/dev-libs/libbpf/libbpf-9999.ebuild @@ -1,10 +1,13 @@ -# Copyright 2019-2022 Gentoo Authors +# 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" @@ -14,18 +17,24 @@ else 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}" -BDEPEND="virtual/pkgconfig" + virtual/libelf +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + virtual/pkgconfig +" + +DOCS=( + ../{README,SYNC}.md +) PATCHES=( "${FILESDIR}"/libbpf-9999-paths.patch @@ -49,6 +58,8 @@ src_install() { find "${ED}" -name '*.a' -delete || die fi + dodoc "${DOCS[@]}" + insinto /usr/$(get_libdir)/pkgconfig doins ${PN}.pc } |