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

Bump 0.5.0

parent b2655aab
Branches master
Tags 0.8.0
No related merge requests found
...@@ -4,7 +4,7 @@ Build Instructions ...@@ -4,7 +4,7 @@ Build Instructions
## Requirements ## Requirements
- GNU make version 3.81 or later - GNU make version 3.81 or later
This software will install on any operating system that implements POSIX.1-2008, available at [opengroup](http://pubs.opengroup.org/onlinepubs/9699919799/). This software will install on any operating system that implements POSIX.1-2008, available at [opengroup](http://pubs.opengroup.org/onlinepubs/9699919799/).
## Standard usage ## Standard usage
...@@ -16,10 +16,7 @@ This software will install on any operating system that implements POSIX.1-2008, ...@@ -16,10 +16,7 @@ This software will install on any operating system that implements POSIX.1-2008,
You can customize paths via flags given to configure. See `./configure --help` for a list of all available configure options. You can customize paths via flags given to configure. See `./configure --help` for a list of all available configure options.
## Runtime dependencies ## Runtime dependencies
- 66 version 0.5.1.0 or later https://framagit.org/Obarun/66/ - 66 version 0.7.0.0-beta or later https://git.obarun.org/Obarun/66/
- 66-tools version 0.0.6.2 or later https://framagit.org/Obarun/66-tools/ - 66-tools version 0.1.0.0 or later https://git.obarun.org/Obarun/66-tools/
- scandir-66serv version 0.2.1 or later https://framagit.org/pkg/obmods/scandir-66erv - scandir-66serv version 0.4.0 or later https://git.obarun.org/pkg/obmods/scandir-66erv
- optional dependencies:
* console-tracker-66serv version 0.2.1 or later https://framagit.org/pkg/obmods/console-tracker-66serv
* display-manager-66serv version 0.2.1 or later https://framagit.org/pkg/obmods/display-manager-66serv
Copyright (c) 2018-2021 Eric Vidal <eric@obarun.org> Copyright (c) 2018-2023 Eric Vidal <eric@obarun.org>
All rights reserved. All rights reserved.
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
......
...@@ -15,31 +15,12 @@ include package/targets.mak ...@@ -15,31 +15,12 @@ include package/targets.mak
INSTALL := ./tools/install.sh INSTALL := ./tools/install.sh
install: install-script install-service install-service-module install-service-instance-module install-configure install: install-module install-script
install-script: $(SCRIPT_TARGET:module/boot-user@/configure/%=$(DESTDIR)$(module_directory)/boot-user@/configure/%)
install-service: $(SERVICE_TARGET:service/%=$(DESTDIR)$(service_directory)/%)
install-service-module: $(MODULE_TARGET:module/boot-user@/service/%=$(DESTDIR)$(module_directory)/boot-user@/service/%)
install-service-instance-module: $(MODULE_INSTANCE_TARGET:module/boot-user@/service@/%=$(DESTDIR)$(module_directory)/boot-user@/service@/%)
install-configure: $(MODULE_CONFIGURE_TARGET:module/boot-user@/configure/configure=$(DESTDIR)$(module_directory)/boot-user@/configure/configure)
install-module: $(MODULE_TARGET:module/%=$(DESTDIR)$(service_directory)/$(package)/%)
install-script: $(SCRIPT_TARGET:module/configure/%=$(DESTDIR)$(service_directory)/$(package)/configure/%)
$(DESTDIR)$(module_directory)/boot-user@/configure/%: module/boot-user@/configure/% $(DESTDIR)$(service_directory)/$(package)/%: module/%
exec $(INSTALL) -D -m 755 $< $@
sed -i -e 's,@BINDIR@,$(bindir),' $@
$(DESTDIR)$(module_directory)/boot-user@/configure/configure: module/boot-user@/configure/configure
exec $(INSTALL) -D -m 755 $< $@
sed -i -e 's,@BINDIR@,$(bindir),' $@
$(DESTDIR)$(module_directory)/boot-user@/service/%: module/boot-user@/service/%
exec $(INSTALL) -D -m 644 $< $@
$(DESTDIR)$(module_directory)/boot-user@/service@/%: module/boot-user@/service@/%
exec $(INSTALL) -D -m 644 $< $@
$(DESTDIR)$(service_directory)/%: service/%
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)," \
...@@ -47,6 +28,10 @@ $(DESTDIR)$(service_directory)/%: service/% ...@@ -47,6 +28,10 @@ $(DESTDIR)$(service_directory)/%: service/%
-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/%
exec $(INSTALL) -D -m 755 $< $@
sed -i -e 's,@BINDIR@,$(bindir),' $@
version: version:
@echo $(version) @echo $(version)
......
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
--- ---
# In 0.5.0
- Adapt to 66 0.7.0.0-beta
---
# In 0.4.3 # In 0.4.3
- Adapt to scandir@-66serv 0.3.1 - Adapt to scandir@-66serv 0.3.1
......
...@@ -16,16 +16,15 @@ Fine tuning of the installation directories: ...@@ -16,16 +16,15 @@ Fine tuning of the installation directories:
--bindir=BINDIR user executables [EPREFIX/bin] --bindir=BINDIR user executables [EPREFIX/bin]
--datarootdir=DATAROOTDIR read-only architecture-independent data root [PREFIX/share] --datarootdir=DATAROOTDIR read-only architecture-independent data root [PREFIX/share]
--with-system-service=DIR 66 service intallation directory [DATAROOTDIR/$package_macro_dir/service] --with-system-service=DIR 66 service intallation directory [DATAROOTDIR/$package_macro_dir/service]
--with-system-module=DIR 66 module intallation directory [DATAROOTDIR/$package_macro_dir/module]
Fine tunning of boot-user configuration: Fine tunning of boot-user configuration:
--DISPLAY_MANAGER=VALUE display manager to use [] --DISPLAY_MANAGER=VALUE display manager to use []
--CONSOLE_TRACKER=VALUE console tracker to use [] --CONSOLE_TRACKER=VALUE console tracker to use []
--XDG_RUNTIME=BOOLEAN create and mount the XDG_RUNTIME directory [!yes] --XDG_RUNTIME=BOOLEAN create and mount the XDG_RUNTIME directory [!yes]
--DESKTOP_CMDLINE=VALUE commandline to use in the .xinitrc file [!jwm] --DESKTOP_CMDLINE=VALUE commandline to use in the .xinitrc file [!jwm]
Use yes or no with lowercase character to set BOOLEAN values. Use yes or no with lowercase character to set BOOLEAN values.
Empty value is a commented one and not used at all. Empty value is a commented one and not used at all.
An exclamation mark '!' at the begin of the value unexport the variable An exclamation mark '!' at the begin of the value unexport the variable
...@@ -89,7 +88,6 @@ exec_prefix='$prefix' ...@@ -89,7 +88,6 @@ exec_prefix='$prefix'
bindir='$exec_prefix/bin' bindir='$exec_prefix/bin'
datarootdir='$prefix/share' datarootdir='$prefix/share'
service_directory='$datarootdir/$package_macro_dir/service' service_directory='$datarootdir/$package_macro_dir/service'
module_directory='$datarootdir/$package_macro_dir/module'
DISPLAY_MANAGER= DISPLAY_MANAGER=
CONSOLE_TRACKER= CONSOLE_TRACKER=
XDG_RUNTIME='!yes' XDG_RUNTIME='!yes'
...@@ -103,7 +101,6 @@ for arg ; do ...@@ -103,7 +101,6 @@ for arg ; do
--bindir=*) bindir=${arg#*=} ;; --bindir=*) bindir=${arg#*=} ;;
--datarootdir=*) datarootdir=${arg#*=} ;; --datarootdir=*) datarootdir=${arg#*=} ;;
--with-system-service=*) service_directory=${arg#*=} ;; --with-system-service=*) service_directory=${arg#*=} ;;
--with-system-module=*) module_directory=${arg#*=} ;;
--DISPLAY_MANAGER=*) DISPLAY_MANAGER=${arg#*=} ;; --DISPLAY_MANAGER=*) DISPLAY_MANAGER=${arg#*=} ;;
--CONSOLE_TRACKER=*) CONSOLE_TRACKER=${arg#*=} ;; --CONSOLE_TRACKER=*) CONSOLE_TRACKER=${arg#*=} ;;
--XDG_RUNTIME=*) XDG_RUNTIME=${arg#*=} ;; --XDG_RUNTIME=*) XDG_RUNTIME=${arg#*=} ;;
...@@ -124,14 +121,14 @@ fi ...@@ -124,14 +121,14 @@ fi
# Expand installation directories # Expand installation directories
stripdir prefix stripdir prefix
for i in exec_prefix bindir datarootdir \ for i in exec_prefix bindir datarootdir \
service_directory module_directory ; do service_directory; do
eval tmp=\${$i} eval tmp=\${$i}
eval $i=$tmp eval $i=$tmp
stripdir $i stripdir $i
done done
stripdir datarootdir stripdir datarootdir
for i in service_directory module_directory; do for i in service_directory; do
eval tmp=\${$i} eval tmp=\${$i}
eval $i=$tmp eval $i=$tmp
stripdir $i stripdir $i
...@@ -175,13 +172,13 @@ cat << EOF ...@@ -175,13 +172,13 @@ cat << EOF
# $cmdline # $cmdline
# Any changes made here will be lost if configure is re-run. # Any changes made here will be lost if configure is re-run.
package := $package
version := $version version := $version
prefix := $prefix prefix := $prefix
exec_prefix := $exec_prefix exec_prefix := $exec_prefix
bindir := $bindir bindir := $bindir
datarootdir := $datarootdir datarootdir := $datarootdir
service_directory := $service_directory service_directory := $service_directory
module_directory := $module_directory
package_macro_dir := $package_macro_dir package_macro_dir := $package_macro_dir
$DISPLAY_MANAGER $DISPLAY_MANAGER
$CONSOLE_TRACKER $CONSOLE_TRACKER
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
@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 )
@options = ( env )
@depends = ( scandir@@I ) @depends = ( scandir@@I )
@intree = session
[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.
## Can be any display manager as long as the ## Can be any display manager as long as the
## corresponding frontend file exist on your system ## corresponding frontend file exist on your system
## e.g sddm,lightdm,... ## e.g sddm,lightdm,...
## It also prepare the .xsession file. ## It also prepare the .xsession file.
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
## 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,elogind,... ## e.g consolekit,elogind,...
@CONSOLE_TRACKER@ @CONSOLE_TRACKER@
...@@ -35,4 +35,4 @@ ...@@ -35,4 +35,4 @@
## 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@
...@@ -15,7 +15,7 @@ for i in ${list[@]};do ...@@ -15,7 +15,7 @@ for i in ${list[@]};do
done done
done done
66-all up 66 tree start
## Try consolekit ## Try consolekit
if 66-which -q ck-launch-session; then if 66-which -q ck-launch-session; then
......
...@@ -8,5 +8,5 @@ for i in ${list[@]};do ...@@ -8,5 +8,5 @@ for i in ${list[@]};do
done done
done done
66-all up 66 tree start
...@@ -6,6 +6,11 @@ export VERBOSITY="${MOD_VERBOSITY}" ...@@ -6,6 +6,11 @@ export VERBOSITY="${MOD_VERBOSITY}"
export CLOCK_ENABLED=0 export CLOCK_ENABLED=0
export COLOR_ENABLED="${MOD_COLOR}" export COLOR_ENABLED="${MOD_COLOR}"
## script variable
FRONTEND_PATH="${MOD_MODULE_DIR}/frontend"
ACTIVATED_PATH="${MOD_MODULE_DIR}/activated"
DEPENDS_PATH="${ACTIVATED_PATH}/depends"
owner="${1}" owner="${1}"
home=$(homeof "${owner}") home=$(homeof "${owner}")
uid=$(id -u "${owner}") uid=$(id -u "${owner}")
...@@ -25,16 +30,22 @@ check_empty_var(){ ...@@ -25,16 +30,22 @@ check_empty_var(){
fi fi
} }
depends(){
name="${1}"
66-yeller %badd%n dependency: "${consolekit}"
touch "${DEPENDS_PATH}/${name}" || die "unable to add dependency ${MOD_MODULE_DIR}/service/${name}"
}
enable(){ enable(){
name="${1}" name="${1}"
66-yeller %benable%n service: "${name}" 66-yeller %benable%n service: "${name}"
touch "${MOD_MODULE_DIR}/service/${name}" || die "unable to enable ${MOD_MODULE_DIR}/service/${1}" touch "${ACTIVATED_PATH}/${name}" || die "unable to enable ${MOD_MODULE_DIR}/service/${1}"
} }
disable(){ disable(){
name="${1}" name="${1}"
66-yeller %rdisable%n service: "${name}" 66-yeller %rdisable%n service: "${name}"
rm -f "${MOD_MODULE_DIR}/service/${name}" || die "disable to enable ${MOD_MODULE_DIR}/service/${1}" rm -f "${ACTIVATED_PATH}/${name}" || die "disable to enable ${MOD_MODULE_DIR}/service/${1}"
} }
if execl-toc -X -V DISPLAY_MANAGER; then if execl-toc -X -V DISPLAY_MANAGER; then
...@@ -45,7 +56,7 @@ if execl-toc -X -V DISPLAY_MANAGER; then ...@@ -45,7 +56,7 @@ if execl-toc -X -V DISPLAY_MANAGER; then
die "the ${DISPLAY_MANAGER} frontend service file do not exist on your system -- please install it and try again" die "the ${DISPLAY_MANAGER} frontend service file do not exist on your system -- please install it and try again"
fi fi
enable "display-manager@${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"
...@@ -67,7 +78,7 @@ if execl-toc -X -V CONSOLE_TRACKER; then ...@@ -67,7 +78,7 @@ if execl-toc -X -V CONSOLE_TRACKER; then
if ! [ -e "${MOD_SERVICE_ADMDIR}${CONSOLE_TRACKER}" ] && ! [ -e "${MOD_SERVICE_SYSDIR}${CONSOLE_TRACKER}" ]; then if ! [ -e "${MOD_SERVICE_ADMDIR}${CONSOLE_TRACKER}" ] && ! [ -e "${MOD_SERVICE_SYSDIR}${CONSOLE_TRACKER}" ]; then
die "the ${CONSOLE_TRACKER} frontend service file do not exist on your system -- please install it and try again" die "the ${CONSOLE_TRACKER} frontend service file do not exist on your system -- please install it and try again"
fi fi
enable "console-tracker@${CONSOLE_TRACKER}" depends "${CONSOLE_TRACKER}"
fi fi
if [ "${XDG_RUNTIME}" = "yes" ]; then if [ "${XDG_RUNTIME}" = "yes" ]; then
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
@version = @version@ @version = @version@
@description = "Mount /run/user directory of user @I" @description = "Mount /run/user directory of user @I"
@user = ( root ) @user = ( root )
@options = ( log )
[start] [start]
@execute = @execute =
( (
if { 66-yeller -p mount-run@@I starts... } if { 66-yeller -p mount-run@@I starts... }
if -nt { if -nt {
execl-subuidgid -o @I execl-subuidgid -o @I
execl-toc -X -m /run/user/${UID} -o noatime,nodev,nosuid,gid=${GID},uid=${UID},mode=0700,size=64M -t tmpfs -d user execl-toc -X -m /run/user/${UID} -o noatime,nodev,nosuid,gid=${GID},uid=${UID},mode=0700,size=64M -t tmpfs -d user
} }
......
package=boot-user-66serv package=boot-user
version=0.4.3 version=0.5.0
package_macro_dir=66 package_macro_dir=66
configure 0755 configure 0755
.xsession 0755
.xinitrc 0755
SCRIPT_TARGET := \ SCRIPT_TARGET := \
module/boot-user@/configure/.xinitrc \ module/configure/configure \
module/boot-user@/configure/.xsession module/configure/.xinitrc \
module/configure/.xsession
MODULE_TARGET := $(shell find module/ -type f)
SERVICE_TARGET := service/boot-user@
MODULE_TARGET := $(shell find module/boot-user@/service -type f)
MODULE_INSTANCE_TARGET := $(shell find module/boot-user@/service@ -type f)
MODULE_CONFIGURE_TARGET := module/boot-user@/configure/configure
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