sync with 2.0 tree
authorHerb Lewis <herb@samba.org>
Mon, 7 Dec 1998 20:27:01 +0000 (20:27 +0000)
committerHerb Lewis <herb@samba.org>
Mon, 7 Dec 1998 20:27:01 +0000 (20:27 +0000)
packaging/SGI/idb.pl
packaging/SGI/inst.msg [new file with mode: 0755]
packaging/SGI/samba.rc

index 08c95e2ed39a0cb4f38b041220c83f85f9dfeba2..cc4462727315bc9188da78f150fdd2343b561774 100755 (executable)
@@ -115,7 +115,7 @@ while(@bins) {
       print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
     }
     elsif ($filename eq "swat") {
       print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
     }
     elsif ($filename eq "swat") {
-      print IDB "f 4755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip preop(/etc/killall smbd nmbd) exitop(/usr/samba/scripts/startswat.sh) removeop(/usr/samba/scripts/removeswat.sh)\n";
+      print IDB "f 4755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n";
     }
     elsif ($filename eq "sambalp") {
       print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base nostrip\n";
     }
     elsif ($filename eq "sambalp") {
       print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base nostrip\n";
@@ -159,6 +159,7 @@ print IDB "f 0600 root sys usr/samba/private/smbpasswd packaging/SGI/smbpasswd s
 
 print IDB "d 0755 root sys usr/samba/scripts packaging/SGI samba.src.samba\n";
 print IDB "f 0755 root sys usr/samba/scripts/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
 
 print IDB "d 0755 root sys usr/samba/scripts packaging/SGI samba.src.samba\n";
 print IDB "f 0755 root sys usr/samba/scripts/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
+print IDB "f 0755 root sys usr/samba/scripts/inst.msg packaging/SGI/inst.msg samba.sw.base exitop(\"chroot \$rbase /usr/samba/scripts/inst.msg\")\n";
 print IDB "f 0755 root sys usr/samba/scripts/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
 print IDB "f 0755 root sys usr/samba/scripts/removeswat.sh packaging/SGI/removeswat.sh samba.sw.base\n";
 print IDB "f 0755 root sys usr/samba/scripts/startswat.sh packaging/SGI/startswat.sh samba.sw.base\n";
 print IDB "f 0755 root sys usr/samba/scripts/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
 print IDB "f 0755 root sys usr/samba/scripts/removeswat.sh packaging/SGI/removeswat.sh samba.sw.base\n";
 print IDB "f 0755 root sys usr/samba/scripts/startswat.sh packaging/SGI/startswat.sh samba.sw.base\n";
diff --git a/packaging/SGI/inst.msg b/packaging/SGI/inst.msg
new file mode 100755 (executable)
index 0000000..c613a09
--- /dev/null
@@ -0,0 +1,31 @@
+#! /bin/sh
+
+echo
+echo
+echo Samba for IRIX has been installed on your system.
+echo 
+echo Your /etc/services and /etc/inetd.conf files have
+echo been modified to automatically start the
+echo Samba Web Administration Tool \(SWAT\) when you 
+echo connect with a web browser to
+echo 
+echo http://`hostname`:901
+echo 
+echo The original versions of /etc/services and
+echo /etc/inetd.conf were saved echo with a .O extension.
+echo
+echo If you do not wish SWAT to be enabled you may
+echo run the script /usr/samba/scripts/removeswat.sh
+echo which will remove the entries from /etc/services
+echo and /etc/inetd.conf
+echo 
+echo Please review your configuration settings by
+echo connecting to SWAT or editing the file
+echo /usr/samba/lib/smb.conf and then starting
+echo the smbd and nmbd daemons to complete the 
+echo installation. You may start the daemons from
+echo the SWAT "Status" page or by executing the
+echo following command as root.
+echo 
+echo /etc/init.d/samba start
+echo
index 121b3400a388c2846cb715cb0b8ab3beae03b542..bc0f90ee77fefaab94f03e37805c44e3087a682e 100644 (file)
@@ -35,6 +35,7 @@ case $1 in
 'stop')
        $ECHO "Stopping Samba Servers."
        $KILLALL -15 smbd nmbd
 'stop')
        $ECHO "Stopping Samba Servers."
        $KILLALL -15 smbd nmbd
+       exit 0
        ;;
 *)
        echo "usage: /etc/init.d/samba {start|stop}"
        ;;
 *)
        echo "usage: /etc/init.d/samba {start|stop}"