]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - dracut/dracut.nm
dracut: The plymouth plugin calls files in /usr/libexec.
[people/ms/ipfire-3.x.git] / dracut / dracut.nm
CommitLineData
76023cc0 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
76023cc0
MT
4###############################################################################
5
802ea3af 6name = dracut
279c76b6 7version = 018
6a67c5b8 8release = 2
802ea3af 9arch = noarch
76023cc0 10
802ea3af
MT
11groups = System/Boot
12url = http://sourceforge.net/apps/trac/dracut/wiki
13license = GPLv2+
14summary = Initramfs generator using udev.
76023cc0 15
802ea3af 16description
76023cc0 17 dracut is a new, event-driven initramfs infrastructure based around udev.
802ea3af
MT
18end
19
84fab2f6
MT
20source_dl = http://www.kernel.org/pub/linux/utils/boot/dracut/
21sources = %{thisapp}.tar.xz
802ea3af
MT
22
23build
207338f4
SS
24 requires
25 docbook-utils
26 docbook-xsl
802ea3af
MT
27 end
28
279c76b6
MT
29 prepare_cmds
30 # Disable dash syntax check as we don't have dash.
31 sed -e "s/dash/true/g" -i Makefile
6a67c5b8
MT
32
33 # The plymouth plugin contains a lot of hardcoded libexec paths.
34 # We don't use libexec and so we need to change this.
35 sed -e "s/libexec/lib/g" -i \
36 modules.d/50plymouth/module-setup.sh
279c76b6
MT
37 end
38
d0c38f2d
MT
39 dracutlibdir = %{prefix}/lib/dracut
40
802ea3af
MT
41 install
42 make install DESTDIR=%{BUILDROOT} \
d0c38f2d 43 sysconfdir=/etc mandir=/usr/share/man
802ea3af
MT
44
45 # Install local configuration.
46 mkdir -pv %{BUILDROOT}/etc/dracut.conf.d
47 cp -vf %{DIR_SOURCE}/ipfire.conf %{BUILDROOT}/etc/dracut.conf.d/ipfire.conf
d0c38f2d
MT
48
49 # Save package version.
50 echo "%{name}-%{version}-%{release}" > \
51 %{BUILDROOT}%{dracutlibdir}/modules.d/10rpmversion/dracut-version
52
53 # Remove Gentoo specific module.
54 rm -rvf %{BUILDROOT}%{dracutlibdir}/modules.d/50gensplash
55
56 mkdir -pv %{BUILDROOT}/boot/dracut
57 mkdir -pv %{BUILDROOT}/var/lib/dracut/overlay
58 mkdir -pv %{BUILDROOT}/var/lib/initramfs
59 mkdir -pv %{BUILDROOT}%{localstatedir}/log
60 touch %{BUILDROOT}%{localstatedir}/log/dracut.log
61
62 mkdir -pv %{BUILDROOT}/etc/logrotate.d
63 install -m 0644 dracut.logrotate %{BUILDROOT}/etc/logrotate.d/dracut_log
802ea3af
MT
64 end
65end
66
67packages
68 package %{name}
69 requires
70 bash
71 bzip2
72 cpio
73 coreutils
74 dmraid
75 e2fsprogs
76 eject
77 gzip
78 iputils
79 kbd
80 less
81 libselinux
82 lvm2
83 mdadm
3514c307 84 multipath-tools
802ea3af
MT
85 sysvinit
86 udev
87 util-linux
88 which
89 end
90 end
1f9bc2f0 91
802ea3af
MT
92 package %{name}-network
93 summary = Network support for the initramdisk.
94 description
95 This package requires everything which is needed to build a generic
96 all purpose initramfs with network support with dracut.
97 end
1f9bc2f0 98
802ea3af
MT
99 requires
100 bridge-utils
101 dhclient
3514c307 102 iproute2
802ea3af
MT
103 nfs-utils
104 end
1f9bc2f0 105
802ea3af 106 files
d0c38f2d
MT
107 /usr/lib/dracut/modules.d/40network
108 /usr/lib/dracut/modules.d/95fcoe
109 /usr/lib/dracut/modules.d/95iscsi
110 /usr/lib/dracut/modules.d/95nbd
111 /usr/lib/dracut/modules.d/95nfs
112 /usr/lib/dracut/modules.d/45ifcfg
113 /usr/lib/dracut/modules.d/95znet
802ea3af
MT
114 end
115 end
1f9bc2f0 116
802ea3af
MT
117 package %{name}-utils
118 summary = Command line utils for dracut.
119 description = %{summary}
1f9bc2f0 120
802ea3af 121 files
d0c38f2d
MT
122 /boot/dracut
123 /usr/bin/dracut-*
124 /usr/share/man/man8/dracut-*
125 /var/lib/dracut
802ea3af
MT
126 end
127 end
128end