Skip to content

Commit cdefebd

Browse files
committed
configure.ac, docs/configure.txt: suggest a --with-drvpath that is not bindir but rather libexecdir
Signed-off-by: Jim Klimov <[email protected]>
1 parent 45505a6 commit cdefebd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4218,7 +4218,7 @@ dnl POWERDOWNFLAG, "${POWERDOWNFLAG}", [Default path for upsmon POWERDOWNFLAG
42184218
dnl ---------------------------------------------------------------------
42194219
AC_MSG_CHECKING(if requested driver path)
42204220
AC_ARG_WITH(drvpath,
4221-
AS_HELP_STRING([--with-drvpath=PATH], [where to install UPS drivers (EPREFIX/bin)]),
4221+
AS_HELP_STRING([--with-drvpath=PATH], [where to install UPS drivers (legacy default: EPREFIX/bin; recommended: a subdir of libexecdir)]),
42224222
[
42234223
case "${withval}" in
42244224
yes|no)

docs/configure.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,14 @@ See also `--with-drvpath` below.
808808
--with-drvpath=PATH
809809

810810
The UPS drivers will be installed to this path. By default they
811-
install to `<exec_prefix>/bin`, i.e. `/usr/local/ups/bin`.
811+
install to `<exec_prefix>/bin`, i.e. `/usr/local/ups/bin`, but it
812+
may be quite reasonable to install them into a sub-directory of
813+
your `libexec` location or similar (e.g. `/usr/libexec/nut/drv`):
814+
on one hand, to avoid potential conflicts with unrelated programs
815+
that happen to have same names, and on another -- to keep these
816+
NUT programs which should not normally be executed by neither
817+
unprivileged users nor systems administrators, out of default
818+
`PATH` settings.
812819

813820
You would want a location that remains mounted when most of the system
814821
is prepared to turn off, so some distributions package NUT drivers into

0 commit comments

Comments
 (0)