diff options
Diffstat (limited to 'network/lighttpd/lighttpd.SlackBuild')
-rw-r--r-- | network/lighttpd/lighttpd.SlackBuild | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/network/lighttpd/lighttpd.SlackBuild b/network/lighttpd/lighttpd.SlackBuild index f81427f25c..2d88a0d794 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 . |