diff options
author | Johannes Schoepfer <slackbuilds[at]schoepfer[dot]info> | 2017-05-28 20:33:33 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-05-28 20:33:33 +0100 |
commit | ce0925457bf0e05473394c34a5824b39ad9546d8 (patch) | |
tree | 787f28f9e083f62493e2c5b54e1cf2fc3102835b /network | |
parent | 2676d3d37b24990a0b60fa0572f476878ae911b5 (diff) | |
download | slackbuilds-ce0925457bf0e05473394c34a5824b39ad9546d8.tar.gz |
network/radicale: Updated for version 1.1.3.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/radicale/README | 2 | ||||
-rw-r--r-- | network/radicale/doinst.sh | 43 | ||||
-rw-r--r-- | network/radicale/radicale.SlackBuild | 2 | ||||
-rw-r--r-- | network/radicale/radicale.info | 6 |
4 files changed, 27 insertions, 26 deletions
diff --git a/network/radicale/README b/network/radicale/README index a8fe67c703..be71661fe3 100644 --- a/network/radicale/README +++ b/network/radicale/README @@ -4,4 +4,4 @@ The Radicale Project is mainly a calendar server, giving local and distant accessess for reading, creating, modifying and deleting multiple calendars through a simplified CalDAV protocol. Data can be encrypted by SSL, and their access can be restricted thanks to -different authentication methods. +different authentication methods. diff --git a/network/radicale/doinst.sh b/network/radicale/doinst.sh index a2a966fe7c..969cf1a0f8 100644 --- a/network/radicale/doinst.sh +++ b/network/radicale/doinst.sh @@ -1,26 +1,27 @@ 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... + 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... } -preserve_perms () { -NEW="$1" -OLD="$(dirname $NEW)/$(basename $NEW .new)" -if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW -fi -config $NEW + +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW } -for i in etc/radicale/config.new etc/radicale/logging.new -do - preserve_perms $i +for i in etc/radicale/config.new etc/radicale/logging.new; do + preserve_perms $i done diff --git a/network/radicale/radicale.SlackBuild b/network/radicale/radicale.SlackBuild index 7c46e5d240..2f7557fbfc 100644 --- a/network/radicale/radicale.SlackBuild +++ b/network/radicale/radicale.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=radicale -VERSION=${VERSION:-1.1.2} +VERSION=${VERSION:-1.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} diff --git a/network/radicale/radicale.info b/network/radicale/radicale.info index 9849dc00c6..6ffb946cd3 100644 --- a/network/radicale/radicale.info +++ b/network/radicale/radicale.info @@ -1,8 +1,8 @@ PRGNAM="radicale" -VERSION="1.1.2" +VERSION="1.1.3" HOMEPAGE="http://radicale.org/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/R/Radicale/Radicale-1.1.2.tar.gz" -MD5SUM="4d4816adf10b269072abea286381e65c" +DOWNLOAD="https://files.pythonhosted.org/packages/source/R/Radicale/Radicale-1.1.3.tar.gz" +MD5SUM="edc5e207e33c9f157643f0a9b216eb5f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="mod_wsgi" |