Linux Archive

Linux Archive (
-   CRUX (
-   -   ports/core (2.7): kmod: initial release (

03-20-2012 10:04 AM

ports/core (2.7): kmod: initial release
commit 13b717a72cc1c18ec604fac00ac72acd30d2d684
Author: Juergen Daubert <>
Date: Tue Mar 20 11:48:21 2012 +0100

[notify] kmod: initial release

kmod is the succesor of module-init-tools and provides, besides the
usual binaries like modprobe, lsmod etc., a library libkmod which
is used by udev since version 176 to load kernel modules. That's
the main reason why we should switch to kmod now.

I've been running kmod since quite some time without any issues.

Because module-init-tools and kmod provides both the same set of
binaries we have to pkgrm module-init-tools manually prior to kmod


diff --git a/kmod/.footprint b/kmod/.footprint
new file mode 100644
index 0000000..d199440
--- /dev/null
+++ b/kmod/.footprint
@@ -0,0 +1,37 @@
+drwxr-xr-x root/root bin/
+lrwxrwxrwx root/root bin/lsmod -> ../sbin/kmod
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/depmod.d/
+drwxr-xr-x root/root etc/modprobe.d/
+drwxr-xr-x root/root lib/
+lrwxrwxrwx root/root lib/ ->
+-rwxr-xr-x root/root lib/
+drwxr-xr-x root/root sbin/
+lrwxrwxrwx root/root sbin/depmod -> kmod
+lrwxrwxrwx root/root sbin/insmod -> kmod
+-rwxr-xr-x root/root sbin/kmod
+lrwxrwxrwx root/root sbin/lsmod -> kmod
+lrwxrwxrwx root/root sbin/modinfo -> kmod
+lrwxrwxrwx root/root sbin/modprobe -> kmod
+lrwxrwxrwx root/root sbin/rmmod -> kmod
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/libkmod.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/
+lrwxrwxrwx root/root usr/lib/ -> ../../lib/
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/libkmod.pc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/depmod.d.5.gz
+-rw-r--r-- root/root usr/man/man5/modprobe.d.5.gz
+-rw-r--r-- root/root usr/man/man5/modules.dep.5.gz
+-rw-r--r-- root/root usr/man/man5/modules.dep.bin.5.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/depmod.8.gz
+-rw-r--r-- root/root usr/man/man8/insmod.8.gz
+-rw-r--r-- root/root usr/man/man8/lsmod.8.gz
+-rw-r--r-- root/root usr/man/man8/modinfo.8.gz
+-rw-r--r-- root/root usr/man/man8/modprobe.8.gz
+-rw-r--r-- root/root usr/man/man8/rmmod.8.gz
diff --git a/kmod/.md5sum b/kmod/.md5sum
new file mode 100644
index 0000000..836dbc1
--- /dev/null
+++ b/kmod/.md5sum
@@ -0,0 +1 @@
+7bd916ae1c8a38e7697fdd8118bc98eb kmod-7.tar.xz
diff --git a/kmod/Pkgfile b/kmod/Pkgfile
new file mode 100644
index 0000000..26e5076
--- /dev/null
+++ b/kmod/Pkgfile
@@ -0,0 +1,33 @@
+# Description: Kernel module utilities and library
+# URL:
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+build() {
+ cd $name-$version
+ ./configure --prefix=/usr
+ --bindir=/sbin
+ --sysconfdir=/etc
+ --mandir=/usr/man
+ --with-rootprefix=
+ --with-rootlibdir=/lib
+ make
+ make DESTDIR=$PKG install
+ install -d $PKG/etc/{modprobe,depmod}.d
+ install -d $PKG/bin
+ ln -s kmod $PKG/sbin/modinfo
+ ln -s kmod $PKG/sbin/depmod
+ ln -s kmod $PKG/sbin/insmod
+ ln -s kmod $PKG/sbin/lsmod
+ ln -s kmod $PKG/sbin/rmmod
+ ln -s kmod $PKG/sbin/modprobe
+ ln -s ../sbin/kmod $PKG/bin/lsmod
CRUX mailing list

All times are GMT. The time now is 09:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.