diff options
Diffstat (limited to 'network/miredo/miredo.SlackBuild')
-rw-r--r-- | network/miredo/miredo.SlackBuild | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/network/miredo/miredo.SlackBuild b/network/miredo/miredo.SlackBuild index 5e338253fa..0386b3c32d 100644 --- a/network/miredo/miredo.SlackBuild +++ b/network/miredo/miredo.SlackBuild @@ -1,7 +1,7 @@ -#!/bin/sh -# +#!/bin/bash + # Slackware build script for Miredo -# + # Copyright 2011 Fridrich von Stauffenberg <cancellor2@gmail.com> # All rights reserved. # @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=miredo -VERSION=1.2.4 +VERSION=1.2.5 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,11 +56,12 @@ fi if [ "${NOBODY:-no}" = "no" ]; then if ! grep -q "^$PRGNAM:" /etc/passwd || ! grep -q "^$PRGNAM:" /etc/group; then - echo "You must have a $PRGNAM user and $PRGNAM group to run this script:" - echo "" - echo " groupadd -g 255 miredo" - echo " useradd -u 255 -g 255 -c \"Teredo IPv6 Tunneling\" -d /dev/null -s /bin/false miredo" - + cat << EOF +You must have a $PRGNAM user and $PRGNAM group to run this script. +Something like this should suffice for most systems: + # groupadd -g 255 miredo + # useradd -u 255 -g 255 -c "Teredo IPv6 Tunneling" -d /dev/null -s /bin/false miredo +EOF exit 1 fi enable_user="--enable-$PRGNAM-user" @@ -74,11 +75,12 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ @@ -96,7 +98,7 @@ install -D -m 0644 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new ( cd $PKG/etc/$PRGNAM ; mv $PRGNAM.conf{,.new} ) find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done cp ChangeLog AUTHORS THANKS COPYING INSTALL README NEWS TODO ABOUT-NLS \ $PKG/usr/doc/$PRGNAM-$VERSION |