aboutsummaryrefslogtreecommitdiff
path: root/scripts/openssh.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-19 00:13:39 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-19 00:13:39 -0400
commitdb54ef567f4c724299ad1830d574052170247e04 (patch)
tree23cb53b4d9eadf99cd014c31e926fe6d1c4cc2c2 /scripts/openssh.sh
parentd0bd2d53b1186300abd32822276e992d1359a92a (diff)
parent38de9074ff1effefa08bfc71471a97cd0658c10c (diff)
downloadmin-db54ef567f4c724299ad1830d574052170247e04.tar.gz
min-db54ef567f4c724299ad1830d574052170247e04.tar.xz
Merged in changes from my desktop
Diffstat (limited to 'scripts/openssh.sh')
-rw-r--r--scripts/openssh.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/openssh.sh b/scripts/openssh.sh
new file mode 100644
index 0000000..8ab8397
--- /dev/null
+++ b/scripts/openssh.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+. ./.vars
+export DESTDIR=$prefix
+VERSION=7.7p1
+BUILD_DIR="${build_dir}/openssh-$VERSION"
+if ! [ -d "$BUILD_DIR" ] ; then
+ cd "$build_dir"
+ tar xfzv ${dist_dir}/openssh-$VERSION.tar.gz
+fi
+cd "$BUILD_DIR"
+export CC=musl-gcc
+export CFLAGS="-I$prefix/usr/include"
+export CPPFLAGS="$CFLAGS"
+export CXXFLAGS="$CFLAGS"
+export LDFLAGS="-static -L$prefix/usr/lib/ -L$prefix/usr/include"
+export DESTDIR="$prefix"
+./configure --prefix=/usr # --enable-static
+# make -j$(numproc)
+# make install
+