From 8a072ca95ab0fb833222b848657d2fa1e78d44bb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 15 Feb 2012 00:30:34 +0100 Subject: [PATCH] kmod: Ship tools like lsmod, modprobe, etc. The kmod package does now ship all tools that were usually provided by module-init-tools. So kmod replaces the module-init-tools package. --- kmod/kmod.nm | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/kmod/kmod.nm b/kmod/kmod.nm index 926ef427c..b6f132682 100644 --- a/kmod/kmod.nm +++ b/kmod/kmod.nm @@ -5,8 +5,9 @@ name = kmod version = 5 -release = 1 +release = 2 +maintainer = Michael Tremer groups = System/Kernel url = http://modules.wiki.kernel.org/ license = GPLv2+ @@ -25,7 +26,6 @@ sources = %{thisapp}.tar.xz build requires - chrpath xz-devel zlib-devel end @@ -40,9 +40,6 @@ build # The testsuite does generate lots of errors. 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} @@ -50,11 +47,23 @@ build mkdir -pv %{BUILDROOT}/lib/modprobe.d mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d + + mkdir -pv %{BUILDROOT}/sbin + ln -svf ../bin/kmod %{BUILDROOT}/sbin/modprobe + ln -svf ../bin/kmod %{BUILDROOT}/sbin/modinfo + ln -svf ../bin/kmod %{BUILDROOT}/sbin/insmod + ln -svf ../bin/kmod %{BUILDROOT}/sbin/rmmod + ln -svf ../bin/kmod %{BUILDROOT}/sbin/depmod + ln -svf ../bin/kmod %{BUILDROOT}/sbin/lsmod + ln -svf kmod %{BUILDROOT}/bin/lsmod end end packages package %{name} + provides = module-init-tools = 4.0-1 + obsoletes = module-init-tools < 4.0-1 + end package %{name}-libs template LIBS -- 2.39.2