aboutsummaryrefslogtreecommitdiff
path: root/scripts/ncdu.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-23 00:23:36 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-23 00:31:02 -0400
commit477bfced7fdaa525f9cc7f13afdacb2a48f07379 (patch)
treefc1e657add7456e7c791d7729c08e37feae4567e /scripts/ncdu.sh
parent42f57801fc0a0842aedbb8d645641710f4877c87 (diff)
downloadmin-master.tar.gz
min-master.tar.xz
Massive changes, ssh and Nginx work!HEADmaster
Bump to 4.16.3 in /boot/syslinux.cfg Add `ssh`, `nobody`, and `nogroup`, in `/etc/passwd` and `/etc/group` Updated the init script to use `mdev` Added a service definition for a getty on tty0 Added a service definition for sshd Added busybox udhcpc `default.script` I *still need to check the license* ( Copied from my Gentoo installation, and works ) Updated readme.md to reflect the fact that we pull in the commands from `pfx` and you'll need to add `/lib/ld-musl-x86_64.so.1` or change the PATH in `./inc` Added rsync, ncdu xz and grub. Removed tar-pfx.sh Replaced with cpio-pfx.sh added `conf.sh` which will be taking care of basic system configuration for now Change configuration directory for libressl Enable wide chars in `ncurses` Use `/etc` for SSH configuration files Remove make clean from tree.sh and xz.sh Added relevant files to sources.lst
Diffstat (limited to 'scripts/ncdu.sh')
-rw-r--r--scripts/ncdu.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/ncdu.sh b/scripts/ncdu.sh
new file mode 100644
index 0000000..b8bee9a
--- /dev/null
+++ b/scripts/ncdu.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+. ./.vars
+VERSION=1.13
+APP_NAME="ncdu"
+BUILD_DIR="${build_dir}/$APP_NAME-$VERSION"
+if ! [ -d "$BUILD_DIR" ] ; then
+ cd "$build_dir"
+ tar xfzv ${dist_dir}/$APP_NAME-$VERSION.tar.gz
+fi
+cd "$BUILD_DIR"
+export CC=$BUILD_TGT-gcc
+export CFLAGS="-I$prefix/usr/include -static"
+export CPPFLAGS="$CFLAGS"
+export DESTDIR=$prefix
+export LDFLAGS="-L$prefix/usr/lib/ -L$prefix/lib -static"
+./configure \
+ --prefix=/usr \
+ --with-local-dir=$prefix/usr \
+ --with-ncurses
+make -j$(nproc)
+make install