From 85554b3c1103c226fb16d20402ccea1dbc08f8c2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 Jun 2025 22:20:08 +0000 Subject: Add s6-rc-repo-init, s6-rc-repo-populate Signed-off-by: Laurent Bercot --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index e27c0b2..c929287 100755 --- a/configure +++ b/configure @@ -26,6 +26,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR global configuration files [PREFIX/etc] --pkgconfdir=DIR pkg-config .pc files [PREFIX/lib/pkgconfig] --livedir=DIR default live directory [/run/s6-rc] + --repodir=DIR default repo directory [/var/lib/s6-rc/repository] If no --prefix option is given, by default libdir (but not dynlibdir) will be /usr/lib, and includedir will be /usr/include. @@ -170,6 +171,7 @@ vpaths='' vpathd='' build= livedir=/run/s6-rc +repodir=/var/lib/s6-rc/repository for arg ; do case "$arg" in @@ -208,6 +210,8 @@ for arg ; do --enable-absolute-paths|--enable-absolute-paths=yes) abspath=true ;; --disable-absolute-paths|--enable-absolute-paths=no) abspath=false ;; --livedir=*) livedir=${arg#*=} ;; + --repodir=*) repodir=${arg#*=} ;; + --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;; --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;; --host=*|--target=*) target=${arg#*=} ;; @@ -236,7 +240,7 @@ fi # Expand installation directories stripdir prefix -for i in exec_prefix dynlibdir libexecdir bindir libdir includedir sysconfdir pkgconfdir sysdeps sproot livedir ; do +for i in exec_prefix dynlibdir libexecdir bindir libdir includedir sysconfdir pkgconfdir sysdeps sproot livedir repodir ; do eval tmp=\${$i} eval $i=$tmp stripdir $i @@ -546,6 +550,8 @@ fi echo "#define ${package_macro_name}_LIBEXECPREFIX \"$libexecdir/\"" echo "#define ${package_macro_name}_SYSCONFPREFIX \"$sysconfdir/\"" echo "#define ${package_macro_name}_LIVE_BASE \"$livedir\"" +echo "#define ${package_macro_name}_REPO_BASE \"$repodir\"" + echo echo "#endif" exec 1>&3 3>&- -- cgit v1.3.1