0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-06 14:35:32 +00:00

move makeself ()

This commit is contained in:
Paweł Krupa 2019-01-02 10:12:24 +01:00 committed by GitHub
parent 5b32e18e15
commit 4d77f2b325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 34 additions and 67 deletions

2
.gitignore vendored
View file

@ -56,7 +56,7 @@ packaging/installer/.environment.sh
*.run
# netdata makeself downloads
makeself/tmp/
packaging/makeself/tmp/
# coverity
cov-int/

View file

@ -14,7 +14,7 @@ autoreconf -ivf
./configure
make dist
echo "--- Create self-extractor ---"
./makeself/build-x86_64-static.sh
./packaging/makeself/build-x86_64-static.sh
# Needed fo GCS
echo "--- Copy artifacts to bin ---"

View file

@ -47,7 +47,6 @@ EXTRA_DIST = \
SUBDIRS = \
diagrams \
makeself \
system \
tests \
$(NULL)

View file

@ -589,7 +589,6 @@ AC_CONFIG_FILES([
libnetdata/storage_number/Makefile
libnetdata/threads/Makefile
libnetdata/url/Makefile
makeself/Makefile
registry/Makefile
streaming/Makefile
system/Makefile

View file

@ -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)

View file

@ -4,7 +4,7 @@ To build the static binary 64-bit distribution package, run:
```bash
$ cd /path/to/netdata.git
$ ./makeself/build-x86_64-static.sh
$ ./packaging/makeself/build-x86_64-static.sh
```
The program will:
@ -24,7 +24,7 @@ To build netdata binaries with debugging / tracing information in them, use:
```bash
$ 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).

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# 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
@ -23,7 +23,7 @@ then
# (also inside the container)
#
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
id=$(sudo docker ps -l -q)
@ -34,7 +34,7 @@ fi
run sudo docker run -a stdin -a stdout -a stderr -i -t -v \
$(pwd):/usr/src/netdata.git:rw \
"${DOCKER_CONTAINER_NAME}" \
/bin/sh /usr/src/netdata.git/makeself/build.sh "${@}"
/bin/sh /usr/src/netdata.git/packaging/makeself/build.sh "${@}"
if [ "${USER}" ]
then

View file

@ -31,7 +31,7 @@ cd $(dirname "$0") || exit 1
# if we don't run inside the netdata repo
# download it and run from it
if [ ! -f ../netdata-installer.sh ]
if [ ! -f ../../netdata-installer.sh ]
then
git clone https://github.com/netdata/netdata.git netdata.git || exit 1
cd netdata.git/makeself || exit 1

View file

@ -6,9 +6,9 @@
# allow running the jobs by hand
[ -z "${NETDATA_BUILD_WITH_DEBUG}" ] && export NETDATA_BUILD_WITH_DEBUG=0
[ -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}"
[ -z "${NETDATA_SOURCE_PATH}" ] && export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/.."
[ -z "${NETDATA_SOURCE_PATH}" ] && export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/../.."
export NULL=
# make sure the path does not end with /

View file

@ -14,4 +14,3 @@ run cd "${NETDATA_INSTALL_PATH}/usr"
run ln -s ../bin bin
run ln -s ../sbin sbin
run ln -s . local

View file

@ -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 cp \
makeself/post-installer.sh \
makeself/install-or-update.sh \
packaging/makeself/post-installer.sh \
packaging/makeself/install-or-update.sh \
packaging/installer/functions.sh \
configs.signatures \
system/netdata-init-d \

View file

@ -42,5 +42,3 @@
netdata re-distributes a lot of open source software components.
Check its full license at:
https://github.com/netdata/netdata/blob/master/LICENSE.md

View file

@ -42,5 +42,3 @@
netdata re-distributes a lot of open source software components.
Check its full license at:
https://github.com/netdata/netdata/blob/master/LICENSE.md

View file

@ -21,7 +21,7 @@ if [ "${NETDATA_MAKESELF_PATH:0:1}" != "/" ]
fi
# netdata source directory
export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/.."
export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/../.."
# make sure ${NULL} is empty
export NULL=