]> git.ipfire.org Git - ipfire-3.x.git/blob - kmod/kmod.nm
json-c: Update to version 0.17-20230812
[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 = 25
8 release = 1
9
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = System/Kernel
12 url = http://git.kernel.org/cgit/utils/kernel/kmod/kmod.git
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 = https://www.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 # The testsuite does generate lots of errors.
37
38 install_cmds
39 mkdir -pv %{BUILDROOT}%{prefix}/lib/modprobe.d
40 mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d
41 mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d
42
43 mkdir -pv %{BUILDROOT}%{sbindir}
44 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/modprobe
45 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/modinfo
46 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/insmod
47 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/rmmod
48 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/depmod
49 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/lsmod
50 end
51 end
52
53 packages
54 package %{name}
55 provides
56 module-init-tools = 4.0-1
57 /bin/kmod
58 /sbin/depmod
59 /sbin/insmod
60 /sbin/lsmod
61 /sbin/modinfo
62 /sbin/modprobe
63 /sbin/rmmod
64 end
65
66 obsoletes = module-init-tools < 4.0-1
67 end
68
69 package %{name}-libs
70 template LIBS
71 end
72
73 package %{name}-devel
74 template DEVEL
75
76 requires += %{name}-libs = %{thisver}
77 end
78
79 package %{name}-debuginfo
80 template DEBUGINFO
81 end
82 end