]>
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 | |
7 | version = 4 | |
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 | ||
40 | install_cmds | |
41 | # Remove RPATH from /bin/kmod | |
42 | chrpath --delete %{BUILDROOT}/bin/kmod | |
43 | ||
44 | # Remove all man pages (because there are not corresponding | |
45 | # binaries, yet). | |
46 | rm -rvf %{BUILDROOT}%{mandir} | |
47 | ||
48 | mkdir -pv %{BUILDROOT}/lib/modprobe.d | |
49 | mkdir -pv %{BUILDROOT}%{sysconfdir}/modprobe.d | |
50 | mkdir -pv %{BUILDROOT}%{sysconfdir}/depmod.d | |
51 | end | |
52 | end | |
53 | ||
54 | packages | |
55 | package %{name} | |
56 | ||
57 | package %{name}-libs | |
58 | template LIBS | |
59 | end | |
60 | ||
61 | package %{name}-devel | |
62 | template DEVEL | |
63 | ||
64 | requires += %{name}-libs = %{thisver} | |
65 | end | |
66 | ||
67 | package %{name}-debuginfo | |
68 | template DEBUGINFO | |
69 | end | |
70 | end |