1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Added Example binary packaging instructions.

(This used to be commit 4c60314b05)
This commit is contained in:
John Terpstra 1998-11-16 12:21:02 +00:00
parent 7ce840a0ed
commit 7491c291ff
8 changed files with 172 additions and 0 deletions

View File

@ -0,0 +1,41 @@
Copyright (C) 1997-1998 Samba-Team
E-mail: samba-binaries@samba.anu.edu.au
Subject: Installation Instructions for SuperNewOS X.X
--------------------------------------------------------
1) cd /
2) tar xvf [path-to-samba-package]/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: New Users Must Read This
-----------------------------------
Above ALL else, read the smb.conf man pages _AND_ all text documentation.
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.

View File

@ -0,0 +1 @@
# Month, WeekDay, Date, Year, PreparerCity, Country

View File

@ -0,0 +1 @@
Packager: John Doe <doej@somewhere.org>

View File

@ -0,0 +1,16 @@
The package building files should be located in a
directory called: samba-X.X.X
Where X.X.X is the version ID.
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.

52
packaging/Example/package-prep Executable file
View File

@ -0,0 +1,52 @@
#!/bin/sh
# Extract the skeleton directory structure into which samba will be installed.
tar xvf skeleton.tar
# Now link the skeleton directory structure into the final install tree.
( 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; )
# Unpack the master source tarball
gunzip samba-X.X.X.tar.gz
tar xvf samba-X.X.X.tar
# Now build the binary files
cd samba-X.X.X/source
./configure
make
make install
# Install into the packaging tree that full reflects the final install tree
cd $NOWDIR/usr/local/samba
cp -pr man ../
rm -rf man
cd $NOWDIR
# Create the package tarball
tar cvf install.tar usr var
# Clean up original sources preserving all configured files
# Note: This will allow installers to check build options
cd samba-X.X.X/source/bin
rm -f *
cd ..
make clean
cd ../..
tar cvf samba-X.X.X.tar samba-X.X.X
rm -rf samba-X.X.X
rm -rf usr var
cd ..
tar cvf samba-X.X.X-OS-Version-CPU.tar samba-X.X.X
gzip samba-X.X.X-OS-Version-CPU.tar
# We now have the distribution package, now restore our runtime system
cd samba-X.X.X
tar xcf install.tar
# Please test operation before shipping the binary distribution package
# to the samba-team.

34
packaging/Example/samba.init Executable file
View File

@ -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

27
packaging/Example/setup.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# Note: This file MUST be edited to suit the target OS environment.
#
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]

Binary file not shown.