]> git.ipfire.org Git - ipfire-3.x.git/blame - dracut/dracut.nm
dracut: Move files to correct paths.
[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
79fdc28c 7version = 024
6ca14bc7 8release = 3
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 24 requires
1a03c17a 25 asciidoc
207338f4
SS
26 docbook-utils
27 docbook-xsl
802ea3af
MT
28 end
29
279c76b6
MT
30 prepare_cmds
31 # Disable dash syntax check as we don't have dash.
32 sed -e "s/dash/true/g" -i Makefile
6a67c5b8
MT
33
34 # The plymouth plugin contains a lot of hardcoded libexec paths.
35 # We don't use libexec and so we need to change this.
36 sed -e "s/libexec/lib/g" -i \
37 modules.d/50plymouth/module-setup.sh
279c76b6
MT
38 end
39
6ca14bc7 40 dracutlibdir = %{prefix}/lib
d0c38f2d 41
79fdc28c
SS
42 make_install_targets += \
43 sysconfdir=%{sysconfdir} \
44 libdir=%{dracutlibdir} \
45 mandir=%{mandir}
802ea3af 46
79fdc28c 47 install_cmds
802ea3af
MT
48 # Install local configuration.
49 mkdir -pv %{BUILDROOT}/etc/dracut.conf.d
50 cp -vf %{DIR_SOURCE}/ipfire.conf %{BUILDROOT}/etc/dracut.conf.d/ipfire.conf
d0c38f2d
MT
51
52 # Save package version.
1a03c17a 53 echo "DRACUT_VERSION=%{version}-%{release}" > \
6ca14bc7 54 %{BUILDROOT}/%{dracutlibdir}/dracut/dracut-version.sh
d0c38f2d
MT
55
56 # Remove Gentoo specific module.
57 rm -rvf %{BUILDROOT}%{dracutlibdir}/modules.d/50gensplash
58
59 mkdir -pv %{BUILDROOT}/boot/dracut
60 mkdir -pv %{BUILDROOT}/var/lib/dracut/overlay
61 mkdir -pv %{BUILDROOT}/var/lib/initramfs
62 mkdir -pv %{BUILDROOT}%{localstatedir}/log
63 touch %{BUILDROOT}%{localstatedir}/log/dracut.log
64
65 mkdir -pv %{BUILDROOT}/etc/logrotate.d
66 install -m 0644 dracut.logrotate %{BUILDROOT}/etc/logrotate.d/dracut_log
802ea3af
MT
67 end
68end
69
70packages
71 package %{name}
72 requires
73 bash
74 bzip2
75 cpio
76 coreutils
77 dmraid
78 e2fsprogs
79 eject
80 gzip
81 iputils
82 kbd
9695493a 83 kpartx
802ea3af
MT
84 less
85 libselinux
86 lvm2
87 mdadm
88 sysvinit
bdc400af 89 systemd >= 187
802ea3af
MT
90 udev
91 util-linux
92 which
93 end
94 end
1f9bc2f0 95
802ea3af
MT
96 package %{name}-network
97 summary = Network support for the initramdisk.
98 description
99 This package requires everything which is needed to build a generic
100 all purpose initramfs with network support with dracut.
101 end
1f9bc2f0 102
802ea3af
MT
103 requires
104 bridge-utils
105 dhclient
3514c307 106 iproute2
802ea3af
MT
107 nfs-utils
108 end
1f9bc2f0 109
802ea3af 110 files
d0c38f2d
MT
111 /usr/lib/dracut/modules.d/40network
112 /usr/lib/dracut/modules.d/95fcoe
113 /usr/lib/dracut/modules.d/95iscsi
114 /usr/lib/dracut/modules.d/95nbd
115 /usr/lib/dracut/modules.d/95nfs
116 /usr/lib/dracut/modules.d/45ifcfg
117 /usr/lib/dracut/modules.d/95znet
802ea3af
MT
118 end
119 end
1f9bc2f0 120
802ea3af
MT
121 package %{name}-utils
122 summary = Command line utils for dracut.
123 description = %{summary}
1f9bc2f0 124
802ea3af 125 files
d0c38f2d
MT
126 /boot/dracut
127 /usr/bin/dracut-*
128 /usr/share/man/man8/dracut-*
129 /var/lib/dracut
802ea3af
MT
130 end
131 end
132end