diff options
Diffstat (limited to 'network/ftp-cloudfs')
-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" |