summaryrefslogtreecommitdiff
path: root/network/cicb/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-23 21:22:38 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-30 07:00:17 +0700
commite27dc891e21a90e8a1587d8a3312b5d6316e9ee2 (patch)
tree6af2593030cce7678ab8ec6a32c0e8c1259e533d /network/cicb/doinst.sh
parenteef1c0b14b47ab9c22d270b2d55b27a67e778b2e (diff)
downloadslackbuilds-e27dc891e21a90e8a1587d8a3312b5d6316e9ee2.tar.gz
network/cicb: Updated for version 5.2.0b1+git20170501.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/cicb/doinst.sh')
-rw-r--r--network/cicb/doinst.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/network/cicb/doinst.sh b/network/cicb/doinst.sh
new file mode 100644
index 0000000000..e20b1b4f4b
--- /dev/null
+++ b/network/cicb/doinst.sh
@@ -0,0 +1,12 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config usr/share/cicb/system.icbrc.new
+config usr/share/cicb/icbserverdb.new