summaryrefslogtreecommitdiff
path: root/network/miredo/miredo.SlackBuild
diff options
context:
space:
mode:
authorFridrich von Stauffenberg <cancellor2@gmail.com>2012-04-29 20:01:18 -0400
committerErik Hanson <erik@slackbuilds.org>2012-04-30 00:40:02 -0500
commit2e99b0b580313b0f049542400eb0b4187c38d1d1 (patch)
tree4bae941645434c114d769220d0a14fd91bb2d99e /network/miredo/miredo.SlackBuild
parent15d0ab6a9303c21b927f955cab6edabaef004e8d (diff)
downloadslackbuilds-2e99b0b580313b0f049542400eb0b4187c38d1d1.tar.gz
network/miredo: Updated for version 1.2.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/miredo/miredo.SlackBuild')
-rw-r--r--network/miredo/miredo.SlackBuild24
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