]>
Commit | Line | Data |
---|---|---|
4576e39f MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = kmod | |
4ae04e6c MT |
7 | version = 6 |
8 | release = 1 | |
4576e39f | 9 | |
8a072ca9 | 10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
4576e39f MT |
11 | groups = System/Kernel |
12 | url = http://modules.wiki.kernel.org/ | |
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 | ||
4ae04e6c | 23 | source_dl = ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/ |
4576e39f MT |
24 | sources = %{thisapp}.tar.xz |
25 | ||
26 | build | |
27 | requires | |
4576e39f MT |
28 | xz-devel |
29 | zlib-devel | |
30 | end | |
31 | ||
32 | configure_options += \ | |
33 | --bindir=/bin \ | |
34 | --with-rootprefix= \ | |
35 | --with-rootlibdir=/%{lib} \ | |
36 | --with-xz \ | |
37 | --with-zlib | |
38 | ||
a195aecd MT |
39 | # The testsuite does generate lots of errors. |
40 | ||
4576e39f | 41 | install_cmds |
4576e39f MT |
42 | # Remove all man pages (because there are not corresponding |
43 | # binaries, yet). | |
44 | rm -rvf %{BUILDROOT}%{mandir} | |
45 | ||
46 | mkdir -pv %{BUILDROOT}/lib/modprobe.d | |
47 | mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d | |
48 | mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d | |
8a072ca9 MT |
49 | |
50 | mkdir -pv %{BUILDROOT}/sbin | |
51 | ln -svf ../bin/kmod %{BUILDROOT}/sbin/modprobe | |
52 | ln -svf ../bin/kmod %{BUILDROOT}/sbin/modinfo | |
53 | ln -svf ../bin/kmod %{BUILDROOT}/sbin/insmod | |
54 | ln -svf ../bin/kmod %{BUILDROOT}/sbin/rmmod | |
55 | ln -svf ../bin/kmod %{BUILDROOT}/sbin/depmod | |
56 | ln -svf ../bin/kmod %{BUILDROOT}/sbin/lsmod | |
57 | ln -svf kmod %{BUILDROOT}/bin/lsmod | |
4576e39f MT |
58 | end |
59 | end | |
60 | ||
61 | packages | |
62 | package %{name} | |
8a072ca9 MT |
63 | provides = module-init-tools = 4.0-1 |
64 | obsoletes = module-init-tools < 4.0-1 | |
65 | end | |
4576e39f MT |
66 | |
67 | package %{name}-libs | |
68 | template LIBS | |
69 | end | |
70 | ||
71 | package %{name}-devel | |
72 | template DEVEL | |
73 | ||
74 | requires += %{name}-libs = %{thisver} | |
75 | end | |
76 | ||
77 | package %{name}-debuginfo | |
78 | template DEBUGINFO | |
79 | end | |
80 | end |