]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - dracut/dracut.nm
libnetfilter_queue: Update to 1.0.2.
[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
79fdc28c 7version = 024
2cd0e1e3 8release = 4
76023cc0 9
802ea3af
MT
10groups = System/Boot
11url = http://sourceforge.net/apps/trac/dracut/wiki
12license = GPLv2+
13summary = Initramfs generator using udev.
76023cc0 14
802ea3af 15description
76023cc0 16 dracut is a new, event-driven initramfs infrastructure based around udev.
802ea3af
MT
17end
18
84fab2f6
MT
19source_dl = http://www.kernel.org/pub/linux/utils/boot/dracut/
20sources = %{thisapp}.tar.xz
802ea3af
MT
21
22build
207338f4 23 requires
1a03c17a 24 asciidoc
207338f4
SS
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
6ca14bc7 39 dracutlibdir = %{prefix}/lib
d0c38f2d 40
79fdc28c
SS
41 make_install_targets += \
42 sysconfdir=%{sysconfdir} \
43 libdir=%{dracutlibdir} \
44 mandir=%{mandir}
802ea3af 45
79fdc28c 46 install_cmds
802ea3af
MT
47 # Install local configuration.
48 mkdir -pv %{BUILDROOT}/etc/dracut.conf.d
49 cp -vf %{DIR_SOURCE}/ipfire.conf %{BUILDROOT}/etc/dracut.conf.d/ipfire.conf
d0c38f2d
MT
50
51 # Save package version.
1a03c17a 52 echo "DRACUT_VERSION=%{version}-%{release}" > \
6ca14bc7 53 %{BUILDROOT}/%{dracutlibdir}/dracut/dracut-version.sh
d0c38f2d
MT
54
55 # Remove Gentoo specific module.
56 rm -rvf %{BUILDROOT}%{dracutlibdir}/modules.d/50gensplash
57
58 mkdir -pv %{BUILDROOT}/boot/dracut
59 mkdir -pv %{BUILDROOT}/var/lib/dracut/overlay
60 mkdir -pv %{BUILDROOT}/var/lib/initramfs
61 mkdir -pv %{BUILDROOT}%{localstatedir}/log
62 touch %{BUILDROOT}%{localstatedir}/log/dracut.log
63
64 mkdir -pv %{BUILDROOT}/etc/logrotate.d
65 install -m 0644 dracut.logrotate %{BUILDROOT}/etc/logrotate.d/dracut_log
802ea3af
MT
66 end
67end
68
69packages
70 package %{name}
71 requires
72 bash
73 bzip2
74 cpio
75 coreutils
76 dmraid
77 e2fsprogs
78 eject
79 gzip
80 iputils
81 kbd
9695493a 82 kpartx
802ea3af
MT
83 less
84 libselinux
85 lvm2
86 mdadm
87 sysvinit
bdc400af 88 systemd >= 187
802ea3af
MT
89 udev
90 util-linux
91 which
92 end
93 end
1f9bc2f0 94
802ea3af
MT
95 package %{name}-network
96 summary = Network support for the initramdisk.
97 description
98 This package requires everything which is needed to build a generic
99 all purpose initramfs with network support with dracut.
100 end
1f9bc2f0 101
802ea3af
MT
102 requires
103 bridge-utils
104 dhclient
3514c307 105 iproute2
802ea3af
MT
106 nfs-utils
107 end
1f9bc2f0 108
802ea3af 109 files
d0c38f2d
MT
110 /usr/lib/dracut/modules.d/40network
111 /usr/lib/dracut/modules.d/95fcoe
112 /usr/lib/dracut/modules.d/95iscsi
113 /usr/lib/dracut/modules.d/95nbd
114 /usr/lib/dracut/modules.d/95nfs
115 /usr/lib/dracut/modules.d/45ifcfg
116 /usr/lib/dracut/modules.d/95znet
802ea3af
MT
117 end
118 end
1f9bc2f0 119
802ea3af
MT
120 package %{name}-utils
121 summary = Command line utils for dracut.
122 description = %{summary}
1f9bc2f0 123
802ea3af 124 files
d0c38f2d
MT
125 /boot/dracut
126 /usr/bin/dracut-*
127 /usr/share/man/man8/dracut-*
128 /var/lib/dracut
802ea3af
MT
129 end
130 end
131end