summaryrefslogtreecommitdiff
path: root/network/proxychains/doinst.sh
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2014-11-27 01:12:59 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-11-27 01:12:59 +0700
commita24af07f3fdcbf29ac2be9cc6853cee4e66e815d (patch)
treeb0caf1eeb4a7133e03e76fde7709e183c6fba07b /network/proxychains/doinst.sh
parent01d8ce840e0f71fb13cf26cb13dfe89da261aa49 (diff)
downloadslackbuilds-a24af07f3fdcbf29ac2be9cc6853cee4e66e815d.tar.gz
network/proxychains: Updated for version 4.8.1 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/proxychains/doinst.sh')
-rw-r--r--network/proxychains/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/proxychains/doinst.sh b/network/proxychains/doinst.sh
new file mode 100644
index 0000000000..102610fb44
--- /dev/null
+++ b/network/proxychains/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/proxychains.conf.new