summaryrefslogtreecommitdiff
path: root/network/gophernicus/doinst.sh
diff options
context:
space:
mode:
authorFridrich von Stauffenberg <cancellor2@gmail.com>2012-12-10 12:36:50 +0100
committerdsomero <xgizzmo@slackbuilds.org>2012-12-11 16:23:05 -0500
commita842d4dcdb4d59e0f72892b0cde77df70d5f98e8 (patch)
tree02e40dbda165581efa49d5103a038902e0f1be07 /network/gophernicus/doinst.sh
parent84fdbc022238f7aacf6573d61374ba5915ccbc64 (diff)
downloadslackbuilds-a842d4dcdb4d59e0f72892b0cde77df70d5f98e8.tar.gz
network/gophernicus: Added (gopher server).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/gophernicus/doinst.sh')
-rw-r--r--network/gophernicus/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/gophernicus/doinst.sh b/network/gophernicus/doinst.sh
new file mode 100644
index 0000000000..5d65187683
--- /dev/null
+++ b/network/gophernicus/doinst.sh
@@ -0,0 +1,14 @@
+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
+}
+
+if [ -f etc/xinetd.d/gophernicus.new ]; then
+ config etc/xinetd.d/gophernicus.new
+fi
+