Commit 4ce921fe authored by Eric Vidal's avatar Eric Vidal 💬

allow to choice rc.init rc.shutdown file

parent 429e2994
......@@ -120,7 +120,8 @@ $(DESTDIR)$(sysconfdir)/%: skel/%
chmod $$mode $@ ; } && \
exec sed -e "s/@BINDIR@/$(subst /,\/,$(bindir))/g" \
-e "s/@EXECLINE_SHEBANGPREFIX@/$(subst /,\/,$(shebangdir))/g" \
-e "s/@LIVEDIR@/$(subst /,\/,$(livedir))/g" $< > $@
-e "s/@LIVEDIR@/$(subst /,\/,$(livedir))/g" \
-e "s/@SKEL@/$(subst /,\/,$(skel))/g" $< > $@
$(DESTDIR)$(system_log)/% $(DESTDIR)$(service_packager)/% $(DESTDIR)$(service_sys)/% $(DESTDIR)$(service_sysconf)/% :
exec $(INSTALL) -D -m 0755 $< $@
......
......@@ -28,11 +28,11 @@ Fine tuning of the installation directories:
--shebangdir=DIR absolute path for execline #\! invocations [BINDIR]
--livedir=DIR default live directory [/run/66]
--with-rc-skeleton=DIR skeleton rc.{init,shutdown} file [SYSDIR]
--with-system-log=DIR system service log directory[/var/log/66]
--with-system-dir=DIR 66 tools system working directory[PREFIX/lib/66]
--with-system-service=DIR system service frontend directory[DATAROOTDIR/66/service]
--with-system-service-conf=DIR system service configuration file directory[DATAROOTDIR/66/conf]
--with-sysadmin-service=DIR sysadmin service frontend directory[SYSDIR/service]
--with-sysadmin-service-conf=DIR sysadmin service configuration file directory[SYSDIR/conf]
......@@ -167,6 +167,7 @@ datarootdir='$prefix/share'
mandir='$datarootdir/man'
shebangdir='$bindir'
livedir='/run/66'
skel='$sysconfdir'
system_dir='$prefix/lib/66'
system_log='/var/log/66'
service_system='$datarootdir/66/service'
......@@ -211,6 +212,7 @@ for arg ; do
--mandir=*) mandir=${arg#*=} ;;
--shebangdir=*) shebangisdefault=false ; shebangdir=${arg#*=} ;;
--livedir=*) livedir=${arg#*=} ;;
--with-rc-skeleton=*) skel=${arg#*=} ;;
--with-system-dir=*) system_dir=${arg#*=} ;;
--with-system-log=*) system_log=${arg#*=} ;;
--with-system-service=*) service_system=${arg#*=} ;;
......@@ -293,7 +295,7 @@ for i in service_system mandir; do
done
stripdir sysconfdir
for i in service_adm service_admconf; do
for i in service_adm service_admconf skel; do
eval tmp=\${$i}
eval $i=$tmp
stripdir $i
......@@ -476,6 +478,7 @@ shebangdir := $shebangdir
datarootdir := $datarootdir
mandir := $mandir
livedir := $livedir
skel := $skel
system_dir := $system_dir
system_log := $system_log
service_system := $service_system
......
......@@ -2,8 +2,8 @@ VERBOSITY=0
LIVE=@LIVEDIR@
PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin
TREE=boot
RCINIT=/etc/66/rc.init
RCSHUTDOWN=/etc/66/rc.shutdown
RCINIT=@SKEL@/rc.init
RCSHUTDOWN=@SKEL@/rc.shutdown
UMASK=0022
RESCAN=0
ISHELL=/etc/66/ishell
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment