8 Commits

Author SHA1 Message Date
a606b09367 0.13.5 2022-03-11 10:02:33 -06:00
a94e642103 simplify square brackets 2022-02-13 01:33:14 +02:00
1c6a1e592c Merge pull request 's6: update to the new s6-rc format' (#12) from s6-new-format into master
Reviewed-on: artix/live-services#12
2022-01-27 12:48:03 +01:00
f29508d011 s6: update to the new s6-rc format
s6-scripts finally updated to the new s6-rc format so the live-service
needs to change its formating to match. The main advantage of this is
that there is no need to sed in artix-live and pacman-init into the
contents file during the alpm hook. Instead, the empty files can just be
installed into the directory. It's much cleaner. As an aside, a couple
of BMODE calls in the makefile were changed to FMODE since s6-rc doesn't
need any of these files to be executable.
2022-01-23 13:17:33 -06:00
a28ed7f20d 0.13.4 2022-01-21 13:49:04 -06:00
4739509ac7 liveservices-hook: Merge broken sed arguments into single lines
Signed-off-by: strajder <strajder@artixlinux.org>
2022-01-21 20:40:59 +01:00
2d8d60c0bc fuck -e 2022-01-21 21:13:49 +02:00
04363a50bb makefile bump 2022-01-21 16:04:31 +02:00
5 changed files with 22 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
VERSION = 0.13.1 VERSION = 0.13.5
PKG = live-services PKG = live-services
TOOLS = artools TOOLS = artools
@@ -40,6 +40,10 @@ RUNIT_SVD = \
RUNIT_SV = \ RUNIT_SV = \
data/runit/pacman-init.run data/runit/pacman-init.run
S6_DEFAULT = \
data/s6/default/contents.d/artix-live \
data/s6/default/contents.d/pacman-init
S6_LIVE = \ S6_LIVE = \
data/s6/artix-live/up \ data/s6/artix-live/up \
data/s6/artix-live/type data/s6/artix-live/type
@@ -127,12 +131,16 @@ install_runit:
install_s6: install_alpm install_s6: install_alpm
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/adminsv
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/adminsv/default/contents.d
install $(FMODE) $(S6_DEFAULT) $(DESTDIR)$(SYSCONFDIR)/s6/adminsv/default/contents.d/
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/pacman-init install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/pacman-init
install $(BMODE) $(S6_PI) $(DESTDIR)$(SYSCONFDIR)/s6/sv/pacman-init/ install $(FMODE) $(S6_PI) $(DESTDIR)$(SYSCONFDIR)/s6/sv/pacman-init/
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/artix-live install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/artix-live
install $(BMODE) $(S6_LIVE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/artix-live/ install $(FMODE) $(S6_LIVE) $(DESTDIR)$(SYSCONFDIR)/s6/sv/artix-live/
install_66: install_alpm install_66: install_alpm
install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/66/service install $(DMODE) $(DESTDIR)$(SYSCONFDIR)/66/service

View File

@@ -7,12 +7,12 @@ xdg-user-dirs-update --force
xdg=$(xdg-user-dir DESKTOP) xdg=$(xdg-user-dir DESKTOP)
src=@datadir@/applications src=@datadir@/applications
# if [[ -f $src/org.kde.konversation.desktop ]]; then # if [ -f $src/org.kde.konversation.desktop ]; then
# install -m644 $src/org.kde.konversation.desktop \ # install -m644 $src/org.kde.konversation.desktop \
# $xdg/org.kde.konversation.desktop # $xdg/org.kde.konversation.desktop
# fi # fi
if [[ -f @bindir@/calamares ]]; then if [ -f @bindir@/calamares ]; then
cp -f $src/calamares.desktop "$xdg/" cp -f $src/calamares.desktop "$xdg/"
sed -i s/Icon.*=calamares/Icon=artixlinux-logo/g "$xdg"/calamares.desktop sed -i s/Icon.*=calamares/Icon=artixlinux-logo/g "$xdg"/calamares.desktop
chmod +x "$xdg/calamares.desktop" chmod +x "$xdg/calamares.desktop"
@@ -24,13 +24,13 @@ for f in {Configuration,Troubleshooting}.pdf; do
ln -s $docs/$f "$xdg"/$f ln -s $docs/$f "$xdg"/$f
done done
if [[ -d /run/openrc ]]; then if [ -d /run/openrc ]; then
ln -s $docs/OpenRC.pdf "$xdg"/OpenRC.pdf ln -s $docs/OpenRC.pdf "$xdg"/OpenRC.pdf
elif [[ -d /run/runit ]]; then elif [ -d /run/runit ]; then
ln -s $docs/Runit.pdf "$xdg"/Runit.pdf ln -s $docs/Runit.pdf "$xdg"/Runit.pdf
elif [[ -d /run/66 ]]; then elif [ -d /run/66 ]; then
ln -s $docs/Suite66.pdf "$xdg"/Suite66.pdf ln -s $docs/Suite66.pdf "$xdg"/Suite66.pdf
elif [[ -d /run/dinit ]]; then elif [ -d /run/dinit ]; then
ln -s $docs/Dinit.pdf "$xdg"/Dinit.pdf ln -s $docs/Dinit.pdf "$xdg"/Dinit.pdf
else else
ln -s $docs/S6.pdf "$xdg"/S6.pdf ln -s $docs/S6.pdf "$xdg"/S6.pdf

View File

View File

View File

@@ -11,38 +11,30 @@ s6_enable_live_services(){
if [ -d /etc/s6/sv/sddm/dependencies.d ]; then if [ -d /etc/s6/sv/sddm/dependencies.d ]; then
touch /etc/s6/sv/sddm/dependencies.d/artix-live touch /etc/s6/sv/sddm/dependencies.d/artix-live
fi fi
# TODO: instead touch files under dependencies.d when s6-scripts updates
echo "artix-live" >> /etc/s6/sv/default/contents
echo "pacman-init" >> /etc/s6/sv/default/contents
} }
s6_disable_live_services(){ s6_disable_live_services(){
# TODO: delete files under dependencies.d when s6-scripts updates
sed -i '/artix-live/d' /etc/s6/sv/default/contents
sed -i '/pacman-init/d' /etc/s6/sv/default/contents
rm -f /etc/s6/sv/gdm/dependencies.d/artix-live rm -f /etc/s6/sv/gdm/dependencies.d/artix-live
rm -f /etc/s6/sv/lightdm-srv/dependencies.d/artix-live rm -f /etc/s6/sv/lightdm-srv/dependencies.d/artix-live
rm -f /etc/s6/sv/sddm/dependencies.d/artix-live rm -f /etc/s6/sv/sddm/dependencies.d/artix-live
} }
suite66_enable_live_services(){ suite66_enable_live_services(){
66-tree -ncE default [ -d /var/lib/66/system/boot ] || 66-tree -n boot
[ -d /var/lib/66/system/default ] || 66-tree -ncE default
66-enable -t default artix-live pacman-init 66-enable -t default artix-live pacman-init
if [ -f /usr/bin/gdm ]; then if [ -f /usr/bin/gdm ]; then
66-disable -t default logind gdm 66-disable -t default logind gdm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( \1artix-live pacman-init )#' /etc/66/service/gdm
'\1artix-live pacman-init )#' /etc/66/service/gdm
66-enable -t default logind gdm 66-enable -t default logind gdm
elif [ -f /usr/bin/lightdm ]; then elif [ -f /usr/bin/lightdm ]; then
66-disable -t default logind lightdm 66-disable -t default logind lightdm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( \1artix-live pacman-init )#' /etc/66/service/lightdm
'\1artix-live pacman-init )#' /etc/66/service/lightdm
66-enable -t default logind lightdm 66-enable -t default logind lightdm
elif [ -f /usr/bin/sddm ]; then elif [ -f /usr/bin/sddm ]; then
66-disable -t default logind sddm 66-disable -t default logind sddm
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( \1artix-live pacman-init )#' /etc/66/service/sddm
'\1artix-live pacman-init )#' /etc/66/service/sddm
66-enable -t default logind sddm 66-enable -t default logind sddm
fi fi