Skip to content

Commit 02596c8

Browse files
authored
Merge pull request networkupstools#2797 from jimklimov/fix-docs-markup
Fix asciidocs markup
2 parents d0086f0 + 8aa8b08 commit 02596c8

File tree

165 files changed

+2569
-1598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+2569
-1598
lines changed

AUTHORS

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,22 @@ N: Mark Powell
8686
E: medp@primagraphics.co.uk
8787
D: Ported to SunOS4
8888

89+
N: Evgeny "Jim" Klimov
90+
E: jimklimov+nut@gmail.com
91+
D: Primary coordinator ; author of numerous CI recipes, tests and OS
92+
D: integration scripts - including NDE (NUT Driver Enumerator), NIT
93+
D: (NUT Integration Test suite) and Jenkins-Dynamatrix, to name a few.
94+
D: Also automake/autoconf/m4 scripting, asciidoc documentation.
95+
D: More of a bug-fixer, warnings-squasher and portability maintainer,
96+
D: rather than e.g. specifically a driver developer.
97+
P: 4096R/7043DCF7 B834 59F7 76B9 0224 988F 36C0 DE01 84DA 7043 DCF7
98+
8999
N: Arnaud Quette
90100
E: aquette.dev@gmail.com
91101
E: arnaud.quette@mgeups.com
92102
E: aquette@debian.org
93103
W: http://arnaud.quette.free.fr/
94-
D: Primary coordinator ; author of snmp-ups, mge-shut, usbhid-ups ;
104+
D: Previous primary coordinator ; author of snmp-ups, mge-shut, usbhid-ups ;
95105
D: co author of mge-utalk, hidups, SNMP UPS Agent ; contributor to blazer,
96106
D: bestferrups, nut core, and many others ; coordination with MGE UPS
97107
D: SYSTEMS, linux-usb developers (for hidups), Net SNMP and packagers

INSTALL.nut.adoc

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ into their operating system. On the other hand, distributions and appliances
179179
tend to package "official releases" of projects such as NUT, and so do not
180180
deliver latest and greatest fixes, new drivers, bugs and other features.
181181

182+
Stable distributions also tend to deliver minor fixes to the version of
183+
third-party software (like NUT) a particular release of the operating
184+
system has initially delivered, so those release lines can be years behind
185+
development in terms of new features (or bug fixes, if they are not trivial
186+
to patch into the old code base snapshot used to create the package).
187+
182188
[[Installing_source]]
183189
Installing from source
184190
----------------------
@@ -300,6 +306,8 @@ This will build the NUT client and server programs and the
300306
selected drivers. It will also build any other features that were
301307
selected during <<Configuration,configuration>> step above.
302308

309+
NOTE: NUT is regularly tested with GNU, BSD and Sun implementations of `make`.
310+
303311

304312
Installation
305313
^^^^^^^^^^^^
@@ -403,7 +411,7 @@ drivers; this should allow you to follow the below
403411
instructions. However, don't forget to set up the correct
404412
permissions later!).
405413

406-
NOTE: if you are using something like udev or devd, make sure
414+
NOTE: If you are using something like udev or devd, make sure
407415
these permissions stay set across a reboot. If they revert to the
408416
old values, your drivers may fail to start.
409417

@@ -480,16 +488,21 @@ copy the proposed-source URL of that "from" part.
480488
For example, in some PR this says `jimklimov:issue-1234` and links to
481489
`https://github.com/jimklimov/nut/tree/issue-1234`.
482490
For manual git-cloning, just paste that URL into the shell and replace
483-
the `/tree/` with "`-b`" CLI option for branch selection, like this:
491+
the `/tree/` with "`-b`" CLI option for branch selection; it also helps
492+
to keep the workspace directory name dedicated to that PR, like this:
484493
485494
:; cd /tmp
486495
### Checkout https://github.com/jimklimov/nut/tree/issue-1234
487-
:; git clone https://github.com/jimklimov/nut -b issue-1234
496+
:; git clone https://github.com/jimklimov/nut -b issue-1234 nut-issue-1234
497+
:; cd nut-issue-1234
498+
### OPTIONALLY fetch known git tags, so semantic versions look better
499+
:; git fetch --tags --all
500+
### Proceed with build (common instructions below)
488501
489502
Testing with CI helper
490503
~~~~~~~~~~~~~~~~~~~~~~
491504
492-
NOTE: this uses the `ci_build.sh` script to arrange some rituals and
505+
NOTE: This uses the `ci_build.sh` script to arrange some rituals and
493506
settings, in this case primarily to default the choice of drivers to
494507
auto-detection of what can be built, and to skip building documentation.
495508
Also note that this script supports many other scenarios for CI and
@@ -501,6 +514,9 @@ An "in-place" _testing_ build and run would probably go along these lines:
501514
:; cd /tmp
502515
:; git clone -b master https://github.com/networkupstools/nut
503516
:; cd nut
517+
### OPTIONALLY fetch known git tags, so semantic versions look better
518+
:; git fetch --tags --all
519+
### Proceed with build
504520
:; ./ci_build.sh inplace
505521
### Temporarily stop your original drivers
506522
:; ./drivers/nutdrv_qx -a DEVNAME_FROM_UPS_CONF -d1 -DDDDDD \
@@ -555,6 +571,9 @@ This goes similar to usual build and install from Git:
555571
:; cd /tmp
556572
:; git clone https://github.com/networkupstools/nut
557573
:; cd nut
574+
### OPTIONALLY fetch known git tags, so semantic versions look better
575+
:; git fetch --tags --all
576+
### Proceed with build
558577
:; ./autogen.sh
559578
:; ./configure --enable-inplace-runtime # --maybe-some-other-options
560579
:; make -j 4 all && make -j 4 check && sudo make install
@@ -583,6 +602,9 @@ symlinks) and to get them started:
583602
:; cd /tmp
584603
:; git clone https://github.com/networkupstools/nut
585604
:; cd nut
605+
### OPTIONALLY fetch known git tags, so semantic versions look better
606+
:; git fetch --tags --all
607+
### Proceed with build
586608
:; ./autogen.sh
587609
:; ./configure --enable-inplace-runtime # --maybe-some-other-options
588610
:; make -j 4 all && make -j 4 check && \
@@ -635,6 +657,9 @@ e.g.:
635657
:; git clone https://github.com/networkupstools/nut
636658
:; cd nut
637659
:; git checkout -b issue-1234 ### your PR branch name, arbitrary
660+
### OPTIONALLY fetch known git tags, so semantic versions look better
661+
:; git fetch --tags --all
662+
### Proceed with build
638663
:; ./autogen.sh
639664
:; ./configure --enable-inplace-runtime # --maybe-some-other-options
640665
### Iterate your code changes (e.g. PR draft), build and install with:
@@ -645,6 +670,13 @@ e.g.:
645670
sudo systemctl restart \
646671
nut-driver-enumerator.service nut-monitor nut-server
647672
673+
Note that to contribute your work back to upstream NUT codebase, you would
674+
need to create a "fork" of https://github.com/networkupstools/nut on GitHub,
675+
then `git remote add USERNAME https://github.com/USERNAME/nut`, maybe refresh
676+
the workspace index with `git fetch --all`, and finally `git push USERNAME`
677+
(possibly follow further instructions from `git` tooling) to create the
678+
pull request. For more details, see `docs/developers.txt` in NUT sources.
679+
648680
Next steps after an in-place upgrade
649681
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
650682
@@ -668,7 +700,7 @@ Debian, Ubuntu and other derivatives
668700
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
669701

670702
NOTE: NUT is packaged and well maintained in these systems.
671-
The official Debian packager is part of the NUT Team.
703+
The official Debian packager used to be part of the NUT Team.
672704

673705
Using your preferred method (apt-get, aptitude, Synaptic, ...), install
674706
the 'nut' package, and optionally the following:

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ P: Greg Troxel
6464
M: gdt@lexort.com
6565
S: Maintained: pkgsrc (sysutils/ups-nut)
6666

67+
CI, tests and recipes
68+
=====================
69+
70+
P: Evgeny "Jim" Klimov
71+
M: jimklimov+nut@gmail.com
72+
S: Maintained or Supported: numerous CI recipes, tests and OS integration
73+
S: scripts: NDE (NUT Driver Enumerator), NIT (NUT Integration Test suite),
74+
S: Jenkins-Dynamatrix, automake/autoconf/m4 scripting, asciidoc documentation.
75+
6776
Everything else
6877
===============
6978

README.adoc

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,14 @@ UPS Shutdowns
446446
447447
upsdrvctl can also shut down (power down) all of your UPS hardware.
448448
449-
WARNING: if you play around with this command, expect your filesystems
449+
[WARNING]
450+
=========
451+
If you play around with this command, expect your filesystems
450452
to die. Don't power off your computers unless they're ready for it:
451453
452454
/usr/local/ups/sbin/upsdrvctl shutdown
453455
/usr/local/ups/sbin/upsdrvctl shutdown sparky
456+
=========
454457
455458
You should read the {xref}UPS_shutdown{x-s}[Configuring automatic UPS shutdowns]
456459
chapter to learn more about when to use this feature. If called at the wrong
@@ -598,6 +601,7 @@ not have any effect on your system.
598601
599602
A driver that supports read/write variables will give results like this:
600603
604+
----
601605
$ upsrw sparky@localhost
602606
603607
( many skipped )
@@ -610,12 +614,15 @@ A driver that supports read/write variables will give results like this:
610614
Option: "0"
611615
612616
( more skipped )
617+
----
613618
614619
On the other hand, one that doesn't support them won't print anything:
615620
621+
----
616622
$ upsrw fenton@gearbox
617623
618624
( nothing )
625+
----
619626
620627
`upsrw` requires administrator powers to change settings in the hardware.
621628
Refer to {linkman2}upsd.users{lm-s}upsd.users{lm-c}5{lm-e} for information on defining
@@ -631,6 +638,7 @@ hardware/drivers support them.
631638
632639
Use the -l command to list them, like this:
633640
641+
----
634642
$ upscmd -l sparky@localhost
635643
Instant commands supported on UPS [sparky@localhost]:
636644
@@ -639,6 +647,7 @@ Use the -l command to list them, like this:
639647
calibrate.start - Start run time calibration
640648
calibrate.stop - Stop run time calibration
641649
...
650+
----
642651
643652
`upscmd` requires administrator powers to start instant commands.
644653
To define users and passwords in `upsd`, see
@@ -734,6 +743,14 @@ Major release jumps are mostly due to large changes to the features
734743
list. There have also been a number of architectural changes which
735744
may not be noticeable to most users, but which can impact developers.
736745
746+
Since NUT v2.8.2 or so, development iterations have additional version
747+
components, to account for the amount of commits on the main branch
748+
(`master`) since the last known Git tag, and amount of commits on the
749+
developed feature branch that are unique to it compared to main branch.
750+
This allows for a reasonably growing version of stable baseline and
751+
local development, so that experimental packages can be installed as
752+
upgrades (or well-exposed downgrades).
753+
737754
Backwards and Forwards Compatibility
738755
------------------------------------
739756

data/html/README.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ b) configure manually
5656
5757
- Now edit your webserver configuration file, adding for
5858
example (for Apache):
59+
+
5960
----
6061
#Begin Section
6162
ScriptAlias /nut/cgi-bin/ /usr/local/nut/cgi-bin/
@@ -84,7 +85,8 @@ Alias /nut/ /usr/local/nut/html/
8485

8586
- Make sure to restart your webserver.
8687
87-
- Configure the CGI scripts. Manpages can be found from:
88+
- Configure the CGI scripts. Man pages can be found from:
89+
+
8890
----
8991
:; man -M /usr/local/nut/man/ upsstats.cgi
9092
:; man -M /usr/local/nut/man/ upsset.cgi

0 commit comments

Comments
 (0)