]> git.ipfire.org Git - ipfire-3.x.git/blame - kmod/kmod.nm
kmod: Update to version 5.
[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
a195aecd 7version = 5
4576e39f
MT
8release = 1
9
10groups = System/Kernel
11url = http://modules.wiki.kernel.org/
12license = GPLv2+
13summary = Linux kernel module management utilities.
14
15description
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.
20end
21
22# Will eventually move to kernel.org.
23source_dl = http://packages.profusion.mobi/kmod/
24sources = %{thisapp}.tar.xz
25
26build
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
54end
55
56packages
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
72end