void-packages/srcpkgs/dracut/template

54 lines
1.6 KiB
Bash
Raw Normal View History

2012-01-12 16:48:32 +00:00
# Template file for 'dracut'
pkgname=dracut
2017-04-03 17:46:22 +00:00
version=045
revision=1
2015-06-15 13:47:47 +00:00
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc"
2017-04-03 17:46:22 +00:00
hostmakedepends="libxslt docbook-xsl asciidoc pkg-config"
makedepends="libkmod-devel"
2015-11-26 05:47:56 +00:00
depends="bash psmisc cpio coreutils"
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"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-05-27 07:57:11 +00:00
license="GPL-2"
distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz"
2017-04-03 17:46:22 +00:00
checksum=ca9c7ea54d3efc8b57ac1427cc5fa4d66688f6cf9d3088f4c5e7ae7c7e84ebf8
2013-10-10 07:57:50 +00:00
2017-04-03 18:06:56 +00:00
case "$XBPS_TARGET_MACHINE" in
*-musl) # Add musl-fts implementation
makedepends+=" musl-fts-devel"
;;
esac
do_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl) make ${makejobs} LDLIBS="${XBPS_CROSS_BASE}/usr/lib/libfts.a";;
esac
}
2015-06-15 13:47:47 +00:00
post_install() {
2012-05-29 12:30:26 +00:00
# kernel hooks.
vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-dracut
vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 20-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
2012-05-29 12:30:26 +00:00
}
dracut-network_package() {
depends="dhclient dracut-${version}_${revision}"
2013-06-13 04:55:10 +00:00
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
}
}