]> git.ipfire.org Git - ipfire-3.x.git/blob - grubby/grubby.nm
kernel: Disable support for 6RD
[ipfire-3.x.git] / grubby / grubby.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = grubby
7 version = 8.11
8 release = 5
9
10 groups = System/Base
11 url = http://git.fedorahosted.org/git/grubby.git
12 license = GPLv2+
13 summary = Command line tool for updating bootloader configs.
14
15 description
16 grubby is a command line tool for updating and displaying information about
17 the configuration files for the grub, lilo, elilo (ia64), yaboot (powerpc)
18 and zipl (s390) boot loaders. It is primarily designed to be used from scripts
19 which install new kernels and need to find information about the current boot
20 environment.
21 end
22
23 # Source tarballs must be generated from git.
24 sources = %{thisapp}.tar.bz2
25
26 build
27 requires
28 glib2-devel
29 libblkid-devel
30 popt-devel
31 util-linux
32 end
33
34 make_build_targets += CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
35
36 test
37 make test
38 end
39
40 make_install_targets += mandir=%{mandir}
41
42 install_cmds
43 mkdir -pv %{BUILDROOT}%{prefix}
44 mv -v %{BUILDROOT}{,%{prefix}}/sbin
45 end
46 end
47
48 packages
49 package %{name}
50 # Pull in u-boot-tools on ARM platforms.
51 if "%{DISTRO_ARCH}" == "armv7hl"
52 requires += u-boot-tools
53 end
54
55 if "%{DISTRO_ARCH}" == "armv5tel"
56 requires += u-boot-tools
57 end
58
59 provides
60 /sbin/grubby
61 /sbin/installkernel
62 /sbin/new-kernel-pkg
63 end
64 end
65
66 package %{name}-debuginfo
67 template DEBUGINFO
68 end
69 end