]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - dracut/dracut.nm
Merge remote-tracking branch 'stevee/openvswitch-systemd'
[people/amarx/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
1a03c17a 7version = 019
9695493a 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 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
d0c38f2d
MT
40 dracutlibdir = %{prefix}/lib/dracut
41
802ea3af
MT
42 install
43 make install DESTDIR=%{BUILDROOT} \
d0c38f2d 44 sysconfdir=/etc mandir=/usr/share/man
802ea3af
MT
45
46 # Install local configuration.
47 mkdir -pv %{BUILDROOT}/etc/dracut.conf.d
48 cp -vf %{DIR_SOURCE}/ipfire.conf %{BUILDROOT}/etc/dracut.conf.d/ipfire.conf
d0c38f2d
MT
49
50 # Save package version.
1a03c17a
SS
51 echo "DRACUT_VERSION=%{version}-%{release}" > \
52 %{BUILDROOT}/%{dracutlibdir}/dracut-version.sh
d0c38f2d
MT
53
54 # Remove Gentoo specific module.
55 rm -rvf %{BUILDROOT}%{dracutlibdir}/modules.d/50gensplash
56
57 mkdir -pv %{BUILDROOT}/boot/dracut
58 mkdir -pv %{BUILDROOT}/var/lib/dracut/overlay
59 mkdir -pv %{BUILDROOT}/var/lib/initramfs
60 mkdir -pv %{BUILDROOT}%{localstatedir}/log
61 touch %{BUILDROOT}%{localstatedir}/log/dracut.log
62
63 mkdir -pv %{BUILDROOT}/etc/logrotate.d
64 install -m 0644 dracut.logrotate %{BUILDROOT}/etc/logrotate.d/dracut_log
802ea3af
MT
65 end
66end
67
68packages
69 package %{name}
70 requires
71 bash
72 bzip2
73 cpio
74 coreutils
75 dmraid
76 e2fsprogs
77 eject
78 gzip
79 iputils
80 kbd
9695493a 81 kpartx
802ea3af
MT
82 less
83 libselinux
84 lvm2
85 mdadm
86 sysvinit
87 udev
88 util-linux
89 which
90 end
91 end
1f9bc2f0 92
802ea3af
MT
93 package %{name}-network
94 summary = Network support for the initramdisk.
95 description
96 This package requires everything which is needed to build a generic
97 all purpose initramfs with network support with dracut.
98 end
1f9bc2f0 99
802ea3af
MT
100 requires
101 bridge-utils
102 dhclient
3514c307 103 iproute2
802ea3af
MT
104 nfs-utils
105 end
1f9bc2f0 106
802ea3af 107 files
d0c38f2d
MT
108 /usr/lib/dracut/modules.d/40network
109 /usr/lib/dracut/modules.d/95fcoe
110 /usr/lib/dracut/modules.d/95iscsi
111 /usr/lib/dracut/modules.d/95nbd
112 /usr/lib/dracut/modules.d/95nfs
113 /usr/lib/dracut/modules.d/45ifcfg
114 /usr/lib/dracut/modules.d/95znet
802ea3af
MT
115 end
116 end
1f9bc2f0 117
802ea3af
MT
118 package %{name}-utils
119 summary = Command line utils for dracut.
120 description = %{summary}
1f9bc2f0 121
802ea3af 122 files
d0c38f2d
MT
123 /boot/dracut
124 /usr/bin/dracut-*
125 /usr/share/man/man8/dracut-*
126 /var/lib/dracut
802ea3af
MT
127 end
128 end
129end