#!/bin/bash # arm/build # Check package dependencies, set metadata and launch # package build script. # by Stuart Winter # source /usr/share/slackdev/buildkit.sh # Package metadata: export PACKAGE=mod_ssl export VERSION=2.8.28 export ARCH=arm export BUILD=1 export PKGSERIES=n export SLACKPACKAGE=$PACKAGE-$VERSION-$ARCH-$BUILD.tgz # Reset the ARM file system: restore it to the 'factory settings' # as it were (this has no effect when building natively): sboxsysrestore # Ensure base ARM packages are installed first: slackbasedeps # Let's remove apache to ensure that the latest version is # installed before building mod_ssl: slackfailpkgdeps apache || removepkg apache # Ensure specific build dependencies (mainly libraries): slackcheckpkgdeps openssl || installpkg $PKGSTORE/n/openssl-*.tgz slackcheckpkgdeps apache || installpkg $PKGSTORE/n/apache-*.tgz slackcheckpkgdeps openssl,apache || exit 99 # Launch the package build script: ( ./$PACKAGE.SlackBuild ) >& /dev/stdout | tee build.$ARCH.log # Compress the build log: bzip2 -9f build.$ARCH.log