From 8daa83a594a2e98f39d764422bfbdbc62c9efd44 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 19:20:00 +0200 Subject: Adding upstream version 2:4.20.0+dfsg. Signed-off-by: Daniel Baumann --- packaging/Example/Instructions | 41 ++++++++++++++++++++++++ packaging/Example/PackageDate | 1 + packaging/Example/Packager | 1 + packaging/Example/Packaging-instructions | 16 ++++++++++ packaging/Example/package-prep | 53 +++++++++++++++++++++++++++++++ packaging/Example/samba.init | 34 ++++++++++++++++++++ packaging/Example/skeleton.tar | Bin 0 -> 30720 bytes 7 files changed, 146 insertions(+) create mode 100644 packaging/Example/Instructions create mode 100644 packaging/Example/PackageDate create mode 100644 packaging/Example/Packager create mode 100644 packaging/Example/Packaging-instructions create mode 100755 packaging/Example/package-prep create mode 100755 packaging/Example/samba.init create mode 100644 packaging/Example/skeleton.tar (limited to 'packaging/Example') diff --git a/packaging/Example/Instructions b/packaging/Example/Instructions new file mode 100644 index 0000000..02ffa7b --- /dev/null +++ b/packaging/Example/Instructions @@ -0,0 +1,41 @@ +Copyright (C) 1997-1998 Samba-Team +E-mail: samba-binaries@samba.org + +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. + diff --git a/packaging/Example/PackageDate b/packaging/Example/PackageDate new file mode 100644 index 0000000..95cbb09 --- /dev/null +++ b/packaging/Example/PackageDate @@ -0,0 +1 @@ +# Month, WeekDay, Date, Year, PreparerCity, Country diff --git a/packaging/Example/Packager b/packaging/Example/Packager new file mode 100644 index 0000000..f5db3f8 --- /dev/null +++ b/packaging/Example/Packager @@ -0,0 +1 @@ +Packager: John Doe diff --git a/packaging/Example/Packaging-instructions b/packaging/Example/Packaging-instructions new file mode 100644 index 0000000..b598fd6 --- /dev/null +++ b/packaging/Example/Packaging-instructions @@ -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. + diff --git a/packaging/Example/package-prep b/packaging/Example/package-prep new file mode 100755 index 0000000..ae09638 --- /dev/null +++ b/packaging/Example/package-prep @@ -0,0 +1,53 @@ +#!/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 + NOWDIR=$(pwd) + 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 +rm -f ../source/bin/* +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. diff --git a/packaging/Example/samba.init b/packaging/Example/samba.init new file mode 100755 index 0000000..c1d605c --- /dev/null +++ b/packaging/Example/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/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/Example/skeleton.tar b/packaging/Example/skeleton.tar new file mode 100644 index 0000000..92598d0 Binary files /dev/null and b/packaging/Example/skeleton.tar differ -- cgit v1.2.3