diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-01 15:26:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-01 15:26:21 +0100 |
commit | d14501acaa1e3634cb0a6f6e356923391009eb46 (patch) | |
tree | 6fca6701ec7850e503efaf22370bab079a735dd8 /dev-util/scap-driver | |
parent | 9b9c22874161d13ca8d50c952d549f2390f3f179 (diff) |
gentoo auto-resync : 01:06:2023 - 15:26:21
Diffstat (limited to 'dev-util/scap-driver')
-rw-r--r-- | dev-util/scap-driver/Manifest | 4 | ||||
-rw-r--r-- | dev-util/scap-driver/scap-driver-0.29.3-r1.ebuild | 59 | ||||
-rw-r--r-- | dev-util/scap-driver/scap-driver-0.29.3-r2.ebuild | 60 | ||||
-rw-r--r-- | dev-util/scap-driver/scap-driver-0.29.3-r4.ebuild (renamed from dev-util/scap-driver/scap-driver-0.29.3-r3.ebuild) | 24 |
4 files changed, 8 insertions, 139 deletions
diff --git a/dev-util/scap-driver/Manifest b/dev-util/scap-driver/Manifest index 0b1cef863a71..c7869f7264f5 100644 --- a/dev-util/scap-driver/Manifest +++ b/dev-util/scap-driver/Manifest @@ -3,8 +3,6 @@ AUX 0.29.3-fix-kmod-build-on-6.2+.patch 1420 BLAKE2B 45f312bce9ce3dbaa0ddd300ccf AUX 0.29.3-fix-kmod-build-on-6.3+.patch 939 BLAKE2B c626a6c9e41510d9720a8d161f4b6fa2efc729437cffdeea97ab346b0dca9a18af82339e403b63c7ac297304893f686a20f5c612df417229b82701367530098d SHA512 c2b020de87c92724f93a0937e2ece2f1e88f8b0dbb5b1d85bffccd51fddc1fc2024fe0ae222f2f01adeb5dc34964b1e86f27f0bdfee347bf1bb927388c1b6c5c AUX 0.29.3-fix-kmod-build-on-6.4+.patch 1029 BLAKE2B 6025b3f598cb96c01085ef0ca807aa54894217c1929a1c1377c2f1399ff5bcbd56ce8c31c50d310f4f63df55587593e133ce00914c49edeb6a73d1d088d69083 SHA512 f2dfab8dd67d9694da592bcd10231b5132c459b71f6751d1baaa09e29a704f3185706618ab8d28b17d4c7a7e4b9c5e14fb4f53680bd502cfc98aa9693d2a5537 DIST falcosecurity-libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a.tar.gz 816972 BLAKE2B b47ae6a7677935500ebdab8aea7f4c49ef50b7175ec097e7213a1f041ac2b5aa642379924927ec12c84271016e9ab9d191c0c1d4ffacd6ade58b7a03c37f9221 SHA512 65e5916e5f9507fd867a5e9ba3b2670a1b73b7672a22479d3019e948a52ad74441d7e2ce1c74ebd0fdbd1ce66808efa49f285bd5180bceae9d4e6730a60787ce -EBUILD scap-driver-0.29.3-r1.ebuild 1871 BLAKE2B fa97c444251044913625228bd42d8ab22be21f69ddc75f4e45c15df832c1d1a6dab927f146fdb03addfa244a71ae2329d9651a2a454b79f45dd8a99eb53509da SHA512 7cc7ec73b64691fb8109b4fb406ce3ce565d9d09ead707290394599035f9d6059e5f88bce857b380c967a1edf008442541d692fd453a57880c1f61458da736d9 -EBUILD scap-driver-0.29.3-r2.ebuild 1921 BLAKE2B 992e21dfddd65f396a715da0040abbd33dea30c8e0347bdb4dd3886e10f4b4ccfd1c9083e63d422b99b4eff32494dfc026550ddef96e345a03d19d8ea5a94219 SHA512 6a7ba57ae0a3cde946981dea2e36a77342a4333dd41d47e4cb3f1938219d47c5fc89f267ced7650413217a36de2f132c8aac3650d20b18e2574c88654ab094a5 -EBUILD scap-driver-0.29.3-r3.ebuild 1971 BLAKE2B 30cf8f6931152a1229898ae8c756ee2777111512fb9917585546f61c6a3a39e91c7ad32efda0c0cc473d5c37d45bd6d9bd22e51e22ebacd5acc97854e66f68bc SHA512 f7b1e7864cbeb551cb89629616aa8b09aa13a6a32f9481251d8eb74b9fa83cef30893885c643680ffcd4fbf59ed09e8b4ee294ddebc17f2d93acaca026aac2c0 +EBUILD scap-driver-0.29.3-r4.ebuild 1547 BLAKE2B 42b381c85f88d3897ebc010c7251ae3250c06de0bdc38da8f6e040e64f5be3ed4a455f74ca87fd70d461362b7708b65a4f8835e125ed5f8ce17ff84af9981213 SHA512 e9f4466620c2a6125b2f946f85a12a735bbd0f13e0713e4e4fb662ad5c7bd1aaea832f6b40dc5b08ea25d5d36e853e4cafffd5d5cbe58e9356666306d1f56cec EBUILD scap-driver-0.29.3.ebuild 1818 BLAKE2B 739c7da7402f536aa4ee483c77de16498fef6460bdaad84f35bb7bb6f4ad06daac2e99349498f68f741c8348120ccb535bdaa7333d17ce10f3feea78d4889ddf SHA512 7c7d39dc69f2cdc28e656911513ca560722399b051adb5ef6a5626503536337ab7eeae39a2b9ababd217188324e4f270cc3ff9105ca04c63f3f9a919ebf26931 MISC metadata.xml 494 BLAKE2B d0bc754d3af2488b9dc7672fc63e962f4c885d88a819e4332bd1c25f84c967e2e1cd8489122490a864cbfd930225b3dc28c8bfad4426750c030dce6ef5a08b4e SHA512 b77b7c103cfb606333814af210a0fae1f7956ddd9d3c3a044b0bebf42553f5ffe99d04549fb9c5e40fce33e9d23761830b4944b2cd83bd8ca2193f9b7da60fc0 diff --git a/dev-util/scap-driver/scap-driver-0.29.3-r1.ebuild b/dev-util/scap-driver/scap-driver-0.29.3-r1.ebuild deleted file mode 100644 index 3006d1559d7a..000000000000 --- a/dev-util/scap-driver/scap-driver-0.29.3-r1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake linux-mod - -DESCRIPTION="Kernel module for dev-util/sysdig" -HOMEPAGE="https://sysdig.com/" - -# The driver is part of falcosecurity/libs, but for versioning reasons we cannot (yet) -# use semver-released packages; instead we pull in a commit that is used and known -# to work with sysdig, see sysdig/cmake/modules/falcosecurity-libs.cmake for details. -# For now the commit here and the one referenced in sysdig should be in sync. -LIBS_COMMIT="e5c53d648f3c4694385bbe488e7d47eaa36c229a" -SRC_URI="https://github.com/falcosecurity/libs/archive/${LIBS_COMMIT}.tar.gz -> falcosecurity-libs-${LIBS_COMMIT}.tar.gz" -S="${WORKDIR}/libs-${LIBS_COMMIT}" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -RDEPEND="!<dev-util/sysdig-${PV}[modules]" - -CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS" - -PATCHES=( - "${FILESDIR}"/${PV}-fix-kmod-build-on-5.18+.patch - "${FILESDIR}"/${PV}-fix-kmod-build-on-6.2+.patch -) - -src_configure() { - local mycmakeargs=( - # we will use linux-mod, so just pretend to use bundled deps - # in order to make it through the cmake setup. - -DUSE_BUNDLED_DEPS=ON - -DCREATE_TEST_TARGETS=OFF - -DDRIVER_VERSION=${LIBS_COMMIT} - ) - - cmake_src_configure - - # setup linux-mod ugliness - MODULE_NAMES="scap(extra:${BUILD_DIR}/driver/src:)" - BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"' - # work with clang-built kernels (#816024) - if linux_chkconfig_present CC_IS_CLANG; then - BUILD_PARAMS+=' CC=${CHOST}-clang' - if linux_chkconfig_present LD_IS_LLD; then - BUILD_PARAMS+=' LD=ld.lld' - if linux_chkconfig_present LTO_CLANG_THIN; then - # kernel enables cache by default leading to sandbox violations - BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir=' - fi - fi - fi - - BUILD_TARGETS="all" -} diff --git a/dev-util/scap-driver/scap-driver-0.29.3-r2.ebuild b/dev-util/scap-driver/scap-driver-0.29.3-r2.ebuild deleted file mode 100644 index 129db40bcb86..000000000000 --- a/dev-util/scap-driver/scap-driver-0.29.3-r2.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake linux-mod - -DESCRIPTION="Kernel module for dev-util/sysdig" -HOMEPAGE="https://sysdig.com/" - -# The driver is part of falcosecurity/libs, but for versioning reasons we cannot (yet) -# use semver-released packages; instead we pull in a commit that is used and known -# to work with sysdig, see sysdig/cmake/modules/falcosecurity-libs.cmake for details. -# For now the commit here and the one referenced in sysdig should be in sync. -LIBS_COMMIT="e5c53d648f3c4694385bbe488e7d47eaa36c229a" -SRC_URI="https://github.com/falcosecurity/libs/archive/${LIBS_COMMIT}.tar.gz -> falcosecurity-libs-${LIBS_COMMIT}.tar.gz" -S="${WORKDIR}/libs-${LIBS_COMMIT}" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -RDEPEND="!<dev-util/sysdig-${PV}[modules]" - -CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS" - -PATCHES=( - "${FILESDIR}"/${PV}-fix-kmod-build-on-5.18+.patch - "${FILESDIR}"/${PV}-fix-kmod-build-on-6.2+.patch - "${FILESDIR}"/${PV}-fix-kmod-build-on-6.3+.patch -) - -src_configure() { - local mycmakeargs=( - # we will use linux-mod, so just pretend to use bundled deps - # in order to make it through the cmake setup. - -DUSE_BUNDLED_DEPS=ON - -DCREATE_TEST_TARGETS=OFF - -DDRIVER_VERSION=${LIBS_COMMIT} - ) - - cmake_src_configure - - # setup linux-mod ugliness - MODULE_NAMES="scap(extra:${BUILD_DIR}/driver/src:)" - BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"' - # work with clang-built kernels (#816024) - if linux_chkconfig_present CC_IS_CLANG; then - BUILD_PARAMS+=' CC=${CHOST}-clang' - if linux_chkconfig_present LD_IS_LLD; then - BUILD_PARAMS+=' LD=ld.lld' - if linux_chkconfig_present LTO_CLANG_THIN; then - # kernel enables cache by default leading to sandbox violations - BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir=' - fi - fi - fi - - BUILD_TARGETS="all" -} diff --git a/dev-util/scap-driver/scap-driver-0.29.3-r3.ebuild b/dev-util/scap-driver/scap-driver-0.29.3-r4.ebuild index deb27234ee35..f92bb2a04fd6 100644 --- a/dev-util/scap-driver/scap-driver-0.29.3-r3.ebuild +++ b/dev-util/scap-driver/scap-driver-0.29.3-r4.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake linux-mod +inherit cmake linux-mod-r1 DESCRIPTION="Kernel module for dev-util/sysdig" HOMEPAGE="https://sysdig.com/" @@ -41,21 +41,11 @@ src_configure() { ) cmake_src_configure +} + +src_compile() { + local modlist=( scap=:"${BUILD_DIR}"/driver/src ) + local modargs=( KERNELDIR="${KV_OUT_DIR}" ) - # setup linux-mod ugliness - MODULE_NAMES="scap(extra:${BUILD_DIR}/driver/src:)" - BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"' - # work with clang-built kernels (#816024) - if linux_chkconfig_present CC_IS_CLANG; then - BUILD_PARAMS+=' CC=${CHOST}-clang' - if linux_chkconfig_present LD_IS_LLD; then - BUILD_PARAMS+=' LD=ld.lld' - if linux_chkconfig_present LTO_CLANG_THIN; then - # kernel enables cache by default leading to sandbox violations - BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir=' - fi - fi - fi - - BUILD_TARGETS="all" + linux-mod-r1_src_compile } |