summaryrefslogtreecommitdiff
path: root/system/xfsudo/xfsudo.SlackBuild
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2014-09-22 10:03:04 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-27 08:48:09 +0700
commitf35358cbe710b3b0fb226a1d168fd7386a5a6e99 (patch)
tree113c4dc7a5e583222bd790c1ba170e2fe9b57f4c /system/xfsudo/xfsudo.SlackBuild
parent4333af2aea9ffcddead587cd796bd5f73d789516 (diff)
downloadslackbuilds-f35358cbe710b3b0fb226a1d168fd7386a5a6e99.tar.gz
system/xfsudo: Updated for vesion 0.5.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/xfsudo/xfsudo.SlackBuild')
-rw-r--r--system/xfsudo/xfsudo.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/system/xfsudo/xfsudo.SlackBuild b/system/xfsudo/xfsudo.SlackBuild
index dbf21b08da..89c8cfc871 100644
--- a/system/xfsudo/xfsudo.SlackBuild
+++ b/system/xfsudo/xfsudo.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=xfsudo
-VERSION=${VERSION:-0.4}
+VERSION=${VERSION:-0.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,7 +37,7 @@ fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/$PRGNAM
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -47,7 +47,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
if [ -e $CWD/$VERSION.tar.gz ]; then
- tar xvf $CWD/$VERSION.tar.gz
+ tar xvf $CWD/$VERSION.tar.gz
else
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
fi
@@ -59,13 +59,21 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make install DESTDIR=$PKG appdir=/usr/doc/$PRGNAM-$VERSION mandir=/usr/man/man1
+make install DESTDIR=$PKG
+
+# Preserve config file
+mv $PKG/etc/xfsudo.conf $PKG/etc/xfsudo.conf.new
+
+# Compress man pages
+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
mkdir -p $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.${PKGTYPE:-tgz}