diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-23 02:44:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-23 02:44:06 +0100 |
commit | f019a919bf109460ee009a5f9210b99d0467db97 (patch) | |
tree | 5e62ee11b837b7b408bb93bf2f01eb74f7b8a73f /dev-libs/libbpf | |
parent | 6a9905e269a1104c93dceb41e2627a8568642946 (diff) |
gentoo auto-resync : 23:08:2022 - 02:44:06
Diffstat (limited to 'dev-libs/libbpf')
-rw-r--r-- | dev-libs/libbpf/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/libbpf/libbpf-1.0.0.ebuild | 51 | ||||
-rw-r--r-- | dev-libs/libbpf/libbpf-9999.ebuild | 2 |
3 files changed, 55 insertions, 2 deletions
diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest index 2225393ca0c7..32f73cdbf135 100644 --- a/dev-libs/libbpf/Manifest +++ b/dev-libs/libbpf/Manifest @@ -1,5 +1,7 @@ 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 EBUILD libbpf-0.8.1.ebuild 1084 BLAKE2B dc1a4b3f72e0b0ee6e2a02eaea9cced199292d3123ea561d4500ecb046aed913a3b36953ab0834835e21ba479ce5e6e5dfa2886f0dee3a11b3931f5923c346d9 SHA512 a28fa90a912fe5a83c0698f59461d24de22b7176940e248eb217910c58ad4a39f80a942d608bdfee98b256ae15d16f025eec497aeb2c0439cecb014c94fffda1 -EBUILD libbpf-9999.ebuild 1083 BLAKE2B 54ff762df027c679d66b248e7d0d2124acf163a40b9b8b6b5d73a574e1290215d5d60117310561b0b71893a196d1d9839648021b9919d902df6a6da97714d4d0 SHA512 c78ab45c28c6152569571587ae317eac4cf0f84157a395181eb4091e4a1f86ff93bd7303fc471ff0b00fbbb725ee538df22dfdd18395fb663095bd258dd8b118 +EBUILD libbpf-1.0.0.ebuild 1092 BLAKE2B 6f015d85733216c4b80e9255ddfe983c331c7d24defcfdfd2b7cb7ed192b376ca08e5405f0d601ea4db704b5ecc68157659edb84d0f9565d8b4d3bc14ec3b43a SHA512 4393b81437c52b277eed6990b69c071b9317e9f8bb112f9abdcd60c93f2af5b66e165ea0436c12ca4dce475e1052fd98a0bb6dd9787bc9c44e0a03e547c2ad61 +EBUILD libbpf-9999.ebuild 1092 BLAKE2B 6f015d85733216c4b80e9255ddfe983c331c7d24defcfdfd2b7cb7ed192b376ca08e5405f0d601ea4db704b5ecc68157659edb84d0f9565d8b4d3bc14ec3b43a SHA512 4393b81437c52b277eed6990b69c071b9317e9f8bb112f9abdcd60c93f2af5b66e165ea0436c12ca4dce475e1052fd98a0bb6dd9787bc9c44e0a03e547c2ad61 MISC metadata.xml 420 BLAKE2B c61b50bd86dd9d110c35d57a9352ca3862790460f0a6f8e4be9e4ac2eb603fe6c1d6bbe8d77e9fdf32d08e7aaf19349516f25a0fdcb29e2671d71d2c230fc1f5 SHA512 131f77e33aa5b3cbc037a297fe0ed9affbcb956b4c7ddc64889eba5f8315f5090ae4fd7a6054f8961461072ca77d13f8bc6674f3ed27372b7b96c4322c487676 diff --git a/dev-libs/libbpf/libbpf-1.0.0.ebuild b/dev-libs/libbpf/libbpf-1.0.0.ebuild new file mode 100644 index 000000000000..b2c18cdba4be --- /dev/null +++ b/dev-libs/libbpf/libbpf-1.0.0.ebuild @@ -0,0 +1,51 @@ +# 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 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 +} diff --git a/dev-libs/libbpf/libbpf-9999.ebuild b/dev-libs/libbpf/libbpf-9999.ebuild index 48e13cc5780d..b2c18cdba4be 100644 --- a/dev-libs/libbpf/libbpf-9999.ebuild +++ b/dev-libs/libbpf/libbpf-9999.ebuild @@ -18,7 +18,7 @@ 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/${PV}" +SLOT="0/$(ver_cut 1-2)" IUSE="static-libs" DEPEND=" |