Skip to content

FTY remerge as of 20250415 with NUT tag v2.8.3-rc4 and 20250421 with tag v2.8.3-rc5 #2903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 83 commits into
base: FTY
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
c69c997
clients/upssched-cmd: make the sample script a bit more useful [#2890]
jimklimov Apr 11, 2025
2c2b08a
tests/NIT/nit.sh: generatecfg_upsmon_trivial(): populate also upssche…
jimklimov Apr 11, 2025
f9413a1
scripts/misc/notifyme-debug, tests/NIT/nit.sh: call upssched for test…
jimklimov Apr 11, 2025
03b8aeb
clients/upssched.c: writepid() from the timer daemon child loop [#2890]
jimklimov Apr 11, 2025
914541f
tests/NIT/nit.sh: stop_daemons(): pick up PID_UPSSCHED from $NUT_PIDP…
jimklimov Apr 11, 2025
efcd309
scripts/misc/notifyme-debug: allow a separate NUT_DEBUG_LEVEL_UPSSCHE…
jimklimov Apr 11, 2025
baf9d53
tests/NIT/nit.sh: support per-tool NUT_DEBUG_LEVEL_* settings [#2890]
jimklimov Apr 11, 2025
c440f43
tests/NIT/nit.sh: make sure we have upslog and upssched to test [#2890]
jimklimov Apr 11, 2025
5099c31
tests/NIT/nit.sh: track down PID_UPSSCHED in more cases, try to repor…
jimklimov Apr 11, 2025
a267ea6
scripts/misc/notifyme-debug: also print envvar and other details to s…
jimklimov Apr 11, 2025
21a211c
clients/upssched-cmd: use UTC date in sample reports [#2890]
jimklimov Apr 11, 2025
b75bea2
clients/upssched.c: unsetenv("NOTIFYTYPE") and unsetenv("UPSNAME") wh…
jimklimov Apr 11, 2025
d795939
clients/upssched.c: also writepid() and unsetenv() in WIN32 builds [#…
jimklimov Apr 11, 2025
e6cdeeb
NEWS.adoc: note the changes for upssched and NIT [#2890]
jimklimov Apr 11, 2025
4ab678c
Introduce fallback unsetenv() e.g. for WIN32 [#2890]
jimklimov Apr 11, 2025
8b5c072
scripts/external_apis/enphase: correct neg number conversion, retry api
sshambar Apr 12, 2025
29fb7ee
Merge pull request #2898 from sshambar/enphase-patch2
jimklimov Apr 13, 2025
684f19b
Merge pull request #2896 from jimklimov/issue-2890
jimklimov Apr 13, 2025
d31152e
INSTALL.nut.adoc: fix dashes in "Building NUT for in-place upgrades o…
jimklimov Apr 14, 2025
d79961a
INSTALL.nut.adoc: in-place upgrades: document how to compare new buil…
jimklimov Apr 14, 2025
d58df34
configure.ac: suggest comparing the "in-place" FS layout before insta…
jimklimov Apr 14, 2025
2027776
configure.ac: typo fix in comment
jimklimov Apr 14, 2025
e278991
docs/configure.txt: tell more about the --datadir option vs. --dataro…
jimklimov Apr 14, 2025
be5179e
clients/Makefile.am, tools/nut-scanner/Makefile.am, UPGRADING.adoc: f…
jimklimov Apr 14, 2025
ee28b95
docs/maintainer-guide.txt: note to not rush, and do use RC tags
jimklimov Apr 14, 2025
d72f5f8
docs/maintainer-guide.txt: note to check for library changes (exposed…
jimklimov Apr 14, 2025
b18ad4d
configure.ac, NEWS.adoc: extend enable_inplace_runtime mode to consid…
jimklimov Apr 14, 2025
c8551c1
ci_build.sh: build_to_only_catch_errors_check(): handle spellcheck-qu…
jimklimov Apr 14, 2025
3cb5fc0
ci_build.sh: build_to_only_catch_errors_check(): call from default bu…
jimklimov Apr 14, 2025
150bb9e
ci_build.sh: help troubleshoot invalid CPP setting
jimklimov Apr 14, 2025
d051c68
ci_build.sh: build_to_only_catch_errors_check(): handle spellcheck-qu…
jimklimov Apr 14, 2025
a2e66b0
ci_build.sh: build_to_only_catch_errors_check(): call from default bu…
jimklimov Apr 14, 2025
726360c
ci_build.sh: help troubleshoot invalid CPP setting
jimklimov Apr 14, 2025
ccd9eb4
ci_build.sh: extend to support BUILD_TYPE="default-spellcheck-quick" …
jimklimov Apr 14, 2025
9fd25d7
Jenkinsfile-dynamatrix: use ci_build.sh extended to support BUILD_TYP…
jimklimov Apr 14, 2025
67eb7a4
docs/Makefile.am: ensure qa-guide-docinfo.xml made for qa-guide.adoc-…
jimklimov Apr 14, 2025
f4fec7d
docs/man/upscmd.txt, docs/man/upsrw.txt: clarify "OK" vs. waiting for…
jimklimov Apr 14, 2025
95aa045
docs/config-prereqs.txt: update for OmniOS r151052
jimklimov Jan 22, 2025
b742d42
Merge pull request #2901 from jimklimov/issue-2900
jimklimov Apr 15, 2025
c7debac
Release NUT v2.8.3, fourth time is the charm, right?
jimklimov Apr 15, 2025
5d3ff46
docs/config-prereqs.txt, docs/nut.dict: wrap most long lines, reword …
jimklimov Apr 15, 2025
24f9533
docs/maintainer-guide.txt: more notes to check code/recipe quality be…
jimklimov Apr 15, 2025
1e8e2da
Merge branch 'fightwarn-qemu' with NUT tag v2.8.3-rc4 as of 2025-04-1…
jimklimov Apr 15, 2025
87dab45
common/common.c, NEWS.adoc: upsnotify(): default to not spam if our f…
jimklimov Apr 16, 2025
99a804d
configure.ac: detect LDD early, so everyone can use it if available
jimklimov Apr 16, 2025
d2d1735
m4/nut_check_libmodbus.m4: only define NUT_MODBUS_HAS_USB if nut_have…
jimklimov Apr 16, 2025
29ff1f6
m4/nut_check_libmodbus.m4: detect NUT_MODBUS_LINKTYPE_STR
jimklimov Apr 16, 2025
7fd0e56
drivers/apc_modbus.c: report NUT_MODBUS_LINKTYPE_STR
jimklimov Apr 16, 2025
719cbdf
drivers/phoenixcontact_modbus.c, drivers/generic_modbus.c, drivers/hu…
jimklimov Apr 16, 2025
1ca6827
NEWS.adoc: modbus drivers now report NUT_MODBUS_LINKTYPE_STR [#2897]
jimklimov Apr 16, 2025
6863cea
NEWS.adoc: revise notes for NUT v2.8.3 release to group some themes a…
jimklimov Apr 16, 2025
907cd5d
UPGRADING.adoc: revise notes for NUT v2.8.3 release to upper-case sta…
jimklimov Apr 16, 2025
c15e5c7
*/Makefile.am: where we echo " TOKEN description", separate them by…
jimklimov Apr 17, 2025
7249a86
*/Makefile.am: where we echo " TOKEN description", separate them by…
jimklimov Apr 17, 2025
841f40b
obs/debian.rules: where we echo " TOKEN description", separate them…
jimklimov Apr 17, 2025
0309772
scripts/DMF/Makefile.am: where we echo " TOKEN description", separa…
jimklimov Apr 17, 2025
911e488
*/Makefile.am: report work skipped by design as " SKIP description"…
jimklimov Apr 17, 2025
6966bc1
*/Makefile.am: report work skipped by design as " SKIP description"…
jimklimov Apr 17, 2025
b9c0e6a
scripts/DMF/Makefile.am: report work skipped by design as " SKIP de…
jimklimov Apr 17, 2025
127fb58
clients/upsmon.c, clients/upsmon.h: introduce OVERDURATION setting
desertwitch Apr 18, 2025
7f3f56b
conf/upsmon.conf.sample.in, docs/man/upsmon.conf.txt: introduce OVERD…
desertwitch Apr 18, 2025
b7fc0fd
NEWS.adoc, docs/nut.dict: introduce OVERDURATION setting
desertwitch Apr 18, 2025
3df1338
common/nutconf.cpp, include/nutconf.hpp, tests/nutconf_ut.cpp: introd…
desertwitch Apr 18, 2025
0ff7074
common/nutwriter.cpp: introduce upsmon OVERDURATION setting
desertwitch Apr 18, 2025
e7a6314
scripts/augeas/nutupsmonconf.aug.in: introduce OVERDURATION setting
desertwitch Apr 18, 2025
3c70dcf
common/nutconf.cpp, include/nutconf.hpp, tests/nutconf_ut.cpp: introd…
desertwitch Apr 18, 2025
87ab338
common/nutwriter.cpp: introduce upsmon ALARMCRITICAL setting
desertwitch Apr 18, 2025
b5e1a21
scripts/augeas/nutupsmonconf.aug.in: introduce ALARMCRITICAL setting
desertwitch Apr 18, 2025
1bdfd32
drivers/nutdrv_qx.c: avoid extra lookup for dstate_getinfo("driver.pa…
jimklimov Apr 18, 2025
fbcdc07
drivers/nutdrv_qx.c: warn user if setting both port!="auto" and setti…
jimklimov Apr 18, 2025
0208ceb
drivers/hwmon_ina219.c: rephrase message about invalid "port" value
jimklimov Apr 18, 2025
9fc5fb5
Makefile.am, tools/Makefile.am: fix parallel rebuilds of nut-scanner …
jimklimov Apr 18, 2025
2f98488
tools/nut-usbinfo.pl: comment a TODO
jimklimov Apr 18, 2025
87cb86a
docs/maintainer-guide.txt: more notes to check code/recipe quality be…
jimklimov Apr 15, 2025
64ef1ee
tests/nutconf_ut.cpp: fix expectations for ALARMCRITICAL [#2909]
jimklimov Apr 18, 2025
e031bfb
common/nutwriter.cpp, tests/nutconf_ut.cpp: streamline ALARMCRITICAL …
desertwitch Apr 18, 2025
775d202
configure.ac: report something reasonable if we skipped checking for …
jimklimov Apr 20, 2025
2e185f9
configure.ac: always detect if we have_disted_doc_man
jimklimov Apr 20, 2025
e084607
Jenkinsfile-dynamatrix: skip macos for Default Autotools builds (figh…
jimklimov Apr 16, 2025
8edaedc
Merge pull request #2910 from jimklimov/issue-2906
jimklimov Apr 21, 2025
ded0e28
Merge pull request #2909 from desertwitch/upsmon-overduration
jimklimov Apr 21, 2025
735451f
Release NUT v2.8.3
jimklimov Apr 21, 2025
75ed678
Merge tag 'v2.8.3-rc5' into FTY-remerge-20250415
jimklimov Apr 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions INSTALL.nut.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ To build NUT from a Git checkout you may need some additional tools
(referenced just a bit below) and run `./autogen.sh` to generate the
needed files. For common developer iterations, porting to new platforms,
or in-place testing, running the `./ci_build.sh` script can be helpful.
The "<<Installing_inplace,Building NUT for inplace upgrades or nondisruptive
The "<<Installing_inplace,Building NUT for in-place upgrades or non-disruptive
tests>>" section details some more hints about such workflow, including some
`systemd` integration.

Expand Down Expand Up @@ -271,8 +271,8 @@ do this, you will have problems later on when you try to start upsd.
Build and install
~~~~~~~~~~~~~~~~~

NOTE: See also <<Installing_inplace,Building NUT for inplace upgrades
or nondisruptive tests>>.
NOTE: See also <<Installing_inplace,Building NUT for in-place upgrades
or non-disruptive tests>>.

[[Configuration]]
Configuration
Expand Down Expand Up @@ -429,7 +429,7 @@ You are now ready to configure NUT, and start testing and using it.
You can jump directly to the <<Configuration_notes,NUT configuration>>.

[[Installing_inplace]]
Building NUT for inplace upgrades or nondisruptive tests
Building NUT for in-place upgrades or non-disruptive tests
----------------------------------------------------------

NOTE: The NUT GitHub Wiki article at
Expand Down Expand Up @@ -569,6 +569,19 @@ binaries that the package would put into an obscure location like
would refer to new locations specified by the current build, so such old
binaries would just consume disk space but not run.

It is recommended to first try installing into a prototyping area, so you
can review which files get delivered and perhaps which locations you may
have to tune for a more tightly tailored replacement of an older (packaged)
installation, in case whole swathes of files that you expect to be present
in the current system (libraries, drivers, docs) are not getting installed
by the new build into same path names:

----
:; rm -rf /tmp/nut ; make DESTDIR=/tmp/nut install -j 8
:; (cd /tmp/nut && find . | sort) | while read N ; \
do [ -e "/$N" ] || echo "=== MISSING: /$N" >&2 ; done
----

Replacing any NUT deployment
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
6 changes: 3 additions & 3 deletions Jenkinsfile-dynamatrix
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import org.nut.dynamatrix.*;
// quietly for things that succeed, and summarizes errors in the end
dynacfgPipeline['spellcheck_prepconf'] = false
dynacfgPipeline['spellcheck_configure'] = false
dynacfgPipeline['spellcheck'] = '(BUILD_TYPE=default-spellcheck ./ci_build.sh)'
dynacfgPipeline['spellcheck'] = '(BUILD_TYPE=default-spellcheck-quick ./ci_build.sh)'

/*
// For older builds, with only autotools in the tree:
Expand Down Expand Up @@ -401,7 +401,7 @@ set | sort -n """
//dynamatrixAxesLabels: ['OS_FAMILY', 'OS_DISTRO', '${COMPILER}VER', 'ARCH${ARCH_BITS}'],
//dynamatrixAxesLabels: [~/^OS/, '${COMPILER}VER', 'ARCH${ARCH_BITS}'],
excludeCombos: dynacfgPipeline.excludeCombos_DEFAULT_STRICT_C
+ [[~/OS_DISTRO=netbsd/]] // commented in detail below
+ [[~/OS_DISTRO=(macos|netbsd)/]] // commented in detail below
+ [dynacfgPipeline.axisCombos_WINDOWS_CROSS]
], body)
}, // getParStages
Expand Down Expand Up @@ -448,7 +448,7 @@ set | sort -n """
//dynamatrixAxesLabels: ['OS_FAMILY', 'OS_DISTRO', '${COMPILER}VER', 'ARCH${ARCH_BITS}'],
//dynamatrixAxesLabels: [~/^OS/, '${COMPILER}VER', 'ARCH${ARCH_BITS}'],
excludeCombos: dynacfgPipeline.excludeCombos_DEFAULT_STRICT_C
+ [[~/OS_DISTRO=netbsd/]] // commented in detail below
+ [[~/OS_DISTRO=(macos|netbsd)/]] // commented in detail below
+ [dynacfgPipeline.axisCombos_WINDOWS_CROSS]
], body)
}, // getParStages
Expand Down
73 changes: 41 additions & 32 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ SUBDIRS_ALL_LIBS_LOCAL = \
all-libs-local/clients \
all-libs-local/drivers \
all-libs-local/tests \
all-libs-local/tools \
all-libs-local/tools/nut-scanner

# First target often defines default behavior, and in automake is always at least:
Expand All @@ -94,19 +95,19 @@ SUBDIR_MAKE_VERBOSE = default
all-fanout-maybe:
+@if [ x"$(NUT_MAKE_SKIP_FANOUT)" = xtrue ] ; then \
if [ x"$(SUBDIR_MAKE_VERBOSE)" != x0 ] ; then \
echo " SUBDIR-MAKE $@: skip optimization for parallel make - NUT_MAKE_SKIP_FANOUT is set" ; \
echo " SUBDIR-MAKE $@: skip optimization for parallel make - NUT_MAKE_SKIP_FANOUT is set" ; \
fi ; \
exit 0 ; \
fi ; \
case "-$(MAKEFLAGS) $(AM_MAKEFLAGS)" in \
*-j|*-j" "*|*-{j,l}{0,1,2,3,4,5,6,7,8,9}*|*-[jl][0123456789]*|*{-l,--jobs,--load-average,--max-load}" "{-,0,1,2,3,4,5,6,7,8,9}*|*--jobserver*|*--jobs" "[0123456789]*|*--load-average" "[0123456789]*|*--max-load" "[0123456789]*) \
if [ x"$(SUBDIR_MAKE_VERBOSE)" != x0 ] ; then \
echo " SUBDIR-MAKE $@: implement optimization for parallel make as 'make all-fanout-subdirs'" ; \
echo " SUBDIR-MAKE $@: implement optimization for parallel make as 'make all-fanout-subdirs'" ; \
fi ; \
$(MAKE) $(AM_MAKEFLAGS) all-fanout-subdirs ;; \
*) \
if [ x"$(SUBDIR_MAKE_VERBOSE)" != x0 ] ; then \
echo " SUBDIR-MAKE $@: skip optimization for parallel make - we seem to run sequentially now, seen MAKEFLAGS='$(MAKEFLAGS)' AM_MAKEFLAGS='$(AM_MAKEFLAGS)'" ; \
echo " SUBDIR-MAKE $@: skip optimization for parallel make - we seem to run sequentially now, seen MAKEFLAGS='$(MAKEFLAGS)' AM_MAKEFLAGS='$(AM_MAKEFLAGS)'" ; \
fi ;; \
esac

Expand Down Expand Up @@ -176,12 +177,12 @@ SUBDIR_TGT_RULE = ( \
[ x"$${TGT-}" != x ] || TGT="`echo '$@' | awk -F/ '{print $$1}'`" ; \
[ x"$${DIR-}" != x ] || DIR="`echo '$@' | sed 's,^[^/]*/,,'`" ; \
if [ x"$(SUBDIR_MAKE_VERBOSE)" != x0 ] ; then \
echo " SUBDIR-MAKE STARTING: 'make $$TGT' in $$DIR ..." ; \
echo " SUBDIR-MAKE STARTING: 'make $$TGT' in $$DIR ..." ; \
fi ; \
cd "$(abs_builddir)/$${DIR}" && \
$(MAKE) $(AM_MAKEFLAGS) $${SUBDIR_TGT_MAKEFLAGS-} "$${TGT}" || { RES=$$?; echo " SUBDIR-MAKE FAILURE: 'make $$TGT' in $$DIR" >&2 ; exit $$RES ; } ; \
$(MAKE) $(AM_MAKEFLAGS) $${SUBDIR_TGT_MAKEFLAGS-} "$${TGT}" || { RES=$$?; echo " SUBDIR-MAKE FAILURE: 'make $$TGT' in $$DIR" >&2 ; exit $$RES ; } ; \
if [ x"$(SUBDIR_MAKE_VERBOSE)" != x0 ] ; then \
echo " SUBDIR-MAKE SUCCESS: 'make $$TGT' in $$DIR" ; \
echo " SUBDIR-MAKE SUCCESS: 'make $$TGT' in $$DIR" ; \
fi ; \
)

Expand Down Expand Up @@ -230,15 +231,23 @@ all-libs-local/drivers: all-libs-local/common
all-libs-local/tests: all-libs-local/common
+@$(SUBDIR_TGT_RULE)

### Delivers: generated sources and/or headers for nut-scanner
### No dependencies: actually runs as part of autogen.sh but may be
### re-run during development when USB or SNMP driver sources change.
all-libs-local/tools:
+@$(SUBDIR_TGT_RULE)

### Delivers: libnutscan.la
### LIB-Requires-ext: drivers/libserial-nutscan.la
### LIB-Requires-ext: common/libnutwincompat.la common/libcommonstr.la
### HDR-Requires-ext: clients/libupsclient-version.h
### HDR-Requires-ext: nut-scanner/nutscan-snmp.h nut-scanner/nutscan-usb.h
### (generated by nut-scanner-deps/tools aliased as all-libs-local/tools)
### Requires-int: libnutscan.la
### Note: indirectly (ltdl) may use installed libupsclient.so
### however does directly use libupsclient-version.h
### for hints to find it at run-time
all-libs-local/tools/nut-scanner: all-libs-local/drivers all-libs-local/common all-libs-local/clients
all-libs-local/tools/nut-scanner: all-libs-local/drivers all-libs-local/common all-libs-local/clients all-libs-local/tools
+@$(SUBDIR_TGT_RULE)

# Handle all SUBDIRS_ALL_RECURSIVE in a way that dependencies can be specified,
Expand Down Expand Up @@ -574,7 +583,7 @@ else !HAVE_VALGRIND
memcheck distcheck-valgrind:
@echo "Starting $@" >&2
@echo "See also scripts/valgrind in NUT sources for a helper tool"
@echo "SKIPPED $@ : valgrind was not detected on this system by configure script" >&2
@echo " SKIP $@ : valgrind was not detected on this system by configure script" >&2
endif !HAVE_VALGRIND

distcheck-dmf-features-REGEN_NO: distcheck-light-DIST_ALL_PAGES-docs-skipped
Expand Down Expand Up @@ -698,7 +707,7 @@ maintainer-clean-local:
distclean-local:
+@for DIR in $(SUBDIRS) ; do \
if test -f "$${DIR}/Makefile" ; then \
echo " DISTCLEAN in $${DIR}" >&2 ; \
echo " DISTCLEAN in $${DIR}" >&2 ; \
( cd "$${DIR}" && $(MAKE) $(AM_MAKEFLAGS) -s distclean ) || exit ; \
fi ; \
done
Expand Down Expand Up @@ -753,7 +762,7 @@ spellcheck spellcheck-interactive:
if [ x"$(NUT_MAKE_SKIP_FANOUT)" = xtrue ] ; then \
RES=0 ; \
if [ x"$(SUBDIR_MAKE_VERBOSE)" != x0 ] ; then \
echo " SUBDIR-MAKE $@: skip optimization for parallel make - NUT_MAKE_SKIP_FANOUT is set" ; \
echo " SUBDIR-MAKE $@: skip optimization for parallel make - NUT_MAKE_SKIP_FANOUT is set" ; \
fi ; \
(cd $(builddir)/docs && $(MAKE) $(AM_MAKEFLAGS) -k -s $(abs_top_builddir)/docs/.prep-src-docs) || RES=$$? ; \
(cd $(builddir)/docs/man && $(MAKE) $(AM_MAKEFLAGS) -k -s $(abs_top_builddir)/docs/man/.prep-src-docs) || RES=$$? ; \
Expand Down Expand Up @@ -1021,26 +1030,26 @@ $(abs_top_builddir)/ChangeLog: tools/gitlog2changelog.py dummy-stamp
if test -e .git ; then \
NUT_GITDIR=".git" ; if test -r "$${NUT_GITDIR}" -a ! -d "$${NUT_GITDIR}" ; then GD="`grep -E '^gitdir:' "$${NUT_GITDIR}" | sed 's/^gitdir: *//'`" && test -n "$$GD" -a -d "$$GD" && NUT_GITDIR="$$GD" ; fi ; \
if test -s "$@" -a -d "$${NUT_GITDIR}" && test -z "`find "$${NUT_GITDIR}" -newer "$@" 2>/dev/null`" ; then \
echo " DOC-CHANGELOG-GENERATE $@ : SKIP (keep existing)" ; \
echo " DOC-CHANGELOG-GENERATE $@ : SKIP (keep existing)" ; \
echo "Using still-valid ChangeLog file generated earlier from same revision of Git source metadata in '$${NUT_GITDIR}'" >&2 ; \
else \
if test -s "$@" ; then \
echo " DOC-CHANGELOG-GENERATE $@ : RE-GENERATE (older than Git workspace metadata) ..." ; \
echo " DOC-CHANGELOG-GENERATE $@ : RE-GENERATE (older than Git workspace metadata) ..." ; \
else \
echo " DOC-CHANGELOG-GENERATE $@ : GENERATE (currently absent) ..." ; \
echo " DOC-CHANGELOG-GENERATE $@ : GENERATE (currently absent) ..." ; \
fi ; \
CHANGELOG_FILE="$@" $(WITH_PDF_NONASCII_TITLES_ENVVAR) \
CHANGELOG_REQUIRE_GROUP_BY_DATE_AUTHOR="$(CHANGELOG_REQUIRE_GROUP_BY_DATE_AUTHOR_ENVVAR)" \
$(abs_top_builddir)/tools/gitlog2changelog.py $(GITLOG_START_POINT) \
&& { echo " DOC-CHANGELOG-GENERATE $@ : SUCCESS"; } \
&& { echo " DOC-CHANGELOG-GENERATE $@ : SUCCESS"; } \
|| { \
echo " DOC-CHANGELOG-GENERATE $@ : FAILED (non-fatal)" >&2 ; \
echo " DOC-CHANGELOG-GENERATE $@ : FAILED (non-fatal)" >&2 ; \
printf "gitlog2changelog.py failed to generate the ChangeLog.\n\nNOTE: See https://github.com/networkupstools/nut/commits/master for change history.\n\n" > "$@" ; \
} ; \
fi ; \
else \
if test x"$(abs_top_srcdir)" != x"$(abs_top_builddir)" -a -s ./ChangeLog ; then \
echo " DOC-CHANGELOG-GENERATE $@ : SKIP (keep existing)" ; \
echo " DOC-CHANGELOG-GENERATE $@ : SKIP (keep existing)" ; \
if ! diff ./ChangeLog "$@" >/dev/null 2>/dev/null ; then \
echo "Using distributed ChangeLog file from sources (and builddir is not srcdir)" >&2 ; \
rm -f "$@" || true ; \
Expand All @@ -1050,10 +1059,10 @@ $(abs_top_builddir)/ChangeLog: tools/gitlog2changelog.py dummy-stamp
fi ; \
else \
if test -s "$@" ; then \
echo " DOC-CHANGELOG-GENERATE $@ : SKIP (keep existing)" ; \
echo " DOC-CHANGELOG-GENERATE $@ : SKIP (keep existing)" ; \
echo "Using distributed ChangeLog file from sources (and builddir is srcdir)" >&2 ; \
else \
echo " DOC-CHANGELOG-GENERATE $@ : FAILED (non-fatal)" >&2 ; \
echo " DOC-CHANGELOG-GENERATE $@ : FAILED (non-fatal)" >&2 ; \
printf "Failed to generate the ChangeLog.\n\nNOTE: See https://github.com/networkupstools/nut/commits/master for change history.\n\n" > "$@" ; \
fi ; \
fi ; \
Expand Down Expand Up @@ -1241,41 +1250,41 @@ install-as-root:
exit ; \
fi ; \
fi ; \
echo " MKDIR $(DESTDIR)/@STATEPATH@ $(DESTDIR)/@STATEPATH@/upssched" >&2 ; \
echo " MKDIR $(DESTDIR)/@STATEPATH@ $(DESTDIR)/@STATEPATH@/upssched" >&2 ; \
$(MKDIR_P) "$(DESTDIR)/@STATEPATH@/upssched" && \
for D in "@PIDPATH@" "@ALTPIDPATH@" "@ALTSTATEPATH@" "@CONFPATH@" ; do \
case x"$$D" in \
x|x@*) ;; \
*) echo " MKDIR $(DESTDIR)/$$D" >&2 ; \
*) echo " MKDIR $(DESTDIR)/$$D" >&2 ; \
$(MKDIR_P) "$(DESTDIR)/$$D" \
|| exit ;; \
esac ; \
done ; \
if (command -v chmod) ; then \
echo " CHMOD(0770) $(DESTDIR)/@STATEPATH@/upssched" >&2 ; \
echo " CHMOD(0770) $(DESTDIR)/@STATEPATH@/upssched" >&2 ; \
chmod 0770 "$(DESTDIR)/@STATEPATH@/upssched" \
|| exit ; \
for D in "@STATEPATH@" "@PIDPATH@" "@ALTPIDPATH@" "@ALTSTATEPATH@" ; do \
case x"$$D" in \
x|x@*|x/run|x/var/run|x/tmp|x/var/tmp|x/dev/shm|x/etc|x/var|x/usr|x/usr/local|x/usr/local/etc|x/usr/etc) ;; \
*) echo " CHMOD(0770) $(DESTDIR)/$$D" >&2 ; \
*) echo " CHMOD(0770) $(DESTDIR)/$$D" >&2 ; \
chmod 0770 "$(DESTDIR)/$$D" \
|| exit ;; \
esac ; \
done ; \
case x"@CONFPATH@" in \
x|x@*|x/run|x/var/run|x/tmp|x/var/tmp|x/dev/shm|x/etc|x/var|x/usr|x/usr/local|x/usr/local/etc|x/usr/etc) ;; \
*) echo " CHMOD(0751) $(DESTDIR)/@CONFPATH@" >&2 ; \
*) echo " CHMOD(0751) $(DESTDIR)/@CONFPATH@" >&2 ; \
chmod 0751 "$(DESTDIR)/@CONFPATH@" \
|| exit ;; \
esac ; \
for F in hosts.conf.sample upsstats-single.html.sample upsstats.html.sample upsset.conf.sample ; do \
echo " CHMOD(0644) CGI: $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
echo " CHMOD(0644) CGI: $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
chmod 0644 "$(DESTDIR)/@CONFPATH@/$$F" \
|| { if $(WITH_CGI) ; then exit 1 ; else true ; fi ; } ; \
done ; \
for F in nut.conf.sample ups.conf.sample upsd.conf.sample upsd.users.sample upsmon.conf.sample upssched.conf.sample ; do \
echo " CHMOD(0640) $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
echo " CHMOD(0640) $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
chmod 0640 "$(DESTDIR)/@CONFPATH@/$$F" \
|| exit ; \
done ; \
Expand All @@ -1285,30 +1294,30 @@ install-as-root:
if (command -v chown) && test 0 -lt "`id -u '@RUN_AS_USER@'`" \
&& ( test 0 -lt "`getent group '@RUN_AS_GROUP@' | awk -F: '{print $$3}'`" || test 0 -lt "`id -g '@RUN_AS_GROUP@'`" ) \
; then \
echo " CHOWN(@RUN_AS_USER@:@RUN_AS_GROUP@) $(DESTDIR)/@STATEPATH@/upssched" >&2 ; \
echo " CHOWN(@RUN_AS_USER@:@RUN_AS_GROUP@) $(DESTDIR)/@STATEPATH@/upssched" >&2 ; \
chown "@RUN_AS_USER@:@RUN_AS_GROUP@" "$(DESTDIR)/@STATEPATH@/upssched" \
|| exit ; \
for D in "@STATEPATH@" "@PIDPATH@" "@ALTPIDPATH@" "@ALTSTATEPATH@" ; do \
case x"$$D" in \
x|x@*|x/run|x/var/run|x/tmp|x/var/tmp|x/dev/shm|x/etc|x/var|x/usr|x/usr/local|x/usr/local/etc|x/usr/etc) ;; \
*) echo " CHOWN(@RUN_AS_USER@:@RUN_AS_GROUP@) $(DESTDIR)/$$D" >&2 ; \
*) echo " CHOWN(@RUN_AS_USER@:@RUN_AS_GROUP@) $(DESTDIR)/$$D" >&2 ; \
chown "@RUN_AS_USER@:@RUN_AS_GROUP@" "$(DESTDIR)/$$D" \
|| exit ;; \
esac ; \
done ; \
case x"@CONFPATH@" in \
x|x@*|x/run|x/var/run|x/tmp|x/var/tmp|x/dev/shm|x/etc|x/var|x/usr|x/usr/local|x/usr/local/etc|x/usr/etc) ;; \
*) echo " CHOWN(root:@RUN_AS_GROUP@) $(DESTDIR)/@CONFPATH@" >&2 ; \
*) echo " CHOWN(root:@RUN_AS_GROUP@) $(DESTDIR)/@CONFPATH@" >&2 ; \
chown "root:@RUN_AS_GROUP@" "$(DESTDIR)/@CONFPATH@" \
|| exit ;; \
esac ; \
for F in hosts.conf.sample upsstats-single.html.sample upsstats.html.sample upsset.conf.sample ; do \
echo " CHOWN(root:@RUN_AS_GROUP@) CGI: $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
echo " CHOWN(root:@RUN_AS_GROUP@) CGI: $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
chown "root:@RUN_AS_GROUP@" "$(DESTDIR)/@CONFPATH@/$$F" \
|| { if $(WITH_CGI) ; then exit 1 ; else true ; fi ; } ; \
done ; \
for F in nut.conf.sample ups.conf.sample upsd.conf.sample upsd.users.sample upsmon.conf.sample upssched.conf.sample ; do \
echo " CHOWN(root:@RUN_AS_GROUP@) $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
echo " CHOWN(root:@RUN_AS_GROUP@) $(DESTDIR)/@CONFPATH@/$$F" >&2 ; \
chown "root:@RUN_AS_GROUP@" "$(DESTDIR)/@CONFPATH@/$$F" \
|| exit ; \
done ; \
Expand Down Expand Up @@ -1477,10 +1486,10 @@ install-win-bundle-thirdparty:

else !HAVE_WINDOWS
install-win-bundle:
@echo "SKIP: '$@' not enabled for current build configuration"
@echo " SKIP '$@' : not enabled for current build configuration"

install-win-bundle-thirdparty:
@echo "SKIP: '$@' not enabled for current build configuration"
@echo " SKIP '$@' : not enabled for current build configuration"
endif !HAVE_WINDOWS

print-MAINTAINERCLEANFILES print-REALCLEANFILES:
Expand Down
Loading