From 5c2ca7f87b39af920574e5fae9c3a97ea2c08d60 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 23 Oct 2012 01:35:05 +0200 Subject: [PATCH] kmod: Added kmod 10 - A library and set of userspace tools for managing Linux kernel modules --- base/kmod/kmod.cache | 29 +++++++++++++++++++++++++++++ base/kmod/kmod.conf | 37 +++++++++++++++++++++++++++++++++++++ base/kmod/kmod.desc | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 base/kmod/kmod.cache create mode 100644 base/kmod/kmod.conf create mode 100644 base/kmod/kmod.desc diff --git a/base/kmod/kmod.cache b/base/kmod/kmod.cache new file mode 100644 index 000000000..8bd22f4a5 --- /dev/null +++ b/base/kmod/kmod.cache @@ -0,0 +1,29 @@ + +[TIMESTAMP] 1350935084 Mon Oct 22 21:44:44 2012 +[BUILDTIME] 5 (3) +[SIZE] 0.42 MB, 31 files + +[DEP] autoconf +[DEP] bash +[DEP] binutils +[DEP] bzip2 +[DEP] coreutils +[DEP] diffutils +[DEP] fhs +[DEP] file +[DEP] findutils +[DEP] gawk +[DEP] gcc +[DEP] glibc +[DEP] grep +[DEP] linux-header +[DEP] m4 +[DEP] make +[DEP] perl +[DEP] pkgconfig +[DEP] sed +[DEP] sysfiles +[DEP] tar +[DEP] util-linux +[DEP] xz +[DEP] zlib diff --git a/base/kmod/kmod.conf b/base/kmod/kmod.conf new file mode 100644 index 000000000..87467257b --- /dev/null +++ b/base/kmod/kmod.conf @@ -0,0 +1,37 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../kmod/kmod.conf +# Copyright (C) 2012 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +prefix= +set_confopt + +# always build a static library +var_append extraconfopt ' ' "--enable-static" + +# enable handling of compressed modules if possible +for x in zlib xz; do + if pkginstalled -f $x; then + var_append extraconfopt ' ' "--with-$x" + fi +done + +pkg_kmod_symlinks() { + # kmod is a multicall binary + # Note: depmod and modprobe *must* be available in /sbin because + # their path is hardcoded within the kernel sources + kmodcmds="depmod modprobe modinfo insmod rmmod lsmod" + for x in $kmodcmds; do + ln -sf ..$bindir/kmod $root/sbin/$x + done +} +hook_add postmake 9 'pkg_kmod_symlinks' diff --git a/base/kmod/kmod.desc b/base/kmod/kmod.desc new file mode 100644 index 000000000..a198d7202 --- /dev/null +++ b/base/kmod/kmod.desc @@ -0,0 +1,36 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../kmod/kmod.desc +[COPY] Copyright (C) 2012 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A library and set of userspace tools for managing Linux kernel modules + +[T] kmod is a set of tools to handle common tasks with Linux kernel modules +[T] like insert, remove, list, check properties, resolve dependencies and +[T] aliases. +[T] These tools are designed on top of libkmod, a library that is shipped with +[T] kmod. The aim is to be compatible with tools, configurations and indexes +[T] from module-init-tools project. + +[U] http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary + +[A] Lucas De Marchi +[M] Christian Wiese + +[C] base/system + +[L] LGPL GPL +[S] Beta +[V] 10 +[P] X -1-3-5---9 106.100 + +[D] 3016628240 kmod-10.tar.xz http://www.kernel.org/pub/linux/utils/kernel/kmod/