From 331d019eeb1104d4baa6af1d11ad228793b8d97f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 14 Jun 2025 13:32:49 +0000 Subject: Set up configurable policy infrastructure Signed-off-by: Laurent Bercot --- configure | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 51474bb..e8d1c16 100755 --- a/configure +++ b/configure @@ -29,8 +29,7 @@ Fine tuning of the installation directories: --livedir=DIR run s6-rc live directory in DIR [s6-rc default|/run/s6-rc] --repodir=DIR s6-frontend working base [/var/lib/s6-frontend/repository] --bootdir=DIR location of the bootable s6-rc compiled db [/etc/s6-rc] - --syspkgdir=DIR location of service files for distro packages [/usr/lib/s6-frontend/s6-rc/source] - --localpkgdir=DIR location of service files for local packages [/etc/s6-frontend/s6-rc/source] + --with-def-path=PATH path to service files [LIBDIR/s6-frontend/s6-rc/source:SYSCONFDIR/s6-frontend/s6-rc/source] If no --prefix option is given, by default libdir (but not dynlibdir) will be /usr/lib, and includedir will be /usr/include. @@ -183,8 +182,7 @@ scandir= livedir= repodir=/var/lib/s6-frontend/s6-rc/repository bootdir=/etc/s6-rc -syspkgdir=/usr/lib/s6-frontend/s6-rc/source -localpkgdir=/etc/s6-frontend/s6-rc/source +defpath='$libdir/s6-frontend/s6-rc/source:$sysconfdir/s6-frontend/s6-rc/source' usensss=false uses6li=true useutillinux=false @@ -232,8 +230,7 @@ for arg ; do --livedir=*) livedir=${arg#*=} ;; --repodir=*) repodir=${arg#*=} ;; --bootdir=*) bootdir=${arg#*=} ;; - --syspkgdir=*) syspkgdir=${arg#*=} ;; - --localpkgdir=*) localpkgdir=${arg#*=} ;; + --with-def-path=*) defpath=${arg#*=} ;; --enable-nsss|--enable-nsss=yes) usensss=true ;; --disable-nsss|--enable-nsss=no) usensss=false ;; --enable-s6li|--enable-s6li=yes) uses6li=true ;; @@ -274,7 +271,7 @@ fi # Expand installation directories stripdir prefix -for i in exec_prefix dynlibdir libexecdir bindir libdir includedir sysconfdir pkgconfdir sysdeps sproot ; do +for i in exec_prefix dynlibdir libexecdir bindir libdir includedir sysconfdir pkgconfdir sysdeps sproot defpath ; do eval tmp=\${$i} eval $i=$tmp stripdir $i @@ -559,12 +556,9 @@ else echo "MAYBEPTHREAD_LIB :=" fi -echo "SCANDIR := $scandir" -echo "LIVEDIR := $livedir" echo "REPODIR := $repodir" echo "BOOTDIR := $bootdir" -echo "SYSPKGDIR := $syspkgdir" -echo "LOCALPKGDIR := $localpkgdir" +echo "DEFPATH := $defpath" if $adaemontools ; then echo "WRAP_DAEMONTOOLS := 1" @@ -647,11 +641,8 @@ echo "#define ${package_macro_name}_REPODIR \"$repodir\"" echo "#undef ${package_macro_name}_BOOTDIR" echo "#define ${package_macro_name}_BOOTDIR \"$bootdir\"" -echo "#undef ${package_macro_name}_SYSPKGDIR" -echo "#define ${package_macro_name}_SYSPKGDIR \"$syspkgdir\"" - -echo "#undef ${package_macro_name}_LOCALPKGDIR" -echo "#define ${package_macro_name}_LOCALPKGDIR \"$localpkgdir\"" +echo "#undef ${package_macro_name}_DEFPATH" +echo "#define ${package_macro_name}_DEFPATH \"$defpath\"" echo "#undef ${package_macro_name}_WRAP_DAEMONTOOLS" if $adaemontools ; then -- cgit v1.3.1