summaryrefslogtreecommitdiff
path: root/network/hiawatha/hiawatha.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/hiawatha/hiawatha.SlackBuild')
-rw-r--r--network/hiawatha/hiawatha.SlackBuild45
1 files changed, 25 insertions, 20 deletions
diff --git a/network/hiawatha/hiawatha.SlackBuild b/network/hiawatha/hiawatha.SlackBuild
index 36d3286112..ecbb95e6a3 100644
--- a/network/hiawatha/hiawatha.SlackBuild
+++ b/network/hiawatha/hiawatha.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for hiawatha
+# Copyright 2018 Donald Cooley South Haven, Indiana USA
# Copyright (c) 2009-2012, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# Copyright (c) 2014, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# All rights reserved.
@@ -23,13 +24,13 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hiawatha
-VERSION=${VERSION:-9.13}
+VERSION=${VERSION:-10.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -73,29 +74,31 @@ mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+ -DCMAKE_INSTALL_PREFIX=/ \
+ -DCMAKE_INSTALL_BINDIR=/usr/sbin \
+ -DCMAKE_INSTALL_SBINDIR=/usr/sbin \
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc/$PRGNAM \
-DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_MANDIR=/usr/man \
-DCONFIG_DIR=/etc/$PRGNAM \
-DLOG_DIR=/var/log/$PRGNAM \
-DPID_DIR=/var/run/$PRGNAM \
- -DWEBROOT_DIR=/srv/$PRGNAM \
+ -DWEBROOT_DIR=/var/$PRGNAM \
-DWORK_DIR=/var/lib/$PRGNAM \
-DCMAKE_BUILD_TYPE=Release \
\
- -DENABLE_CACHE=on \
- -DENABLE_DEBUG=off \
- -DENABLE_IPV6=on \
-DENABLE_MONITOR=on \
- -DENABLE_RPROXY=on \
- -DENABLE_SSL=on \
-DENABLE_TOMAHAWK=on \
- -DENABLE_TOOLKIT=on \
- -DENABLE_XSLT=on \
..
make
+ # Enabled by default
+ #-DENABLE_CACHE=on \
+ #-DENABLE_DEBUG=off \
+ #-DENABLE_IPV6=on \
+ #-DENABLE_RPROXY=on \
+ #-DENABLE_TLS=on \
+ #-DENABLE_TOOLKIT=on \
+ #-DENABLE_XSLT=on \
make install DESTDIR=$PKG
cd ..
@@ -103,6 +106,9 @@ cd ..
sed -i 's/^#ServerId/ServerId/' $PKG/etc/$PRGNAM/$PRGNAM.conf
sed -i "s/www-data/$PRGNAM:$PRGNAM/" $PKG/etc/$PRGNAM/$PRGNAM.conf
+# Change PHP version from 7 to 5 to match version in Slackware*-14.2
+sed -i -r -e 's/PHP7/PHP5/g' -e 's/php7/php5/g' $PKG/etc/$PRGNAM/$PRGNAM.conf
+
# Install init scipts
mkdir -p $PKG/etc/rc.d/
install -m 0644 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM
@@ -117,11 +123,10 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/extra
cp -a ChangeLog LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Add some extra scripts from upstream
-for script in mkcert newroot
-do
- cat extra/$script > $PKG/usr/doc/$PRGNAM-$VERSION/extra/$script
-done
+cat extra/newroot > $PKG/usr/doc/$PRGNAM-$VERSION/extra/newroot
+
+mkdir -p $PKG/usr/share/$PRGNAM
+tar -caf $PKG/usr/share/$PRGNAM/letsencrypt.tar.gz extra/letsencrypt/*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc