mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
parent
eef4419131
commit
24fc33ae25
2 changed files with 19 additions and 7 deletions
|
@ -1,6 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
post)
|
||||||
generate-zbm
|
# Migrate legacy INI to YAML
|
||||||
;;
|
_zbmdir="etc/zfsbootmenu"
|
||||||
|
if [ -r "${_zbmdir}/config.ini" ]; then
|
||||||
|
generate-zbm --migrate "${_zbmdir}/config.ini" --config "${_zbmdir}/config.yaml" \
|
||||||
|
&& mv "${_zbmdir}/config.ini" "${_zbmdir}/config.ini.migrated"
|
||||||
|
fi
|
||||||
|
unset _zbmdir
|
||||||
|
|
||||||
|
generate-zbm
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,18 +1,22 @@
|
||||||
# Template file for 'zfsbootmenu'
|
# Template file for 'zfsbootmenu'
|
||||||
pkgname=zfsbootmenu
|
pkgname=zfsbootmenu
|
||||||
version=1.3.1
|
version=1.4.1
|
||||||
revision=1
|
revision=1
|
||||||
archs=noarch
|
archs=noarch
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
conf_files="/etc/zfsbootmenu/config.ini"
|
conf_files="/etc/zfsbootmenu/config.yaml"
|
||||||
depends="dracut zfs fzf kexec-tools bash pigz mbuffer perl-Config-IniFiles perl-Sort-Versions"
|
depends="dracut zfs fzf kexec-tools bash pigz mbuffer
|
||||||
|
perl-Config-IniFiles perl-Sort-Versions perl-boolean perl-YAML-PP"
|
||||||
short_desc="ZFS Boot Environment menu, implemented in Dracut"
|
short_desc="ZFS Boot Environment menu, implemented in Dracut"
|
||||||
maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
|
maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/zdykstra/zfsbootmenu"
|
homepage="https://github.com/zdykstra/zfsbootmenu"
|
||||||
|
changelog="https://raw.githubusercontent.com/zdykstra/zfsbootmenu/master/CHANGELOG.md"
|
||||||
distfiles="https://github.com/zdykstra/zfsbootmenu/archive/v${version}.tar.gz"
|
distfiles="https://github.com/zdykstra/zfsbootmenu/archive/v${version}.tar.gz"
|
||||||
checksum=3a0c84362ef204d180aefae4c73363231ad5b68c88f83de8b823d824b3afb445
|
checksum=1174454a1e0e22159e33da2eac83301fd2a1dfae7aa46b41ced5304c512a6847
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
vmkdir usr/share/examples/${pkgname}
|
||||||
|
vcopy etc/zfsbootmenu/config.yaml usr/share/examples/${pkgname}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue