diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2017-08-24 15:44:24 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-08-26 07:19:47 +0700 |
commit | 1f10e667b1a201dd55dfeafb218ee66156520693 (patch) | |
tree | 7b96e4f4df64fee896d09f53d3e35c63b3b141d5 /network | |
parent | 1a1d31ec9d7b6c55c8d13fda8148227a43493ca8 (diff) |
network/UDR: Added (a wrapper for rsync that improves speed).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/UDR/README | 21 | ||||
-rw-r--r-- | network/UDR/UDR.SlackBuild | 85 | ||||
-rw-r--r-- | network/UDR/UDR.info | 10 | ||||
-rw-r--r-- | network/UDR/slack-desc | 19 |
4 files changed, 135 insertions, 0 deletions
diff --git a/network/UDR/README b/network/UDR/README new file mode 100644 index 0000000000000..653b521e76afd --- /dev/null +++ b/network/UDR/README @@ -0,0 +1,21 @@ +UDR is a wrapper around rsync that enables rsync to use UDT protocol and +thus improves throughput of large data transfers over long distances. + +UDT is a UDP-based, application level protocol. It is designed to +support transferring large datasets over high speed wide area networks, +where TCP has been known to be extremely ineffective. + +UDR does not change rsync, it works by creating a UDT connection and +then places the connection between the rsync client and server. + +To use UDR, prefix the current rsync command used to transfer data with +'udr', for example: + +udr rsync -avz /home/user/dir/ user@example.com:/home/user/dir + +Any rsync options can be used. + +UDR must be on the client and server machines that data will be +transferred between. UDR uses ssh to do authentication and automatically +start the server-side UDR process. At least one UDP port needs to be +open between the machines. diff --git a/network/UDR/UDR.SlackBuild b/network/UDR/UDR.SlackBuild new file mode 100644 index 0000000000000..ecaecb07e6a09 --- /dev/null +++ b/network/UDR/UDR.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/sh + +# Slackware build script for UDR + +# Copyright 2017, Alexander Verbovetsky, Moscow, Russia +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=UDR +VERSION=${VERSION:-0.9.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + UDRARCH="IA32" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + UDRARCH="IA32" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + UDRARCH="AMD64" +else + echo "$ARCH is not supported." +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG/usr/bin $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +make -j1 -e arch="$UDRARCH" CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" +install -m 0755 -o root -g root src/udr $PKG/usr/bin + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE.txt README.md server $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 + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/UDR/UDR.info b/network/UDR/UDR.info new file mode 100644 index 0000000000000..61c04c6341cc9 --- /dev/null +++ b/network/UDR/UDR.info @@ -0,0 +1,10 @@ +PRGNAM="UDR" +VERSION="0.9.4" +HOMEPAGE="https://github.com/LabAdvComp/UDR" +DOWNLOAD="https://github.com/LabAdvComp/UDR/archive/v0.9.4/UDR-0.9.4.tar.gz" +MD5SUM="74a7ebd384156be0fc3d9a08890e098b" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Alexander Verbovetsky" +EMAIL="alik@ejik.org" diff --git a/network/UDR/slack-desc b/network/UDR/slack-desc new file mode 100644 index 0000000000000..d665c18bf2432 --- /dev/null +++ b/network/UDR/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +UDR: UDR (a wrapper for rsync that improves speed) +UDR: +UDR: UDR is a wrapper around rsync that enables rsync to use UDT protocol +UDR: and thus improves throughput of large data transfers over long +UDR: distances. +UDR: +UDR: HOMEPAGE: https://github.com/LabAdvComp/UDR +UDR: +UDR: +UDR: +UDR: |