]>
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 | |
a195aecd | 7 | version = 5 |
4576e39f MT |
8 | release = 1 |
9 | ||
10 | groups = System/Kernel | |
11 | url = http://modules.wiki.kernel.org/ | |
12 | license = GPLv2+ | |
13 | summary = Linux kernel module management utilities. | |
14 | ||
15 | description | |
16 | The kmod package provides various programs needed for automatic | |
17 | loading and unloading of modules under 2.6, 3.x, and later kernels, | |
18 | as well as other module management programs. Device drivers and | |
19 | filesystems are two examples of loaded and unloaded modules. | |
20 | end | |
21 | ||
22 | # Will eventually move to kernel.org. | |
23 | source_dl = http://packages.profusion.mobi/kmod/ | |
24 | sources = %{thisapp}.tar.xz | |
25 | ||
26 | build | |
27 | requires | |
28 | chrpath | |
29 | xz-devel | |
30 | zlib-devel | |
31 | end | |
32 | ||
33 | configure_options += \ | |
34 | --bindir=/bin \ | |
35 | --with-rootprefix= \ | |
36 | --with-rootlibdir=/%{lib} \ | |
37 | --with-xz \ | |
38 | --with-zlib | |
39 | ||
a195aecd MT |
40 | # The testsuite does generate lots of errors. |
41 | ||
4576e39f MT |
42 | install_cmds |
43 | # Remove RPATH from /bin/kmod | |
44 | chrpath --delete %{BUILDROOT}/bin/kmod | |
45 | ||
46 | # Remove all man pages (because there are not corresponding | |
47 | # binaries, yet). | |
48 | rm -rvf %{BUILDROOT}%{mandir} | |
49 | ||
50 | mkdir -pv %{BUILDROOT}/lib/modprobe.d | |
51 | mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d | |
52 | mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d | |
53 | end | |
54 | end | |
55 | ||
56 | packages | |
57 | package %{name} | |
58 | ||
59 | package %{name}-libs | |
60 | template LIBS | |
61 | end | |
62 | ||
63 | package %{name}-devel | |
64 | template DEVEL | |
65 | ||
66 | requires += %{name}-libs = %{thisver} | |
67 | end | |
68 | ||
69 | package %{name}-debuginfo | |
70 | template DEBUGINFO | |
71 | end | |
72 | end |