40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'dracut'
|
|
pkgname=dracut
|
|
version=043
|
|
revision=9
|
|
build_style=configure
|
|
configure_args="--prefix=/usr --sysconfdir=/etc"
|
|
hostmakedepends="libxslt docbook-xsl asciidoc"
|
|
depends="bash psmisc cpio"
|
|
conf_files="/etc/dracut.conf"
|
|
make_dirs="
|
|
/etc/dracut.conf.d 0755 root root
|
|
/usr/lib/dracut/dracut.conf.d 0755 root root"
|
|
homepage="http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html"
|
|
short_desc="A new initramfs infrastructure"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz"
|
|
checksum=1484b558ed20330125aa04dcccab84da15c5689e19068285aa011f7177889cd1
|
|
|
|
post_install() {
|
|
# kernel hooks.
|
|
vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 10-dracut
|
|
vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 10-dracut
|
|
# We don't need the systemd stuff.
|
|
rm -rf ${DESTDIR}/usr/lib/dracut/modules.d/*systemd*
|
|
rm -f ${DESTDIR}/usr/share/man/man8/*.service.*
|
|
rm -rf ${DESTDIR}/usr/lib/kernel
|
|
}
|
|
|
|
dracut-network_package() {
|
|
depends="dracut-${version}_${revision}"
|
|
short_desc+=" - network modules"
|
|
noarch=yes
|
|
pkg_install() {
|
|
for f in 40network 90livenet 95fcoe 95iscsi \
|
|
95nbd 95nfs 95zfcp 95znet; do
|
|
vmove usr/lib/dracut/modules.d/${f}
|
|
done
|
|
}
|
|
}
|