aboutsummaryrefslogtreecommitdiff
path: root/network/lighttpd/lighttpd.SlackBuild
diff options
context:
space:
mode:
authorPaul Wisehart <wise@lupulin.net>2010-05-11 22:25:32 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:25:32 +0200
commit82ae300f4867e6e75a3a5c1a36de31d5d5594b26 (patch)
tree6e622b0ef1fc58172b623f9f9eced834194a0727 /network/lighttpd/lighttpd.SlackBuild
parent05cc16dfae28686c0627956fe3024245cd1b601a (diff)
network/lighttpd: Updated for version 1.4.20
Diffstat (limited to 'network/lighttpd/lighttpd.SlackBuild')
-rw-r--r--network/lighttpd/lighttpd.SlackBuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/network/lighttpd/lighttpd.SlackBuild b/network/lighttpd/lighttpd.SlackBuild
index f81427f25cb1a..2d88a0d794a0b 100644
--- a/network/lighttpd/lighttpd.SlackBuild
+++ b/network/lighttpd/lighttpd.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
-
+#
# Slackware build script for lighttpd
-
+#
# Copyright (c) 2007 Daniel de Kok <moc.mikciat@leinad>
# All rights reserved.
#
@@ -21,26 +21,22 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Modified by the SlackBuilds.org team.
-
-# Exit on most errors
-set -e
PRGNAM=lighttpd
-VERSION=1.4.18
+VERSION=1.4.20
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-## lighttpd user & group. *MUST* exist before package creation
+## lighttpd user & group *MUST* exist before package creation
# See http://slackbuilds.org/uid_gid.txt for current recomendations.
-LIGHTTPD_USER=lighttpd
-LIGHTTPD_GROUP=lighttpd
+LIGHTTPD_USER=${LIGHTTPD_USER:-lighttpd}
+LIGHTTPD_GROUP=${LIGHTTPD_GROUP:-lighttpd}
if ! grep ^$LIGHTTPD_GROUP: /etc/group > /dev/null 2>&1; then
echo "$0: Error: LIGHTTP group ($LIGHTTPD_GROUP) doesn't exist."
@@ -58,13 +54,17 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -e # Exit on most errors
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .