[Lunar-commits] <moonbase> kmod: a libary and utils to manage linux kernel modules. it repllce module-init-tools.

Florin Braescu florin at lunar-linux.org
Sun Jan 15 15:23:42 CET 2012


commit bc0b475ddc87f2bbd884305f59313157a81f9cb0
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Jan 15 15:23:42 2012 +0100

    kmod: a libary and utils to manage linux kernel modules. it repllce module-init-tools.
---
 kernel/kmod/BUILD     |   18 ++++++++++++++++++
 kernel/kmod/CONFLICTS |    2 ++
 kernel/kmod/DEPENDS   |    4 ++++
 kernel/kmod/DETAILS   |   17 +++++++++++++++++
 4 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/kernel/kmod/BUILD b/kernel/kmod/BUILD
new file mode 100644
index 0000000..4ffb8f8
--- /dev/null
+++ b/kernel/kmod/BUILD
@@ -0,0 +1,18 @@
+(
+
+  sedit "s:/usr::" autogen.sh  &&
+  sedit "s:\$(libdir)/pkgconfig:/usr/lib/pkgconfig:" Makefile.am  &&
+
+  ./autogen.sh   &&
+
+  sedit "s:\${prefix}/include:/usr/include:"  Makefile  &&
+
+  default_make  &&
+
+# add symlinks to kmod
+  ln -sf /bin/kmod "/bin/lsmod"
+  for tool in {ins,rm,dep}mod mod{info,probe}; do
+    ln -sf /bin/kmod "/sbin/$tool"
+  done
+
+) > $C_FIFO 2>&1
diff --git a/kernel/kmod/CONFLICTS b/kernel/kmod/CONFLICTS
new file mode 100644
index 0000000..a8afb8a
--- /dev/null
+++ b/kernel/kmod/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts module-init-tools
+
diff --git a/kernel/kmod/DEPENDS b/kernel/kmod/DEPENDS
new file mode 100644
index 0000000..9f07f83
--- /dev/null
+++ b/kernel/kmod/DEPENDS
@@ -0,0 +1,4 @@
+depends  glib-2
+depends  zlib
+
+optional_depends  "xz"  ""  ""  "support for xz compressed modules"
diff --git a/kernel/kmod/DETAILS b/kernel/kmod/DETAILS
new file mode 100644
index 0000000..cfda550
--- /dev/null
+++ b/kernel/kmod/DETAILS
@@ -0,0 +1,17 @@
+          MODULE=kmod
+         VERSION=3
+          SOURCE=$MODULE-$VERSION.tar.bz2
+      SOURCE_URL=http://git.profusion.mobi/cgit.cgi/kmod.git/snapshot
+      SOURCE_VFY=sha1:c5ed8e4760c715982a6521c006d377573bc87257
+        WEB_SITE=http://www.politreco.com/2011/12/announce-kmod-1
+         ENTERED=20120115
+         UPDATED=20120115
+           SHORT="A lib for kernel modules management"
+
+cat << EOF
+The goal of the new library libkmod is to offer to other programs the needed
+flexibility and fine grained control over insertion, removal, configuration
+and listing of kernel modules. Using the library, with simple pieces of code
+it's possible to interact with kernel modules and then there's no need to
+rely on other tools for that. 
+EOF


More information about the Lunar-commits mailing list