diff --git a/configure.ac b/configure.ac index 3c8f889058..644195bb12 100644 --- a/configure.ac +++ b/configure.ac @@ -4722,6 +4722,14 @@ NUT_DATADIR="${conftemp}" NUT_REPORT_SETTING_PATH([Data file path], NUT_DATADIR, "${conftemp}", [Default path for data files]) +dnl same for mandir +conftemp="${mandir}" +eval conftemp=\"${conftemp}\" +eval conftemp=\"${conftemp}\" +NUT_MANDIR="${conftemp}" +NUT_REPORT_SETTING_PATH([Man page path], + NUT_MANDIR, "${conftemp}", [Default path for man page files]) + dnl same for bindir conftemp="${bindir}" eval conftemp=\"${conftemp}\" @@ -4946,6 +4954,7 @@ AC_SUBST(BINDIR) AC_SUBST(LIBDIR) AC_SUBST(PKGCONFIGDIR) AC_SUBST(NUT_DATADIR, [`eval echo "${NUT_DATADIR}"`]) +AC_SUBST(NUT_MANDIR, [`eval echo "${NUT_MANDIR}"`]) AC_SUBST(NUT_LIBEXECDIR, [`eval echo "${LIBEXECDIR}"`]) AC_SUBST(DRVPATH) AC_SUBST(SBINDIR) diff --git a/scripts/Solaris/nut-driver-enumerator.xml.in b/scripts/Solaris/nut-driver-enumerator.xml.in index a0579c2505..afce93201f 100644 --- a/scripts/Solaris/nut-driver-enumerator.xml.in +++ b/scripts/Solaris/nut-driver-enumerator.xml.in @@ -118,11 +118,11 @@ - + - + - + @@ -183,11 +183,11 @@ - + - + - + diff --git a/scripts/Solaris/nut-driver.xml.in b/scripts/Solaris/nut-driver.xml.in index c22dbdb20a..a26efc2167 100644 --- a/scripts/Solaris/nut-driver.xml.in +++ b/scripts/Solaris/nut-driver.xml.in @@ -128,11 +128,11 @@ - + - + - + diff --git a/scripts/Solaris/nut-monitor.xml.in b/scripts/Solaris/nut-monitor.xml.in index 7553fe357c..3bc6aab0c1 100644 --- a/scripts/Solaris/nut-monitor.xml.in +++ b/scripts/Solaris/nut-monitor.xml.in @@ -117,11 +117,11 @@ - + - + - + diff --git a/scripts/Solaris/nut-server.xml.in b/scripts/Solaris/nut-server.xml.in index 4a35db17c3..04c76f023b 100644 --- a/scripts/Solaris/nut-server.xml.in +++ b/scripts/Solaris/nut-server.xml.in @@ -147,15 +147,15 @@ - + - + - + - + - + diff --git a/scripts/Solaris/nut.xml.in b/scripts/Solaris/nut.xml.in index 154ecc50dd..7afa7d659a 100644 --- a/scripts/Solaris/nut.xml.in +++ b/scripts/Solaris/nut.xml.in @@ -87,11 +87,11 @@ - - - - - + + + + + diff --git a/scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in b/scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in index db376a1c54..85251e5cf6 100644 --- a/scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in +++ b/scripts/upsdrvsvcctl/nut-driver-enumerator.sh.in @@ -888,11 +888,10 @@ smf_setDocLink() { /usr/sbin/svccfg -s "${__TARGET_FMRI}" setprop "${__PG}/uri" = "astring:" "${NUT_WEBSITE_BASE}/docs/man/${__DRV}.html" [ $? = 0 ] && echo "OK" || { echo "FAILED to stash the service property group '${__PG}' for online docs">&2 ; return 1 ; } - # FIXME: Pass resolved $mandir if known __PG="tm_man_${__DRV}@MAN_SECTION_CMD_SYS@" /usr/sbin/svccfg -s "${__TARGET_FMRI}" delprop "${__PG}" 2>/dev/null || true /usr/sbin/svccfg -s "${__TARGET_FMRI}" addpg "${__PG}" template && \ - /usr/sbin/svccfg -s "${__TARGET_FMRI}" setprop "${__PG}/manpath" = "astring:" "/usr/share/man" && \ + /usr/sbin/svccfg -s "${__TARGET_FMRI}" setprop "${__PG}/manpath" = "astring:" "@NUT_MANDIR@" && \ /usr/sbin/svccfg -s "${__TARGET_FMRI}" setprop "${__PG}/section" = "astring:" "@MAN_SECTION_CMD_SYS@" && \ /usr/sbin/svccfg -s "${__TARGET_FMRI}" setprop "${__PG}/title" = "astring:" "${__DRV}" [ $? = 0 ] && echo "OK" || { echo "FAILED to stash the service property group '${__PG}' for local docs">&2 ; return 1 ; }