From bb96aec4f8066c94a27ae8ae0c4692ef932d06d6 Mon Sep 17 00:00:00 2001 From: ffqq Date: Thu, 25 Jan 2024 22:50:05 +0300 Subject: [PATCH] sysutils/kmod: New port --- sysutils/kmod/SCHEMATIC | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 sysutils/kmod/SCHEMATIC diff --git a/sysutils/kmod/SCHEMATIC b/sysutils/kmod/SCHEMATIC new file mode 100644 index 0000000..1265af3 --- /dev/null +++ b/sysutils/kmod/SCHEMATIC @@ -0,0 +1,38 @@ +#!/bin/sh +name="kmod" +short_desc="Kernel module utilities & libraries" +desc="kmod is a set of tools to handle common tasks with Linux kernel +modules like insert, remove, list, check properties, resolve dependencies +and aliases. + +These tools are designed on top of libkmod, a library that is +shipped with kmod. + +See libkmod/README for more details on this library and how to +use it. + +The aim is to be compatible with tools, configurations and indexes +from module-init-tools project." +category="sysutils" +version="31" +maintainer="ffqq@danwin1210.de" +www="https://lore.kernel.org/linux-modules/" +master_site="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kmod/" +source_name="$name-$version.tar.gz" +license_logic="single" # accepted values: single, and, or +licenses=("LGPLv3") + +build_dependencies=("devel/gmake" "lang/gcc") +run_dependencies=("system/glibc") + +build_process() { + cd $name-$version + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-openssl \ + --with-xz \ + --with-zstd \ + --with-zlib || exit 1 + make -j$(nproc) + make DESTDIR="$TAMANDUA_STAGE_DIR" install +} \ No newline at end of file