]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - kmod/kmod.nm
kmod: Update to 9.
[people/ms/ipfire-3.x.git] / kmod / kmod.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = kmod
7 version = 9
8 release = 1
9
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = System/Kernel
12 url = http://modules.wiki.kernel.org/
13 license = GPLv2+
14 summary = Linux kernel module management utilities.
15
16 description
17 The kmod package provides various programs needed for automatic
18 loading and unloading of modules under 2.6, 3.x, and later kernels,
19 as well as other module management programs. Device drivers and
20 filesystems are two examples of loaded and unloaded modules.
21 end
22
23 source_dl = ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/
24 sources = %{thisapp}.tar.xz
25
26 build
27 requires
28 xz-devel
29 zlib-devel
30 end
31
32 configure_options += \
33 --with-xz \
34 --with-zlib
35
36 test
37 make check
38 end
39
40 install_cmds
41 mkdir -pv %{BUILDROOT}%{prefix}/lib/modprobe.d
42 mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d
43 mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d
44
45 mkdir -pv %{BUILDROOT}%{sbindir}
46 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/modprobe
47 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/modinfo
48 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/insmod
49 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/rmmod
50 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/depmod
51 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/lsmod
52 end
53 end
54
55 packages
56 package %{name}
57 provides
58 module-init-tools = 4.0-1
59 /bin/kmod
60 /sbin/depmod
61 /sbin/insmod
62 /sbin/lsmod
63 /sbin/modinfo
64 /sbin/modprobe
65 /sbin/rmmod
66 end
67
68 obsoletes = module-init-tools < 4.0-1
69 end
70
71 package %{name}-libs
72 template LIBS
73 end
74
75 package %{name}-devel
76 template DEVEL
77
78 requires += %{name}-libs = %{thisver}
79 end
80
81 package %{name}-debuginfo
82 template DEBUGINFO
83 end
84 end