]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - kmod/kmod.nm
bash-completion: New package.
[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
7version = 4
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
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
52end
53
54packages
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
70end