]> git.ipfire.org Git - ipfire-3.x.git/blame - kmod/kmod.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / kmod / kmod.nm
CommitLineData
4576e39f
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = kmod
c9bb4238 7version = 30
fb0b5f5a 8release = 2.1
4576e39f 9
8a072ca9 10maintainer = Michael Tremer <michael.tremer@ipfire.org>
4576e39f 11groups = System/Kernel
c9bb4238 12url = https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git
4576e39f
MT
13license = GPLv2+
14summary = Linux kernel module management utilities.
15
16description
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.
21end
22
2e4bebe5 23source_dl = https://www.kernel.org/pub/linux/utils/kernel/kmod/
4576e39f
MT
24sources = %{thisapp}.tar.xz
25
26build
27 requires
a2e5d7e3 28 openssl-devel
4576e39f
MT
29 xz-devel
30 zlib-devel
a2e5d7e3 31 zstd-devel
4576e39f
MT
32 end
33
34 configure_options += \
a2e5d7e3 35 --with-openssl \
4576e39f 36 --with-xz \
a2e5d7e3
MT
37 --with-zlib \
38 --with-zstd
4576e39f 39
170769d4 40 # The testsuite does generate lots of errors.
a195aecd 41
4576e39f 42 install_cmds
4286b9f6 43 mkdir -pv %{BUILDROOT}%{prefix}/lib/modprobe.d
4576e39f
MT
44 mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d
45 mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d
8a072ca9 46
4286b9f6
MT
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
4576e39f
MT
54 end
55end
56
57packages
58 package %{name}
4286b9f6
MT
59 provides
60 module-init-tools = 4.0-1
40b689e3
SS
61 /bin/kmod
62 /sbin/depmod
63 /sbin/insmod
64 /sbin/lsmod
65 /sbin/modinfo
4286b9f6 66 /sbin/modprobe
40b689e3 67 /sbin/rmmod
4286b9f6
MT
68 end
69
8a072ca9
MT
70 obsoletes = module-init-tools < 4.0-1
71 end
4576e39f
MT
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
86end