diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2015-08-28 14:03:55 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-08-28 22:14:05 +0700 |
commit | a192cacb4a5ad14bbffc128316dc478b2796d354 (patch) | |
tree | 5b5c0efafef573b5ad67326d548ef47a4000ecbe /network | |
parent | 4ca86bf38c1ecae5fdac7f01784c4d46505308d5 (diff) | |
download | slackbuilds-a192cacb4a5ad14bbffc128316dc478b2796d354.tar.gz slackbuilds-a192cacb4a5ad14bbffc128316dc478b2796d354.tar.xz |
network/ftp-cloudfs: Updated for version 0.34.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/ftp-cloudfs/doinst.sh | 14 | ||||
-rw-r--r-- | network/ftp-cloudfs/ftp-cloudfs.SlackBuild | 7 | ||||
-rw-r--r-- | network/ftp-cloudfs/ftp-cloudfs.info | 6 |
3 files changed, 23 insertions, 4 deletions
diff --git a/network/ftp-cloudfs/doinst.sh b/network/ftp-cloudfs/doinst.sh new file mode 100644 index 0000000000..d7adcd9842 --- /dev/null +++ b/network/ftp-cloudfs/doinst.sh @@ -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 diff --git a/network/ftp-cloudfs/ftp-cloudfs.SlackBuild b/network/ftp-cloudfs/ftp-cloudfs.SlackBuild index 542e33ca5a..6ba5ad19c5 100644 --- a/network/ftp-cloudfs/ftp-cloudfs.SlackBuild +++ b/network/ftp-cloudfs/ftp-cloudfs.SlackBuild @@ -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} diff --git a/network/ftp-cloudfs/ftp-cloudfs.info b/network/ftp-cloudfs/ftp-cloudfs.info index b9b260ad4a..950eea8196 100644 --- a/network/ftp-cloudfs/ftp-cloudfs.info +++ b/network/ftp-cloudfs/ftp-cloudfs.info @@ -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" |