network/ftp-cloudfs: Updated for version 0.34.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Marcel Saegebarth 2015-08-28 14:03:55 +02:00 committed by Willy Sudiarto Raharjo
parent 4ca86bf38c
commit a192cacb4a
3 changed files with 23 additions and 4 deletions

View file

@ -0,0 +1,14 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/ftpcloudfs.config.new

View file

@ -25,7 +25,8 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ftp-cloudfs
VERSION=${VERSION:-0.33}
SRCNAM=ftpcloudfs
VERSION=${VERSION:-0.34}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -73,12 +74,16 @@ find -L . \
python setup.py install --root $PKG
mkdir -p $PKG/etc
install -m 0644 $SRCNAM.conf.example $PKG/etc/$SRCNAM.conf.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog requirements.txt $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}

View file

@ -1,8 +1,8 @@
PRGNAM="ftp-cloudfs"
VERSION="0.33"
VERSION="0.34"
HOMEPAGE="https://github.com/cloudfs/ftp-cloudfs/"
DOWNLOAD="https://github.com/cloudfs/ftp-cloudfs/archive/0.33.tar.gz"
MD5SUM="0d790a6eeb38606519b27389abddc05d"
DOWNLOAD="https://github.com/cloudfs/ftp-cloudfs/archive/0.34.tar.gz"
MD5SUM="f49d59b4fec7a23660fe4b311cceb5c7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pyftpdlib python-daemon python-memcached python-swiftclient"