summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>1999-01-16 09:41:31 +0000
committerJohn Terpstra <jht@samba.org>1999-01-16 09:41:31 +0000
commita2eb3d86d82fd411652523131e21f3ec6c0ff08b (patch)
treeb7fb70d8a318717c2115ef8365eaf5d374bbaed2 /packaging
parent229822a164bc1fd89c21c3e02ec84920b13c0581 (diff)
downloadsamba-a2eb3d86d82fd411652523131e21f3ec6c0ff08b.tar.gz
samba-a2eb3d86d82fd411652523131e21f3ec6c0ff08b.tar.xz
samba-a2eb3d86d82fd411652523131e21f3ec6c0ff08b.zip
Added binary packaging scripts for solaris x86.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/Solaris/x86/Instructions44
-rw-r--r--packaging/Solaris/x86/PackageDate1
-rw-r--r--packaging/Solaris/x86/Packager2
-rw-r--r--packaging/Solaris/x86/Packaging-instructions14
-rwxr-xr-xpackaging/Solaris/x86/package-prep32
-rwxr-xr-xpackaging/Solaris/x86/samba.init34
-rwxr-xr-xpackaging/Solaris/x86/setup.sh24
-rw-r--r--packaging/Solaris/x86/skeleton.tarbin0 -> 26112 bytes
8 files changed, 151 insertions, 0 deletions
diff --git a/packaging/Solaris/x86/Instructions b/packaging/Solaris/x86/Instructions
new file mode 100644
index 00000000000..73fbcc2884f
--- /dev/null
+++ b/packaging/Solaris/x86/Instructions
@@ -0,0 +1,44 @@
+Copyright (C) 1997-1998 John H Terpstra
+E-mail: jht@samba.org
+
+Subject: Installation Instructions for Sun Solaris x86
+--------------------------------------------------------
+
+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 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.
+
+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/Solaris/x86/PackageDate b/packaging/Solaris/x86/PackageDate
new file mode 100644
index 00000000000..eb384576a41
--- /dev/null
+++ b/packaging/Solaris/x86/PackageDate
@@ -0,0 +1 @@
+January 15, 1999, Sydney, Australia
diff --git a/packaging/Solaris/x86/Packager b/packaging/Solaris/x86/Packager
new file mode 100644
index 00000000000..569280dc796
--- /dev/null
+++ b/packaging/Solaris/x86/Packager
@@ -0,0 +1,2 @@
+Date: January 15, 1999
+Packager: John H Terpstra <jht@samba.org>
diff --git a/packaging/Solaris/x86/Packaging-instructions b/packaging/Solaris/x86/Packaging-instructions
new file mode 100644
index 00000000000..77eafd312f5
--- /dev/null
+++ b/packaging/Solaris/x86/Packaging-instructions
@@ -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/Solaris/x86/package-prep b/packaging/Solaris/x86/package-prep
new file mode 100755
index 00000000000..0b67d906dc5
--- /dev/null
+++ b/packaging/Solaris/x86/package-prep
@@ -0,0 +1,32 @@
+tar xvf skeleton.tar
+NOWDIR=`pwd`;
+( cd /usr/local;
+ if [ -x man ]; then mv man man.orig; fi
+ if [ -x samba ]; then mv samba samba.orig; fi
+ ln -sf $NOWDIR/usr/local/man man;
+ ln -sf $NOWDIR/usr/local/samba samba; )
+exit 0
+gunzip samba-2.0.0.tar.gz
+tar xvf samba-2.0.0.tar
+cd samba-2.0.0/source
+./configure --with-smbwrapper
+make all smbwrapper
+make install
+exit 0
+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
+rm -f ../source/bin/*
+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-sol-2.6-x86.cpio
+gzip samba-2.0.0-sol-2.6-x86.cpio
+cd samba-2.0.0
+tar xvf install.tar
diff --git a/packaging/Solaris/x86/samba.init b/packaging/Solaris/x86/samba.init
new file mode 100755
index 00000000000..6a742440890
--- /dev/null
+++ b/packaging/Solaris/x86/samba.init
@@ -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/bin/smbd
+ /usr/local/samba/bin/nmbd
+ echo "Done."
+ ;;
+ 'stop')
+ killproc smbd
+ killproc nmbd
+ ;;
+ *)
+ echo "Usage: /sbin/init.d/samba.init [ start | stop ]"
+ ;;
+esac
+exit 0
diff --git a/packaging/Solaris/x86/setup.sh b/packaging/Solaris/x86/setup.sh
new file mode 100755
index 00000000000..5bce22e1237
--- /dev/null
+++ b/packaging/Solaris/x86/setup.sh
@@ -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 /etc/init.d/samba.init /etc/rc0.d/K01samba
+ln -sf /etc/init.d/samba.init /etc/rc2.d/K91samba
+ln -sf /etc/init.d/samba.init /etc/rc3.d/S91samba
+echo "Done. Now settting up samba command"
+ln /etc/init.d/samba.init /sbin/samba
+echo "Done."
+echo "To start / stop samba:"
+echo " execute: samba [start | stop]
diff --git a/packaging/Solaris/x86/skeleton.tar b/packaging/Solaris/x86/skeleton.tar
new file mode 100644
index 00000000000..304060b1cf4
--- /dev/null
+++ b/packaging/Solaris/x86/skeleton.tar
Binary files differ