]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - kmod/kmod.nm
gcc: Update to 4.8.1.
[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 7version = 9
170769d4 8release = 2
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
170769d4 36 # The testsuite does generate lots of errors.
a195aecd 37
4576e39f 38 install_cmds
4286b9f6 39 mkdir -pv %{BUILDROOT}%{prefix}/lib/modprobe.d
4576e39f
MT
40 mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d
41 mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d
8a072ca9 42
4286b9f6
MT
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
4576e39f
MT
50 end
51end
52
53packages
54 package %{name}
4286b9f6
MT
55 provides
56 module-init-tools = 4.0-1
40b689e3
SS
57 /bin/kmod
58 /sbin/depmod
59 /sbin/insmod
60 /sbin/lsmod
61 /sbin/modinfo
4286b9f6 62 /sbin/modprobe
40b689e3 63 /sbin/rmmod
4286b9f6
MT
64 end
65
8a072ca9
MT
66 obsoletes = module-init-tools < 4.0-1
67 end
4576e39f
MT
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
82end