aboutsummaryrefslogtreecommitdiff
path: root/network/hiawatha/hiawatha.SlackBuild
diff options
context:
space:
mode:
authorAntonio Hernández Blas <hba.nihilismus@gmail.com>2014-11-12 05:49:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-11-12 06:24:29 +0700
commit8c8738cf7c8e6af412a737565981bed49f369557 (patch)
treea934fc5e33cf4bd497cba4c716bb959cf5674ef0 /network/hiawatha/hiawatha.SlackBuild
parent77923f41fe0583363972c530dacf2377ff7a1f50 (diff)
network/hiawatha: Updated for version 9.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/hiawatha/hiawatha.SlackBuild')
-rw-r--r--network/hiawatha/hiawatha.SlackBuild42
1 files changed, 18 insertions, 24 deletions
diff --git a/network/hiawatha/hiawatha.SlackBuild b/network/hiawatha/hiawatha.SlackBuild
index 98fb95889984..ef192f06219f 100644
--- a/network/hiawatha/hiawatha.SlackBuild
+++ b/network/hiawatha/hiawatha.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for hiawatha
# 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.
#
# Redistribution and use in source and binary forms, with or without
@@ -22,7 +23,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hiawatha
-VERSION=${VERSION:-9.3}
+VERSION=${VERSION:-9.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,10 +64,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build
cd build
@@ -82,7 +83,18 @@ cd build
-DPID_DIR=/var/run/$PRGNAM \
-DWEBROOT_DIR=/srv/$PRGNAM \
-DWORK_DIR=/var/lib/$PRGNAM \
- -DCMAKE_BUILD_TYPE=Release ..
+ -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
make install DESTDIR=$PKG
cd ..
@@ -91,27 +103,9 @@ cd ..
sed -i 's/^#ServerId/ServerId/' $PKG/etc/$PRGNAM/$PRGNAM.conf
sed -i "s/www-data/$PRGNAM:$PRGNAM/" $PKG/etc/$PRGNAM/$PRGNAM.conf
-# Add the configuration needed by the PHP-FastCGI utility to make it
-# Just Work(tm) in Slackware(r) Linux(r) :)
-
-mkdir -p $PKG/var/run/$PRGNAM
-echo "Server = /usr/bin/php-cgi ; 1 ; /var/run/$PRGNAM/php-fcgi.sock ; php-fcgi:php-fcgi ; /etc/httpd/php.ini" >> \
- $PKG/etc/$PRGNAM/php-fcgi.conf
-
-sed -i "s:/var/run/php-fcgi.pid/:/var/run/$PRGNAM/php-fcgi.pid:" \
- $PKG/etc/$PRGNAM/php-fcgi.conf
-
-sed -i "s_ConnectTo = 127.0.0.1:2005_ConnectTo = /var/run/$PRGNAM/php-fcgi.sock_" \
- $PKG/etc/$PRGNAM/$PRGNAM.conf
-
-# Set the correct permissions for pid/socket directory.
-chown hiawatha:php-fcgi $PKG/var/run/$PRGNAM
-chmod 770 $PKG/var/run/$PRGNAM
-
# Install init scipts
mkdir -p $PKG/etc/rc.d/
install -m 0644 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM
-install -m 0644 $CWD/rc.php-fcgi $PKG/etc/rc.d/rc.php-fcgi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true