mirror of
https://github.com/netdata/netdata.git
synced 2025-04-13 09:11:50 +00:00
move makeself (#4688)
This commit is contained in:
parent
5b32e18e15
commit
4d77f2b325
24 changed files with 34 additions and 67 deletions
.gitignore
.travis
Makefile.amconfigure.acmakeself
packaging/makeself
README.mdbuild-x86_64-static.shbuild.shfunctions.shinstall-alpine-packages.shinstall-or-update.sh
jobs
10-prepare-destination.install.sh50-bash-4.4.18.install.sh50-curl-7.60.0.install.sh50-fping-4.0.install.sh70-netdata-git.install.sh99-makeself.install.sh
makeself-header.shmakeself-help-header.txtmakeself-license.txtmakeself.lsmmakeself.shpost-installer.shrun-all-jobs.sh
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -56,7 +56,7 @@ packaging/installer/.environment.sh
|
||||||
*.run
|
*.run
|
||||||
|
|
||||||
# netdata makeself downloads
|
# netdata makeself downloads
|
||||||
makeself/tmp/
|
packaging/makeself/tmp/
|
||||||
|
|
||||||
# coverity
|
# coverity
|
||||||
cov-int/
|
cov-int/
|
||||||
|
|
|
@ -14,7 +14,7 @@ autoreconf -ivf
|
||||||
./configure
|
./configure
|
||||||
make dist
|
make dist
|
||||||
echo "--- Create self-extractor ---"
|
echo "--- Create self-extractor ---"
|
||||||
./makeself/build-x86_64-static.sh
|
./packaging/makeself/build-x86_64-static.sh
|
||||||
|
|
||||||
# Needed fo GCS
|
# Needed fo GCS
|
||||||
echo "--- Copy artifacts to bin ---"
|
echo "--- Copy artifacts to bin ---"
|
||||||
|
|
|
@ -47,7 +47,6 @@ EXTRA_DIST = \
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
diagrams \
|
diagrams \
|
||||||
makeself \
|
|
||||||
system \
|
system \
|
||||||
tests \
|
tests \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
|
@ -589,7 +589,6 @@ AC_CONFIG_FILES([
|
||||||
libnetdata/storage_number/Makefile
|
libnetdata/storage_number/Makefile
|
||||||
libnetdata/threads/Makefile
|
libnetdata/threads/Makefile
|
||||||
libnetdata/url/Makefile
|
libnetdata/url/Makefile
|
||||||
makeself/Makefile
|
|
||||||
registry/Makefile
|
registry/Makefile
|
||||||
streaming/Makefile
|
streaming/Makefile
|
||||||
system/Makefile
|
system/Makefile
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
|
|
||||||
|
|
||||||
dist_noinst_DATA = \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
dist_noinst_SCRIPTS = \
|
|
||||||
build.sh \
|
|
||||||
makeself.sh \
|
|
||||||
makeself-license.txt \
|
|
||||||
install-alpine-packages.sh \
|
|
||||||
post-installer.sh \
|
|
||||||
jobs/10-prepare-destination.install.sh \
|
|
||||||
jobs/50-curl-7.60.0.install.sh \
|
|
||||||
jobs/50-bash-4.4.18.install.sh \
|
|
||||||
jobs/50-fping-4.0.install.sh \
|
|
||||||
jobs/70-netdata-git.install.sh \
|
|
||||||
jobs/99-makeself.install.sh \
|
|
||||||
run-all-jobs.sh \
|
|
||||||
install-or-update.sh \
|
|
||||||
build-x86_64-static.sh \
|
|
||||||
makeself-header.sh \
|
|
||||||
makeself-help-header.txt \
|
|
||||||
makeself.lsm \
|
|
||||||
functions.sh \
|
|
||||||
$(NULL)
|
|
|
@ -4,7 +4,7 @@ To build the static binary 64-bit distribution package, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd /path/to/netdata.git
|
$ cd /path/to/netdata.git
|
||||||
$ ./makeself/build-x86_64-static.sh
|
$ ./packaging/makeself/build-x86_64-static.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The program will:
|
The program will:
|
||||||
|
@ -24,7 +24,7 @@ To build netdata binaries with debugging / tracing information in them, use:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd /path/to/netdata.git
|
$ cd /path/to/netdata.git
|
||||||
$ ./makeself/build-x86_64-static.sh debug
|
$ ./packaging/makeself/build-x86_64-static.sh debug
|
||||||
```
|
```
|
||||||
|
|
||||||
These binaries are not optimized (they are a bit slower), they have certain features disables (like log flood protection), other features enables (like `debug flags`) and are not stripped (the binary files are bigger, since they now include source code tracing information).
|
These binaries are not optimized (they are a bit slower), they have certain features disables (like log flood protection), other features enables (like `debug flags`) and are not stripped (the binary files are bigger, since they now include source code tracing information).
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
. $(dirname "$0")/../packaging/installer/functions.sh || exit 1
|
. $(dirname "$0")/../installer/functions.sh || exit 1
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ then
|
||||||
# (also inside the container)
|
# (also inside the container)
|
||||||
#
|
#
|
||||||
run sudo docker run -v $(pwd):/usr/src/netdata.git:rw alpine:3.7 \
|
run sudo docker run -v $(pwd):/usr/src/netdata.git:rw alpine:3.7 \
|
||||||
/bin/sh /usr/src/netdata.git/makeself/install-alpine-packages.sh
|
/bin/sh /usr/src/netdata.git/packaging/makeself/install-alpine-packages.sh
|
||||||
|
|
||||||
# save the changes made permanently
|
# save the changes made permanently
|
||||||
id=$(sudo docker ps -l -q)
|
id=$(sudo docker ps -l -q)
|
||||||
|
@ -34,7 +34,7 @@ fi
|
||||||
run sudo docker run -a stdin -a stdout -a stderr -i -t -v \
|
run sudo docker run -a stdin -a stdout -a stderr -i -t -v \
|
||||||
$(pwd):/usr/src/netdata.git:rw \
|
$(pwd):/usr/src/netdata.git:rw \
|
||||||
"${DOCKER_CONTAINER_NAME}" \
|
"${DOCKER_CONTAINER_NAME}" \
|
||||||
/bin/sh /usr/src/netdata.git/makeself/build.sh "${@}"
|
/bin/sh /usr/src/netdata.git/packaging/makeself/build.sh "${@}"
|
||||||
|
|
||||||
if [ "${USER}" ]
|
if [ "${USER}" ]
|
||||||
then
|
then
|
|
@ -31,7 +31,7 @@ cd $(dirname "$0") || exit 1
|
||||||
|
|
||||||
# if we don't run inside the netdata repo
|
# if we don't run inside the netdata repo
|
||||||
# download it and run from it
|
# download it and run from it
|
||||||
if [ ! -f ../netdata-installer.sh ]
|
if [ ! -f ../../netdata-installer.sh ]
|
||||||
then
|
then
|
||||||
git clone https://github.com/netdata/netdata.git netdata.git || exit 1
|
git clone https://github.com/netdata/netdata.git netdata.git || exit 1
|
||||||
cd netdata.git/makeself || exit 1
|
cd netdata.git/makeself || exit 1
|
|
@ -6,9 +6,9 @@
|
||||||
# allow running the jobs by hand
|
# allow running the jobs by hand
|
||||||
[ -z "${NETDATA_BUILD_WITH_DEBUG}" ] && export NETDATA_BUILD_WITH_DEBUG=0
|
[ -z "${NETDATA_BUILD_WITH_DEBUG}" ] && export NETDATA_BUILD_WITH_DEBUG=0
|
||||||
[ -z "${NETDATA_INSTALL_PATH}" ] && export NETDATA_INSTALL_PATH="${1-/opt/netdata}"
|
[ -z "${NETDATA_INSTALL_PATH}" ] && export NETDATA_INSTALL_PATH="${1-/opt/netdata}"
|
||||||
[ -z "${NETDATA_MAKESELF_PATH}" ] && export NETDATA_MAKESELF_PATH="$(dirname "${0}")/.."
|
[ -z "${NETDATA_MAKESELF_PATH}" ] && export NETDATA_MAKESELF_PATH="$(dirname "${0}")/../.."
|
||||||
[ "${NETDATA_MAKESELF_PATH:0:1}" != "/" ] && export NETDATA_MAKESELF_PATH="$(pwd)/${NETDATA_MAKESELF_PATH}"
|
[ "${NETDATA_MAKESELF_PATH:0:1}" != "/" ] && export NETDATA_MAKESELF_PATH="$(pwd)/${NETDATA_MAKESELF_PATH}"
|
||||||
[ -z "${NETDATA_SOURCE_PATH}" ] && export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/.."
|
[ -z "${NETDATA_SOURCE_PATH}" ] && export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/../.."
|
||||||
export NULL=
|
export NULL=
|
||||||
|
|
||||||
# make sure the path does not end with /
|
# make sure the path does not end with /
|
|
@ -14,4 +14,3 @@ run cd "${NETDATA_INSTALL_PATH}/usr"
|
||||||
run ln -s ../bin bin
|
run ln -s ../bin bin
|
||||||
run ln -s ../sbin sbin
|
run ln -s ../sbin sbin
|
||||||
run ln -s . local
|
run ln -s . local
|
||||||
|
|
|
@ -43,8 +43,8 @@ FILE_VERSION="${VERSION}-$(uname -m)-$(date +"%Y%m%d-%H%M%S")${NOWNER}"
|
||||||
run mkdir -p "${NETDATA_INSTALL_PATH}/system"
|
run mkdir -p "${NETDATA_INSTALL_PATH}/system"
|
||||||
|
|
||||||
run cp \
|
run cp \
|
||||||
makeself/post-installer.sh \
|
packaging/makeself/post-installer.sh \
|
||||||
makeself/install-or-update.sh \
|
packaging/makeself/install-or-update.sh \
|
||||||
packaging/installer/functions.sh \
|
packaging/installer/functions.sh \
|
||||||
configs.signatures \
|
configs.signatures \
|
||||||
system/netdata-init-d \
|
system/netdata-init-d \
|
|
@ -42,5 +42,3 @@
|
||||||
netdata re-distributes a lot of open source software components.
|
netdata re-distributes a lot of open source software components.
|
||||||
Check its full license at:
|
Check its full license at:
|
||||||
https://github.com/netdata/netdata/blob/master/LICENSE.md
|
https://github.com/netdata/netdata/blob/master/LICENSE.md
|
||||||
|
|
||||||
|
|
|
@ -42,5 +42,3 @@
|
||||||
netdata re-distributes a lot of open source software components.
|
netdata re-distributes a lot of open source software components.
|
||||||
Check its full license at:
|
Check its full license at:
|
||||||
https://github.com/netdata/netdata/blob/master/LICENSE.md
|
https://github.com/netdata/netdata/blob/master/LICENSE.md
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ if [ "${NETDATA_MAKESELF_PATH:0:1}" != "/" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# netdata source directory
|
# netdata source directory
|
||||||
export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/.."
|
export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/../.."
|
||||||
|
|
||||||
# make sure ${NULL} is empty
|
# make sure ${NULL} is empty
|
||||||
export NULL=
|
export NULL=
|
Loading…
Add table
Reference in a new issue