diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/dillo/README | 5 | ||||
-rw-r--r-- | network/dillo/dillo.SlackBuild | 82 | ||||
-rw-r--r-- | network/dillo/dillo.info | 8 | ||||
-rw-r--r-- | network/dillo/doinst.sh | 15 | ||||
-rw-r--r-- | network/dillo/slack-desc | 9 |
5 files changed, 119 insertions, 0 deletions
diff --git a/network/dillo/README b/network/dillo/README new file mode 100644 index 0000000000..8851c25452 --- /dev/null +++ b/network/dillo/README @@ -0,0 +1,5 @@ +dillo web browser v0.8.6 + +dillo is a lightweight web browser for Unix. It uses the GTK toolkit, +so it can integrate with any window manager or desktop environment. + diff --git a/network/dillo/dillo.SlackBuild b/network/dillo/dillo.SlackBuild new file mode 100644 index 0000000000..652d3cbb4b --- /dev/null +++ b/network/dillo/dillo.SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh + +# Slackware build script for dillo + +# Copyright 2006 Martin Lefebvre <dadexter@gmail.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# 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. + +set -e + +PRGNAM=dillo +VERSION=0.8.6 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=`pwd` +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R a-s,u+w,go+r-w . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --disable-dlgui \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +make +make install DESTDIR=$PKG + +# Let's not clobber config files if they already exist +mv $PKG/etc/dillorc $PKG/etc/dillorc.new +mv $PKG/etc/dpidrc $PKG/etc/dpidrc.new + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog* INSTALL NEWS README* doc/*.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION/ +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/network/dillo/dillo.info b/network/dillo/dillo.info new file mode 100644 index 0000000000..6d52b71bb2 --- /dev/null +++ b/network/dillo/dillo.info @@ -0,0 +1,8 @@ +PRGNAM="dillo" +VERSION="0.8.6" +HOMEPAGE="http://www.dillo.org/" +DOWNLOAD="http://www.dillo.org/download/dillo-0.8.6.tar.bz2" +MD5SUM="b65233d368bbd265a55effcf2c17f84b" +MAINTAINER="Martin Lefebvre" +EMAIL="dadexter@gmail.com" +APPROVED="robw810" diff --git a/network/dillo/doinst.sh b/network/dillo/doinst.sh new file mode 100644 index 0000000000..fdf3c6249e --- /dev/null +++ b/network/dillo/doinst.sh @@ -0,0 +1,15 @@ +config() { + NEW="$1" + OLD="`dirname $NEW`/`basename $NEW .new`" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/dillorc.new +config etc/dpidrc.new diff --git a/network/dillo/slack-desc b/network/dillo/slack-desc new file mode 100644 index 0000000000..c55b84cc0c --- /dev/null +++ b/network/dillo/slack-desc @@ -0,0 +1,9 @@ +dillo: dillo web browser +dillo: +dillo: dillo is a lightweight web browser for Unix. It uses the GTK toolkit, +dillo: so it can integrate with any window manager or desktop environment. +dillo: +dillo: This build includes dillo itself, as well as the dillo plugins. +dillo: +dillo: +dillo: |