aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2011-10-30 23:18:00 -0200
committerNiels Horn <niels.horn@slackbuilds.org>2011-10-30 23:18:00 -0200
commiteda9f7b6afef467eea0f45fe1b45aefc2e0bd873 (patch)
tree55d8aa7880dc32f0e64808986bbad6c2f87c3058 /system
parent512eed69fc018f833b8dd9690c4218daefe6a3aa (diff)
system/dar: Updated for version 2.4.2.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/dar/dar.SlackBuild9
-rw-r--r--system/dar/dar.info8
-rw-r--r--system/dar/doinst.sh14
3 files changed, 23 insertions, 8 deletions
diff --git a/system/dar/dar.SlackBuild b/system/dar/dar.SlackBuild
index 4a4d43790f25..a50ee10a1dee 100644
--- a/system/dar/dar.SlackBuild
+++ b/system/dar/dar.SlackBuild
@@ -30,16 +30,14 @@
# No additional license terms added :-)
PRGNAM="dar"
-VERSION=${VERSION:-2.3.11}
+VERSION=${VERSION:-2.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -63,7 +61,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+set -e
rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -100,6 +98,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
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
+mv $PKG/etc/darrc $PKG/etc/darrc.new
+
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO THANKS \
@@ -109,6 +109,7 @@ chown -R root:root $PKG/usr/doc
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.${PKGTYPE:-tgz}
diff --git a/system/dar/dar.info b/system/dar/dar.info
index 790cc65f3e11..3b28a5c0ea9f 100644
--- a/system/dar/dar.info
+++ b/system/dar/dar.info
@@ -1,10 +1,10 @@
PRGNAM="dar"
-VERSION="2.3.11"
+VERSION="2.4.2"
HOMEPAGE="http://dar.linux.free.fr/"
-DOWNLOAD="http://downloads.sourceforge.net/dar/dar-2.3.11.tar.gz"
-MD5SUM="5f8766f50069faf0a915e691372e56f8"
+DOWNLOAD="http://downloads.sourceforge.net/dar/dar-2.4.2.tar.gz"
+MD5SUM="b23c0509513b895f4ab9ce9191b2f65b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia"
EMAIL="nishant@mnspace.net"
-APPROVED="dsomero"
+APPROVED="Niels Horn"
diff --git a/system/dar/doinst.sh b/system/dar/doinst.sh
new file mode 100644
index 000000000000..321869192d67
--- /dev/null
+++ b/system/dar/doinst.sh
@@ -0,0 +1,14 @@
+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/darrc.new