summaryrefslogtreecommitdiffhomepage
path: root/auto/options
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-03-27 13:43:37 +0200
committerAlejandro Colomar <alx@nginx.com>2023-03-29 00:40:40 +0200
commit5ba79b9b524ef746bc3269520c3f6b893f39275c (patch)
treed2c81fb988fe3c371ff5aa969abd7bf82459927a /auto/options
parente242b1454dff7a6be17ed2e2c06884fec528ad1b (diff)
downloadunit-5ba79b9b524ef746bc3269520c3f6b893f39275c.tar.gz
unit-5ba79b9b524ef746bc3269520c3f6b893f39275c.tar.bz2
Renamed --libstatedir to --statedir.
In BSD systems, it's usually </var/db> or some other dir under </var> that is not </var/lib>, so $statedir is a more generic name. See hier(7). Reported-by: Andrei Zeliankou <zelenkov@nginx.com> Reported-by: Zhidao Hong <z.hong@f5.com> Reviewed-by: Konstantin Pavlov <thresh@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Liam Crilly <liam@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to '')
-rw-r--r--auto/options8
1 files changed, 4 insertions, 4 deletions
diff --git a/auto/options b/auto/options
index 802ab701..5487be7f 100644
--- a/auto/options
+++ b/auto/options
@@ -74,10 +74,10 @@ do
--datarootdir=*) NXT_DATAROOTDIR="$value" ;;
--mandir=*) NXT_MANDIR="$value" ;;
--localstatedir=*) NXT_LOCALSTATEDIR="$value" ;;
- --libstatedir=*) NXT_LIBSTATEDIR="$value" ;;
+ --statedir=*) NXT_STATEDIR="$value" ;;
--state=*)
- >&2 echo "[warn] option --state is deprecated; use --libstatedir"
- NXT_LIBSTATEDIR="$value"
+ >&2 echo "[warn] option --state is deprecated; use --statedir"
+ NXT_STATEDIR="$value"
;;
--logdir=*) NXT_LOGDIR="$value" ;;
--runstatedir=*) NXT_RUNSTATEDIR="$value" ;;
@@ -160,7 +160,7 @@ NXT_DATAROOTDIR="${NXT_DATAROOTDIR-"$NXT_PREFIX/share"}"
NXT_MANDIR="${NXT_MANDIR-"$NXT_DATAROOTDIR/man"}"
NXT_LOCALSTATEDIR="${NXT_LOCALSTATEDIR-"$NXT_PREFIX/var"}"
-NXT_LIBSTATEDIR="${NXT_LIBSTATEDIR-"$NXT_LOCALSTATEDIR/lib/unit"}"
+NXT_STATEDIR="${NXT_STATEDIR-"$NXT_LOCALSTATEDIR/lib/unit"}"
NXT_LOGDIR="${NXT_LOGDIR-"$NXT_LOCALSTATEDIR/log/unit"}"
NXT_LOG="${NXT_LOG-"$NXT_LOGDIR/unit.log"}"
NXT_RUNSTATEDIR="${NXT_RUNSTATEDIR-"$NXT_LOCALSTATEDIR/run/unit"}"