@cryptotaxi247 / netdata-1 / commits / 8aba00279

create a file with version; added proper information

Costa Tsaousis (ktsaou) committed Apr 2, 2017 at 13:35 UTC 8aba00279038b0626f09b7821365b071addfa90d
3 files changed +96 -23
makeself/jobs/99-makeself.install.sh
+35 -1
@@ -84,4 +84,38 @@ rm "${NETDATA_INSTALL_PATH}/sbin" \
84
85 # -----------------------------------------------------------------------------
86 # copy it to the netdata build dir
87 -cp "${NETDATA_INSTALL_PATH}.gz.run" .
87 +
88 +NOWNER="unknown"
89 +ORIGIN="$(git config --get remote.origin.url)"
90 +if [[ "${ORIGIN}" =~ ^git@github.com:.*/netdata.*$ ]]
91 + then
92 + NOWNER="${ORIGIN/git@github.com:/}"
93 + NOWNER="${NOWNER/\/netdata*/}"
94 +
95 +elif [[ "${ORIGIN}" =~ ^https://github.com/.*/netdata.*$ ]]
96 + then
97 + NOWNER="${ORIGIN/https:\/\/github.com\//}"
98 + NOWNER="${NOWNER/\/netdata*/}"
99 +fi
100 +
101 +# make sure it does not have any slashes in it
102 +NOWNER="${NOWNER//\//_}"
103 +
104 +if [ "${NOWNER}" = "firehol" ]
105 + then
106 + NOWNER=
107 +else
108 + NOWNER="-${NOWNER}"
109 +fi
110 +
111 +VERSION="$(git describe)"
112 +[ -z "${VERSION}" ] && VERSION="undefined"
113 +
114 +FILE="netdata-${VERSION}${NOWNER}.gz.run"
115 +
116 +cp "${NETDATA_INSTALL_PATH}.gz.run" "${FILE}"
117 +echo >&2 "Self-extracting installer copied to '${FILE}'"
118 +
119 +[ -f netdata-latest.gz.run ] && rm netdata-latest.gz.run
120 +ln -s "${FILE}" netdata-latest.gz.run
121 +echo >&2 "Self-extracting installer linked to 'netdata-latest.gz.run'"
makeself/makeself-help-header.txt
+31 -12
@@ -9,18 +9,37 @@
9
10 Released under GPL v3+
11
12 - You are about to build and install netdata to your system.
13 -
14 - It will be installed at these locations:
15 -
16 - - the daemon at /opt/netdata/usr/sbin/netdata
17 - - config files in /opt/netdata/etc/netdata
18 - - web files in /opt/netdata/usr/share/netdata
19 - - plugins in /opt/netdata/usr/libexec/netdata
20 - - cache files in /opt/netdata/var/cache/netdata
21 - - db files in /opt/netdata/var/lib/netdata
22 - - log files in /opt/netdata/var/log/netdata
23 - - pid file at /opt/netdata/var/run/netdata.pid
12 + You are about to install netdata to this system.
13 +
14 + It will be installed at:
15 +
16 + /opt/netdata
17 +
18 + The following changes will be made to your system:
19 +
20 + # USERS / GROUPS
21 + User 'netdata' and group 'netdata' will be added, if not present.
22 +
23 + # LOGROTATE
24 + This file will be installed:
25 +
26 + - /etc/logrotate.d/netdata
27 +
28 + # SYSTEM INIT
29 + If this system runs with systemd:
30 +
31 + - /etc/systemd/system/netdata.service
32 +
33 + or, for older Centos, Debian/Ubuntu or OpenRC Gentoo:
34 +
35 + - /etc/init.d/netdata will be created
36 +
37 +
38 + This package can also update a netdata installation that has been
39 + created with another version of it.
40 +
41 + Your netdata configuration will be retained.
42 + After installation, netdata will be (re-)started.
43
44 netdata re-distributes a lot of open source software components.
45 Check its full license at:
makeself/makeself-license.txt
+30 -10
@@ -9,20 +9,40 @@
9
10 Released under GPL v3+
11
12 - You are about to build and install netdata to your system.
12 + You are about to install netdata to this system.
13
14 - It will be installed at these locations:
14 + netdata will be installed at:
15
16 - - the daemon at /opt/netdata/usr/sbin/netdata
17 - - config files in /opt/netdata/etc/netdata
18 - - web files in /opt/netdata/usr/share/netdata
19 - - plugins in /opt/netdata/usr/libexec/netdata
20 - - cache files in /opt/netdata/var/cache/netdata
21 - - db files in /opt/netdata/var/lib/netdata
22 - - log files in /opt/netdata/var/log/netdata
23 - - pid file at /opt/netdata/var/run/netdata.pid
16 + /opt/netdata
17 +
18 + The following changes will be made to your system:
19 +
20 + # USERS / GROUPS
21 + User 'netdata' and group 'netdata' will be added, if not present.
22 +
23 + # LOGROTATE
24 + This file will be installed if logrotate is present.
25 +
26 + - /etc/logrotate.d/netdata
27 +
28 + # SYSTEM INIT
29 + If this system runs with systemd:
30 +
31 + - /etc/systemd/system/netdata.service
32 +
33 + or, for older Centos, Debian/Ubuntu or OpenRC Gentoo:
34 +
35 + - /etc/init.d/netdata will be created
36 +
37 +
38 + This package can also update a netdata installation that has been
39 + created with another version of it.
40 +
41 + Your netdata configuration will be retained.
42 + After installation, netdata will be (re-)started.
43
44 netdata re-distributes a lot of open source software components.
45 Check its full license at:
46 https://github.com/firehol/netdata/blob/master/LICENSE.md
47
48 +