876b6ed3a4
This abstracts away the `dracut -f -q --regenerate-all` that appears in nvidia and zfs packages, allowing users to disable global regeneration, use dracut (by default, to preserve existing behavior) or mkinitcpio. Eventually, this can be extended with initramfs-tools if we like. Closes: #31403
22 lines
561 B
Bash
22 lines
561 B
Bash
# Template file for 'xbps-triggers'
|
|
pkgname=xbps-triggers
|
|
version=0.121
|
|
revision=1
|
|
bootstrap=yes
|
|
short_desc="XBPS triggers for Void Linux"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="Public Domain"
|
|
homepage="https://voidlinux.org"
|
|
|
|
do_install() {
|
|
_triggersdir=usr/libexec/${pkgname}
|
|
|
|
for f in ${FILESDIR}/*; do
|
|
_trigger=$(basename $f)
|
|
vinstall ${FILESDIR}/${_trigger} 754 ${_triggersdir}
|
|
echo "# end" >> ${DESTDIR}/${_triggersdir}/${_trigger}
|
|
done
|
|
vmkdir var/db/xbps
|
|
cd ${DESTDIR}/var/db/xbps
|
|
ln -sf ../../../${_triggersdir} triggers
|
|
}
|