# rclone/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created as follows. Internet access and external websites were required. Warnings: 1.1. Similar procedures might or might not work in the future. 1.2. The COMMIT and YYMMDD settings would need to be updated appropri- ately. 1.3. This script and its descendants might take a while to run. Possi- bly 20 minutes or longer. #!/bin/bash -e # If you'd like to base the package on a particular "git" commit, set # COMMIT in the settings block further down to the appropriate "git" # hash. For example: # # COMMIT=bd1fbcae12f795f498c7ace6af9d9cc218102094 # # A release tag such as the following should also work: # COMMIT=v1.68.2 COMMIT=v1.68.2 YYMMDD=241115 DIR=rclone-$YYMMDD HERE=`pwd` rm -fr $DIR $DIR.tar.bz2 mkdir $DIR cd $DIR export HOME=`pwd` export GOPATH=$HOME/go GOPROG=$HOME/rclone/rclone # This block should be executed [in un-commented form] by the system # startup code: # # git config --global http.version HTTP/1.1 # git config --global http.postBuffer 524288000 # git config --global http.lowSpeedLimit 0 # git config --global http.lowSpeedTime 999999 echo git clone https://github.com/rclone/rclone.git --depth 1 git clone https://github.com/rclone/rclone.git --depth 1 cd rclone echo git fetch --unshallow git fetch --unshallow if [ "@$COMMIT" == "@" ]; then echo Using latest git commit else echo Using git commit $COMMIT git checkout $COMMIT fi sed -e 's@goftp.io/server v1.0.0-rc1@goftp.io/server v0.4.1@' \ -i go.mod go mod tidy make -j4 rm -fr .git* cd $HOME rm -fr $GOPATH/bin/* rm -fr $GOPROG rm -fr .cache rm -fr `find . -name \*.obj` rm -fr `find . -type d -name testdata` rm -fr `find . -type d -name vcs` cd $HERE tar jcf $DIR.tar.bz2 $DIR/ rm -fr $DIR ls -l $DIR.tar.bz2 #--------------------------------------------------------------------- [buildtimes] 00.01 hours (or 000.78 minutes) - ThinkPad W530 i7 4x2 32GB RAM 00.01 hours (or 000.87 minutes) - OpenVZ 1x4 CPU 4GB RAM #--------------------------------------------------------------------- [settings] altpkg = yes configure = none exepack = yes strip = yes tmpsize = 1495M #--------------------------------------------------------------------- [depends] go openssl # May not be needed #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin mkdir -p $BINDIR export HOME=`pwd` export GOPATH=$HOME/go GOPROG=$HOME/rclone/rclone cd rclone make mv $GOPROG $BINDIR/ #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = tbd url_tarball = special # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 210721 Added package. Started with 210721. 210923 Updated to 210923 211002 Updated to 211002 211101 Updated to 211101 - 1.57.0 release 220503 Updated to 220503 - shortly after 1.58.1 release 220620 Updated to 220620 220710 Updated to 220710 - 1.59.0 release 220809 Updated to 220809 - 1.59.1 release 220815 Updated to 220815 - 1.59.2 release 221230 Updated to 221230 - 1.61.1 release 230317 Updated to 230317 - 1.62.2 release 230730 Updated to 230730 231022 Updated to 231022 - 1.64.2 release 240121 Updated to 240121 - 1.65.1 release 240124 Updated to 240124 - 1.65.2 release 240310 Updated to 240130 - 1.66.0 release 240624 Updated to 240624 - 1.67.0 release 240908 Updated to 240908 - 1.68.0 release 240927 Updated to 240927 - 1.68.1 release 241115 Updated to 241115 - 1.68.2 release