forked from netdata/community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
19 lines (18 loc) · 1.12 KB
/
bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export NETDATA_INSTALL_PREFIX="/"
export NETDATA_LOG_DIR="$NETDATA_INSTALL_PREFIX/netdata/var/log/netdata"
export PATH="$NETDATA_INSTALL_PREFIX/netdata/usr/sbin:$PATH"
export NETDATA_DEV_CFLAGS="-Og -ggdb -Wall -Wextra -Wformat-signedness -fstack-protector-all -DNETDATA_INTERNAL_CHECKS=1 -D_FORTIFY_SOURCE=2 -DNETDATA_VERIFY_LOCKS=1"
alias n_edit_config="vim $NETDATA_INSTALL_PREFIX/netdata/etc/netdata/netdata.conf"
alias nreconf="autoreconf -ivf"
alias nconf="CFLAGS=\"${NETDATA_DEV_CFLAGS}\" ./configure \
--prefix=\"${NETDATA_INSTALL_PREFIX}/netdata/usr\" \
--sysconfdir=\"${NETDATA_INSTALL_PREFIX}/netdata/etc\" \
--localstatedir=\"${NETDATA_INSTALL_PREFIX}/netdata/var\" \
--libexecdir=\"${NETDATA_INSTALL_PREFIX}/netdata/usr/libexec\" \
--libdir=\"${NETDATA_INSTALL_PREFIX}/netdata/usr/lib\" \
--with-zlib \
--with-math \
--with-user=netdata \
--disable-lto"
alias netdata-install="CFLAGS='${NETDATA_DEV_CFLAGS}' ./netdata-installer.sh --install-prefix $NETDATA_INSTALL_PREFIX --dont-start-it --dont-wait --disable-lto"
alias netdata-build="nreconf && nconf && make"