aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build.sh3
-rw-r--r--scripts/conf.sh5
-rw-r--r--scripts/libarchive.sh27
-rw-r--r--scripts/openssh.sh4
-rw-r--r--scripts/tar-pfx.sh10
5 files changed, 45 insertions, 4 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index da3ea68..c5b47bd 100644
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -12,5 +12,8 @@ $shell scripts/zlib.sh
$shell scripts/libressl.sh
$shell scripts/openssh.sh
$shell scripts/nginx.sh
+$shell scripts/libarchive.sh.sh
$shell scripts/runit.sh
+$shell scripts/conf.sh
+$shell scripts/tar-pfx.sh
# $shell scripts/grub.sh
diff --git a/scripts/conf.sh b/scripts/conf.sh
new file mode 100644
index 0000000..568bcdd
--- /dev/null
+++ b/scripts/conf.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Installs *MIN*imum system configuration files
+. ./.vars
+
+cp -av local/* $prefix/
diff --git a/scripts/libarchive.sh b/scripts/libarchive.sh
new file mode 100644
index 0000000..6311950
--- /dev/null
+++ b/scripts/libarchive.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+. ./.vars
+VERSION=3.3.2
+APP_NAME="libarchive"
+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 DESTDIR=$prefix
+export LDFLAGS="-L$prefix/usr/lib/ -static"
+rm config.log || echo ""
+make clean || echo ""
+./configure \
+ --host=$BUILD_TGT \
+ --prefix=/usr \
+ --without-xml2 \
+ --enable-bsdtar=static \
+ --enable-bsdcpio=static \
+ --enable-bsdcat=static \
+ --without-openssl \
+ --with-sysroot=$prefix
+make -j$(nproc)
+make install
diff --git a/scripts/openssh.sh b/scripts/openssh.sh
index 78e814f..ac59fd3 100644
--- a/scripts/openssh.sh
+++ b/scripts/openssh.sh
@@ -1,6 +1,5 @@
#!/bin/sh
. ./.vars
-export DESTDIR=$prefix
VERSION=7.7p1
BUILD_DIR="${build_dir}/openssh-$VERSION"
if ! [ -d "$BUILD_DIR" ] ; then
@@ -8,10 +7,7 @@ if ! [ -d "$BUILD_DIR" ] ; then
tar xfzv ${dist_dir}/openssh-$VERSION.tar.gz
fi
cd "$BUILD_DIR"
-# export CC=gcc
export CFLAGS="-I$prefix/usr/include"
-# export CPPFLAGS="$CFLAGS"
-# export CXXFLAGS="$CFLAGS"
export LDFLAGS="-static -L$prefix/usr/lib/"
export DESTDIR="$prefix"
rm config.log || echo ""
diff --git a/scripts/tar-pfx.sh b/scripts/tar-pfx.sh
new file mode 100644
index 0000000..b395764
--- /dev/null
+++ b/scripts/tar-pfx.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+. ./.vars
+
+bsdtar \
+ --numeric-owner \
+ --owner=root \
+ --group=root \
+ -C pfx \
+ -cvf - . \
+ | xz -9 -T0 -vc > pfx.txz