X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Fswat.postinst;fp=debian%2Fswat.postinst;h=1d9f244335c0aef8f8ed2a387b23538049b5217a;hb=6bca4ca307d55b6dc888e56cee47aebcddbce786;hp=0000000000000000000000000000000000000000;hpb=7fd70fa738b636089bcc6c961aa3eaa02f20dda2;p=samba diff --git a/debian/swat.postinst b/debian/swat.postinst new file mode 100644 index 0000000..1d9f244 --- /dev/null +++ b/debian/swat.postinst @@ -0,0 +1,22 @@ +#!/bin/sh -e + +action="$1" +oldversion="$2" + +# Needed to run the .config script even if we don't use debconf' +. /usr/share/debconf/confmodule + +# Set up swat, turned off by default. +update-inetd --group OTHER --add \ + 'swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat' + +# Fix symlinks +for dir in manpages Samba3-ByExample Samba3-Developers-Guide Samba3-HOWTO; do + if [ ! -L /usr/share/samba/swat/help/$dir ] && \ + dpkg --compare-versions "$oldversion" lt-nl 3.0.20b-3; then + rm -rf /usr/share/samba/swat/help/$dir + ln -s ../../../doc/samba-doc/htmldocs/$dir /usr/share/samba/swat/help/$dir + fi +done + +#DEBHELPER#