diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-12 03:02:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-12 03:02:41 +0000 |
commit | 51be8f45b17e3da3ac48eca6b16b703bb58fda76 (patch) | |
tree | bc6f18bc4913276cff3f8c2f2ec357f9026c602c /dev-libs/libbpf | |
parent | 0ab98a20dbfb8c64ab93e02280abb4ff18652ae0 (diff) |
gentoo auto-resync : 12:11:2024 - 03:02:41
Diffstat (limited to 'dev-libs/libbpf')
-rw-r--r-- | dev-libs/libbpf/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libbpf/libbpf-1.5.0.ebuild | 65 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest index 69f40dbef064..92fb996c4887 100644 --- a/dev-libs/libbpf/Manifest +++ b/dev-libs/libbpf/Manifest @@ -3,9 +3,11 @@ DIST libbpf-0.8.1.tar.gz 942702 BLAKE2B 084be7d4258500fa894560ed2e52821addcc5d15 DIST libbpf-1.3.0.tar.gz 999282 BLAKE2B 5ee0a45cd06be482c9523ec2a9bb26cf12b89df23f515b037badda868770069d5ffb751c011222b86b1d43034a1cdd537cb263883ed0645641548adc9c9896eb SHA512 59990189538e47765542e9ed6e88bc78c9d29bc077b5666bb1303cf15579c90b3d35a0d631b9bbd4bff2708243dc91d901bd68c119fb74dfd10a3e1066aa9acc DIST libbpf-1.3.2.tar.gz 999726 BLAKE2B 1e8bf6275b5542acebd021c1594f8b069e786b091099111bfa01efbc9975e014c3cd5fac680ffa6467cacf293890449cd857b6127a857711d42b7f8326b7d965 SHA512 0817c144ecdc9b02866e8d70fd87b103fc4909430417388930ccf9b6f8e9abef0ae2783bfd5a85830dd909459087642e987d2627f9d0f571f2279c64a29fc791 DIST libbpf-1.4.5.tar.gz 1016457 BLAKE2B 4aa57b67a184938cfb9e24afced63c816715a1f38f1446320bb7c9b59ca446fdd5addda63b05c880499df9ed7820e02764c5299c7609164cf22bcd5512467a6d SHA512 c5ed459e89a8897ef7c892723c61efb2f2fdb0e7bea63eaff1c9936d368d2cc9e63b8c093207eef0df3109c021156c52ddb570757f69c54e713909e866dbb2f5 +DIST libbpf-1.5.0.tar.gz 1036613 BLAKE2B fd9bbf7689632c6f3fc18705bf1cfb5ba8abca632f6da1264692f0b6ff0e5887fb88697dd4418cc9a451df3421015f4c8de5162c1b8a40594af050dca3442669 SHA512 0cc25addcf5fcee0537d598037feab4bc73a513e6025d8f559bed58fe8850a10fcfeefd1a9dafc5e0bac6202d445944b12811cb7254b9b3be4dd3d2cc1e9419b EBUILD libbpf-0.8.1.ebuild 1147 BLAKE2B c0c10714096db810d25692acad787234592c5bba81ffd0c450c65e2739dc00ab9ba72edbd803d8a0b3bd36fc05b8a0ade8eba678c7d97cfede4d9fe6639cb0e3 SHA512 d81238dccf44da5b4459dcb32028afdbf7adfb2c86ae01cdc9535efebb08a8987b27bb7c918ff4bf68ed14de7292315ce0a1a5a46c6b31fc58ca514cce62e1cf EBUILD libbpf-1.3.0.ebuild 1238 BLAKE2B 6926e0e5225dbd7309c2a798ccc1363dd44b0241ea53a386a85866ba6e5f1d349a677de4f6aab03baff1da5bc8d7a652e4da435041f12a403d98a58cccb1a9e4 SHA512 9fb7caf6e30f9ba9883e23fb5eb046132a8daa539672929e3512bb01363ede70a03ff3707f148ec420360774ba6f92230422a1e5e351568c6675c2f75ef4a787 EBUILD libbpf-1.3.2.ebuild 1251 BLAKE2B fcbc494ffb33028e683620340d5ccbfc95d3fc42808fb00efebc004803c837d229fd64457049ba7c727de9713861c3b7c18828010e720771ded5067e9dadd3e1 SHA512 113e2ad470ef92e461e7a3b7c9a2627858b68bae74211e2bb5c521a80c47873da6d287b3e6bf4a4e8d6c3b6485044b2f9e61b1a51ec4e4831aea1c7640b67630 EBUILD libbpf-1.4.5.ebuild 1248 BLAKE2B c181ad92feb3b2f8521a9c32aa2d123fb58e529b02431e21737ad2c267396923a7aee2df2772a02f18af592530b33de3daf2e271e7aa69cafcfea78cf4851e77 SHA512 cb3e579bf66700e875c87e4202d7f5426f08eab29e15449f64c508290f3b6803d31f33c00a8f1ee49e67b132a855fb1f12c4ce8de00b116d535965fe8f9a25e4 +EBUILD libbpf-1.5.0.ebuild 1251 BLAKE2B fcbc494ffb33028e683620340d5ccbfc95d3fc42808fb00efebc004803c837d229fd64457049ba7c727de9713861c3b7c18828010e720771ded5067e9dadd3e1 SHA512 113e2ad470ef92e461e7a3b7c9a2627858b68bae74211e2bb5c521a80c47873da6d287b3e6bf4a4e8d6c3b6485044b2f9e61b1a51ec4e4831aea1c7640b67630 EBUILD libbpf-9999.ebuild 1245 BLAKE2B 1706a684e48f10e12cf3cfa6d8f809e8197cf8464c6d266425c2d7b501cb8130aab346eb5b006dfc5399a4e03d287b5557c5770f73e94d0cabc608ebba04d437 SHA512 fe39c6714dd55685b00d3db971d29f2bea386f0ac398cc9b503c2f04e5740fef4b3100a2003c4726fc2c0064a25d4e5fbed1f05a5154bcc739cd6cb65defefae MISC metadata.xml 306 BLAKE2B 6af2288a09cffb8801efe6841d11dae5e8f3659dd75be45f746bab3f48686458916dab796fd9d535e1a6fa0ca78567e8227e29ef06cc22c4a9d0b1cbebd30ab0 SHA512 c027c14965069ece90130984bab710dc19f199a184e834666449f4bc0874de3b5f5d878f3a1fe6f817a85eef2bc45914e640f0140878b7454a32738a7f500032 diff --git a/dev-libs/libbpf/libbpf-1.5.0.ebuild b/dev-libs/libbpf/libbpf-1.5.0.ebuild new file mode 100644 index 000000000000..9ff1eb278ac1 --- /dev/null +++ b/dev-libs/libbpf/libbpf-1.5.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 ~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 +} |