summaryrefslogtreecommitdiff
path: root/swat.postinst
diff options
context:
space:
mode:
authoreparis <eparis@alioth.debian.org>2002-01-22 02:52:33 +0000
committereparis <eparis@alioth.debian.org>2002-01-22 02:52:33 +0000
commit1e87d5637faefdfe34bf3d1e659e12cd28c8b7b3 (patch)
treeca5dcd146f4161c8c569d53b388c7be4b5654ed7 /swat.postinst
parent65856bd22444811422a5a7afadf020a76ed39aaa (diff)
downloadsamba-1e87d5637faefdfe34bf3d1e659e12cd28c8b7b3.tar.gz
Initial revision
git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk@2 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'swat.postinst')
-rw-r--r--swat.postinst23
1 files changed, 23 insertions, 0 deletions
diff --git a/swat.postinst b/swat.postinst
new file mode 100644
index 0000000000..c5ab489044
--- /dev/null
+++ b/swat.postinst
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+case "$1" in
+ configure)
+ ;;
+ abort-upgrade|abort-remove|abort-deconfigure)
+ exit 0
+ ;;
+ *)
+ echo "$0: Unknown action \"$1\""
+ exit 0
+ ;;
+esac
+
+# Set up swat, turned off by default.
+update-inetd --group OTHER --add \
+ '#<off># swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat'
+
+if [ -d /usr/doc -a ! -e /usr/doc/swat -a -d /usr/share/doc/swat ]; then
+ ln -sf ../share/doc/swat /usr/doc/swat
+fi