]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - kmod/kmod.nm
tcl: Fix library permissions.
[people/ms/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
3650d2d5
MT
7version = 9
8release = 1
4576e39f 9
8a072ca9 10maintainer = Michael Tremer <michael.tremer@ipfire.org>
4576e39f
MT
11groups = System/Kernel
12url = http://modules.wiki.kernel.org/
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
4ae04e6c 23source_dl = ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/
4576e39f
MT
24sources = %{thisapp}.tar.xz
25
26build
27 requires
4576e39f
MT
28 xz-devel
29 zlib-devel
30 end
31
32 configure_options += \
4576e39f
MT
33 --with-xz \
34 --with-zlib
35
3650d2d5
MT
36 test
37 make check
38 end
a195aecd 39
4576e39f 40 install_cmds
4286b9f6 41 mkdir -pv %{BUILDROOT}%{prefix}/lib/modprobe.d
4576e39f
MT
42 mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d
43 mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d
8a072ca9 44
4286b9f6
MT
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
4576e39f
MT
52 end
53end
54
55packages
56 package %{name}
4286b9f6
MT
57 provides
58 module-init-tools = 4.0-1
40b689e3
SS
59 /bin/kmod
60 /sbin/depmod
61 /sbin/insmod
62 /sbin/lsmod
63 /sbin/modinfo
4286b9f6 64 /sbin/modprobe
40b689e3 65 /sbin/rmmod
4286b9f6
MT
66 end
67
8a072ca9
MT
68 obsoletes = module-init-tools < 4.0-1
69 end
4576e39f
MT
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
84end