summaryrefslogtreecommitdiffstats
path: root/system/geoclue2/doinst.sh
diff options
context:
space:
mode:
author Aaditya Bagga2017-06-14 19:09:49 +0200
committer Willy Sudiarto Raharjo2017-06-15 13:35:59 +0200
commitb07e8752504542a1b892eed5963451a62f602007 (patch)
treeb6cad3a1a6e21820db00050a2044a6c1f4e2b49b /system/geoclue2/doinst.sh
parent69cf554566a68aa7990a9e49472281f4110db884 (diff)
downloadslackbuilds-b07e8752504542a1b892eed5963451a62f602007.tar.gz
system/geoclue2: Added (location information service).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/geoclue2/doinst.sh')
-rw-r--r--system/geoclue2/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/geoclue2/doinst.sh b/system/geoclue2/doinst.sh
new file mode 100644
index 0000000000..88ae88eb2d
--- /dev/null
+++ b/system/geoclue2/doinst.sh
@@ -0,0 +1,18 @@
+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/geoclue/geoclue.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi