diff --git a/srcpkgs/grub-btrfs/files/grub-btrfs/run b/srcpkgs/grub-btrfs/files/grub-btrfs/run index ce2d930b26e..05aabf1f23e 100644 --- a/srcpkgs/grub-btrfs/files/grub-btrfs/run +++ b/srcpkgs/grub-btrfs/files/grub-btrfs/run @@ -3,10 +3,5 @@ exec 2>&1 [ -r conf ] && . ./conf -if [ -d "${SNAPSHOTS_PATH}" ] -then - exec wendy ${OPTS} -m 960 -w "${SNAPSHOTS_PATH}" sh -c \ - 'if [ -s "/boot/grub/grub-btrfs.cfg" ]; then /etc/grub.d/41_snapshots-btrfs; else update-grub; fi' -else - exit 1 -fi +exec grub-btrfsd ${GRUB_BTRFSD_OPTS} "${SNAPSHOTS_PATH}" + diff --git a/srcpkgs/grub-btrfs/template b/srcpkgs/grub-btrfs/template index 22176fc5329..eee296fa55b 100644 --- a/srcpkgs/grub-btrfs/template +++ b/srcpkgs/grub-btrfs/template @@ -1,25 +1,24 @@ # Template file for 'grub-btrfs' pkgname=grub-btrfs -version=4.13 +version=4.14 revision=1 build_style=gnu-makefile -depends="grub bash" +conf_files="/etc/sv/grub-btrfs/conf" +depends="grub bash inotify-tools" short_desc="Include btrfs snapshots at Grub menu" maintainer="Orphaned " license="GPL-3.0-or-later" homepage="https://github.com/Antynea/grub-btrfs" -distfiles="https://github.com/Antynea/grub-btrfs/archive/${version}.tar.gz" -checksum=c493d0d5a6548c01993641ce586c98d461cabe40df4dff79d974d0c59068ff1d +distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz" +checksum=4fe2f8a49b39e3e561fc51bbc5a0f81a7222c1e9ef8672e014e0ba3bedad20c6 post_install() { rm -rf -- "${DESTDIR}"/usr/lib/systemd + vsv grub-btrfs } grub-btrfs-runit_package() { - depends="wendy ${sourcepkg}>=${version}_${revision}" - short_desc+=" - runit service" - - pkg_install() { - vsv grub-btrfs - } + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" (transitional dummy package)" + metapackage=yes }