aboutsummaryrefslogtreecommitdiff
path: root/system/dump/dump.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/dump/dump.SlackBuild')
-rw-r--r--system/dump/dump.SlackBuild28
1 files changed, 20 insertions, 8 deletions
diff --git a/system/dump/dump.SlackBuild b/system/dump/dump.SlackBuild
index 79c0fa21dd7f2..de3076926da74 100644
--- a/system/dump/dump.SlackBuild
+++ b/system/dump/dump.SlackBuild
@@ -3,10 +3,10 @@
# Slackware build script for dump
# Written by Chris Abela <chris.abela@maltats.com>
-# November 2008
+# July 2009
PRGNAM=dump
-VERSION=${VERSION:-0.4b41}
+VERSION=${VERSION:-0.4b42}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -39,16 +42,24 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# rmt is available on Slack's tar package, so I am disabling it.
+# The fully qualified mandir is necessary.
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=$PKG/usr/man \
--with-binowner=root \
--with-bingrp=root \
--with-manowner=root \
- --with-mangrp=root
+ --with-mangrp=root \
+ --enable-rmt=no \
+ --enable-transselinux=no
+
+# This is needed as we do not have SELinux
+sed -i 's/ -lselinux -lsepol//' configure.in
make
make prefix=$PKG/usr install
@@ -66,8 +77,9 @@ make prefix=$PKG/usr install
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES COPYRIGHT INSTALL KNOWNBUGS MAINTAINERS README REPORTING-BUGS \
- THANKS TODO examples $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES COPYRIGHT INSTALL *BUGS MAINTAINERS README THANKS TODO examples \
+ $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.Slackbuild
@@ -75,4 +87,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}