Prepare for XDG unification

This commit is contained in:
Alex D. 2023-12-14 09:56:14 +00:00
parent 5563c36938
commit b5362e182f
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
12 changed files with 25 additions and 7 deletions

View File

@ -3,7 +3,7 @@
. ../../APKBUILD.template
pkgname=nnd-s6-services
pkgver=2.61
pkgver=2.64
pkgrel=2
pkgdesc="Base services for s6"
depends="s6-rc s6-portable-utils s6-linux-utils"

1
main/nnd-s6-services/env/xdg/HOME vendored Normal file
View File

@ -0,0 +1 @@
/root

View File

@ -0,0 +1 @@
/var/cache

View File

@ -0,0 +1 @@
/etc

View File

@ -0,0 +1 @@
/usr/share

View File

@ -0,0 +1 @@
/run

View File

@ -0,0 +1 @@
/var/lib

View File

@ -11,8 +11,8 @@ alt_ab() {
if [ "$1" == "a" ]; then echo "b"; else echo "a"; fi
}
: ${S6_PATH:='/etc/s6'}
: ${S6_DIST_PATH:="/usr/share/nnd/s6/dist"}
: ${S6_PATH:="${XDG_DATA_HOME:="/etc"}/s6"}
: ${S6_DIST_PATH:="${XDG_CONFIG_HOME:="/usr/share"}/nnd/s6/dist"}
: ${S6_RC_PATH:="$S6_PATH/rc"}
: ${S6_ENV_PATH:="$S6_PATH/env"}
: ${S6_SV_PATH:="$S6_PATH/sv"}
@ -125,8 +125,8 @@ custom() {
}
customfunc() {
: ${src:?Missing src in customfunc}
: ${target:?Missing target in customfunc}
: ${src:?"Missing src in customfunc"}
: ${target:?"Missing target in customfunc"}
if ! rm "$target"; then
error "Failed to remove distributed directory $target"
return "$?"
@ -139,8 +139,8 @@ customfunc() {
}
defaultfunc() {
: ${src:?Missing src in defaultfunc}
: ${target:?Missing target in defaultfunc}
: ${src:?"Missing src in defaultfunc"}
: ${target:?"Missing target in defaultfunc"}
if ! rm -rf "$target"; then
error "Failed to remove custom directory $target"
return "$?"

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1,5 @@
#!/bin/execlineb -P
s6-envdir -I /etc/s6/env/path
emptyenv -p
partprobe

View File

@ -0,0 +1,6 @@
#!/bin/execlineb -W
importas -i DISK DISK
s6-envdir -I /etc/s6/env/path
partprobe $DISK