2012-01-12 16:48:32 +00:00
|
|
|
# Template file for 'dracut'
|
|
|
|
pkgname=dracut
|
2015-06-15 13:47:47 +00:00
|
|
|
version=043
|
2015-09-02 07:13:00 +00:00
|
|
|
revision=9
|
2015-06-15 13:47:47 +00:00
|
|
|
build_style=configure
|
|
|
|
configure_args="--prefix=/usr --sysconfdir=/etc"
|
2013-06-13 04:57:13 +00:00
|
|
|
hostmakedepends="libxslt docbook-xsl asciidoc"
|
2015-07-14 07:40:34 +00:00
|
|
|
depends="bash psmisc cpio"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/dracut.conf"
|
|
|
|
make_dirs="
|
|
|
|
/etc/dracut.conf.d 0755 root root
|
|
|
|
/usr/lib/dracut/dracut.conf.d 0755 root root"
|
2012-05-27 07:57:11 +00:00
|
|
|
homepage="http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html"
|
2012-01-12 16:48:32 +00:00
|
|
|
short_desc="A new initramfs infrastructure"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-05-27 07:57:11 +00:00
|
|
|
license="GPL-2"
|
2012-07-03 07:24:40 +00:00
|
|
|
distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz"
|
2015-06-15 13:47:47 +00:00
|
|
|
checksum=1484b558ed20330125aa04dcccab84da15c5689e19068285aa011f7177889cd1
|
2013-10-10 07:57:50 +00:00
|
|
|
|
2015-06-15 13:47:47 +00:00
|
|
|
post_install() {
|
2012-05-29 12:30:26 +00:00
|
|
|
# kernel hooks.
|
2013-10-10 07:57:50 +00:00
|
|
|
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
|
2015-06-30 15:47:14 +00:00
|
|
|
# We don't need the systemd stuff.
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/dracut/modules.d/*systemd*
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man8/*.service.*
|
2015-07-14 08:49:38 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/kernel
|
2012-05-29 12:30:26 +00:00
|
|
|
}
|
2013-04-12 07:46:44 +00:00
|
|
|
|
|
|
|
dracut-network_package() {
|
2014-04-28 10:04:01 +00:00
|
|
|
depends="dracut-${version}_${revision}"
|
2013-06-13 04:55:10 +00:00
|
|
|
short_desc+=" - network modules"
|
2013-04-12 07:46:44 +00:00
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
for f in 40network 90livenet 95fcoe 95iscsi \
|
|
|
|
95nbd 95nfs 95zfcp 95znet; do
|
|
|
|
vmove usr/lib/dracut/modules.d/${f}
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|