Added first cut of the new packaging scripts for Digital Unix.
authorJohn Terpstra <jht@samba.org>
Sat, 14 Nov 1998 13:01:34 +0000 (13:01 +0000)
committerJohn Terpstra <jht@samba.org>
Sat, 14 Nov 1998 13:01:34 +0000 (13:01 +0000)
Note: This will be extended for all other OS's so that it can be
maintained by the samba release scripts.
(This used to be commit 0f98a2fd58aee1dac4d0f4098a2e690dfaf5ba27)

packaging/Digital/Instructions [new file with mode: 0644]
packaging/Digital/PackageDate [new file with mode: 0644]
packaging/Digital/Packager [new file with mode: 0644]
packaging/Digital/Packaging-instructions [new file with mode: 0644]
packaging/Digital/package-prep [new file with mode: 0755]
packaging/Digital/samba.init [new file with mode: 0755]
packaging/Digital/setup.sh [new file with mode: 0755]
packaging/Digital/skeleton.tar [new file with mode: 0644]

diff --git a/packaging/Digital/Instructions b/packaging/Digital/Instructions
new file mode 100644 (file)
index 0000000..7cc1f49
--- /dev/null
@@ -0,0 +1,55 @@
+Copyright (C) 1997-1998 John H Terpstra
+E-mail:        jht@samba.anu.edu.au
+
+Subject: Installation Instructions for Digital Unix v4.0
+--------------------------------------------------------
+
+1) cd /
+2) tar xvf [path-to-]/install.tar
+3) cd /usr/local/samba/lib
+4) vi smb.conf
+
+Now modify smb.conf to reflect your site needs.
+
+5) samba start
+
+To stop samba:
+
+       samba stop
+
+You could install samba to run from the system start-up scripts
+(recommended) by running  ./setup.sh
+
+Start / Stop Samba as follows:-
+
+       samba [start | stop]
+
+
+Subject: Encrypted password support
+-----------------------------------
+
+Encrypted password support is quite distinct from Digital Enhanced
+Security Mode operation of the Unix system. Encrypted passwords
+applies to the SMB connections serviced by this machine, not to
+local user logons. Local user logons are services by the security
+system chosen by your system administrator.
+
+Digital Unix knows of either BASIC or ENHANCED security mode
+operation. BASIC mode uses the traditional /etc/passwd database
+containing Unix crypted passwords. ENHANCED mode uses a TCB database.
+Samba-1.9.18p10 has been modified so that if OSF1_ENH_SEC is defined
+at compile time then a password check will be made first using ENHANCED
+mode and if that fails then it will try BASIC mode. This is the case
+for this binary distribution - you need not recompile. In other
+words: this binary distribution will work with either security mode.
+
+To enable SMB encrypted password support do the following:
+
+1) Put /usr/local/samba/bin in your PATH
+2) Edit /usr/local/samba/lib/smb.conf and uncomment the
+       line "encrypt passwd = yes"
+3) Execute: smbpasswd -a "username" "password"
+
+The above will create your /usr/local/samba/private/smbpasswd file
+in which will be the NT and LanMAN hashed passwords.
+
diff --git a/packaging/Digital/PackageDate b/packaging/Digital/PackageDate
new file mode 100644 (file)
index 0000000..360e414
--- /dev/null
@@ -0,0 +1 @@
+November 14, 1998, Australia/Sydney
diff --git a/packaging/Digital/Packager b/packaging/Digital/Packager
new file mode 100644 (file)
index 0000000..4c08c2f
--- /dev/null
@@ -0,0 +1,2 @@
+Date: November 14, 1998
+Packager: John H Terpstra <jht@samba.anu.edu.au>
diff --git a/packaging/Digital/Packaging-instructions b/packaging/Digital/Packaging-instructions
new file mode 100644 (file)
index 0000000..77eafd3
--- /dev/null
@@ -0,0 +1,14 @@
+The package building files should be located in a directory
+called: samba-2.0.0
+
+Step   Directions
+====   ============================================
+1.     Copy the samba distribution tarball into the packaging directory
+2.     Make sure you have a installed on your system the GNU gzip/gunzip files
+3.     Edit "package-prep" script as required
+4.     Run "package-prep"
+
+If all goes well, you should now have a usable distribution package.
+
+Note:  Update the Instructions file as required.
+
diff --git a/packaging/Digital/package-prep b/packaging/Digital/package-prep
new file mode 100755 (executable)
index 0000000..77bacd0
--- /dev/null
@@ -0,0 +1,31 @@
+tar xvf skeleton.tar
+( cd /usr/local;
+       mv man man.orig;
+       mv samba samba.orig;
+       DIRNOW=`pwd1`;
+               ln -sf $NOWDIR/usr/local/man man;
+               ln -sf $NOWDIR/usr/local/samba samba; )
+gunzip samba-2.0.0.tar.gz
+tar xvf samba-2.0.0.tar
+cd samba-2.0.0/source
+./configure
+make
+make install
+cd $NOWDIR/usr/local/samba
+cp -pr man ../
+rm -rf man
+cd $NOWDIR
+tar cvf install.tar usr var
+cd samba-2.0.0/source/bin
+rm -f *
+cd ..
+make clean
+cd ../..
+tar cvf samba-2.0.0.tar samba-2.0.0
+rm -rf samba-2.0.0
+rm -rf usr var
+cd ..
+find samba-2.0.0 -print | cpio -o > samba-2.0.0-OSF1-v4.0-alpha.cpio
+gzip samba-2.0.0-OSF1-v4.0-alpha.cpio
+cd samba-2.0.0
+tar xcf install.tar
diff --git a/packaging/Digital/samba.init b/packaging/Digital/samba.init
new file mode 100755 (executable)
index 0000000..c1d605c
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+if [ ! -d /usr/bin ]; then
+       echo "The /usr file system is not mounted."
+        exit 1
+fi
+
+killproc() {         
+        pid=`/bin/ps ax | grep -w $1 | sed -e 's/^  *//' -e 's/ .*//'`
+       echo "Stopping $1 now."
+        [ "$pid" != "" ] && kill -15 $pid
+       echo $pid
+}
+
+
+# Start/stop processes required for samba server
+
+case "$1" in
+
+       'start')
+          echo "Starting Samba"
+          /usr/local/samba/sbin/smbd
+          /usr/local/samba/sbin/nmbd
+          echo "Done."
+          ;;
+       'stop')
+          killproc smbd
+          killproc nmbd
+          ;;
+       *)
+          echo "Usage: /sbin/init.d/samba.init [ start | stop ]"
+          ;;
+esac
+exit 0
diff --git a/packaging/Digital/setup.sh b/packaging/Digital/setup.sh
new file mode 100755 (executable)
index 0000000..81b0487
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+echo "Setting up for SWAT - The Samba Web Administration Tool"
+
+echo 'swat             901/tcp' >> /etc/services
+uniq /etc/services /tmp/tempserv
+cp /tmp/tempserv /etc/services
+rm /tmp/tempserv
+echo 'swat     stream  tcp     nowait.400      root    /usr/local/samba/bin/swat swat' >> /etc/inetd.conf
+uniq /etc/inetd.conf /tmp/tempinetd
+cp /tmp/tempinetd /etc/inetd.conf
+rm /tmp/tempinetd
+echo "Creating Symbolic Links for Start up Scripts"
+cp -f samba.init /sbin/init.d
+chown bin.bin /sbin/init.d/samba.init
+chmod 750 /sbin/init.d/samba.init
+ln -sf /sbin/init.d/samba.init /sbin/rc0.d/K01samba
+ln -sf /sbin/init.d/samba.init /sbin/rc2.d/K91samba
+ln -sf /sbin/init.d/samba.init /sbin/rc3.d/S91samba
+echo "Done. Now settting up samba command"
+ln /sbin/init.d/samba.init /sbin/samba
+echo "Done."
+echo "To start / stop samba:"
+echo " execute:  samba [start | stop]
diff --git a/packaging/Digital/skeleton.tar b/packaging/Digital/skeleton.tar
new file mode 100644 (file)
index 0000000..3a57413
Binary files /dev/null and b/packaging/Digital/skeleton.tar differ