summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-01 23:22:42 +0000
committerJeremy Allison <jra@samba.org>2002-02-01 23:22:42 +0000
commit7d8f52ac8f2d79cf9694bb1774f55b4ccdca5e39 (patch)
tree2d9d5b3138b57420e1a88b9a52d466b410d6b575
parent7a40b40ebf4a5fe744d89a07408cc62539e3e558 (diff)
downloadsamba-7d8f52ac8f2d79cf9694bb1774f55b4ccdca5e39.tar.gz
samba-7d8f52ac8f2d79cf9694bb1774f55b4ccdca5e39.tar.xz
samba-7d8f52ac8f2d79cf9694bb1774f55b4ccdca5e39.zip
Sync for release.
Jeremy.
-rw-r--r--packaging/Caldera/OpenServer/docview.html84
-rwxr-xr-xpackaging/Caldera/OpenServer/initconfig254
-rwxr-xr-xpackaging/Caldera/OpenServer/pkg/cntl/cqs136
-rw-r--r--packaging/Caldera/OpenServer/pkg/input/SambaDOC.pkg1380
-rw-r--r--packaging/Caldera/OpenServer/pkg/input/SambaSWAT.pkg417
-rw-r--r--packaging/Caldera/OpenServer/samba-2.2.3-osr5.patch33
-rwxr-xr-xpackaging/Caldera/OpenServer/smb.mkdev47
-rw-r--r--packaging/Caldera/OpenServer/swat.readme40
-rw-r--r--packaging/HPUX/Instructions49
-rw-r--r--packaging/HPUX/Packaging-instructions75
-rw-r--r--packaging/HPUX/configure.bin44
-rw-r--r--packaging/HPUX/configure.man12
-rw-r--r--packaging/HPUX/configure.swat61
-rw-r--r--packaging/HPUX/configure.winbind9
-rwxr-xr-xpackaging/HPUX/create_package.sh21
-rw-r--r--packaging/HPUX/create_package_with_winbind.sh21
-rwxr-xr-xpackaging/HPUX/gen_psf.sh357
-rw-r--r--packaging/HPUX/gen_psf_with_winbind.sh380
-rw-r--r--packaging/HPUX/samba.boot72
-rw-r--r--packaging/HPUX/samba.config2
-rw-r--r--packaging/HPUX/unconfigure.bin8
-rw-r--r--packaging/HPUX/unconfigure.swat29
-rw-r--r--packaging/HPUX/unconfigure.winbind8
-rw-r--r--packaging/HPUX/vendor_description2
-rw-r--r--packaging/RedHat/samba2-devel.spec.tmpl496
-rw-r--r--packaging/SGI/winbindd.rc6
26 files changed, 4040 insertions, 3 deletions
diff --git a/packaging/Caldera/OpenServer/docview.html b/packaging/Caldera/OpenServer/docview.html
new file mode 100644
index 00000000000..bf25f412308
--- /dev/null
+++ b/packaging/Caldera/OpenServer/docview.html
@@ -0,0 +1,84 @@
+<HTML>
+<HEAD>
+ <TITLE>Samba for SCO OpenServer</TITLE>
+</HEAD> <BODY TEXT="#000066" BGCOLOR="#FFFFFF" LINK="#0066CC" VLINK="#660033" ALINK="#FFCC00">
+
+<CENTER>
+<IMG SRC="./callogo.gif" ALT="" </IMG>
+<H1>Samba File and Print Server for SCO OpenServer from Caldera</H1>
+</CENTER>
+
+Samba is a suite of networking products that implement the
+Windows SMB and CIFS protocols on UNIX and Linux operating
+systems. Samba enables your SCO OpenServer from Caldera system
+as a file and print server for Windows and OS/2 systems.
+
+<p>
+We recommend that you use the O'Reilly & Associates publication
+<a href="../using_samba/index.html" target="docs">"Using Samba"</a>
+
+to configure and administer your Samba server. Links to Samba
+HOWTO documents and manual pages are also provided below.
+
+<h3><a href="./samba.7.html" target="docs">Samba</a> Documentation</h3>
+
+<ul>
+ <li><b>Books</b>
+ <ul>
+ <li><a href="../using_samba/index.html" target="docs">Using Samba</a> - by Robert Eckstein, David Collier-Brown and Peter Kelly.
+ </ul>
+ <li><b>Samba HOWTO Collection</b></li>
+ <ul>
+ <li><a href="./DOMAIN_MEMBER.html">security = domain in Samba 2.x</a>
+ <li><a href="./winbind.html">Unified Logons between Windows NT and UNIX Using Winbind</a>
+ <li><a href="./msdfs_setup.html">Setting Samba as an MS-DFS server</a>
+ <li><a href="./NT_Security.html">UNIX Permission Bits and Samba 2.x</a>
+ <li><a href="./OS2-Client-HOWTO.html">OS/2 Clients and Samba</a>
+ <li><a href="./printer_driver2.html">Printing under Samba 2.2.x</a>
+ <li><a href="./Integrating-with-Windows.html">Integrating Name Resolution and Authentication Services</a>
+ <li><a href="./Samba-HOWTO-Collection.html">Entire Collection (one file; includes developer information)</a>
+ </ul>
+ <li><b>Daemons</b>
+ <ul>
+ <li><a href="./smbd.8.html" target="docs">smbd</a> - the SMB daemon
+ <li><a href="./nmbd.8.html" target="docs">nmbd</a> - the NetBIOS nameserver
+ <li><a href="./winbindd.8.html" target="docs">winbindd</a> - the winbind daemon
+ </ul>
+ <li><b>Configuration Files</b>
+ <ul>
+ <li><a href="./smb.conf.5.html" target="docs">smb.conf</a> - the main Samba configuration file
+ <li><a href="./lmhosts.5.html" target="docs">lmhosts</a> - NetBIOS hosts file
+ <li><a href="./smbpasswd.5.html" target="docs">smbpasswd</a> - SMB password file
+ </ul>
+ <li><b>Administrative Utilities</b>
+ <ul>
+ <li><a href="./smbcontrol.1.html" target="docs">smbcontrol</a> - send control messages to Samba daemons
+ <li><a href="./smbpasswd.8.html" target="docs">smbpasswd</a> - managing SMB passwords
+ <li><a href="./swat.8.html" target="docs">SWAT</a> - web configuration tool
+ <li><a href="./make_smbcodepage.1.html" target="docs">make_smbcodepage</a> - codepage creation
+ <li><a href="./make_unicodemap.1.html" target="docs">make_unicodemap</a> - unicode map file creation
+ <li><a href="./smbrun.1.html" target="docs">smbrun</a> - internal smbd utility
+ </ul>
+ <li><b>Client Tools</b>
+ <ul>
+ <li><a href="./rpcclient.1.html" target="docs">rpcclient</a> - command line MS-RPC client
+ <li><a href="./smbtar.1.html" target="docs">smbtar</a> - SMB backup tool
+ <li><a href="./smbclient.1.html" target="docs">smbclient</a> - command line SMB client
+ <li><a href="./smbmnt.8.html" target="docs">smbmnt</a> - helper utility for mounting SMB filesystems on Linux hosts
+ <li><a href="./smbmount.8.html" target="docs">smbmount</a> - user space tool for mounting SMB filesystems under Linux
+ <li><a href="./smbspool.8.html" target="docs">smbspool</a> - command line SMB print client
+ <li><a href="./smbumount.8.html" target="docs">smbumount</a> - user space tool for umounting SMB filesystems under Linux
+ </ul>
+ <li><b>Diagnostic Utilities</b>
+ <ul>
+ <li><a href="./smbstatus.1.html" target="docs">smbstatus</a> - monitoring Samba
+ <li><a href="./testparm.1.html" target="docs">testparm</a> - validating your config file
+ <li><a href="./testprns.1.html" target="docs">testprns</a> - testing printer configuration
+ <li><a href="./nmblookup.1.html" target="docs">nmblookup</a> - NetBIOS name query tool
+ </ul>
+</ul>
+
+<HR>
+<A HREF="http://www.caldera.com/company/legal/">Copyright</A>
+&#169; 2002 Caldera International, Inc. All Rights Reserved.
+</HTML>
diff --git a/packaging/Caldera/OpenServer/initconfig b/packaging/Caldera/OpenServer/initconfig
new file mode 100755
index 00000000000..b391cf9444d
--- /dev/null
+++ b/packaging/Caldera/OpenServer/initconfig
@@ -0,0 +1,254 @@
+#!/bin/sh
+# Initial configuration script for Samba.
+# This script should be run once, immediately after Samba is installed,
+# to get a basic smb.conf script into place. Subsequent modification
+# of this initial configuration should be done by swat.
+#
+# It is expected that in future versions of Samba, swat will be able to
+# do the initial configuration as well, and this script will become
+# unnecessary.
+
+CONF_SRC=/usr/lib/samba/lib/smb.conf.default
+CONF=/usr/lib/samba/lib/smb.conf
+
+# getyn: ask a question, return value indicates response
+
+getyn () {
+ while true; do
+ echo "$1 [$2] \c"
+ read answer
+ [ -z "$answer" ] && answer=$2
+
+ case $answer in
+ [Yy]*) echo; return 0;
+ ;;
+ [Nn]*) echo; return 1;
+ ;;
+ *) echo "Please answer yes or no."
+ continue
+ ;;
+ esac
+ done
+}
+
+# conf_replace: call sed to replace strings in smb.conf file with new
+# values, and if necessary uncomment the lines in which those strings
+# appear. For this to work, the source file needs to contain unique
+# placeholder strings to be replaced, e.g., %%WORKGROUP%%
+
+conf_replace () {
+ sed -e 's/^;*\(.*\)'$1'\(.*\)$/\1'$2'\2/' < $CONF > /tmp/smb.conf.$$
+ cp -f /tmp/smb.conf.$$ $CONF
+ rm -f /tmp/smb.conf.$$
+}
+
+# Begin main
+
+# Check whether conf file has already been edited
+if [ -f $CONF ]; then
+ cmp -s $CONF_SRC $CONF || {
+ echo "The file $CONF appears to have been previously edited.
+If you continue, this file will be restored to its original
+state and any changes you have made may be lost.\n"
+ if getyn "Continue?" No; then
+ echo "Backing up $CONF to ${CONF}-\n"
+ cp -f $CONF ${CONF}-
+ cp -f $CONF_SRC $CONF
+ else
+ exit 0
+ fi
+ }
+else
+ cp -f $CONF_SRC $CONF
+fi
+
+# Question 1: Workgroup/Domain Name
+# Default is MYGROUP. Responses must begin with an alphabetical
+# character and contain no punctuation.
+while true; do
+ default=MYGROUP
+ echo "Enter Workgroup/NT-Domain name: [$default] \c"
+ read workgroup
+
+ if [ -z "$workgroup" ]; then
+ workgroup=$default
+ fi
+
+ set -- $workgroup
+ if [ $# -gt 1 ]; then
+ echo "ERROR: Workgroup names cannot contain spaces or punctuation.\n"
+ continue
+ fi
+
+ workgroup=`echo $workgroup | tr a-z A-Z | tr -d [:punct:]`
+ if expr "$workgroup" : '[^A-Z]' >&-; then
+ echo "ERROR: Workgroup name must begin with an alphabetic character.\n"
+ continue
+ fi
+
+ echo "Workgroup name set to \"$workgroup\".\n"
+
+ break
+done
+
+
+# Question 2: Machine Name
+# Default is the uname, forced to capital letters and with punctuation
+# excised. Responses must begin with an alphabetical
+# character and contain no punctuation.
+while true; do
+ default=`uname -n | tr a-z A-Z | tr -d [:punct:]`
+ echo "Enter Machine name: [$default] \c"
+ read name
+
+ if [ -z "$name" ]; then
+ name=$default
+ fi
+
+ set -- $name
+ if [ $# -gt 1 ]; then
+ echo "ERROR: Machine names cannot contain spaces or punctuation.\n"
+ continue
+ fi
+
+ name=`echo $name | tr a-z A-Z | tr -d [:punct:]`
+ if expr "$name" : '[^A-Z]' >&-; then
+ echo "ERROR: Machine name must begin with an alphabetic character.\n"
+ continue
+ fi
+
+ echo "Machine name set to \"$name\".\n"
+
+ break
+done
+
+# Question 3: use WINS?
+wins=false
+if getyn "Will this system use WINS (recommended)?" Yes; then
+ wins=true
+fi
+
+# Optional questions, asked only if WINS will be used
+if [ "$wins" = "true" ]; then
+ # Question 3.1: Are we the WINS server?
+ echo "NOTE: A workgroup can have only one WINS server."
+ wins_svr=false
+ if getyn "Will this system be the WINS server for your workgroup?" No; then
+ wins_svr=true
+ fi
+
+ # Question 3.2: Who is the WINS server?
+ if [ "$wins_svr" = "false" ]; then
+ while true; do
+ echo "Enter the address of the primary WINS server for your workgroup: \c"
+ read wins_addr
+
+ if expr "$wins_addr" : '[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*$' >&- ; then
+ echo
+ break
+ fi
+
+ echo "ERROR: Invalid IP address format.\n"
+ done
+ fi
+fi
+
+# Question 4: Which interfaces will be active?
+iflist=`ifconfig -a | grep -v LOOPBACK | grep '^[^ ]*:' | cut -f1 -d:`
+
+set -- $iflist
+if [ "$#" -eq 0 ]; then
+ echo "FATAL ERROR: No network interfaces"
+ exit 1
+elif [ "$#" -eq 1 ]; then
+ interfaces=$1
+else
+ while true; do
+ interfaces=""
+ echo "Which of the following interfaces should Samba run on?\n"
+ for i in $iflist; do
+ addr=`ifconfig $i | grep "inet " | sed 's/inet \([^ ]*\) .*$/\1/'`
+ echo "\t$i:\t$addr"
+ done
+ echo "\nList all interfaces to activate (e.g., net0, net1, etc): \c"
+ read response
+ for i in $response; do
+ found=false
+ for j in $iflist; do
+ if [ "$i" = "$j" ]; then
+ found=true
+ break
+ fi
+ done
+ if [ "$found" = "true" ]; then
+ interfaces="$interfaces $j"
+ else
+ echo "ERROR: Invalid interface name $i\n"
+ continue 2
+ fi
+ done
+
+ interfaces="$interfaces lo0 atl0"
+ break
+ done
+fi
+
+# Question 5: Are we part of an existing security domain or active # directory?
+domain_exists=false
+if getyn "Will this system be part of a currently existing Microsoft Security\n\
+Domain or Active Directory?" No; then
+ domain_exists=true
+fi
+
+# Optional questions, depending on response to question 5
+if [ "$domain_exists" = "true" ]; then
+ # Question 5.1: (if yes to 5) Who's the PDC?
+ default='*'
+ echo "Enter the name of the Primary Domain Controller: [*] \c"
+ read pdc
+ if [ -z "$pdc" ]; then
+ pdc=$default
+ else
+ pdc=`echo $pdc | tr a-z A-Z | tr -d [:punct:]`
+ fi
+ echo "Primary Domain Controller set to \"$pdc\".\n"
+else
+ # Question 5.2: (if no to 5) Are we going to be the PDC?
+ domain_master=false
+ if getyn "Will this system be the domain controller for a new Microsoft\n\
+Security Domain?" No; then
+ domain_master=true
+ fi
+fi
+
+# Done asking questions.
+# Edit conf file with new values
+conf_replace %%WORKGROUP%% "$workgroup"
+conf_replace %%NBNAME%% "$name"
+
+if [ "$wins" = true ]; then
+ if [ "$wins_svr" = true ]; then
+ conf_replace %%WINSSUPPORT%% yes
+ else
+ conf_replace %%WINSSERVER%% $wins_addr
+ fi
+fi
+
+conf_replace %%INTERFACES%% "$interfaces"
+conf_replace %%BINDONLY%% yes
+
+if [ "$domain_exists" = true ]; then
+ conf_replace %%SECURITY%% domain
+ conf_replace %%PWSERVER%% "$pdc"
+else
+ conf_replace %%SECURITY%% user
+fi
+
+if [ "$domain_master" = true ]; then
+ conf_replace %%DOMAINMASTER%% yes
+ conf_replace %%DOMAINLOGONS%% yes
+ conf_replace %%OSLEVEL%% 33
+else
+ conf_replace %%OSLEVEL%% 20
+fi
+
diff --git a/packaging/Caldera/OpenServer/pkg/cntl/cqs b/packaging/Caldera/OpenServer/pkg/cntl/cqs
new file mode 100755
index 00000000000..2edcae6f2c7
--- /dev/null
+++ b/packaging/Caldera/OpenServer/pkg/cntl/cqs
@@ -0,0 +1,136 @@
+#!/ibin/sh
+#
+# The component query script for the Samba component
+#
+# %Z% %M% %I% %E% %Q%
+#
+# input:
+# $1 - keyword list (e.g. "UPGRADE OLD_CUSTOM_UPGRADE")
+# $2 - package list (e.g. "Samba:<component>:<package> )
+#
+
+# Save input arguments
+#
+keywords=$1
+pkgList=$2
+
+# Source in the standard functions library
+#
+. ccsSetup.sh
+
+# Local Variables
+#
+installType=FRESH
+
+# set custom install mode
+customMode=LAYERED
+[ "$IQM_FILE" ] && {
+ # Invoking custom from the IQM. IQM output will be stored
+ # in $IQM_FILE.
+ customMode="IQM"
+}
+
+# Local Functions
+
+##############################################################################
+#
+# If called with an argument indicating failure, remove any possible saved
+# configuration info. Exit with arg passed to this function.
+#
+cleanup()
+{
+ trap '' 1 2 3 15
+ exit $1
+}
+
+################################################################################
+#
+# We are doing a SSO -> SSO upgrade.
+#
+Save_SSO_Upgrade_Config()
+{
+ if [ -f /etc/smbusers ]; then
+ ex_cmd cp -f /etc/smbusers $CCS_PERSISTENT_STORAGE/smbusers
+ fi
+ if [ -f /usr/lib/samba/lib/smb.conf ]; then
+ ex_cmd cp -f /usr/lib/samba/lib/smb.conf $CCS_PERSISTENT_STORAGE/smb.conf
+ fi
+
+ return 0
+}
+
+#******************************************************************************
+# check_libsocket
+#
+# Check to see if libsocket.so.2 is installed on this system. If not, print
+# a warning message and ask if the user wants to continue installation anyway.
+#******************************************************************************
+
+MSG_missLibrary="WARNING: Samba requires the library /usr/lib/libsocket.so.2
+ to install and run correctly. That library does not exist
+ on this system. It is provided in OpenServer releases
+ 5.0.6a and higher."
+
+check_libsocket() {
+ if [ -f "/usr/lib/libsocket.so.2" ]; then
+ return $OK
+ else
+ echo "${MSG_missLibrary}"
+
+ while echo "\n\tContinue installation? \c"
+ do read yn rest
+ case $yn in
+ +x|-x) set $yn ;;
+ [yY]*) return $OK ;;
+ [nN]*) cleanup $FAIL ;;
+ *) echo "\tPlease answer y or n" ;;
+ esac
+ done
+ fi
+}
+
+
+################################################################################
+# main Main MAIN
+#
+trap "cleanup $FAIL" 1 2 3 15
+
+[ "$customMode" = "LAYERED" ] && {
+ check_libsocket
+}
+
+# Parse keyword list to determine how custom was invoked, the installation type,
+# whether we running on the target CPU, and finally if we have access to
+# the target's root filesystem.
+#
+for k in $keywords
+do
+ case $k in
+ "UPGRADE")
+ # SSO -> SSO upgrade
+ #
+ installType="SSO_UPGRADE"
+ ;;
+
+ "OLD_CUSTOM_UPGRADE")
+ # OLD_CUSTOM -> SSO upgrade
+ #
+ installType="OLD_UPGRADE"
+ ;;
+ esac
+done
+
+case "$installType" in
+"FRESH")
+ # No previous version of component on the system. Perform a
+ # fresh install.
+ ;;
+
+"SSO_UPGRADE")
+ # Existing SSO component upgraded to newer SSO version.
+ #
+ Save_SSO_Upgrade_Config
+ ;;
+esac
+
+cleanup $OK
diff --git a/packaging/Caldera/OpenServer/pkg/input/SambaDOC.pkg b/packaging/Caldera/OpenServer/pkg/input/SambaDOC.pkg
new file mode 100644
index 00000000000..df96635bccd
--- /dev/null
+++ b/packaging/Caldera/OpenServer/pkg/input/SambaDOC.pkg
@@ -0,0 +1,1380 @@
+
+PKG:SambaDOC:
+description = "Samba Documentation"
+dependencies = SCO:Samba:SambaSWAT::.*
+distTreeRootSHARED = $Samba_DIR
+distTreeRootCLIENT = $Samba_DIR
+
+DIR:SambaDOC:SHARED:doc:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaDOC:SHARED:doc/index.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/help/index.html
+
+DIR:SambaDOC:SHARED:usr/lib:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+DIR:SambaDOC:SHARED:usr/lib/samba:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+DIR:SambaDOC:SHARED:usr/lib/samba/man:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+DIR:SambaDOC:SHARED:usr/lib/samba/man/man.1:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/findsmb.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/findsmb.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/make_smbcodepage.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/make_smbcodepage.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/make_unicodemap.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/make_unicodemap.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/nmblookup.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/nmblookup.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/rpcclient.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/rpcclient.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/smbcacls.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/smbcacls.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/smbclient.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/smbclient.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/smbcontrol.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/smbcontrol.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/smbrun.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/smbrun.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/smbsh.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/smbsh.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/smbstatus.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/smbstatus.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/smbtar.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/smbtar.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/testparm.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/testparm.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/testprns.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/testprns.1
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.1/wbinfo.1:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.1/wbinfo.1
+
+DIR:SambaDOC:SHARED:usr/lib/samba/man/man.5:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.5/smb.conf.5:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.5/smb.conf.5
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.5/lmhosts.5:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.5/lmhosts.5
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.5/smbpasswd.5:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.5/smbpasswd.5
+
+DIR:SambaDOC:SHARED:usr/lib/samba/man/man.7:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.7/samba.7:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.7/samba.7
+
+DIR:SambaDOC:SHARED:usr/lib/samba/man/man.8:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.8/smbd.8:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.8/smbd.8
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.8/nmbd.8:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.8/nmbd.8
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.8/smbpasswd.8:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.8/smbpasswd.8
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.8/swat.8:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.8/swat.8
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.8/smbmount.8:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.8/smbmount.8
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.8/smbmnt.8:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.8/smbmnt.8
+
+FILE:SambaDOC:SHARED:usr/lib/samba/man/man.8/smbumount.8:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/man/man.8/smbumount.8
+
+DIR:SambaDOC:SHARED:usr/lib/samba/swat:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+DIR:SambaDOC:SHARED:usr/lib/samba/swat/using_samba:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+DIR:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/gifs:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/gifs/index.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/gifs/index.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/gifs/samba.s.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/gifs/samba.s.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/gifs/txthome.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/gifs/txthome.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/gifs/txtnexta.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/gifs/txtnexta.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/gifs/txtpreva.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/gifs/txtpreva.gif
+
+DIR:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0101.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0101.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0102.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0102.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0103.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0103.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0104.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0104.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0105.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0105.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0106.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0106.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0107.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0107.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0108.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0108.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0109.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0109.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0110.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0110.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0111.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0111.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0112.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0112.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0113.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0113.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0114.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0114.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0201.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0201.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0202.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0202.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0203.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0203.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0204.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0204.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0301.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0301.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0302.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0302.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0303.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0303.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0304.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0304.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0305.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0305.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0306.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0306.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0307.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0307.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0308.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0308.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0309.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0309.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0310.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0310.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0311.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0311.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0312.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0312.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0313.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0313.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0314.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0314.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0315.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0315.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0316.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0316.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0317.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0317.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0318.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0318.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0319.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0319.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0320.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0320.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0321.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0321.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0322.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0322.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0323.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0323.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0324.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0324.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0325.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0325.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0326.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0326.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0327.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0327.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0328.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0328.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0401.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0401.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0402.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0402.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0403.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0403.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0404.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0404.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0405.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0405.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0406.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0406.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0407.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0407.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0501.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0501.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0502.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0502.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0503.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0503.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0504.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0504.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0505.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0505.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0506.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0506.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0507.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0507.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0508.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0508.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0601.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0601.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0602.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0602.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0603.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0603.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0604.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0604.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0605.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0605.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0606.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0606.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0701.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0701.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0702.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0702.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0703.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0703.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0704.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0704.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0705.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0705.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0706.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0706.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0707.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0707.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0708.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0708.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0709.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0709.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0801.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0801.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0802.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0802.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0803.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0803.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0804.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0804.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0805.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0805.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0901.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0901.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0902.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0902.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0903.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0903.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0904.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0904.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.0905.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.0905.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.aa01.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.aa01.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.ab01.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.ab01.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/figs/sam.ab02.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/figs/sam.ab02.gif
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appa_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appa_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appa_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appa_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appa_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appa_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appa_04.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appa_04.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appa_05.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appa_05.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appb_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appb_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appb_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appb_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appb_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appb_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appc_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appc_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appd_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appd_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appe_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appe_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/appf_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/appf_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_04.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_04.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_05.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_05.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_06.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_06.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_07.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_07.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch01_08.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch01_08.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch02_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch02_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch02_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch02_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch02_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch02_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch02_04.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch02_04.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch02_05.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch02_05.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch02_06.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch02_06.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch03_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch03_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch03_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch03_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch03_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch03_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_04.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_04.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_05.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_05.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_06.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_06.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_07.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_07.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch04_08.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch04_08.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch05_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch05_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch05_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch05_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch05_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch05_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch05_04.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch05_04.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch05_05.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch05_05.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch06_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch06_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch06_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch06_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch06_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch06_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch06_04.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch06_04.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch06_05.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch06_05.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch06_06.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch06_06.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch07_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch07_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch07_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch07_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch07_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch07_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch08_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch08_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch08_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch08_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch08_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch08_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch08_04.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch08_04.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch08_05.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch08_05.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch08_06.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch08_06.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch08_07.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch08_07.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch09_01.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch09_01.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch09_02.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch09_02.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/ch09_03.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/ch09_03.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/index.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/index.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/inx.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/inx.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/licenseinfo.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/licenseinfo.html
+
+FILE:SambaDOC:SHARED:usr/lib/samba/swat/using_samba/this_edition.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/share/doc/samba/using_samba/this_edition.html
diff --git a/packaging/Caldera/OpenServer/pkg/input/SambaSWAT.pkg b/packaging/Caldera/OpenServer/pkg/input/SambaSWAT.pkg
new file mode 100644
index 00000000000..e50c6f20a2d
--- /dev/null
+++ b/packaging/Caldera/OpenServer/pkg/input/SambaSWAT.pkg
@@ -0,0 +1,417 @@
+
+PKG:SambaSWAT:
+description = "Samba Web Administration Tool"
+dependencies =
+distTreeRootSHARED = $Samba_DIR
+distTreeRootCLIENT = $Samba_DIR
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/sbin/swat:
+mode = 0755
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/sbin/swat
+
+DIR:SambaSWAT:SHARED:usr/lib/samba/swat:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+DIR:SambaSWAT:SHARED:usr/lib/samba/swat/images:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/globals.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/globals.gif
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/home.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/home.gif
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/passwd.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/passwd.gif
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/printers.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/printers.gif
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/samba.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/samba.gif
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/shares.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/shares.gif
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/status.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/status.gif
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/images/viewconfig.gif:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/images/viewconfig.gif
+
+DIR:SambaSWAT:SHARED:usr/lib/samba/swat/help:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/welcome.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/welcome.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/DOMAIN_MEMBER.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/DOMAIN_MEMBER.html
+exportPath = /usr/share/doc/samba/help/DOMAIN_MEMBER.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/NT_Security.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/NT_Security.html
+exportPath = /usr/share/doc/samba/help/NT_Security.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/OS2-Client-HOWTO.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/OS2-Client-HOWTO.html
+exportPath = /usr/share/doc/samba/help/OS2-Client-HOWTO.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/Samba-HOWTO-Collection.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/Samba-HOWTO-Collection.html
+exportPath = /usr/share/doc/samba/help/Samba-HOWTO-Collection.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/UNIX_INSTALL.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/UNIX_INSTALL.html
+exportPath = /usr/share/doc/samba/help/UNIX_INSTALL.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/findsmb.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/findsmb.1.html
+exportPath = /usr/share/doc/samba/help/findsmb.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/lmhosts.5.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/lmhosts.5.html
+exportPath = /usr/share/doc/samba/help/lmhosts.5.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/make_smbcodepage.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/make_smbcodepage.1.html
+exportPath = /usr/share/doc/samba/help/make_smbcodepage.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/msdfs_setup.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/msdfs_setup.html
+exportPath = /usr/share/doc/samba/help/msdfs_setup.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/nmbd.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/nmbd.8.html
+exportPath = /usr/share/doc/samba/help/nmbd.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/nmblookup.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/nmblookup.1.html
+exportPath = /usr/share/doc/samba/help/nmblookup.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/printer_driver2.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/printer_driver2.html
+exportPath = /usr/share/doc/samba/help/printer_driver2.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/rpcclient.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/rpcclient.1.html
+exportPath = /usr/share/doc/samba/help/rpcclient.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/samba-pdc-faq.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/samba-pdc-faq.html
+exportPath = /usr/share/doc/samba/help/samba-pdc-faq.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/samba-pdc-howto.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/samba-pdc-howto.html
+exportPath = /usr/share/doc/samba/help/samba-pdc-howto.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/samba.7.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/samba.7.html
+exportPath = /usr/share/doc/samba/help/samba.7.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smb.conf.5.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smb.conf.5.html
+exportPath = /usr/share/doc/samba/help/smb.conf.5.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbcacls.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbcacls.1.html
+exportPath = /usr/share/doc/samba/help/smbcacls.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbclient.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbclient.1.html
+exportPath = /usr/share/doc/samba/help/smbclient.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbcontrol.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbcontrol.1.html
+exportPath = /usr/share/doc/samba/help/smbcontrol.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbd.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbd.8.html
+exportPath = /usr/share/doc/samba/help/smbd.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbmnt.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbmnt.8.html
+exportPath = /usr/share/doc/samba/help/smbmnt.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbmount.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbmount.8.html
+exportPath = /usr/share/doc/samba/help/smbmount.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbpasswd.5.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbpasswd.5.html
+exportPath = /usr/share/doc/samba/help/smbpasswd.5.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbpasswd.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbpasswd.8.html
+exportPath = /usr/share/doc/samba/help/smbpasswd.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbrun.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbrun.1.html
+exportPath = /usr/share/doc/samba/help/smbrun.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbsh.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbsh.1.html
+exportPath = /usr/share/doc/samba/help/smbsh.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbspool.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbspool.8.html
+exportPath = /usr/share/doc/samba/help/smbspool.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbstatus.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbstatus.1.html
+exportPath = /usr/share/doc/samba/help/smbstatus.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbtar.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbtar.1.html
+exportPath = /usr/share/doc/samba/help/smbtar.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/smbumount.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/smbumount.8.html
+exportPath = /usr/share/doc/samba/help/smbumount.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/swat.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/swat.8.html
+exportPath = /usr/share/doc/samba/help/swat.8.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/testparm.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/testparm.1.html
+exportPath = /usr/share/doc/samba/help/testparm.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/testprns.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/testprns.1.html
+exportPath = /usr/share/doc/samba/help/testprns.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/wbinfo.1.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/wbinfo.1.html
+exportPath = /usr/share/doc/samba/help/wbinfo.1.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/winbind.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/winbind.html
+exportPath = /usr/share/doc/samba/help/winbind.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/help/winbindd.8.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/help/winbindd.8.html
+exportPath = /usr/share/doc/samba/help/winbindd.8.html
+
+DIR:SambaSWAT:SHARED:usr/lib/samba/swat/include:
+mode = 0755
+owner = root
+group = sys
+flags =
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/include/footer.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/include/footer.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/include/header.html:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/include/header.html
+
+FILE:SambaSWAT:SHARED:usr/lib/samba/swat/README:
+mode = 0644
+owner = root
+group = sys
+flags =
+exportPath = /usr/lib/samba/swat/README
diff --git a/packaging/Caldera/OpenServer/samba-2.2.3-osr5.patch b/packaging/Caldera/OpenServer/samba-2.2.3-osr5.patch
new file mode 100644
index 00000000000..45770f226e7
--- /dev/null
+++ b/packaging/Caldera/OpenServer/samba-2.2.3-osr5.patch
@@ -0,0 +1,33 @@
+--- utils/torture.c.00 Thu Jan 24 17:54:13 2002
++++ utils/torture.c Thu Jan 24 16:58:52 2002
+@@ -4801,8 +4801,13 @@
+ dbf = stdout;
+
+ #ifdef HAVE_SETBUFFER
+- setbuffer(stdout, NULL, 0);
++ setbuffer(stdout, NULL, 0);
++#else
++#if defined(_SCO_DS) /* SCO OpenServer */
++ setvbuf(stdout, NULL, _IONBF, 0);
+ #endif
++#endif
++
+ charset_initialise();
+
+ codepage_initialise(lp_client_code_page());
+
+--- utils/locktest.c.00 Fri Sep 29 13:18:14 2000
++++ utils/locktest.c Fri Apr 13 17:54:11 2001
+@@ -384,8 +384,12 @@
+ recorded[n].conn = random() % NCONNECTIONS;
+ recorded[n].f = random() % NFILES;
+ recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1));
++#if defined(_SCO_DS) /* OpenServer */
++ recorded[n].len = 1;
++#else
+ recorded[n].len = 1 +
+ random() % (LOCKRANGE-(recorded[n].start-LOCKBASE));
++#endif
+ recorded[n].start *= RANGE_MULTIPLE;
+ recorded[n].len *= RANGE_MULTIPLE;
+ recorded[n].r1 = random() % 100;
diff --git a/packaging/Caldera/OpenServer/smb.mkdev b/packaging/Caldera/OpenServer/smb.mkdev
new file mode 100755
index 00000000000..f474e9f8b76
--- /dev/null
+++ b/packaging/Caldera/OpenServer/smb.mkdev
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Samba mkdev script for SCO OpenServer
+#
+# Run "initconfig" to set up initial Samba configuration;
+# move init script into place so that Samba will be started
+# at boot time.
+
+# Prompt with mesg, return non-zero on q
+prompt() {
+ FAIL=1 OK=0
+ while echo "\n${mesg}or enter q to quit: \c" >&2
+ do read cmd
+ case $cmd in
+ +x|-x) set $cmd ;;
+ Q|q) return $FAIL ;;
+ !*) eval `expr "$cmd" : "!\(.*\)"` ;;
+ "") # If there is an argument use it as the default
+ # else loop until 'cmd' is set
+ [ "$1" ] && {
+ cmd=$1
+ return $OK
+ }
+ : continue
+ ;;
+ *) return $OK ;;
+ esac
+ done
+}
+
+mesg="\tSamba Configuration\n
+\t1. Configure and activate Samba
+\t2. Deactivate Samba\n
+Select an option "
+
+while true ; do
+ prompt || exit 1
+ case $cmd in
+ 1) /usr/lib/samba/bin/initconfig
+ cp -f /etc/init.d/samba /etc/rc2.d/S92samba
+ exit 0
+ ;;
+ 2) rm -f /etc/rc2.d/S92samba
+ exit 0
+ ;;
+ esac
+done
+
diff --git a/packaging/Caldera/OpenServer/swat.readme b/packaging/Caldera/OpenServer/swat.readme
new file mode 100644
index 00000000000..b7467baa1ca
--- /dev/null
+++ b/packaging/Caldera/OpenServer/swat.readme
@@ -0,0 +1,40 @@
+This is a brief description of how to use the Samba Web
+Administration Tool on your machine.
+
+Launching
+---------
+
+To launch SWAT just run your favourite web browser and point it at
+http://localhost:598/
+
+Note that you can attach to SWAT from any IP connected machine but
+connecting from a remote machine leaves your connection open to
+password sniffing as passwords will be sent in the clear over the
+wire.
+
+You should be prompted for a username/password when you connect. You
+will need to provide the username "root" and the correct root
+password.
+
+Running
+-------
+
+Just follow your nose! If you can't work out how to use it then maybe
+you should use "vi smb.conf" instead.
+
+
+WARNINGS
+--------
+
+SWAT will rewrite your smb.conf file. It will rearrange the entries
+and delete all comments, include= and copy= options. If you have a
+carefully crafted smb.conf then back it up or don't use SWAT!
+
+
+Development
+-----------
+
+Please join the samba-technical mailing list if you want to discuss
+the development of SWAT. Note that this list is for technical developer
+discussions and is not a general help list.
+
diff --git a/packaging/HPUX/Instructions b/packaging/HPUX/Instructions
new file mode 100644
index 00000000000..5e5bd542d3f
--- /dev/null
+++ b/packaging/HPUX/Instructions
@@ -0,0 +1,49 @@
+Installation Instructions for HP-UX Software Distributor package
+----------------------------------------------------------------
+
+1. Run swinstall
+
+ You may have copied (swcopy) the depot to the depot server. In such cases
+ select the depot on server.
+
+ In order to install from the depot file, as root enter the following
+ command:
+
+ swinstall -s `pwd`/samba.depot Samba
+
+2. Create configuration file
+
+ Create /usr/local/samba/lib/smb.conf. You can use one of the examples from
+ /usr/local/samba/newconfig/examples as template.
+
+ Make sure that "guest account = pcguest" is included in the global
+ configuration variables. The swinstall will have created the pcguest
+ user on HPUX for you. The default value of "guest account" is "nobody"
+ which causes problems for Samba on HPUX because it has a negative uid.
+
+3. Start/stop Samba
+
+ The installation provides the boot startup script at /sbin/init.d/samba.
+ Samba will automatically start at run level 3 and stop during the
+ transition to run level 2.
+
+ You can use this script to manually manipulate Samba. Enter:
+
+ # /sbin/init.d/samba start to start Samba
+ # /sbin/init.d/samba stop to stop Samba
+
+4. Customization
+
+ The autostart is controled by editing file /etc/rc.config.d/samba. This
+ file has the following variables:
+
+ SAMBA_START=[0|1] 1 start Samba at boot (default)
+ 0 do not start samba at boot
+
+ SAMBA_DEBUG=[0-9] debug level for smbd and nmbd. Default debug
+ level is 1.
+
+ The configuration file is not overwritten at next install while the boot
+ script (/sbin/init.d/samba) is.
+
+Author: Leon Mlakar <leon@hermes.si>
diff --git a/packaging/HPUX/Packaging-instructions b/packaging/HPUX/Packaging-instructions
new file mode 100644
index 00000000000..8645fba2756
--- /dev/null
+++ b/packaging/HPUX/Packaging-instructions
@@ -0,0 +1,75 @@
+Create Software Depot for Samba
+-------------------------------
+
+1. Compile the source code
+ The packaging assumes that the final product will install under /usr/local/samba and will use /usr/local/samba for var directory. In order to support these
+ assumptions, run configure as follows:
+
+ ./configure --prefix /usr/local/samba --localstatedir /usr/local/samba
+
+ NOTE: to compile samba with optional winbind capability (HP-UX 11.x only),
+ use the following configure command line instead:
+
+ ./configure --with-winbind --with-pam --prefix /usr/local/samba --localstatedir /usr/local/samba
+
+ Afterwards compile the source code in a standard way.
+
+2. In packaging/HPUX directory run the following command:
+
+ WITHOUT winbind:
+
+ $ create_package.sh
+
+ WITH winbind:
+
+ $ create_package_with_winbind.sh
+
+3. Use resulting samba.depot file as the software depot for Samba.
+
+Brief Description of Depot
+--------------------------
+
+The software depot contains product Samba, which consists of the following
+three filesets:
+
+ Samba.core Core samba server components, everything but SWAT
+ and man pages
+
+ Samba.man Man pages. Note that HP-UX uses different section
+ numbering, so the man pages are moved and modified
+ to correct the section references (i.e. nmbd(8) changed
+ to nmbd(1m)).
+
+ Samba.swat SWAT tool.
+
+The configure scripts will take care of the following:
+
+ Samba.core 1. create pcguest account should it not exist. The
+ login shell is set to /usr/bin/true
+ 2. create startup/shutdown links at:
+ /sbin/rc3.d/S911samba
+ /sbin/rc2.d/K130samba
+ 3. copy boot configuration file from newconfig to
+ /etc/rc.config.d, if one does not exist.
+
+ Samba.man 1. add /usr/local/samba/man to default man search path in
+ /etc/MANPATH
+
+ Samba.swat 1. add swat service to /etc/services if necessary.
+ Swat will run through port 901.
+ 2. add swat to /etc/inetd.conf, if necessary.
+ 3. signal (SIGHUP) inetd to reread configuration if
+ 1. or 2. were changed.
+
+The unconfigure scripts will, upon the product removal, do the following:
+
+ Samba.core 1. remove startup/shutdown links
+ 2. remove user pcguest
+
+ Samba.man N/A
+
+ Samba.swat 1. remove swat from /etc/services
+ 2. remove swat from /etc/inetd.conf
+ 3. signal inetd (SIGHUP) to reread configuration
+
+Author: Leon Mlakar <leon@hermes.si>
diff --git a/packaging/HPUX/configure.bin b/packaging/HPUX/configure.bin
new file mode 100644
index 00000000000..60363336054
--- /dev/null
+++ b/packaging/HPUX/configure.bin
@@ -0,0 +1,44 @@
+# Samba.core configure script
+
+RC=0
+
+addUser()
+{
+ if grep -q '^pcguest:' /etc/passwd
+ then
+ cat <<__EOF__
+NOTE: Username pcguest already exists in /etc/passwd file.
+__EOF__
+ return
+ fi
+
+ /usr/sbin/useradd -g users -d /home/pcguest -c "Samba Guest" \
+ -s /usr/bin/true -m pcguest
+
+
+ if [ $? -ne 0 ]
+ then
+ cat >&2 <<__EOF__
+ERROR: Failed to create username pcguest.
+__EOF__
+ RC=1
+ else
+ cat <<__EOF__
+NOTE: The configure script has added username pcguest in /etc/passwd file.
+ You must set the password for user pcguest in order to activate it.
+__EOF__
+ fi
+}
+
+
+addUser
+
+ln -s /sbin/init.d/samba /sbin/rc3.d/S911samba
+ln -s /sbin/init.d/samba /sbin/rc2.d/K130samba
+
+if [ ! -f /etc/rc.config.d/samba ]
+then
+ cp /usr/local/samba/newconfig/samba.config /etc/rc.config.d/samba
+fi
+
+exit 0
diff --git a/packaging/HPUX/configure.man b/packaging/HPUX/configure.man
new file mode 100644
index 00000000000..5aa5545fee5
--- /dev/null
+++ b/packaging/HPUX/configure.man
@@ -0,0 +1,12 @@
+# Samba.man configure script
+
+
+grep -q '/usr/local/samba/man' /etc/MANPATH
+if [ $? -eq 1 ]
+then
+ echo "`cat /etc/MANPATH`:/usr/local/samba/man" >/tmp/$$.PATH
+ cp /tmp/$$.PATH /etc/MANPATH
+ rm -f /tmp/$$.PATH
+fi
+
+exit 0
diff --git a/packaging/HPUX/configure.swat b/packaging/HPUX/configure.swat
new file mode 100644
index 00000000000..0e69fc03fe4
--- /dev/null
+++ b/packaging/HPUX/configure.swat
@@ -0,0 +1,61 @@
+# Configure script for Samba.swat
+
+UPDATE=0
+
+KillProcess()
+{
+ proc=$1
+ sig=$2
+
+ # Determine PID of process(es) to stop and kill it. This routine
+ # is designed to work with bourne shell, ksh and posix shell.
+
+ Command=`basename $proc | cut -c1-8` # Solaris ps limited to 8 chars.
+
+ pid=`ps -e | awk "\\$NF~/$Command/ {print \\$1}"`
+
+ if [ "X$pid" != "X" ]; then
+ kill -$sig $pid
+ fi
+}
+
+UpdateServices()
+{
+ if grep -q '^swat' /etc/services
+ then
+ return
+ fi
+
+ echo "swat 901/tcp" >>/etc/services
+ cat <<__EOF__
+NOTE: The following entry had been added to /etc/services:
+ swat 901/tcp
+ Should you want to move SWAT to another port, modify the entry
+ accordingly and restart inetd daemon with -HUP signal.
+__EOF__
+ UPDATE=1
+}
+
+UpdateInetd()
+{
+ if grep -q '^swat' /etc/inetd.conf
+ then
+ return
+ fi
+
+ echo "swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat" >>/etc/inetd.conf
+
+
+ UPDATE=1
+}
+
+UpdateServices
+UpdateInetd
+
+if [ "$UPDATE" -eq 1 ]
+then
+ KillProcess inetd HUP
+fi
+
+exit 0
+
diff --git a/packaging/HPUX/configure.winbind b/packaging/HPUX/configure.winbind
new file mode 100644
index 00000000000..fc9b8ded684
--- /dev/null
+++ b/packaging/HPUX/configure.winbind
@@ -0,0 +1,9 @@
+# Samba.winbind configure script
+
+
+ echo "heres where wed create links to winbind libs"
+ ln -s /usr/local/samba/lib/winbind/libnss_winbind.so /usr/lib/libnss_winbind.1
+ ln -s /usr/local/samba/lib/winbind/pam_winbind.so /usr/lib/security/libpam_winbind.1
+
+
+exit 0
diff --git a/packaging/HPUX/create_package.sh b/packaging/HPUX/create_package.sh
new file mode 100755
index 00000000000..f8e321dbff7
--- /dev/null
+++ b/packaging/HPUX/create_package.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/sh
+PRODUCT=Samba
+DEPOT=samba.depot
+PSF=samba.psf
+export PRODUCT
+export DEPOT
+export PSF
+
+mkdir codepage >/dev/null 2>&1
+mkdir man >/dev/null 2>&1
+
+./gen_psf.sh $PRODUCT
+
+echo "Creating software depot ($DEPOT) for product $PRODUCT"
+
+/usr/sbin/swpackage -vv -s samba.psf -x target_type=tape -d `pwd`/$DEPOT $PRODUCT
+
+#- clean-up temporary directories
+rm -r codepage
+rm -r man
+
diff --git a/packaging/HPUX/create_package_with_winbind.sh b/packaging/HPUX/create_package_with_winbind.sh
new file mode 100644
index 00000000000..b58c38f0a91
--- /dev/null
+++ b/packaging/HPUX/create_package_with_winbind.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/sh
+PRODUCT=Samba
+DEPOT=samba.depot
+PSF=samba.psf
+export PRODUCT
+export DEPOT
+export PSF
+
+mkdir codepage >/dev/null 2>&1
+mkdir man >/dev/null 2>&1
+
+./gen_psf_with_winbind.sh $PRODUCT
+
+echo "Creating software depot ($DEPOT) for product $PRODUCT"
+
+/usr/sbin/swpackage -vv -s samba.psf -x target_type=tape -d `pwd`/$DEPOT $PRODUCT
+
+#- clean-up temporary directories
+rm -r codepage
+rm -r man
+
diff --git a/packaging/HPUX/gen_psf.sh b/packaging/HPUX/gen_psf.sh
new file mode 100755
index 00000000000..4a24bab49b4
--- /dev/null
+++ b/packaging/HPUX/gen_psf.sh
@@ -0,0 +1,357 @@
+#!/usr/bin/sh
+#- Below variables are editable.
+#- VERSION Script tries to set the version automatically if it's empty
+#- string. The version number is assumed to be in
+#- ../../source/include/version.h. Should this fail to find correct
+#- version, set it manually to override automatic search.
+#- BIN List of binaries from ../../source/bin. Note: do not include
+#- swat here for it is a part of Samba.swat fileset
+#- SCRIPT List of scripts
+#- OS_REVISION The regular expression to determine the supported OS version.
+#- The default versions are HP-UX 10.10 or later as well as 11.*.
+#- You can modify this to reflect the OS you compile on. For
+#- instance, to support any 10.? and 11.? releases, use the
+#- following string:
+#- '?.10.*|?.11.*
+ VERSION=""
+
+ BIN="smbd nmbd smbclient testparm testprns smbstatus\
+ rpcclient smbpasswd make_smbcodepage nmblookup "
+
+# SCRIPT="smbtar addtosmbpass convert_smbpasswd"
+
+ OS_RELEASE='?.10.[2-9]?|?.11.*'
+
+
+#- Below variables should be exported from create_package.sh
+
+if [ -z "$PSF" ]
+then
+ PSF=samba.psf
+fi
+
+if [ -z "$DEPOT" ]
+then
+ DEPOT=samba.depot
+fi
+
+if [ -z "$PRODUCT" ]
+then
+ PRODUCT=Samba
+fi
+
+#--------------------------------------------------------------------------
+CODEPAGES=""
+if [ -z "$VERSION" ]
+then
+ echo "Deducing Samba version from version.h ... \c"
+ VERSION=`grep VERSION ../../source/include/version.h | awk '{print $3}' |\
+ tr -d '"'`
+ if [ $? -ne 0 -o -z "$VERSION" ]
+ then
+ echo "failed."
+ echo "Cannot find Samba version. Edit gen_psf.sh and set VERSION"
+ echo "variable manually."
+ exit 1
+ else
+ echo "$VERSION"
+ fi
+fi
+
+echo "Creating list of codepage definitions ..."
+
+#- create codepages from definition and add them to PSF file
+for a in ../../source/codepages/codepage_def.[0-9][0-9][0-9]
+do
+ b=${a##../../source/codepages/codepage_def.}
+ CODEPAGES="$CODEPAGES $b"
+done
+echo "\t$CODEPAGES"
+
+echo "Running make_smbcodepage on codepage definitions ... \c"
+
+mkdir codepage >/dev/null 2>&1
+for a in $CODEPAGES
+do
+../../source/bin/make_smbcodepage c $a ../../source/codepages/codepage_def.$a\
+ codepage/codepage.$a
+done
+echo "done."
+
+#- HP-UX uses slightly different section numbers for man pages. The following
+#- compares to "normal" sections:
+#-
+#- Section HP-UX section
+#- 1 1 user commands
+#- 5 4 files
+#- 7 5 concepts
+#- 8 1m administration commands
+#- NOTE:
+#- Sed expressions used in below loops replaces original section references
+#- inside man page with HP-UX section references. Assumption is that
+#- only numbers in brackets are section references and nothing else.
+#- So far I did not see the man pages corrupted by replacing anything
+#- else but section references.
+
+mkdir man >/dev/null 2>&1
+echo "Coverting man pages to HP-UX numbering ..."
+echo "\t Sections 1 \c"
+for a in ../../docs/manpages/*.1
+do
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 1/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/`basename $a`
+done
+echo "1m \c"
+for a in ../../docs/manpages/*.8
+do
+ b=`basename $a`
+ c=${b%.8}
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 1M/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/$c.1m
+done
+echo "4 \c"
+for a in ../../docs/manpages/*.5
+do
+ b=`basename $a`
+ c=${b%.5}
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 4/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/$c.4
+done
+echo "5"
+for a in ../../docs/manpages/*.7
+do
+ b=`basename $a`
+ c=${b%.7}
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 5/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/$c.5
+done
+
+echo "Creating product specification file:"
+echo "\tVendor and product description"
+#- vendor and header of product definition
+cat <<_EOF_ >$PSF
+vendor
+ tag Samba
+ title Samba Team
+ description <vendor_description
+end
+
+product
+ tag $PRODUCT
+ title Samba Server
+ description < ../../WHATSNEW.txt
+ copyright "Copyright (c) 1998 Samba Team. See COPYING for details."
+ readme < ../../README
+ revision $VERSION
+ machine_type *
+ os_name HP-UX
+ os_release $OS_RELEASE
+ os_version *
+ directory /
+ is_locatable false
+ vendor_tag Samba
+
+_EOF_
+
+echo "\tFileset $PRODUCT.core"
+
+cat <<_EOF_ >>$PSF
+ fileset
+ tag core
+ title Samba server core components
+ revision $VERSION
+ is_kernel false
+ is_reboot false
+ is_secure false
+ configure configure.bin
+ unconfigure unconfigure.bin
+
+ file -m 0755 -o root -g sys / /usr/local/samba/
+ file -m 0755 -o root -g sys / /usr/local/samba/bin/
+ file -m 0755 -o root -g sys / /usr/local/samba/lib/
+ file -m 0755 -o root -g sys / /usr/local/samba/lib/codepages/
+ file -m 0755 -o root -g sys / /usr/local/samba/newconfig/
+ file -m 0755 -o root -g sys / /usr/local/samba/newconfig/examples/
+ file -m 0700 -o root -g sys / /usr/local/samba/private/
+ file -m 0755 -o root -g sys / /var/usr/local/samba/
+ file -m 0755 -o root -g sys / /var/usr/local/samba/locks/
+
+ file -m 0444 -o root -g sys ../../COPYING /usr/local/samba/COPYING
+ file -m 0555 -o root -g sys ./samba.boot /sbin/init.d/samba
+ file -m 0444 -o root -g sys ./samba.config /usr/local/samba/newconfig/samba.config
+
+ file -m 0444 -o root -g sys ../../examples/smb.conf.default /usr/local/samba/newconfig/examples/smb.conf.default
+ file -m 0444 -o root -g sys ../../examples/simple/smb.conf /usr/local/samba/newconfig/examples/smb.conf.simple
+ file -m 0444 -o root -g sys ../../examples/dce-dfs/smb.conf /usr/local/samba/newconfig/examples/smb.conf.dce-dfs
+
+ directory ../../source/bin=/usr/local/samba/bin
+_EOF_
+ for a in $BIN
+ do
+ echo " file -m 0555 -o root -g sys $a" >>$PSF
+ done
+
+ echo " directory ../../source/script=/usr/local/samba/bin" >>$PSF
+
+ for a in $SCRIPT
+ do
+ echo " file -m 0555 -o root -g sys $a" >>$PSF
+ done
+
+ echo " directory ./codepage=/usr/local/samba/lib/codepages" >> $PSF
+
+ for a in $CODEPAGES
+ do
+ echo " file -m 0444 -o root -g sys codepage.$a" >>$PSF
+ done
+ echo " end" >>$PSF
+#- end of fileset CORE
+
+echo "\tFileset $PRODUCT.man"
+#- Man pages
+cat <<_EOF_ >>$PSF
+ fileset
+ tag man
+ title Samba server man pages
+ revision $VERSION
+ is_kernel false
+ is_reboot false
+ is_secure false
+ configure configure.man
+
+ file -m 0755 -o root -g sys / /usr/local/samba/man/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man1/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man1m/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man4/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man5/
+
+_EOF_
+
+#- HP-UX uses slightly different section numbers for man pages. The following
+#- compares to "normal" sections:
+#-
+#- Section HP-UX section
+#- 1 1 user commands
+#- 5 4 files
+#- 7 5 concepts
+#- 8 1m administration commands
+
+ for a in man/*.1
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man1/$b" >>$PSF
+ done
+
+ for a in man/*.1m
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man1m/$b" >>$PSF
+ done
+
+ for a in man/*.4
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man4/$b" >>$PSF
+ done
+
+ for a in man/*.5
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man5/$b" >>$PSF
+ done
+
+ echo " end" >>$PSF
+
+echo "\tFileset $PRODUCT.swat"
+
+cat <<_EOF_ >>$PSF
+
+ fileset
+ tag swat
+ title Samba Web-based administration tool
+ revision $VERSION
+ is_kernel false
+ is_reboot false
+ is_secure false
+ prerequisite Samba.core
+ configure configure.swat
+ unconfigure unconfigure.swat
+
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/help/
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/images/
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/include/
+
+ directory ../../swat=/usr/local/samba/swat
+ file -m 0444 -o root -g sys README
+
+ directory ../../source/bin=/usr/local/samba/bin
+ file -m 0555 -o root -g sys swat
+
+ directory ../../swat/images=/usr/local/samba/swat/images
+_EOF_
+
+ for a in ../../swat/images/*.gif
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+ echo " directory ../../swat/help=/usr/local/samba/swat/help" >>$PSF
+
+ for a in ../../swat/help/*.html
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+ echo " directory ../../docs/htmldocs=/usr/local/samba/swat/help" >>$PSF
+
+ for a in ../../docs/htmldocs/*.html
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+ echo " directory ../../swat/include=/usr/local/samba/swat/include" >>$PSF
+
+ for a in ../../swat/include/*.html
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+cat <<_EOF_ >>$PSF
+ end
+
+end
+_EOF_
+
diff --git a/packaging/HPUX/gen_psf_with_winbind.sh b/packaging/HPUX/gen_psf_with_winbind.sh
new file mode 100644
index 00000000000..ef32590ea83
--- /dev/null
+++ b/packaging/HPUX/gen_psf_with_winbind.sh
@@ -0,0 +1,380 @@
+#!/usr/bin/sh
+#- Below variables are editable.
+#- VERSION Script tries to set the version automatically if it's empty
+#- string. The version number is assumed to be in
+#- ../../source/include/version.h. Should this fail to find correct
+#- version, set it manually to override automatic search.
+#- BIN List of binaries from ../../source/bin. Note: do not include
+#- swat here for it is a part of Samba.swat fileset
+#- SCRIPT List of scripts
+#- OS_REVISION The regular expression to determine the supported OS version.
+#- The default versions are HP-UX 10.10 or later as well as 11.*.
+#- You can modify this to reflect the OS you compile on. For
+#- instance, to support any 10.? and 11.? releases, use the
+#- following string:
+#- '?.10.*|?.11.*
+ VERSION=""
+
+ BIN="smbd nmbd smbclient testparm testprns smbstatus\
+ rpcclient smbpasswd make_smbcodepage nmblookup "
+
+# SCRIPT="smbtar addtosmbpass convert_smbpasswd"
+
+ OS_RELEASE='?.10.[2-9]?|?.11.*'
+# WINBINDD_OS_RELEASE='?.11.*'
+ WINBINDD_OS_RELEASE='?.11.11'
+
+#- Below variables should be exported from create_package.sh
+
+if [ -z "$PSF" ]
+then
+ PSF=samba.psf
+fi
+
+if [ -z "$DEPOT" ]
+then
+ DEPOT=samba.depot
+fi
+
+if [ -z "$PRODUCT" ]
+then
+ PRODUCT=Samba
+fi
+
+#--------------------------------------------------------------------------
+CODEPAGES=""
+if [ -z "$VERSION" ]
+then
+ echo "Deducing Samba version from version.h ... \c"
+ VERSION=`grep VERSION ../../source/include/version.h | awk '{print $3}' |\
+ tr -d '"'`
+ if [ $? -ne 0 -o -z "$VERSION" ]
+ then
+ echo "failed."
+ echo "Cannot find Samba version. Edit gen_psf.sh and set VERSION"
+ echo "variable manually."
+ exit 1
+ else
+ echo "$VERSION"
+ fi
+fi
+
+echo "Creating list of codepage definitions ..."
+
+#- create codepages from definition and add them to PSF file
+for a in ../../source/codepages/codepage_def.[0-9][0-9][0-9]
+do
+ b=${a##../../source/codepages/codepage_def.}
+ CODEPAGES="$CODEPAGES $b"
+done
+echo "\t$CODEPAGES"
+
+echo "Running make_smbcodepage on codepage definitions ... \c"
+
+mkdir codepage >/dev/null 2>&1
+for a in $CODEPAGES
+do
+../../source/bin/make_smbcodepage c $a ../../source/codepages/codepage_def.$a\
+ codepage/codepage.$a
+done
+echo "done."
+
+#- HP-UX uses slightly different section numbers for man pages. The following
+#- compares to "normal" sections:
+#-
+#- Section HP-UX section
+#- 1 1 user commands
+#- 5 4 files
+#- 7 5 concepts
+#- 8 1m administration commands
+#- NOTE:
+#- Sed expressions used in below loops replaces original section references
+#- inside man page with HP-UX section references. Assumption is that
+#- only numbers in brackets are section references and nothing else.
+#- So far I did not see the man pages corrupted by replacing anything
+#- else but section references.
+
+mkdir man >/dev/null 2>&1
+echo "Coverting man pages to HP-UX numbering ..."
+echo "\t Sections 1 \c"
+for a in ../../docs/manpages/*.1
+do
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 1/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/`basename $a`
+done
+echo "1m \c"
+for a in ../../docs/manpages/*.8
+do
+ b=`basename $a`
+ c=${b%.8}
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 1M/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/$c.1m
+done
+echo "4 \c"
+for a in ../../docs/manpages/*.5
+do
+ b=`basename $a`
+ c=${b%.5}
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 4/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/$c.4
+done
+echo "5"
+for a in ../../docs/manpages/*.7
+do
+ b=`basename $a`
+ c=${b%.7}
+ sed -e 's/^[.]TH \([^ ][^ ]*\) .*/.TH \1 5/'\
+ -e '1a\
+.ds )H Samba Team'\
+ -e "1a\\
+.ds ]W $VERSION"\
+ -e 's/(8)/(1m)/g' \
+ -e 's/(5)/(4)/g' \
+ -e 's/(7)/(5)/g' \
+ $a >man/$c.5
+done
+
+echo "Creating product specification file:"
+echo "\tVendor and product description"
+#- vendor and header of product definition
+cat <<_EOF_ >$PSF
+vendor
+ tag Samba
+ title Samba Team
+ description <vendor_description
+end
+
+product
+ tag $PRODUCT
+ title Samba Server
+ description < ../../WHATSNEW.txt
+ copyright "Copyright (c) 1998 Samba Team. See COPYING for details."
+ readme < ../../README
+ revision $VERSION
+ machine_type *
+ os_name HP-UX
+ os_release $OS_RELEASE
+ os_version *
+ directory /
+ is_locatable false
+ vendor_tag Samba
+
+_EOF_
+
+echo "\tFileset $PRODUCT.core"
+
+cat <<_EOF_ >>$PSF
+ fileset
+ tag core
+ title Samba server core components
+ revision $VERSION
+ os_release $WINBIND_OS_RELEASE
+ is_kernel false
+ is_reboot false
+ is_secure false
+ configure configure.bin
+ unconfigure unconfigure.bin
+
+ file -m 0755 -o root -g sys / /usr/local/samba/
+ file -m 0755 -o root -g sys / /usr/local/samba/bin/
+ file -m 0755 -o root -g sys / /usr/local/samba/lib/
+ file -m 0755 -o root -g sys / /usr/local/samba/lib/codepages/
+ file -m 0755 -o root -g sys / /usr/local/samba/newconfig/
+ file -m 0755 -o root -g sys / /usr/local/samba/newconfig/examples/
+ file -m 0700 -o root -g sys / /usr/local/samba/private/
+ file -m 0755 -o root -g sys / /var/usr/local/samba/
+ file -m 0755 -o root -g sys / /var/usr/local/samba/locks/
+
+ file -m 0444 -o root -g sys ../../COPYING /usr/local/samba/COPYING
+ file -m 0555 -o root -g sys ./samba.boot /sbin/init.d/samba
+ file -m 0444 -o root -g sys ./samba.config /usr/local/samba/newconfig/samba.config
+
+ file -m 0444 -o root -g sys ../../examples/smb.conf.default /usr/local/samba/newconfig/examples/smb.conf.default
+ file -m 0444 -o root -g sys ../../examples/simple/smb.conf /usr/local/samba/newconfig/examples/smb.conf.simple
+ file -m 0444 -o root -g sys ../../examples/dce-dfs/smb.conf /usr/local/samba/newconfig/examples/smb.conf.dce-dfs
+
+ directory ../../source/bin=/usr/local/samba/bin
+_EOF_
+ for a in $BIN
+ do
+ echo " file -m 0555 -o root -g sys $a" >>$PSF
+ done
+
+ echo " directory ../../source/script=/usr/local/samba/bin" >>$PSF
+
+ for a in $SCRIPT
+ do
+ echo " file -m 0555 -o root -g sys $a" >>$PSF
+ done
+
+ echo " directory ./codepage=/usr/local/samba/lib/codepages" >> $PSF
+
+ for a in $CODEPAGES
+ do
+ echo " file -m 0444 -o root -g sys codepage.$a" >>$PSF
+ done
+ echo " end" >>$PSF
+#- end of fileset CORE
+
+echo "\tFileset $PRODUCT.man"
+#- Man pages
+cat <<_EOF_ >>$PSF
+ fileset
+ tag man
+ title Samba server man pages
+ revision $VERSION
+ is_kernel false
+ is_reboot false
+ is_secure false
+ configure configure.man
+
+ file -m 0755 -o root -g sys / /usr/local/samba/man/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man1/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man1m/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man4/
+ file -m 0755 -o root -g sys / /usr/local/samba/man/man5/
+
+_EOF_
+
+#- HP-UX uses slightly different section numbers for man pages. The following
+#- compares to "normal" sections:
+#-
+#- Section HP-UX section
+#- 1 1 user commands
+#- 5 4 files
+#- 7 5 concepts
+#- 8 1m administration commands
+
+ for a in man/*.1
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man1/$b" >>$PSF
+ done
+
+ for a in man/*.1m
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man1m/$b" >>$PSF
+ done
+
+ for a in man/*.4
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man4/$b" >>$PSF
+ done
+
+ for a in man/*.5
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $a /usr/local/samba/man/man5/$b" >>$PSF
+ done
+
+ echo " end" >>$PSF
+
+echo "\tFileset $PRODUCT.swat"
+
+cat <<_EOF_ >>$PSF
+
+ fileset
+ tag winbind
+ title Samba winbind
+ revision $VERSION
+ is_kernel false
+ is_reboot false
+ is_secure false
+ prerequisite Samba.core
+ configure configure.winbind
+ unconfigure unconfigure.winbind
+
+ directory ../../source/nsswitch=/usr/local/samba/lib/winbind
+ file -m 0755 -o root -g sys libnss_winbind.so
+ file -m 0755 -o root -g sys pam_winbind.so
+ directory ../../source/bin=/usr/local/samba/bin
+ file -m 0755 -o root -g sys winbindd
+ file -m 0755 -o root -g sys wbinfo
+
+
+cat <<_EOF_ >>$PSF
+ end
+ fileset
+ tag swat
+ title Samba Web-based administration tool
+ revision $VERSION
+ is_kernel false
+ is_reboot false
+ is_secure false
+ prerequisite Samba.core
+ configure configure.swat
+ unconfigure unconfigure.swat
+
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/help/
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/images/
+ file -m 0755 -o root -g sys / /usr/local/samba/swat/include/
+
+ directory ../../swat=/usr/local/samba/swat
+ file -m 0444 -o root -g sys README
+
+ directory ../../source/bin=/usr/local/samba/bin
+ file -m 0555 -o root -g sys swat
+
+ directory ../../swat/images=/usr/local/samba/swat/images
+_EOF_
+
+ for a in ../../swat/images/*.gif
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+ echo " directory ../../swat/help=/usr/local/samba/swat/help" >>$PSF
+
+ for a in ../../swat/help/*.html
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+ echo " directory ../../docs/htmldocs=/usr/local/samba/swat/help" >>$PSF
+
+ for a in ../../docs/htmldocs/*.html
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+ echo " directory ../../swat/include=/usr/local/samba/swat/include" >>$PSF
+
+ for a in ../../swat/include/*.html
+ do
+ b=`basename $a`
+ echo " file -m 0444 -o root -g sys $b" >>$PSF
+ done
+
+cat <<_EOF_ >>$PSF
+ end
+
+end
+_EOF_
+
diff --git a/packaging/HPUX/samba.boot b/packaging/HPUX/samba.boot
new file mode 100644
index 00000000000..a0d55d7d766
--- /dev/null
+++ b/packaging/HPUX/samba.boot
@@ -0,0 +1,72 @@
+
+SUCCESS=0
+FAILURE=1
+exitval=$SUCCESS
+
+
+KillProcess()
+{
+ proc=$1
+ sig=$2
+
+ # Determine PID of process(es) to stop and kill it. This routine
+ # is designed to work with bourne shell, ksh and posix shell.
+
+ Command=`basename $proc | cut -c1-8` # Solaris ps limited to 8 chars.
+
+ pid=`ps -e | awk "\\$NF~/$Command/ {print \\$1}"`
+
+ if [ "X$pid" != "X" ]; then
+ kill -$sig $pid
+ fi
+}
+
+if [ ! -f /etc/rc.config.d/samba ]
+then
+ echo "ERROR: Config file /etc/rc.config.d/samba missing."
+ exit $FAILURE
+fi
+
+. /etc/rc.config.d/samba
+
+case $1 in
+ 'start_msg')
+ echo "Start Samba Services"
+ ;;
+
+ 'stop_msg')
+ echo "Stop Samba Services"
+ ;;
+
+ 'start')
+ # Starting Samba is easy ...
+ if [ "$SAMBA_START" -eq 1 ]
+ then
+ if [ -x /usr/local/samba/bin/smbd ]
+ then
+ /usr/local/samba/bin/smbd -D -d $SAMBA_DEBUG
+ fi
+
+ if [ -x /usr/local/samba/bin/nmbd ]
+ then
+ /usr/local/samba/bin/nmbd -D -d $SAMBA_DEBUG
+ fi
+ fi
+ ;;
+
+ 'stop')
+ #
+ # ... stopping it, however, is another story
+ #
+ KillProcess nmbd TERM
+ KillProcess smbd TERM
+ ;;
+
+ *)
+ echo "usage: $0 {start|stop|start_msg|stop_msg}"
+ exitval=$FAILURE
+ ;;
+esac
+
+exit $exitval
+
diff --git a/packaging/HPUX/samba.config b/packaging/HPUX/samba.config
new file mode 100644
index 00000000000..a5c6fd2cd06
--- /dev/null
+++ b/packaging/HPUX/samba.config
@@ -0,0 +1,2 @@
+SAMBA_START=1
+SAMBA_DEBUG=1
diff --git a/packaging/HPUX/unconfigure.bin b/packaging/HPUX/unconfigure.bin
new file mode 100644
index 00000000000..3d5c7d9dc04
--- /dev/null
+++ b/packaging/HPUX/unconfigure.bin
@@ -0,0 +1,8 @@
+# Samba.core unconfigure script
+
+rm -f /sbin/rc3.d/S911samba
+rm -f /sbin/rc2.d/K130samba
+
+/usr/sbin/userdel -r pcguest
+
+exit 0
diff --git a/packaging/HPUX/unconfigure.swat b/packaging/HPUX/unconfigure.swat
new file mode 100644
index 00000000000..b0dd325bc91
--- /dev/null
+++ b/packaging/HPUX/unconfigure.swat
@@ -0,0 +1,29 @@
+# Unconfigure script for Samba.swat
+
+KillProcess()
+{
+ proc=$1
+ sig=$2
+
+ # Determine PID of process(es) to stop and kill it. This routine
+ # is designed to work with bourne shell, ksh and posix shell.
+
+ Command=`basename $proc | cut -c1-8` # Solaris ps limited to 8 chars.
+
+ pid=`ps -e | awk "\\$NF~/$Command/ {print \\$1}"`
+
+ if [ "X$pid" != "X" ]; then
+ kill -$sig $pid
+ fi
+}
+
+grep -v '^swat' /etc/services >/tmp/services$$
+mv /tmp/services$$ /etc/services
+
+grep -v '^swat' /etc/inetd.conf >/tmp/inetd.conf$$
+mv /tmp/inetd.conf$$ /etc/inetd.conf
+
+KillProcess inetd HUP
+
+exit 0
+
diff --git a/packaging/HPUX/unconfigure.winbind b/packaging/HPUX/unconfigure.winbind
new file mode 100644
index 00000000000..80709eb86dd
--- /dev/null
+++ b/packaging/HPUX/unconfigure.winbind
@@ -0,0 +1,8 @@
+# Samba.winbind configure script
+
+
+ echo "heres where wed remove links to winbind libs"
+ rm /usr/lib/libnss_winbind.1
+ rm /usr/lib/security/libpam_winbind.1
+
+exit 0
diff --git a/packaging/HPUX/vendor_description b/packaging/HPUX/vendor_description
new file mode 100644
index 00000000000..2f661188048
--- /dev/null
+++ b/packaging/HPUX/vendor_description
@@ -0,0 +1,2 @@
+Read more about Samba and Samba Team at http://www.samba.org/
+
diff --git a/packaging/RedHat/samba2-devel.spec.tmpl b/packaging/RedHat/samba2-devel.spec.tmpl
new file mode 100644
index 00000000000..d60b91ff566
--- /dev/null
+++ b/packaging/RedHat/samba2-devel.spec.tmpl
@@ -0,0 +1,496 @@
+Summary: Samba SMB client and server
+Name: samba
+Version: PVERSION
+Release: PRELEASE
+Copyright: GNU GPL version 2
+Group: Networking
+Source: ftp://samba.org/pub/samba/samba-%{version}.tar.gz
+Packager: John H Terpstra [Samba-Team] <jht@samba.org>
+Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2
+Prereq: chkconfig fileutils
+BuildRoot: /var/tmp/samba
+Prefix: /usr
+
+%description
+Samba provides an SMB server which can be used to provide
+network services to SMB (sometimes called "Lan Manager")
+clients, including various versions of MS Windows, OS/2,
+and other Linux machines. Samba also provides some SMB
+clients, which complement the built-in SMB filesystem
+in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
+and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
+protocol.
+
+Samba-2.2 features working NT Domain Control capability and
+includes the SWAT (Samba Web Administration Tool) that
+allows samba's smb.conf file to be remotely managed using your
+favourite web browser. For the time being this is being
+enabled on TCP port 901 via inetd.
+
+Users are advised to use Samba-2.2 as a Windows NT4
+Domain Controller only on networks that do NOT have a Windows
+NT Domain Controller. This release does NOT as yet have
+Backup Domain control ability.
+
+Please refer to the WHATSNEW.txt document for fixup information.
+This binary release includes encrypted password support.
+
+Please read the smb.conf file and ENCRYPTION.txt in the
+docs directory for implementation details.
+
+NOTE: Red Hat Linux uses PAM which has integrated support
+for Shadow passwords and quotas. Do NOT recompile with the
+SHADOW_PWD option enabled
+
+%changelog
+* Sun Oct 14 2001 Andrew Bartlett <abartlet@samba.org>
+ - Set SBINDIR for codepage/manpage install, cope with
+ broken Makefile
+
+* Mon Aug 1 2001 Tim Potter <tpot@samba.org>
+ - Install winbind daemon, client programs, nss and pam libraries
+
+* Sat Mar 31 2001 Andrew Bartlett <abartlet@pcug.org.au>
+ - Changed prefix/share/man for _mandir/share/man
+ - Changed this for a sed macro MANDIR_MACRO
+ - This allows us to build both RH7 (RPM4)
+ and older versions from same specfile.
+ - Made makerpms.sh use the rpm -ta command rather
+ than attempting to devine the correct location to
+ put the file. Also removes some /tmp symlink games.
+ - Allows build on RPM4
+ - Increased PAM requirements to allow us to use
+ system-auth (this pam is in 6.x errata at least)
+
+* Tue Mar 27 2001 John H Terpstra <jht@samba.org>
+ - Fixed typos introduced by Sum Wun.
+ - Build for Red Hat 7.x
+
+* Sun Nov 12 2000 John H Terpstra <jht@samba.org>
+ - Updated for Samba-2.2 releases
+ - Added libnss_wins.so stuff
+ - Added compile-time options
+
+* Sat Nov 29 1999 Matthew Vanecek <mev0003@unt.edu>
+ - Added a Prefix and changed "/usr" to "%{prefix}"
+
+* Sat Nov 11 1999 Tridge <tridge@linuxcare.com>
+ - changed from mount.smb to mount.smbfs
+
+* Sat Oct 9 1999 Tridge <tridge@linuxcare.com>
+ - removed smbwrapper
+ - added smbmnt and smbmount
+
+* Sun Apr 25 1999 John H Terpstra <jht@samba.org>
+ - added smbsh.1 man page
+
+* Fri Mar 26 1999 Andrew Tridgell <tridge@samba.org>
+ - added --with-pam as pam is no longer used by default
+
+* Sat Jan 27 1999 Jeremy Allison <jra@samba.org>
+ - Removed smbrun binary and tidied up some loose ends
+
+* Sun Oct 25 1998 John H Terpstra <jht@samba.org>
+ - Added parameters to /config to ensure smb.conf, lmhosts,
+ and smbusers never gets over-written.
+
+* Sat Oct 24 1998 John H Terpstra <jht@samba.org>
+ - removed README.smbsh file from docs area
+
+* Mon Oct 05 1998 John H Terpstra <jht@samba.org>
+ - Added rpcclient to binaries list
+ - Added smbwrapper stuff
+
+* Fri Aug 21 1998 John H Terpstra <jht@samba.org>
+ - Updated for Samba version 2.0 building
+
+* Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
+ - updated postun triggerscript to check $0
+ - clear /etc/codepages from %preun instead of %postun
+
+* Sat Jul 04 1998 John H Terpstra <jht@samba.org>
+ - fixed codepage preservation during update via -Uvh
+
+* Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
+ - made the %postun script a tad less agressive; no reason to remove
+ the logs or lock file
+ - the %postun and %preun should only exectute if this is the final
+ removal
+ - migrated %triggerpostun from Red Hat's samba package to work around
+ packaging problems in some Red Hat samba releases
+
+* Sun Apr 26 1998 John H Terpstra <jht@samba.org>
+ - Tidy up for early alpha releases
+ - added findsmb from SGI packaging
+
+* Thu Apr 09 1998 John H Terpstra <jht@samba.org>
+ - Updated spec file
+ - Included new codepage.936
+
+* Sat Mar 20 1998 John H Terpstra <jht@samba.org>
+ - Added swat facility
+
+* Sat Jan 24 1998 John H Terpstra <jht@samba.org>
+ - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
+ - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
+ - Compounded make line
+ - Updated smb.init restart mechanism
+ - Use compound mkdir -p line instead of individual calls to mkdir
+ - Fixed smb.conf file path for log files
+ - Fixed smb.conf file path for incoming smb print spool directory
+ - Added a number of options to smb.conf file
+ - Added smbuser file and smb.conf file updates for username map
+
+%prep
+%setup
+
+%build
+cd source
+
+%ifarch ia64
+libtoolize --copy --force # get it to recognize IA-64
+autoheader
+autoconf
+EXTRA="-D_LARGEFILE64_SOURCE"
+%endif
+NUMCPU=`grep processor /proc/cpuinfo | wc -l`
+CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \
+ --prefix=%{prefix} \
+ --localstatedir=/var \
+ --with-configdir=/etc/samba \
+ --with-privatedir=/etc/samba \
+ --with-codepagedir=/etc/codepages \
+ --with-fhs \
+ --with-quotas \
+ --with-smbmount \
+ --with-pam \
+ --with-syslog \
+ --with-utmp \
+ --with-sambabook=%{prefix}/share/swat/using_samba \
+ --with-swatdir=%{prefix}/share/swat
+make -j${NUMCPU} proto
+make -j${NUMCPU} all nsswitch/libnss_wins.so
+make -j${NUMCPU} debug2html
+make -j${NUMCPU} bin/smbspool everything
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/sbin
+mkdir -p $RPM_BUILD_ROOT/etc/samba
+mkdir -p $RPM_BUILD_ROOT/etc/codepages/src
+mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,samba}
+mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
+mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin}
+mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include,using_samba}
+mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{figs,gifs}
+mkdir -p $RPM_BUILD_ROOTMANDIR_MACRO
+mkdir -p $RPM_BUILD_ROOT/var/cache/samba
+mkdir -p $RPM_BUILD_ROOT/var/log/samba
+mkdir -p $RPM_BUILD_ROOT/var/spool/samba
+mkdir -p $RPM_BUILD_ROOT/lib/security
+
+# Install standard binary files
+for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \
+ make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \
+ smbcacls smbcontrol wbinfo
+do
+install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin
+done
+for i in mksmbpasswd.sh smbtar
+do
+install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin
+done
+
+# Install secure binary files
+for i in smbd nmbd swat smbmount smbumount smbmnt debug2html winbindd
+do
+install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin
+done
+
+# we need a symlink for mount to recognise the smb and smbfs filesystem types
+ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
+ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb
+
+# This allows us to get away without duplicating code that
+# sombody else can maintain for us.
+cd source
+make BASEDIR=$RPM_BUILD_ROOT/usr \
+ LIBDIR=$RPM_BUILD_ROOT/etc/samba \
+ SBINDIR=$RPM_BUILD_ROOT%{prefix}/sbin \
+ BINDIR=$RPM_BUILD_ROOT%{prefix}/bin \
+ MANDIR=$RPM_BUILD_ROOTMANDIR_MACRO \
+ CODEPAGEDIR=$RPM_BUILD_ROOT/etc/codepages \
+ SWATDIR=$RPM_BUILD_ROOT/usr/share/swat \
+ SAMBABOOK=$RPM_BUILD_ROOT/usr/share/swat/using_samba \
+ installman installcp installswat
+cd ..
+
+# Install codepage source files
+for i in source/codepages/codepage_def.* source/codepages/*.TXT
+do
+install -m644 $i $RPM_BUILD_ROOT/etc/codepages/src
+done
+
+# Install the nsswitch wins library
+install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib
+
+# Make link for wins resolver
+( cd $RPM_BUILD_ROOT/lib; ln -sf libnss_wins.so libnss_wins.so.2; )
+
+# Install winbind shared libraries
+install -m755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib
+install -m755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security
+
+# Install SWAT helper files
+for i in swat/help/*.html docs/htmldocs/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help
+done
+for i in swat/images/*.gif
+do
+install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images
+done
+for i in swat/include/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include
+done
+
+# Install the miscellany
+install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat
+install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{prefix}/bin
+install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT%{prefix}/bin
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba
+install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
+install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf
+install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers
+install -m644 packaging/RedHat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
+install -m644 packaging/RedHat/samba.pamd.stack $RPM_BUILD_ROOT/etc/samba/samba.stack
+install -m644 packaging/RedHat/samba.xinetd $RPM_BUILD_ROOT/etc/samba/samba.xinetd
+echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/samba/lmhosts
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add smb
+/sbin/chkconfig smb off
+
+echo "Looking for old /etc/smb.conf..."
+if [ -f /etc/smb.conf -a ! -f /etc/samba/smb.conf ]; then
+ echo "Moving old /etc/smb.conf to /etc/samba/smb.conf"
+ mv /etc/smb.conf /etc/samba/smb.conf
+fi
+
+echo "Looking for old /etc/smbusers..."
+if [ -f /etc/smbusers -a ! -f /etc/samba/smbusers ]; then
+ echo "Moving old /etc/smbusers to /etc/samba/smbusers"
+ mv /etc/smbusers /etc/samba/smbusers
+fi
+
+echo "Looking for old /etc/lmhosts..."
+if [ -f /etc/lmhosts -a ! -f /etc/samba/lmhosts ]; then
+ echo "Moving old /etc/lmhosts to /etc/samba/lmhosts"
+ mv /etc/lmhosts /etc/samba/lmhosts
+fi
+
+echo "Looking for old /etc/MACHINE.SID..."
+if [ -f /etc/MACHINE.SID -a ! -f /etc/samba/MACHINE.SID ]; then
+ echo "Moving old /etc/MACHINE.SID to /etc/samba/MACHINE.SID"
+ mv /etc/MACHINE.SID /etc/samba/MACHINE.SID
+fi
+
+echo "Looking for old /etc/smbpasswd..."
+if [ -f /etc/smbpasswd -a ! -f /etc/samba/smbpasswd ]; then
+ echo "Moving old /etc/smbpasswd to /etc/samba/smbpasswd"
+ mv /etc/smbpasswd /etc/samba/smbpasswd
+fi
+
+#
+# For 2.2.1 we move the tdb files from /var/lock/samba to /var/cache/samba
+# to preserve across reboots.
+#
+echo "Moving tdb files in /var/lock/samba/*.tdb to /var/cache/samba/*.tdb"
+for i in /var/lock/samba/*.tdb
+do
+if [ -f $i ]; then
+ newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
+ echo "Moving $i to $newname"
+ mv $i $newname
+fi
+done
+
+# Remove the transient tdb files.
+if [ -e /var/cache/samba/brlock.tdb ]; then
+ rm -f /var/cache/samba/brlock.tdb
+fi
+
+if [ -e /var/cache/samba/unexpected.tdb ]; then
+ rm -f /var/cache/samba/unexpected.tdb
+fi
+
+if [ -e /var/cache/samba/connections.tdb ]; then
+ rm -f /var/cache/samba/connections.tdb
+fi
+
+if [ -e /var/cache/samba/locking.tdb ]; then
+ rm -f /var/cache/samba/locking.tdb
+fi
+
+if [ -e /var/cache/samba/messages.tdb ]; then
+ rm -f /var/cache/samba/messages.tdb
+fi
+
+if [ -d /var/lock/samba ]; then
+ rm -rf /var/lock/samba
+fi
+
+# Add swat entry to /etc/services if not already there.
+if !( grep ^[:space:]*swat /etc/services > /dev/null ) then
+ echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services
+fi
+
+# Add swat entry to /etc/inetd.conf if needed.
+if [ -f /etc/inetd.conf ]; then
+ if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
+ echo 'swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf
+ killall -1 inetd || :
+ fi
+fi
+
+# Add swat entry to xinetd.d if needed.
+if [ -d $RPM_BUILD_ROOT/etc/xinetd.d -a ! -f /etc/xinetd.d/swat ]; then
+ mv /etc/samba/samba.xinetd /etc/xinetd.d/swat
+else
+ rm -f /etc/samba/samba.xinetd
+fi
+
+# Install the correct version of the samba pam file, depending on pam version.
+if [ -f /lib/security/pam_stack.so ]; then
+ echo "Installing stack version of /etc/pam.d/samba..."
+ mv /etc/samba/samba.stack /etc/pam.d/samba
+else
+ echo "Installing non-stack version of /etc/pam.d/samba..."
+ rm -f /etc/samba/samba.stack
+fi
+
+# Create winbind nss client symlink
+
+if [ -e /lib/libnss_winbind.so ]; then
+ ln -sf /lib/libnss_winbind.so /lib/libnss_winbind.so.2
+fi
+
+%preun
+if [ $1 = 0 ] ; then
+ /sbin/chkconfig --del smb
+
+ # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba!
+ if [ -e /var/cache/samba/browse.dat ]; then
+ rm -f /var/cache/samba/browse.dat
+ fi
+ if [ -e /var/cache/samba/wins.dat ]; then
+ rm -f /var/cache/samba/wins.dat
+ fi
+
+ # Remove the transient tdb files.
+ if [ -e /var/cache/samba/brlock.tdb ]; then
+ rm -f /var/cache/samba/brlock.tdb
+ fi
+
+ if [ -e /var/cache/samba/unexpected.tdb ]; then
+ rm -f /var/cache/samba/unexpected.tdb
+ fi
+
+ if [ -e /var/cache/samba/connections.tdb ]; then
+ rm -f /var/cache/samba/connections.tdb
+ fi
+
+ if [ -e /var/cache/samba/locking.tdb ]; then
+ rm -f /var/cache/samba/locking.tdb
+ fi
+
+ if [ -e /var/cache/samba/messages.tdb ]; then
+ rm -f /var/cache/samba/messages.tdb
+ fi
+
+ # Remove winbind nss client symlink
+
+ if [ -L /lib/libnss_winbind.so.2 ]; then
+ rm -f /lib/libnss_winbind.so.2
+ fi
+fi
+
+%postun
+# Only delete remnants of samba if this is the final deletion.
+if [ $1 = 0 ] ; then
+ if [ -x /etc/pam.d/samba ]; then
+ rm -f /etc/pam.d/samba
+ fi
+ if [ -e /var/log/samba ]; then
+ rm -rf /var/log/samba
+ fi
+ if [ -e /var/cache/samba ]; then
+ rm -rf /var/cache/samba
+ fi
+
+ # Remove swat entries from /etc/inetd.conf and /etc/services
+ cd /etc
+ tmpfile=/etc/tmp.$$
+ if [ -f /etc/inetd.conf ]; then
+ # preserve inetd.conf permissions.
+ cp -p /etc/inetd.conf $tmpfile
+ sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
+ mv $tmpfile inetd.conf
+ fi
+ # preserve services permissions.
+ cp -p /etc/services $tmpfile
+ sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
+ mv $tmpfile /etc/services
+
+ # Remove swat entry from /etc/xinetd.d
+ if [ -f /etc/xinetd.d/swat ]; then
+ rm -r /etc/xinetd.d/swat
+ fi
+fi
+
+%triggerpostun -- samba < samba-2.0.0
+if [ $0 != 0 ]; then
+ /sbin/chkconfig --add smb
+fi
+
+%files
+%defattr(-,root,root)
+%doc README COPYING Manifest Read-Manifest-Now
+%doc WHATSNEW.txt Roadmap
+%doc docs
+%doc swat/README
+%doc examples
+%{prefix}/sbin/*
+/sbin/*
+%{prefix}/bin/*
+%attr(755,root,root) /lib/libnss_wins.s*
+%{prefix}/share/swat/help/*
+%{prefix}/share/swat/images/*
+%{prefix}/share/swat/include/header.html
+%{prefix}/share/swat/include/footer.html
+%{prefix}/share/swat/using_samba/*
+%config(noreplace) /etc/samba/lmhosts
+%config(noreplace) /etc/samba/smb.conf
+%config(noreplace) /etc/samba/smbusers
+/etc/samba/samba.stack
+/etc/samba/samba.xinetd
+/etc/rc.d/init.d/smb
+/etc/logrotate.d/samba
+%config(noreplace) /etc/pam.d/samba
+MANDIR_MACRO/man1/*
+MANDIR_MACRO/man5/*
+MANDIR_MACRO/man7/*
+MANDIR_MACRO/man8/*
+%dir /etc/codepages/*
+%attr(755,root,root) %dir /var/cache/samba
+%dir /var/log/samba
+%attr(1777,root,root) %dir /var/spool/samba
+%attr(-,root,root) /lib/libnss_winbind.so
+%attr(-,root,root) /lib/security/pam_winbind.so
diff --git a/packaging/SGI/winbindd.rc b/packaging/SGI/winbindd.rc
index c63944a04d9..deb4708c667 100644
--- a/packaging/SGI/winbindd.rc
+++ b/packaging/SGI/winbindd.rc
@@ -1,7 +1,7 @@
#! /bin/sh
#
-# winbindd server control
+# winbindd control
#
IS_ON=/etc/chkconfig
@@ -21,7 +21,7 @@ fi
case $1 in
'start')
- if $IS_ON winbindd && test -x $WINBINDD; then
+ if $IS_ON winbind && test -x $WINBINDD; then
$KILLALL -15 winbindd
$ECHO "winbindd:\c"
$WINBINDD ; $ECHO " winbindd."
@@ -33,6 +33,6 @@ case $1 in
exit 0
;;
*)
- echo "usage: /etc/init.d/winbindd {start|stop}"
+ echo "usage: /etc/init.d/winbind {start|stop}"
;;
esac