From 1d25fe737fdff96d13a04f0cd4c889a2480d6fd5 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 10 Oct 2023 20:49:08 -0500 Subject: user/livecd-support: Improvements [WIP] * Change install scripts to local.d scripts. * Add a local.d script to make dhcpcd setuid, for adelie/horizon#361. * Make the Desktop Entry file a real file instead of a heredoc. Ref: #1081 --- user/livecd-support/APKBUILD | 35 ++++++++++++----------- user/livecd-support/allow-nullpw.start | 6 ++++ user/livecd-support/allow-nullpw.stop | 5 ++++ user/livecd-support/dhcpcd-suid.start | 5 ++++ user/livecd-support/horizon.desktop | 8 ++++++ user/livecd-support/livecd-support.post-deinstall | 3 -- user/livecd-support/livecd-support.post-install | 3 -- 7 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 user/livecd-support/allow-nullpw.start create mode 100644 user/livecd-support/allow-nullpw.stop create mode 100644 user/livecd-support/dhcpcd-suid.start create mode 100644 user/livecd-support/horizon.desktop delete mode 100644 user/livecd-support/livecd-support.post-deinstall delete mode 100644 user/livecd-support/livecd-support.post-install diff --git a/user/livecd-support/APKBUILD b/user/livecd-support/APKBUILD index 85fca324e..e2af387e6 100644 --- a/user/livecd-support/APKBUILD +++ b/user/livecd-support/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: A. Wilcox pkgname=livecd-support pkgver=1.0 -pkgrel=0 +pkgrel=1 pkgdesc="Support files for booting Adélie live media" url="https://www.adelielinux.org/" arch="noarch" @@ -10,11 +10,14 @@ options="!check suid" # Metapackage license="NCSA" subpackages="$pkgname-kde $pkgname-lxqt $pkgname-mate $pkgname-horizon" depends="" -install="livecd-support.post-install livecd-support.post-deinstall" source="kde.sddm.conf lxqt.sddm.conf mate.sddm.conf + horizon.desktop horizon-ui + dhcpcd-suid.start + allow-nullpw.start + allow-nullpw.stop " package() { @@ -23,21 +26,17 @@ package() { horizon() { pkgdesc="Add the ability to install Adélie from live media" - depends="horizon-qt5 horizon netsurf partitionmanager xterm" + depends="dhcpcd horizon-qt5 horizon netsurf partitionmanager xterm" - install -D -m4755 "$srcdir"/horizon-ui "$subpkgdir"/usr/sbin/horizon-ui + install -D -m755 "$srcdir"/horizon-ui "$subpkgdir"/usr/sbin/horizon-ui - mkdir -p "$subpkgdir"/usr/share/applications - cat >"$subpkgdir"/usr/share/applications/horizon.desktop <