Skip to content
Snippets Groups Projects
Commit a33e36fe authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

Prepare the next release of 66

parent 1a4aacdf
No related branches found
No related tags found
No related merge requests found
...@@ -24,15 +24,16 @@ install-seed: $(SEED_TARGET:module/configure/session=$(DESTDIR)$(seed_directory) ...@@ -24,15 +24,16 @@ install-seed: $(SEED_TARGET:module/configure/session=$(DESTDIR)$(seed_directory)
$(DESTDIR)$(service_directory)/$(package)/%: module/% $(DESTDIR)$(service_directory)/$(package)/%: module/%
exec $(INSTALL) -D -m 644 $< $@ exec $(INSTALL) -D -m 644 $< $@
sed -i -e 's,@VERSION@,$(version),' \ sed -i -e 's,%%VERSION%%,$(version),' \
-e "s,@DISPLAY_MANAGER@,$(DISPLAY_MANAGER)," \ -e "s,%%DISPLAY_MANAGER%%,$(DISPLAY_MANAGER)," \
-e "s,@CONSOLE_TRACKER@,$(CONSOLE_TRACKER)," \ -e "s,%%CONSOLE_TRACKER%%,$(CONSOLE_TRACKER)," \
-e "s,@XDG_RUNTIME@,$(XDG_RUNTIME)," \ -e "s,%%XDG_RUNTIME%%,$(XDG_RUNTIME)," \
-e "s,@DESKTOP_CMDLINE@,$(DESKTOP_CMDLINE)," $@ -e "s,%%DESKTOP_CMDLINE%%,$(DESKTOP_CMDLINE)," $@
$(DESTDIR)$(service_directory)/$(package)/configure/%: module/configure/% $(DESTDIR)$(service_directory)/$(package)/configure/%: module/configure/%
exec $(INSTALL) -D -m 755 $< $@ exec $(INSTALL) -D -m 755 $< $@
sed -i -e 's,@BINDIR@,$(bindir),' $@ sed -i -e 's,%%BINDIR%%,$(bindir),' \
-e 's,%%EXECLINEDIR%%,$(execlinedir),' $@
$(DESTDIR)$(seed_directory)/session: module/configure/session $(DESTDIR)$(seed_directory)/session: module/configure/session
exec $(INSTALL) -D -m 644 $< $@ exec $(INSTALL) -D -m 644 $< $@
......
[main] [main]
@type = module @type = module
@version = @VERSION@ @version = %%VERSION%%
@description = "Configure a nested supervision tree for @I user" @description = "Configure a nested supervision tree for @I user"
@user = ( root ) @user = ( root )
@depends = ( scandir@@I ) @depends = ( scandir@@I )
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
[regex] [regex]
@configure = "@I" @configure = "@I"
@infiles = ( ::@version@=@VERSION@ ) @infiles = (
::%%version%%=%%VERSION%%
)
[environment] [environment]
## Uncomment it to use a display manager. ## Uncomment it to use a display manager.
...@@ -17,22 +19,22 @@ ...@@ -17,22 +19,22 @@
## e.g sddm,lightdm,... ## e.g sddm,lightdm,...
## It also prepare the .xsession file. ## It also prepare the .xsession file.
@DISPLAY_MANAGER@ %%DISPLAY_MANAGER%%
## Uncomment it to use a console tracker. ## Uncomment it to use a console tracker.
## Can be any console tracker as long as the ## Can be any console tracker as long as the
## corresponding frontend file exist on your system ## corresponding frontend file exist on your system
## e.g consolekit,seatd,turnstile,... ## e.g consolekit,seatd,turnstile,...
@CONSOLE_TRACKER@ %%CONSOLE_TRACKER%%
## Create and mount the XDG_RUNTIME directory ## Create and mount the XDG_RUNTIME directory
## at /run/user/@I [yes|no] ## at /run/user/@I [yes|no]
@XDG_RUNTIME@ %%XDG_RUNTIME%%
## Command to use in your .xinitrc ## Command to use in your .xinitrc
## to launch your desktop e.g.: openbox-session. ## to launch your desktop e.g.: openbox-session.
## If commented the .xinitrc file is not configured. ## If commented the .xinitrc file is not configured.
@DESKTOP_CMDLINE@ %%DESKTOP_CMDLINE%%
#!@BINDIR@/bash #!%%BINDIR%%/bash
if [ -d /etc/X11/xinit/xinitrc.d ] ; then if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
...@@ -7,9 +7,9 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then ...@@ -7,9 +7,9 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
unset f unset f
fi fi
list=( $(ls -A1 @PATH_ENVIRONMENT@ | sort) ) list=( $(ls -A1 %%PATH_ENVIRONMENT%% | sort) )
for i in ${list[@]};do for i in ${list[@]};do
var=( $(<@PATH_ENVIRONMENT@/${i}) ) var=( $(<%%PATH_ENVIRONMENT%%/${i}) )
for j in ${var[@]}; do for j in ${var[@]}; do
export ${j} export ${j}
done done
...@@ -25,4 +25,4 @@ else ...@@ -25,4 +25,4 @@ else
fi fi
## Select the session to start ## Select the session to start
${cmd} @DESKTOP_CMDLINE@ ${cmd} %%DESKTOP_CMDLINE%%
#!@BINDIR@/bash #!%%BINDIR%%/bash
list=( $(ls -A1 @PATH_ENVIRONMENT@ | sort) ) list=( $(ls -A1 %%PATH_ENVIRONMENT%% | sort) )
for i in ${list[@]};do for i in ${list[@]};do
var=( $(<@PATH_ENVIRONMENT@/${i}) ) var=( $(<%%PATH_ENVIRONMENT%%/${i}) )
for j in ${var[@]}; do for j in ${var[@]}; do
export ${j} export ${j}
done done
......
#!@BINDIR@/sh #!%%BINDIR%%/sh
## 66-yeller variable ## 66-yeller variable
export PROG="${MOD_NAME}" export PROG="${MOD_NAME}"
...@@ -12,7 +12,7 @@ ACTIVATED_PATH="${MOD_MODULE_DIR}/activated" ...@@ -12,7 +12,7 @@ ACTIVATED_PATH="${MOD_MODULE_DIR}/activated"
DEPENDS_PATH="${ACTIVATED_PATH}/depends" DEPENDS_PATH="${ACTIVATED_PATH}/depends"
owner="${1}" owner="${1}"
home=$(homeof "${owner}") home=$(%%EXECLINEDIR%%/homeof "${owner}")
uid=$(id -u "${owner}") uid=$(id -u "${owner}")
gid=$(id -g "${owner}") gid=$(id -g "${owner}")
...@@ -32,7 +32,7 @@ check_empty_var(){ ...@@ -32,7 +32,7 @@ check_empty_var(){
depends(){ depends(){
name="${1}" name="${1}"
66-yeller %badd%n dependency: "${consolekit}" 66-yeller %badd%n dependency: "${name}"
touch "${DEPENDS_PATH}/${name}" || die "unable to add dependency ${MOD_MODULE_DIR}/service/${name}" touch "${DEPENDS_PATH}/${name}" || die "unable to add dependency ${MOD_MODULE_DIR}/service/${name}"
} }
...@@ -59,7 +59,7 @@ if execl-toc -X -V DISPLAY_MANAGER; then ...@@ -59,7 +59,7 @@ if execl-toc -X -V DISPLAY_MANAGER; then
depends "${DISPLAY_MANAGER}" depends "${DISPLAY_MANAGER}"
66-yeller set environment at .xsession file to: %b"${home_env}"%n 66-yeller set environment at .xsession file to: %b"${home_env}"%n
sed -i "s:@PATH_ENVIRONMENT@:${home_env}:g" ".xsession" || die "unable to set environment directory at .xsession file" sed -i "s:%%PATH_ENVIRONMENT%%:${home_env}:g" ".xsession" || die "unable to set environment directory at .xsession file"
if [ -e "${home}/.xsession" ]; then if [ -e "${home}/.xsession" ]; then
random=$(date +%M%N) random=$(date +%M%N)
...@@ -92,9 +92,9 @@ if execl-toc -X -V DESKTOP_CMDLINE; then ...@@ -92,9 +92,9 @@ if execl-toc -X -V DESKTOP_CMDLINE; then
check_empty_var "DESKTOP_CMDLINE" "${DESKTOP_CMDLINE}" check_empty_var "DESKTOP_CMDLINE" "${DESKTOP_CMDLINE}"
66-yeller set environment at .xinitrc file to: %b"${home_env}"%n 66-yeller set environment at .xinitrc file to: %b"${home_env}"%n
sed -i "s:@PATH_ENVIRONMENT@:${home_env}:g" ".xinitrc" || die "unable to set environment directory at .xinitrc file" sed -i "s:%%PATH_ENVIRONMENT%%:${home_env}:g" ".xinitrc" || die "unable to set environment directory at .xinitrc file"
66-yeller set commandline at .xinitrc file to: %b"${DESKTOP_CMDLINE}"%n 66-yeller set commandline at .xinitrc file to: %b"${DESKTOP_CMDLINE}"%n
sed -i "s:@DESKTOP_CMDLINE@:${DESKTOP_CMDLINE}:g" ".xinitrc" || die "unable to set environment directory at .xinitrc file" sed -i "s:%%DESKTOP_CMDLINE%%:${DESKTOP_CMDLINE}:g" ".xinitrc" || die "unable to set environment directory at .xinitrc file"
if [ -e "${home}/.xinitrc" ]; then if [ -e "${home}/.xinitrc" ]; then
random=$(date +%M%N) random=$(date +%M%N)
......
[main] [main]
@type = oneshot @type = oneshot
@version = @version@ @version = %%version%%
@description = "Mount /run/user directory of user @I" @description = "Mount /run/user directory of user @I"
@user = ( root ) @user = ( root )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment