mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
network/ftp-cloudfs: Updated for version 0.34.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4ca86bf38c
commit
a192cacb4a
3 changed files with 23 additions and 4 deletions
14
network/ftp-cloudfs/doinst.sh
Normal file
14
network/ftp-cloudfs/doinst.sh
Normal 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
|
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue