diff options
author | Christoph Willing <chris.willing@iinet.net.au> | 2014-06-23 23:40:55 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-06-23 23:40:55 +0700 |
commit | e48ad80c0aa597967b284bd5ad43c664938468b0 (patch) | |
tree | 36fbfbfc600e013bef5c5cdc9c912559591f0fc7 /network | |
parent | 8182203f413f0a26f257d0a42bfc8dd41b363d2a (diff) | |
download | slackbuilds-e48ad80c0aa597967b284bd5ad43c664938468b0.tar.gz |
network/nbd: Updated for version 3.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/nbd/nbd.SlackBuild | 21 | ||||
-rw-r--r-- | network/nbd/nbd.info | 8 |
2 files changed, 15 insertions, 14 deletions
diff --git a/network/nbd/nbd.SlackBuild b/network/nbd/nbd.SlackBuild index e545af9f14..8ab796df18 100644 --- a/network/nbd/nbd.SlackBuild +++ b/network/nbd/nbd.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for NBD (Network Block Device) -# Maintained by Stu Miller <slackbuilds@go4it2day.com> +# Previously maintained by Stu Miller <slackbuilds@go4it2day.com> +# Currently maintained by Christoph Willing <chris.willing@iinet.net.au> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are @@ -31,7 +32,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=nbd -VERSION=3.0 +VERSION=${VERSION:-3.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -68,14 +69,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $TMP/$PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -92,14 +93,14 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object"| grep ELF | \ - cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true 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 -cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/network/nbd/nbd.info b/network/nbd/nbd.info index 37c9c27f7c..417adec6bd 100644 --- a/network/nbd/nbd.info +++ b/network/nbd/nbd.info @@ -1,10 +1,10 @@ PRGNAM="nbd" -VERSION="3.0" +VERSION="3.8" HOMEPAGE="http://nbd.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/nbd/nbd-3.0.tar.bz2" -MD5SUM="81f549155267536ad30851eb50ee8d1c" +DOWNLOAD="http://downloads.sourceforge.net/nbd/nbd-3.8.tar.xz" +MD5SUM="e9bcdb3e18af815573880ccbaee02646" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" MAINTAINER="Christoph Willing" -EMAIL="c.willing@uq.edu.au" +EMAIL="chris.willing@iinet.net.au" |