###############################################################################
name = dracut
-version = 016
+version = 024
release = 1
arch = noarch
build
requires
+ asciidoc
docbook-utils
docbook-xsl
end
+ prepare_cmds
+ # Disable dash syntax check as we don't have dash.
+ sed -e "s/dash/true/g" -i Makefile
+
+ # The plymouth plugin contains a lot of hardcoded libexec paths.
+ # We don't use libexec and so we need to change this.
+ sed -e "s/libexec/lib/g" -i \
+ modules.d/50plymouth/module-setup.sh
+ end
+
dracutlibdir = %{prefix}/lib/dracut
- install
- make install DESTDIR=%{BUILDROOT} \
- sysconfdir=/etc mandir=/usr/share/man
+ make_install_targets += \
+ sysconfdir=%{sysconfdir} \
+ libdir=%{dracutlibdir} \
+ mandir=%{mandir}
+ install_cmds
# Install local configuration.
mkdir -pv %{BUILDROOT}/etc/dracut.conf.d
cp -vf %{DIR_SOURCE}/ipfire.conf %{BUILDROOT}/etc/dracut.conf.d/ipfire.conf
# Save package version.
- echo "%{name}-%{version}-%{release}" > \
- %{BUILDROOT}%{dracutlibdir}/modules.d/10rpmversion/dracut-version
+ echo "DRACUT_VERSION=%{version}-%{release}" > \
+ %{BUILDROOT}/%{dracutlibdir}/dracut-version.sh
# Remove Gentoo specific module.
rm -rvf %{BUILDROOT}%{dracutlibdir}/modules.d/50gensplash
gzip
iputils
kbd
+ kpartx
less
libselinux
lvm2
mdadm
- multipath-tools
sysvinit
udev
util-linux