]> git.ipfire.org Git - ipfire-3.x.git/blob - kmod/kmod.nm
kernel: Enable cgroup memory controller
[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 = 30
8 release = 2.1
9
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = System/Kernel
12 url = https://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 openssl-devel
29 xz-devel
30 zlib-devel
31 zstd-devel
32 end
33
34 configure_options += \
35 --with-openssl \
36 --with-xz \
37 --with-zlib \
38 --with-zstd
39
40 # The testsuite does generate lots of errors.
41
42 install_cmds
43 mkdir -pv %{BUILDROOT}%{prefix}/lib/modprobe.d
44 mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d
45 mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d
46
47 mkdir -pv %{BUILDROOT}%{sbindir}
48 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/modprobe
49 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/modinfo
50 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/insmod
51 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/rmmod
52 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/depmod
53 ln -svf ../bin/kmod %{BUILDROOT}%{sbindir}/lsmod
54 end
55 end
56
57 packages
58 package %{name}
59 provides
60 module-init-tools = 4.0-1
61 /bin/kmod
62 /sbin/depmod
63 /sbin/insmod
64 /sbin/lsmod
65 /sbin/modinfo
66 /sbin/modprobe
67 /sbin/rmmod
68 end
69
70 obsoletes = module-init-tools < 4.0-1
71 end
72
73 package %{name}-libs
74 template LIBS
75 end
76
77 package %{name}-devel
78 template DEVEL
79
80 requires += %{name}-libs = %{thisver}
81 end
82
83 package %{name}-debuginfo
84 template DEBUGINFO
85 end
86 end