Skip to content

Commit 9fae2f6

Browse files
authored
Merge pull request networkupstools#2364 from jimklimov/installer-revise
Installer revise
2 parents c05ca1f + 9005cde commit 9fae2f6

File tree

5 files changed

+69
-9
lines changed

5 files changed

+69
-9
lines changed

docs/nut.dict

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
personal_ws-1.1 en 3470 utf-8
1+
personal_ws-1.1 en 3478 utf-8
22
AAC
33
AAS
44
ABI
@@ -1570,6 +1570,7 @@ aec
15701570
af
15711571
aggregator
15721572
ai
1573+
aix
15731574
al
15741575
ala
15751576
alarmcenables
@@ -2198,6 +2199,7 @@ hotplug
21982199
hotplugging
21992200
hovercharge
22002201
hpe
2202+
hpux
22012203
href
22022204
htaccess
22032205
html
@@ -2365,6 +2367,7 @@ libdir
23652367
libdummy
23662368
libexec
23672369
libexecdir
2370+
libexpat
23682371
libfreeipmi
23692372
libgd
23702373
libgpgme
@@ -3023,6 +3026,7 @@ sitop
30233026
sizeof
30243027
ske
30253028
skel
3029+
sl
30263030
slackpkg
30273031
slaveid
30283032
slavesync
@@ -3045,8 +3049,11 @@ socat
30453049
sockdebug
30463050
socketname
30473051
socomec
3052+
solari
30483053
solaris
3054+
solcmn
30493055
solibs
3056+
solint
30503057
solis
30513058
somename
30523059
somepass

scripts/installer/Makefile.am

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ EXTRA_DIST = \
3232

3333
SPELLCHECK_SRC = README.adoc common/README_ipp-os-shutdown.adoc
3434

35+
nut:
36+
rm -f "$@"
37+
$(LN_S) $(top_srcdir) "$@"
38+
3539
# NOTE: Due to portability, we do not use a GNU percent-wildcard extension.
3640
# We also have to export some variables that may be tainted by relative
3741
# paths when parsing the other makefile (e.g. MKDIR_P that may be defined
@@ -54,4 +58,8 @@ spellcheck spellcheck-interactive spellcheck-sortdict:
5458

5559
CLEANFILES = *-spellchecked
5660

61+
# Remove "nut" if it is a symlink to the source tree
62+
clean-local:
63+
if test -L nut || test -h nut ; then rm -f nut ; fi
64+
5765
MAINTAINERCLEANFILES = Makefile.in .dirstamp

scripts/installer/README.adoc

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,54 @@ of Eaton by Frederic Bohe, Vaclav Krpec, Arnaud Quette and Jim Klimov.
88

99
This includes the package (tarball) creation script which relies on
1010
presence of third-party library binaries in a `$ARCH/libs` directory,
11-
and init-scripts from NUT source tree (originally expected as a "nut"
12-
subdirectory), as well as an interactive installer script to set up
13-
the package on a target deployment covering package (re-)installation,
14-
initial device discovery, password setup, etc., and helper scripts
15-
for status overview and shutdown handling.
11+
pre-built package files (courtesy of NUT `make package` recipes),
12+
and init-scripts from NUT source tree (originally expected as a `nut`
13+
subdirectory, can be a symlink to `../..`; currently copies stored in
14+
the `$ARCH` subdirectories; eventually should be taken from NUT sources
15+
during build, or from packages), as well as an interactive text-mode
16+
installer script to set up the package on a target deployment covering
17+
package (re-)installation, initial device discovery, password setup,
18+
etc., and helper scripts for status overview and shutdown handling.
1619

17-
The installer relies on "nutconf" tool (emulating dummy script for
20+
Example `$ARCH` related directory layout in original posting (binary
21+
files mentioned below are not provided into NUT Git source code base);
22+
these are the contents `make_package.sh` script expects to work with
23+
(you can see the names mentioned in `find ... | grep -v ...` filters):
24+
25+
* `aix/` example for AIX 6 and 7 based IPSS Unix releases:
26+
* `libs/`: `libcrypto.a`, `libcrypto.so`, etc...
27+
* `nut-2.6.5-1.aix6.1.ppc.rpm` and `nut-client-2.6.5-1.aix6.1.ppc.rpm`
28+
package files
29+
* `nutconf` binary for the platform
30+
* `aix_init` script
31+
* `ipp-os-shutdown.conf.sample`
32+
33+
* `hpux/` for PA-RISC:
34+
* `libs/`: `libcrypto.sl`, `libexpat.sl`, `libiconv.sl`, `libintl.sl`,
35+
`libltdl.sl`, `libneon.sl`, `libnetsnmp.sl.30`, `libssl.sl`, `libz.sl`
36+
* Notably, `libnutscan.sl.1` (other platforms did not carry a copy)
37+
* `nut.depot.tar.gz` package file
38+
* `nutconf` binary for the platform
39+
* `ipp-os-shutdown.conf.sample`
40+
41+
* Solaris (SPARC and X86) spread across 3 directories:
42+
* `solcmn/` with common platform-independent files:
43+
* `ipp-os-shutdown.conf.sample`
44+
* `solaris_init` script
45+
46+
* `solari` with SPARC binaries:
47+
* `libs/`: `libcrypto.so.0.9.8`, `libz.so`, etc.
48+
* `NUT_solaris_sparc_package2.6.5.local` package file
49+
* `nutconf` binary for the platform
50+
51+
* `solint` with X86 binaries:
52+
* `libs/`: `libcrypto.so.1.0.0`, `libgcc_s.so.1`, `libltdl.so.7`,
53+
`libneon.so.27`, `libnetsnmp.so.15`, `libproxy.so.0`,
54+
`libssl.so.1.0.0`, `libstdc++.so.6`, `libwrap.so.1`
55+
* `NUT_solaris_i386_package2.6.5.local` package file
56+
* `nutconf` binary for the platform
57+
58+
The installer relies on `nutconf` tool (emulating dummy script for
1859
tests provided here), which is part of NUT sources.
1960

2061
Note that heavy use of `LD_LIBRARY_PATH` in these scripts may become

scripts/installer/make_package.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
rm -Rf package
1313
mkdir package
1414

15-
git pull --all
15+
# NOTE: Originally this pulled installer sources (separate from NUT code base)
16+
# If this script were to be modernized, it could be prudent to `make package`
17+
# in NUT sources for each platform, to create the package file(s) tarballed
18+
# below for end-user along with the interactive installer delivery.
19+
#git pull --all
1620
# [ $? = 0 ] && git merge upstream/master || exit $?
1721

22+
# NOTE: See README.adoc about expected subdirectory contents with binary files
1823
NAME="ipp-solaris-$IPP_VERSION.sparc"
1924
mkdir "package/$NAME"
2025
FILE_LIST="`find . -type f -name '*' | egrep -v '.svn|.git|./nutconf-dummy|./make_package.sh|nut/|(un|)install.log|package/|aix|hpux|solint'`"

scripts/installer/nut

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)