diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
commit | 5068d34c08f951a7ea6257d305a1627b09a95817 (patch) | |
tree | 08213e2be853396a3b07ce15dbe222644dcd9a89 /release/vagrant-static/provision.sh | |
parent | Initial commit. (diff) | |
download | lnav-5068d34c08f951a7ea6257d305a1627b09a95817.tar.xz lnav-5068d34c08f951a7ea6257d305a1627b09a95817.zip |
Adding upstream version 0.11.1.upstream/0.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | release/vagrant-static/provision.sh | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/release/vagrant-static/provision.sh b/release/vagrant-static/provision.sh new file mode 100755 index 0000000..3b98103 --- /dev/null +++ b/release/vagrant-static/provision.sh @@ -0,0 +1,152 @@ +#!/usr/bin/env bash + +OS=$(uname -s) +if test x"${OS}" != x"FreeBSD"; then + source scl_source enable devtoolset-9 +fi + +FAKE_ROOT=/home/vagrant/fake.root + +rm -rf ~/extract +mkdir -p ${FAKE_ROOT} ~/packages ~/extract ~/github + +export PATH=${FAKE_ROOT}/bin:${PATH} + +cd ~/github + +SQLITE_CFLAGS="\ + -DSQLITE_ENABLE_COLUMN_METADATA \ + -DSQLITE_SOUNDEX \ + -DSQLITE_ENABLE_DBSTAT_VTAB \ + -DSQLITE_ENABLE_API_ARMOR \ + -DSQLITE_ENABLE_JSON1 \ + -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \ + " + +NCURSES_FALLBACKS="\ +ansi,\ +cygwin,\ +Eterm,\ +Eterm-256color,\ +gnome,\ +gnome-256color,\ +konsole,\ +konsole-256color,\ +linux,\ +putty,\ +rxvt,\ +rxvt-256color,\ +screen,\ +screen-16color,\ +screen-256color,\ +tmux,\ +tmux-256color,\ +vt100,\ +vt220,\ +xterm,\ +xterm-256color\ +" + +cd ~/extract + +for pkg in /vagrant/pkgs/*.tar.gz; do + tar xfz "$pkg" +done + +(cd make-4.2.1 && ./configure --prefix=${FAKE_ROOT} && make && make install) + +OS=$(uname -s) + + +(cd readline-6.3 && ./configure --prefix=${FAKE_ROOT} && make && make install) + +(cd bzip2-1.0.8 && make install PREFIX=${FAKE_ROOT}) + +(cd sqlite-* && + ./configure --disable-editline --prefix=${FAKE_ROOT} \ + CFLAGS="${SQLITE_CFLAGS}" \ + && \ + make && make install) + +(cd openssl-* && + ./config --prefix=${FAKE_ROOT} -fPIC && + make && + make install) + +(cd ncurses-6.3 && \ + ./configure --prefix=${FAKE_ROOT} \ + --enable-ext-mouse \ + --enable-sigwinch \ + --with-default-terminfo-dir=/usr/share/terminfo \ + --enable-ext-colors \ + --enable-widec \ + --enable-termcap \ + --with-fallbacks=$NCURSES_FALLBACKS \ + && \ + make && make install) + +(cd pcre2-* && \ + ./configure --prefix=${FAKE_ROOT} \ + --enable-jit \ + && \ + make && make install) + +if test x"${OS}" != x"FreeBSD"; then + (cd zlib-1.2.12 && ./configure --prefix=${FAKE_ROOT} && make && make install) + + (cd libssh2-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssl-prefix=${FAKE_ROOT} \ + --with-libz-prefix=${FAKE_ROOT} \ + "CPPFLAGS=-I${FAKE_ROOT}/include" \ + "LDFLAGS=-ldl -L${FAKE_ROOT}/lib" && + make && + make install) + + (cd curl-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssh2=${FAKE_ROOT} \ + --with-ssl=${FAKE_ROOT} \ + --with-zlib=${FAKE_ROOT} \ + "LDFLAGS=-ldl" && + make && + make install) +else + (cd zlib-1.2.12 && ./configure --prefix=${FAKE_ROOT} "CFLAGS=-fPIC" \ + && make && make install) + + (cd libssh2-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssl-prefix=${FAKE_ROOT} \ + --with-libz-prefix=${FAKE_ROOT} \ + && + make && + make install) + + (cd curl-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssh2=${FAKE_ROOT} \ + --with-ssl=${FAKE_ROOT} \ + --with-zlib=${FAKE_ROOT} \ + "CFLAGS=-fPIC" && + make && + make install) +fi + +(cd xz-* && + ./configure --prefix=${FAKE_ROOT} \ + --disable-shared \ + "LDFLAGS=-L${FAKE_ROOT}/lib" \ + "CPPFLAGS=-I${FAKE_ROOT}/include" \ + && + make && + make install) + +(cd libarchive-* && + ./configure --prefix=${FAKE_ROOT} \ + --disable-shared \ + "LDFLAGS=-L${FAKE_ROOT}/lib" \ + "CPPFLAGS=-I${FAKE_ROOT}/include" \ + && + make && + make install) |