]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
kmod: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Jan 2012 22:21:24 +0000 (23:21 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Jan 2012 22:21:24 +0000 (23:21 +0100)
Handles loading and unloading of kernel modules
in the Linux kernel. It is required by udev.

kmod/kmod.nm [new file with mode: 0644]

diff --git a/kmod/kmod.nm b/kmod/kmod.nm
new file mode 100644 (file)
index 0000000..b55b87c
--- /dev/null
@@ -0,0 +1,70 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = kmod
+version    = 4
+release    = 1
+
+groups     = System/Kernel
+url        = http://modules.wiki.kernel.org/
+license    = GPLv2+
+summary    = Linux kernel module management utilities.
+
+description
+       The kmod package provides various programs needed for automatic
+       loading and unloading of modules under 2.6, 3.x, and later kernels,
+       as well as other module management programs. Device drivers and
+       filesystems are two examples of loaded and unloaded modules.
+end
+
+# Will eventually move to kernel.org.
+source_dl  = http://packages.profusion.mobi/kmod/
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               chrpath
+               xz-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --with-rootprefix= \
+               --with-rootlibdir=/%{lib} \
+               --with-xz \
+               --with-zlib
+
+       install_cmds
+               # Remove RPATH from /bin/kmod
+               chrpath --delete %{BUILDROOT}/bin/kmod
+
+               # Remove all man pages (because there are not corresponding
+               # binaries, yet).
+               rm -rvf %{BUILDROOT}%{mandir}
+
+               mkdir -pv %{BUILDROOT}/lib/modprobe.d
+               mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d
+               mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-libs
+               template LIBS
+       end
+
+       package %{name}-devel
+               template DEVEL
+
+               requires += %{name}-libs = %{thisver}
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end