diff options
author | Steven King <kingrst@gmail.com> | 2010-05-13 01:01:19 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 01:01:19 +0200 |
commit | ce22b1c366fc73e6e6074bd5499db24ab1f2f1c2 (patch) | |
tree | c00142e940c718c2bea929d3d13d73727b91b7ba /system/zfs-fuse/zfs-fuse.SlackBuild | |
parent | efebcd3389c3ca493ef0af9e62105e3675ca8c21 (diff) | |
download | slackbuilds-ce22b1c366fc73e6e6074bd5499db24ab1f2f1c2.tar.gz |
system/zfs-fuse: Added to 13.0 repository
Diffstat (limited to 'system/zfs-fuse/zfs-fuse.SlackBuild')
-rw-r--r-- | system/zfs-fuse/zfs-fuse.SlackBuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/system/zfs-fuse/zfs-fuse.SlackBuild b/system/zfs-fuse/zfs-fuse.SlackBuild new file mode 100644 index 0000000000..98d6698e20 --- /dev/null +++ b/system/zfs-fuse/zfs-fuse.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +# Slackware build script for ZFS-Fuse +# Steven King revision date 2010/01/17 + +PRGNAM=zfs-fuse +VERSION=0.6.0 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +rm -rf $TMP/$PRGNAM-$VERSION +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +cd src + scons + scons install install_dir=$PKG/usr/sbin +cd .. + +# Install init script +mkdir -p $PKG/etc/rc.d +cat $CWD/rc.zfs-fuse > $PKG/etc/rc.d/rc.zfs-fuse.new + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + BUGS HACKING LICENSE TESTING CHANGES INSTALL README* STATUS TODO \ + $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 + +mkdir -p $PKG/usr/man/man8 +cp doc/*.8.gz $PKG/usr/man/man8 + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |