diff options
Diffstat (limited to 'packaging')
44 files changed, 4864 insertions, 0 deletions
diff --git a/packaging/Caldera/OpenServer/Clean b/packaging/Caldera/OpenServer/Clean new file mode 100755 index 0000000000..fe4eed2527 --- /dev/null +++ b/packaging/Caldera/OpenServer/Clean @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Cleanup after having configured, compiled, installed and packaged. +# Careful - running this script attempts to restore this hierarchy to +# freshly unpacked source +# +# Invoke as "./Clean -n" to get this script to tell you what it would do +# without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +[ -d dist ] && $V rm -rf dist +[ -f ../../../source/Makefile ] && { + $V cd ../../../source + $V rm -f bin/locktest bin/masktest bin/smbsh bin/debug2html \ + bin/locktest2 bin/smbfilter bin/smbtorture + $V make clean + $V make distclean + $V rm -f mout* +} diff --git a/packaging/Caldera/OpenServer/Compile b/packaging/Caldera/OpenServer/Compile new file mode 100755 index 0000000000..cba414ec74 --- /dev/null +++ b/packaging/Caldera/OpenServer/Compile @@ -0,0 +1,48 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="gcc -I/usr/local/include -L/usr/local/lib" +CFLAGS="-O3 -I/usr/local/include -L/usr/local/lib" +CXX="g++" +CXXFLAGS="-O3 -I/usr/local/include/stl -I/usr/local/include -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" +else + export CC CXX RANLIB MAKE CFLAGS CXXFLAGS +fi + +if [ "$V" = "echo" ] +then + echo "cd ../../../source" + echo "rm -f mout-1 mout-2 mout-3 mout-4" + echo "make all 2>&1 | tee mout-1" + echo "make smbfilter smbtorture debug2html 2>&1 | tee mout-2" + echo "make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3" + echo "make masktest locktest locktest2 2>&1 | tee mout-3" +else + cd ../../../source + rm -f mout-1 mout-2 mout-3 mout-4 + make all 2>&1 | tee mout-1 + make smbfilter smbtorture debug2html 2>&1 | tee mout-2 + make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3 + make masktest locktest locktest2 2>&1 | tee mout-3 +fi +# +# Not building : +# nsswitch - no <nss.h> +# rpctorture - improper use of client_info struct, dunno diff --git a/packaging/Caldera/OpenServer/Configure b/packaging/Caldera/OpenServer/Configure new file mode 100755 index 0000000000..65a4f1186f --- /dev/null +++ b/packaging/Caldera/OpenServer/Configure @@ -0,0 +1,73 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="gcc -I/usr/local/include -L/usr/local/lib" +CFLAGS="-O3 -I/usr/local/include -L/usr/local/lib" +CXX="g++" +CXXFLAGS="-O3 -I/usr/local/include/stl -I/usr/local/include -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +PREFIX=/usr/local/samba +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" + echo "PREFIX=$PREFIX" +else + export CC CXX RANLIB MAKE CFLAGS CXXFLAGS PREFIX +fi + +cd ../../../source +[ -f mout-config ] && { + if [ "$V" = "echo" ] + then + echo "mv mout-config mout-config$$" + else + mv mout-config mout-config$$ + fi +} +if [ "$V" = "echo" ] +then + echo "./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config" +else + ./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config +fi + +cat >> include/config.h <<EOF +#ifdef HAVE_LONGLONG +#undef HAVE_LONGLONG +#endif +EOF + +sed -e "s/nobody/nouser/" include/local.h > /tmp/nouser$$ +cp /tmp/nouser$$ include/local.h +rm -f /tmp/nouser$$ diff --git a/packaging/Caldera/OpenServer/Install b/packaging/Caldera/OpenServer/Install new file mode 100755 index 0000000000..ab27b6f67f --- /dev/null +++ b/packaging/Caldera/OpenServer/Install @@ -0,0 +1,156 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +# Make sure we pick up the install binary from /usr/local/bin +# rather than /etc/install +PATH=/usr/local/bin:$PATH +export PATH + +PREFIX=/usr/local/samba +HERE=`pwd` +PKGDIR=packaging/Caldera/OpenServer + +BUILD_ROOT=${HERE}/dist +BLDFIX=${BUILD_ROOT}/${PREFIX} +$V rm -rf $BUILD_ROOT +$V mkdir -p $BUILD_ROOT/etc/init.d +$V mkdir -p ${BLDFIX}/bin +$V mkdir -p ${BLDFIX}/sbin +$V mkdir -p ${BLDFIX}/swat/using_samba/gifs +$V mkdir -p ${BLDFIX}/swat/using_samba/figs +$V mkdir -p ${BLDFIX}/swat/images +$V mkdir -p ${BLDFIX}/swat/help +$V mkdir -p ${BLDFIX}/swat/include +$V mkdir -p ${BLDFIX}/man/man.1 +$V mkdir -p ${BLDFIX}/man/man.5 +$V mkdir -p ${BLDFIX}/man/man.7 +$V mkdir -p ${BLDFIX}/man/man.8 +$V mkdir -p ${BLDFIX}/var/locks +$V mkdir -p ${BLDFIX}/lib/codepages/src + +# Copy into the dist tree the custom data files +for i in Clean Install MakeSSO Packem Remove cdmt.config +do + $V cp pkg/$i ${BUILD_ROOT} +done +for i in cntl input +do + $V rm -rf ${BUILD_ROOT}/$i + $V cp -r pkg/$i ${BUILD_ROOT}/$i +done + +cd ../../.. + +# Install standard binary files +for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \ + smbsh +do +$V install -m755 -s source/bin/$i ${BLDFIX}/bin +done +for i in mksmbpasswd.sh smbtar +do +$V install -m755 source/script/$i ${BLDFIX}/bin +done + +# Install secure binary files +for i in smbd nmbd swat debug2html smbtorture smbfilter locktest2 masktest +do +$V install -m755 -s source/bin/$i ${BLDFIX}/sbin +done + + +# Install level 1 man pages +for i in *.1 +do +$V install -m644 docs/manpages/$i ${BLDFIX}/man/man.1 +done + +# Install codepage source files +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do +$V install -m644 source/codepages/codepage_def.$i ${BLDFIX}/lib/codepages/src +done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +$V install -m644 source/codepages/CP$i.TXT ${BLDFIX}/lib/codepages/src +done + +# Install SWAT helper files +for i in swat/help/*.html docs/htmldocs/*.html +do +$V install -m644 $i ${BLDFIX}/swat/help +done +for i in swat/images/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/images +done +for i in swat/include/*.html +do +$V install -m644 $i ${BLDFIX}/swat/include +done + +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +$V install -m644 $i ${BLDFIX}/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/gifs +done + +# Install the miscellany +$V install -m644 swat/README ${BLDFIX}/swat +$V install -m644 docs/manpages/smb.conf.5 ${BLDFIX}/man/man.5 +$V install -m644 docs/manpages/lmhosts.5 ${BLDFIX}/man/man.5 +$V install -m644 docs/manpages/smbpasswd.5 ${BLDFIX}/man/man.5 +$V install -m644 docs/manpages/samba.7 ${BLDFIX}/man/man.7 +$V install -m644 docs/manpages/smbd.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/nmbd.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbpasswd.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/swat.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbmount.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbmnt.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbumount.8 ${BLDFIX}/man/man.8 +$V install -m644 ${PKGDIR}/smb.conf ${BLDFIX}/lib/smb.conf +$V install -m644 ${PKGDIR}/smbusers $BUILD_ROOT/etc/smbusers +$V install -m755 ${PKGDIR}/smbprint ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/findsmb ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smbadduser ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smb.init $BUILD_ROOT/etc/init.d/samba + +# The following is now done in the postinstall script +# +# if [ "$V" = "echo" ] +# then +# echo "echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts" +# else +# echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts +# fi +# +# Build codepage load files +# $V cd ${BLDFIX}/lib/codepages +# for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +# do +# $V ${PREFIX}/bin/make_smbcodepage c $i \ +# ${BLDFIX}/lib/codepages/src/codepage_def.$i \ +# ${BLDFIX}/lib/codepages/codepage.$i +# done +# for i in 437 737 850 852 861 866 932 936 949 950 \ +# ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +# do +# $V ${PREFIX}/bin/make_unicodemap $i \ +# ${BLDFIX}/lib/codepages/src/CP$i.TXT \ +# ${BLDFIX}/lib/codepages/unicode_map.$i +# done diff --git a/packaging/Caldera/OpenServer/Makevol b/packaging/Caldera/OpenServer/Makevol new file mode 100755 index 0000000000..dc57b246ef --- /dev/null +++ b/packaging/Caldera/OpenServer/Makevol @@ -0,0 +1,10 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +./Configure $* +./Compile $* +./Install $* +./Package $* diff --git a/packaging/Caldera/OpenServer/Package b/packaging/Caldera/OpenServer/Package new file mode 100755 index 0000000000..c954e55e1e --- /dev/null +++ b/packaging/Caldera/OpenServer/Package @@ -0,0 +1,13 @@ +#!/bin/ksh +# +# Now create the actual custom installable media images +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +$V cd dist +$V ./MakeSSO diff --git a/packaging/Caldera/OpenServer/README b/packaging/Caldera/OpenServer/README new file mode 100644 index 0000000000..794bf54604 --- /dev/null +++ b/packaging/Caldera/OpenServer/README @@ -0,0 +1,44 @@ +Preparation Date: April 13, 2001 +Preparer: Ronald Joe Record <rr@sco.com> + +Instructions: Preparing Samba Packages for SCO OpenServer +=============================================================== + +We provide support only for current versions of SCO OpenServer + +The file samba-2.2-osr5.patch is a patch file suitable for use +with the patch command as follows: + + # cd ../../../source + # patch -p 0 -i ../packaging/Caldera/OpenServer/samba-2.2-osr5.patch + +The files modified by this patch are: + utils/torture.c + utils/locktest.c + utils/locktest2.c + +This patch should only be necessary until these changes are accepted +back into the 2.2 source tree. Until then, this patch must be applied +prior to building Samba 2.2 on SCO OpenServer 5. + +To produce the custom installable media images simply type (in this directory): + # ./Makevol + +The resultant samba media images should reside in the ./dist subdirectory. +To install from the media images, issue the command (as root): + + # cd dist + # ./Install + +Alternately, each of the steps in building the media images may be performed +individually by invoking each of the following: + + # ./Configure + # ./Compile + # ./Install + # ./Package + +If files are added or deleted from the SCO OpenServer Samba distribution then +the prototype file in the pkg directory should be appropriately modified. +The files in the pkg subdirectory were initially created using the mkpkg +package from SCO Skunkware (see http://www.sco.com/skunkware). diff --git a/packaging/Caldera/OpenServer/findsmb b/packaging/Caldera/OpenServer/findsmb new file mode 100755 index 0000000000..bb91c784b8 --- /dev/null +++ b/packaging/Caldera/OpenServer/findsmb @@ -0,0 +1,141 @@ +#!/usr/local/bin/perl +# +# Prints info on all smb responding machines on a subnet. +# This script needs to be run on a machine without nmbd running and be +# run as root to get correct info from WIN95 clients. +# +# syntax: +# findsmb [subnet broadcast address] +# +# with no agrument it will list machines on the current subnet +# +# There will be a "+" in front of the workgroup name for machines that are +# local master browsers for that workgroup. There will be an "*" in front +# of the workgroup name for machines that are the domain master browser for +# that workgroup. +# + +$SAMBABIN = "/usr/local/samba/bin"; + +for ($i = 0; $i < 2; $i++) { # test for -d option and broadcast address + $_ = shift; + if (m/-d|-D/) { + $DEBUG = 1; + } else { + if ($_) { + $BCAST = "-B $_"; + } + } +} + +sub ipsort # do numeric sort on last field of IP address +{ + @t1 = split(/\./,$a); + @t2 = split(/\./,$b); + @t1[3] <=> @t2[3]; +} + +# look for all machines that respond to a name lookup + +open(NMBLOOKUP,"$SAMBABIN/nmblookup $BCAST '*'|") || + die("Can't run nmblookup '*'.\n"); + +# get rid of all lines that are not a response IP address, +# strip everything but IP address and sort by last field in address + +@ipaddrs = sort ipsort grep(s/ \*<00>.*$//,<NMBLOOKUP>); + +# print header info + +print "\nIP ADDR NETBIOS NAME WORKGROUP/OS/VERSION $BCAST\n"; +print "---------------------------------------------------------------------\n"; + +foreach $ip (@ipaddrs) # loop through each IP address found +{ + $ip =~ s/\n//; # strip newline from IP address + +# find the netbios names registered by each machine + + open(NMBLOOKUP,"$SAMBABIN/nmblookup -r -A $ip|") || + die("Can't get nmb name list.\n"); + @nmblookup = <NMBLOOKUP>; + close NMBLOOKUP; + +# get the first <00> name + + @name = grep(/<00>/,@nmblookup); + $_ = @name[0]; + if ($_) { # we have a netbios name + if (/GROUP/) { # is it a group name + ($name, $aliases, $type, $length, @addresses) = + gethostbyaddr(pack('C4',split('\.',$ip)),2); + if (! $name) { # could not get name + $name = "unknown nis name"; + } + } else { + /(\S+)/; + $name = $1; + } + +# do an smbclient command on the netbios name. + + open(SMB,"$SAMBABIN/smbclient -N -L $name -I $ip -U% |") || + die("Can't do smbclient command.\n"); + @smb = <SMB>; + close SMB; + + if ($DEBUG) { # if -d flag print results of nmblookup and smbclient + print "===============================================================\n"; + print @nmblookup; + print @smb; + } + +# look for the OS= string + + @info = grep(/OS=/,@smb); + $_ = @info[0]; + if ($_) { # we found response + s/Domain=|OS=|Server=|\n//g; # strip out descriptions to make line shorter + + } else { # no OS= string in response (WIN95 client) + +# for WIN95 clients get workgroup name from nmblookup response + @name = grep(/<00> - <GROUP>/,@nmblookup); + $_ = @name[0]; + if ($_) { + /(\S+)/; + $_ = "[$1]"; + } else { + $_ = "Unknown Workgroup"; + } + } + +# see if machine registered a local master browser name + if (grep(/<1d>/,@nmblookup)) { + $master = '+'; # indicate local master browser + if (grep(/<1b>/,@nmblookup)) { # how about domain master browser? + $master = '*'; # indicate domain master browser + } + } else { + $master = ' '; # not a browse master + } + +# line up info in 3 columns + + print "$ip".' 'x(16-length($ip))."$name".' 'x(14-length($name))."$master"."$_\n"; + + } else { # no netbios name found +# try getting the host name + ($name, $aliases, $type, $length, @addresses) = + gethostbyaddr(pack('C4',split('\.',$ip)),2); + if (! $name) { # could not get name + $name = "unknown nis name"; + } + if ($DEBUG) { # if -d flag print results of nmblookup + print "===============================================================\n"; + print @nmblookup; + } + print "$ip".' 'x(16-length($ip))."$name\n"; + } +} + diff --git a/packaging/Caldera/OpenServer/pkg/Clean b/packaging/Caldera/OpenServer/pkg/Clean new file mode 100755 index 0000000000..fa68f18118 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Clean @@ -0,0 +1,3 @@ +#!/bin/sh + +rm -rf archives sso usr diff --git a/packaging/Caldera/OpenServer/pkg/Install b/packaging/Caldera/OpenServer/pkg/Install new file mode 100755 index 0000000000..ef0f61f33e --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Install @@ -0,0 +1 @@ +custom -p SKUNK2000:Samba -i -z `pwd`/archives/FLOPPY diff --git a/packaging/Caldera/OpenServer/pkg/MakeSSO b/packaging/Caldera/OpenServer/pkg/MakeSSO new file mode 100755 index 0000000000..538aaf58f7 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/MakeSSO @@ -0,0 +1,25 @@ +: +# MakeSSO +# + +rm -rf archives sso + + CDMT_DIR=`pwd`; export CDMT_DIR + Samba_DIR=`pwd`; export Samba_DIR + cdmtParse + if test $? != 0 + then + exit 1 + fi + + cdmtCompress + if test $? != 0 + then + exit 1 + fi + + cdmtArchive + if test $? != 0 + then + exit 1 + fi diff --git a/packaging/Caldera/OpenServer/pkg/Packem b/packaging/Caldera/OpenServer/pkg/Packem new file mode 100755 index 0000000000..a1b67e972d --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Packem @@ -0,0 +1,15 @@ +#!/bin/sh + +P=`pwd` +PKGTAR=`basename $P`-VOLS.tar +PKGDIST=`basename $P`-dist.tar.gz + +DIRS=usr +[ -d etc ] && DIRS="etc usr" +cd archives/FLOPPY +tar cf ../../$PKGTAR VOL* +cd ../.. +tar cf - $DIRS | /usr/local/bin/gzip -9 > $PKGDIST +[ -f $PKGTAR ] && rm -rf archives +[ -f $PKGDIST ] && rm -rf $DIRS +rm -rf sso diff --git a/packaging/Caldera/OpenServer/pkg/Remove b/packaging/Caldera/OpenServer/pkg/Remove new file mode 100755 index 0000000000..ea6102ac38 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Remove @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Generic command-line Software Manger (custom) removal from +# media images. Based on the installation script by Phil Hollenback +# (philiph@sco.com) and Ron Record (rr@sco.com) +# + +# Set this to be the full pathname to the directory +# where your media images are: +VDIR=`pwd`/archives/FLOPPY +VOLS=$VDIR/VOL.000.000 + +component=`grep "component" < $VOLS | head -1 | cut -d= -f2 | cut -d: -f1` +package=`grep "component" < $VOLS | head -1 | cut -d= -f2 | cut -d: -f2` + +custom -p $component:$package -r diff --git a/packaging/Caldera/OpenServer/pkg/cdmt.config b/packaging/Caldera/OpenServer/pkg/cdmt.config new file mode 100644 index 0000000000..e11c1961f2 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/cdmt.config @@ -0,0 +1,34 @@ +MACROS: + +DEFAULT_EXEC_MODE = 0755 + +DEFAULT_FILE_MODE = 0644 +DEFAULT_FILE_OWNER = bin +DEFAULT_FILE_GROUP = bin + +DEFAULT_DIR_MODE = 0755 +DEFAULT_DIR_OWNER = bin +DEFAULT_DIR_GROUP = bin + +DEFAULT_FIFO_MODE = 0644 +DEFAULT_FIFO_OWNER = bin +DEFAULT_FIFO_GROUP = bin + +DEFAULT_DISTTREEROOT_SHARED = $CDMT_DIR +DEFAULT_DISTTREEROOT_CLIENT = $CDMT_DIR + +CONFIG: + removeFiles = FALSE + removalPrompt = FALSE + archiveMedia = FLOPPY + compress = TRUE + ssoDir = sso + +FLOPPY_MEDIA: + device = /dev/rfd0 + volumeSize = 8000 + distVendor = SCO + distVersion = 2.2 + distCode = SKUNK2000 + paperLabel = "SCO Skunkware Samba 2.2" + diff --git a/packaging/Caldera/OpenServer/pkg/cntl/ccs b/packaging/Caldera/OpenServer/pkg/cntl/ccs new file mode 100755 index 0000000000..0cb22490e4 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/cntl/ccs @@ -0,0 +1,108 @@ +#!/bin/sh +# +# Postinstallscript written by Ron Record (rr@sco.com) +# + +scriptname="$0" +step="$1" +keywords="$2" +pkglist="$3" + +# Source in the standard functions library, ccsSetup.sh +. ccsSetup.sh + +ccs_return_value=0 + +SPOOL=/var/spool/samba +SVCS=/etc/services +INET=/etc/inetd.conf +LMHOST=/etc/lmhosts +PREFIX=/usr/local/samba + +# +# Create /var/spool/samba, create an initial /etc/lmhosts, build the +# codepages and setup swat to be run out of inetd on port 901 +# +PostExport() +{ + [ -d $SPOOL ] || { + mkdir -p $SPOOL + chmod 1777 $SPOOL + } + if [ -f $LMHOST ] + then + grep localhost $LMHOST > /dev/null || { + echo 127.0.0.1 localhost >> $LMHOST + } + else + echo 127.0.0.1 localhost > $LMHOST + fi + + cd ${PREFIX}/lib/codepages + for i in 437 737 775 850 852 861 866 932 936 949 950 1251 + do + ${PREFIX}/bin/make_smbcodepage c $i \ + ${PREFIX}/lib/codepages/src/codepage_def.$i \ + ${PREFIX}/lib/codepages/codepage.$i + done + for i in 437 737 850 852 861 866 932 936 949 950 \ + ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R + do + ${PREFIX}/bin/make_unicodemap $i \ + ${PREFIX}/lib/codepages/src/CP$i.TXT \ + ${PREFIX}/lib/codepages/unicode_map.$i + done + + grep swat $SVCS > /dev/null || { + echo "swat 901/tcp # Samba Web Administration Tool " >> $SVCS + } + + grep swat $INET > /dev/null || { + echo "swat stream tcp nowait root /usr/local/samba/bin/swat swat " >> $INET + } + + kill -1 `ps -e | grep inetd | awk ' { print $1 } '` +} + +DisableStop() +{ + /etc/init.d/samba disable > /dev/null 2>&1 + /etc/init.d/samba stop > /dev/null 2>&1 +} + +# +# Remove /var/spool/samba and delete inetd entries for swat +# +PostUnexport() +{ + [ -d $SPOOL ] && { + rm -rf $SPOOL + } + + grep swat $SVCS > /dev/null && { + B=`basename $SVCS` + T=$B$$ + grep -v swat $SVCS > /tmp/$T + cp /tmp/$T $SVCS + rm -f /tmp/$T + } + + grep swat $INET > /dev/null || { + B=`basename $INET` + T=$B$$ + grep -v swat $INET > /tmp/$T + cp /tmp/$T $INET + rm -f /tmp/$T + } + + kill -1 `ps -e | grep inetd | awk ' { print $1 } '` +} + +case "$step" in + POST_EXPORT) PostExport ;; + PRE_UNEXPORT) DisableStop ;; + POST_UNEXPORT) PostUnexport ;; +esac + +exit $ccs_return_value + diff --git a/packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt b/packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt new file mode 100644 index 0000000000..245f6d12ce --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt @@ -0,0 +1,25 @@ + +COMP:SKUNK2000:Samba: +description = "Samba - A Windows SMB/CIFS fileserver for UNIX" +version = 2.2 +subpackages = Samba +required = Samba +dependencies = +distTreeRootSHARED = $Samba_DIR +distTreeRootCLIENT = $Samba_DIR +pkgFiles = $Samba_DIR/input/Samba.pkg + +FILE_DEFAULT: +mode = $DEFAULT_FILE_MODE +owner = $DEFAULT_FILE_OWNER +group = $DEFAULT_FILE_GROUP + +DIR_DEFAULT: +mode = $DEFAULT_DIR_MODE +owner = $DEFAULT_DIR_OWNER +group = $DEFAULT_DIR_GROUP + +FIFO_DEFAULT: +mode = $DEFAULT_FIFO_MODE +owner = $DEFAULT_FIFO_OWNER +group = $DEFAULT_FIFO_GROUP diff --git a/packaging/Caldera/OpenServer/pkg/input/Samba.pkg b/packaging/Caldera/OpenServer/pkg/input/Samba.pkg new file mode 100644 index 0000000000..ea76e74a61 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/input/Samba.pkg @@ -0,0 +1,1905 @@ + +PKG:Control: +description = "Control package" +dependencies = +distTreeRootSHARED = $Samba_DIR +distTreeRootCLIENT = $Samba_DIR + +DIR:Control:SHARED:cntl: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Control:SHARED:cntl/ccs: +mode = 0755 +owner = root +group = sys +flags = + +PKG:Samba: +description = "Samba - A Windows SMB/CIFS fileserver for UNIX" +dependencies = +distTreeRootSHARED = $Samba_DIR +distTreeRootCLIENT = $Samba_DIR + +DIR:Samba:SHARED:etc: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:etc/init.d: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:etc/init.d/samba: +mode = 0755 +owner = root +group = sys +flags = +exportPath = /etc/init.d/samba + +FILE:Samba:SHARED:etc/smbusers: +mode = 0644 +owner = root +group = sys +flags = +exportPath = /etc/smbusers + +DIR:Samba:SHARED:usr: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba: +mode = 0755 +owner = root +group = sys +flags = +exportPath = /usr/local/samba + +DIR:Samba:SHARED:usr/local/samba/bin: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/nmblookup: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbclient: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbpasswd: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbstatus: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/testparm: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/testprns: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/make_smbcodepage: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/make_unicodemap: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/make_printerdef: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/rpcclient: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbspool: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbsh: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/mksmbpasswd.sh: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbtar: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbprint: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/findsmb: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbadduser: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/sbin: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/smbd: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/nmbd: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/swat: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/debug2html: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/smbtorture: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/smbfilter: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/locktest2: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/masktest: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/using_samba: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/using_samba/gifs: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/index.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/samba.s.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/txthome.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/txtnexta.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/txtpreva.gif: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/using_samba/figs: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0101.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0102.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0103.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0104.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0105.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0106.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0107.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0108.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0109.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0110.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0111.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0112.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0113.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0114.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0201.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0202.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0203.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0204.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0301.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0302.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0303.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0304.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0305.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0306.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0307.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0308.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0309.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0310.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0311.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0312.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0313.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0314.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0315.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0316.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0317.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0318.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0319.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0320.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0321.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0322.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0323.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0324.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0325.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0326.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0327.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0328.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0401.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0402.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0403.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0404.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0405.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0406.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0407.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0501.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0502.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0503.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0504.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0505.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0506.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0507.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0508.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0601.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0602.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0603.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0604.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0605.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0606.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0701.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0702.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0703.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0704.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0705.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0706.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0707.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0708.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0709.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0801.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0802.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0803.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0804.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0805.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0901.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0902.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0903.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0904.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0905.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.aa01.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.ab01.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.ab02.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appb_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appb_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appb_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appc_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appd_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appe_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appf_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_07.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_08.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch03_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch03_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch03_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_07.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_08.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch07_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch07_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch07_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_07.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch09_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch09_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch09_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/index.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/inx.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/licenseinfo.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/this_edition.html: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/images: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/globals.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/home.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/passwd.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/printers.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/samba.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/shares.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/status.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/viewconfig.gif: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/help: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/welcome.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/DOMAIN_MEMBER.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/NT_Security.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/OS2-Client-HOWTO.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/Samba-HOWTO-Collection.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/UNIX_INSTALL.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/findsmb.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/lmhosts.5.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/make_smbcodepage.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/msdfs_setup.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/nmbd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/nmblookup.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/printer_driver2.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/rpcclient.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/samba-pdc-faq.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/samba-pdc-howto.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/samba.7.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smb.conf.5.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbcacls.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbclient.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbcontrol.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbmnt.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbmount.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbpasswd.5.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbpasswd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbrun.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbsh.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbspool.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbstatus.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbtar.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbumount.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/swat.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/testparm.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/testprns.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/wbinfo.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/winbind.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/winbindd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/include: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/include/footer.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/include/header.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/README: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.1: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/findsmb.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/make_smbcodepage.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/make_unicodemap.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/nmblookup.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/rpcclient.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbcacls.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbclient.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbcontrol.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbrun.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbsh.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbstatus.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbtar.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/testparm.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/testprns.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/wbinfo.1: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.5: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.5/smb.conf.5: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.5/lmhosts.5: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.5/smbpasswd.5: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.7: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.7/samba.7: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.8: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbd.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/nmbd.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbpasswd.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/swat.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbmount.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbmnt.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbumount.8: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/var: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/var/locks: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/lib: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/lib/codepages: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/lib/codepages/src: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.437: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.737: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.775: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.850: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.852: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.861: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.866: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.932: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.936: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.949: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.950: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.1251: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP437.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP737.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP850.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP852.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP861.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP866.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP932.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP936.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP949.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP950.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-1.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-2.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-5.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-7.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPKOI8-R.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/smb.conf: +mode = 0644 +owner = root +group = sys +flags = diff --git a/packaging/Caldera/OpenServer/pkg/input/Samba.prd b/packaging/Caldera/OpenServer/pkg/input/Samba.prd new file mode 100644 index 0000000000..e31c8bfe8e --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/input/Samba.prd @@ -0,0 +1,6 @@ +PROD:SKUNK2000:Samba: +description = "Samba - A Windows SMB/CIFS fileserver for UNIX" +version = 2.2 +packages = SKUNK2000:Samba +required = SKUNK2000:Samba +cmpntFiles = Samba.cmpnt diff --git a/packaging/Caldera/OpenServer/samba-2.2-osr5.patch b/packaging/Caldera/OpenServer/samba-2.2-osr5.patch new file mode 100644 index 0000000000..fb71d9298b --- /dev/null +++ b/packaging/Caldera/OpenServer/samba-2.2-osr5.patch @@ -0,0 +1,29 @@ +--- utils/torture.c.00 Fri Mar 30 13:53:26 2001 ++++ utils/torture.c Fri Apr 13 15:06:04 2001 +@@ -2703,7 +2703,11 @@ + + dbf = stdout; + ++#if defined(_SCO_DS) /* SCO OpenServer */ ++ setvbuf(stdout, NULL, _IONBF, 0); ++#else + setbuffer(stdout, NULL, 0); ++#endif + + charset_initialise(); + +--- 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.conf b/packaging/Caldera/OpenServer/smb.conf new file mode 100644 index 0000000000..717c4efb17 --- /dev/null +++ b/packaging/Caldera/OpenServer/smb.conf @@ -0,0 +1,291 @@ +# This is the main Samba configuration file. You should read the +# smb.conf(5) manual page in order to understand the options listed +# here. Samba has a huge number of configurable options (perhaps too +# many!) most of which are not shown in this example +# +# Any line which starts with a ; (semi-colon) or a # (hash) +# is a comment and is ignored. In this example we will use a # +# for commentry and a ; for parts of the config file that you +# may wish to enable +# +# NOTE: Whenever you modify this file you should run the command "testparm" +# to check that you have not many any basic syntactic errors. +# +#======================= Global Settings ===================================== +[global] + +# workgroup = NT-Domain-Name or Workgroup-Name + workgroup = MYGROUP + +# server string is the equivalent of the NT Description field + server string = Samba Server + +# This option is important for security. It allows you to restrict +# connections to machines which are on your local network. The +# following example restricts access to two C class networks and +# the "loopback" interface. For more examples of the syntax see +# the smb.conf man page +; hosts allow = 192.168.1. 192.168.2. 127. + +# if you want to automatically load your printer list rather +# than setting them up individually then you'll need this + printcap name = lpstat + load printers = yes + +# It should not be necessary to spell out the print system type unless +# yours is non-standard. Currently supported print systems include: +# bsd, sysv, plp, lprng, aix, hpux, qnx + printing = sysv + +# Uncomment this if you want a guest account, you must add this to /etc/passwd +# otherwise the user "nouser" is used +; guest account = pcguest + +# this tells Samba to use a separate log file for each machine +# that connects + log file = /usr/local/samba/var/log.%m + +# Put a capping on the size of the log files (in Kb). + max log size = 50 + +# Security mode. Most people will want user level security. See +# security_level.txt for details. + security = user +# Use password server option only with security = server +; password server = <NT-Server-Name> + +# Password Level allows matching of _n_ characters of the password for +# all combinations of upper and lower case. +; password level = 8 +; username level = 8 + +# You may wish to use password encryption. Please read +# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. +# Do not enable this option unless you have read those documents +; encrypt passwords = yes +; smb passwd file = /etc/smbpasswd + +# The following are needed to allow password changing from Windows to +# update the Linux sytsem password also. +# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. +# NOTE2: You do NOT need these to allow workstations to change only +# the encrypted SMB passwords. They allow the Unix password +# to be kept in sync with the SMB password. +; unix password sync = Yes +; passwd program = /usr/bin/passwd %u +; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* + +# Unix users can map to different SMB User names +; username map = /etc/smbusers + +# Using the following line enables you to customise your configuration +# on a per machine basis. The %m gets replaced with the netbios name +# of the machine that is connecting +; include = /etc/smb.conf.%m + +# Most people will find that this option gives better performance. +# See speed.txt and the manual pages for details + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 + +# Configure Samba to use multiple interfaces +# If you have multiple network interfaces then you must list them +# here. See the man page for details. +; interfaces = 192.168.12.2/24 192.168.13.2/24 + +# Configure remote browse list synchronisation here +# request announcement to, or browse list sync from: +# a specific host or from / to a whole subnet (see below) +; remote browse sync = 192.168.3.25 192.168.5.255 +# Cause this host to announce itself to local subnets here +; remote announce = 192.168.1.255 192.168.2.44 + +# Browser Control Options: +# set local master to no if you don't want Samba to become a master +# browser on your network. Otherwise the normal election rules apply +; local master = no + +# OS Level determines the precedence of this server in master browser +# elections. The default value should be reasonable +; os level = 33 + +# Domain Master specifies Samba to be the Domain Master Browser. This +# allows Samba to collate browse lists between subnets. Don't use this +# if you already have a Windows NT domain controller doing this job +; domain master = yes + +# Preferred Master causes Samba to force a local browser election on startup +# and gives it a slightly higher chance of winning the election +; preferred master = yes + +# Use only if you have an NT server on your network that has been +# configured at install time to be a primary domain controller. +; domain controller = <NT-Domain-Controller-SMBName> + +# Enable this if you want Samba to be a domain logon server for +# Windows95 workstations. +; domain logons = yes + +# if you enable domain logons then you may want a per-machine or +# per user logon script +# run a specific logon batch file per workstation (machine) +; logon script = %m.bat +# run a specific logon batch file per username +; logon script = %U.bat + +# Where to store roving profiles (only for Win95 and WinNT) +# %L substitutes for this servers netbios name, %U is username +# You must uncomment the [Profiles] share below +; logon path = \\%L\Profiles\%U + +# All NetBIOS names must be resolved to IP Addresses +# 'Name Resolve Order' allows the named resolution mechanism to be specified +# the default order is "host lmhosts wins bcast". "host" means use the unix +# system gethostbyname() function call that will use either /etc/hosts OR +# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf +# and the /etc/resolv.conf file. "host" therefore is system configuration +# dependant. This parameter is most often of use to prevent DNS lookups +# in order to resolve NetBIOS names to IP Addresses. Use with care! +# The example below excludes use of name resolution for machines that are NOT +# on the local network segment +# - OR - are not deliberately to be known via lmhosts or via WINS. +; name resolve order = wins lmhosts bcast + +# Windows Internet Name Serving Support Section: +# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server +; wins support = yes + +# WINS Server - Tells the NMBD components of Samba to be a WINS Client +# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both +; wins server = w.x.y.z + +# WINS Proxy - Tells Samba to answer name resolution queries on +# behalf of a non WINS capable client, for this to work there must be +# at least one WINS Server on the network. The default is NO. +; wins proxy = yes + +# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names +# via DNS nslookups. The built-in default for versions 1.9.17 is yes, +# this has been changed in version 1.9.18 to no. + dns proxy = no + +# Case Preservation can be handy - system default is _no_ +# NOTE: These can be set on a per share basis +; preserve case = no +; short preserve case = no +# Default case is normally upper case for all DOS files +; default case = lower +# Be very careful with case sensitivity - it can break things! +; case sensitive = no + +#============================ Share Definitions ============================== +[homes] + comment = Home Directories + browseable = no + writable = yes + +# Un-comment the following and create the netlogon directory for Domain Logons +; [netlogon] +; comment = Network Logon Service +; path = /home/netlogon +; guest ok = yes +; writable = no +; share modes = no + + +# Un-comment the following to provide a specific roving profile share +# the default is to use the user's home directory +;[Profiles] +; path = /home/profiles +; browseable = no +; guest ok = yes + + +# NOTE: If you have a BSD-style print system there is no need to +# specifically define each individual printer +[printers] + comment = All Printers + path = /var/spool/samba + browseable = no +# Set public = yes to allow user 'guest account' to print + guest ok = no + writable = no + printable = yes + +# This one is useful for people to share files +;[tmp] +; comment = Temporary file space +; path = /tmp +; read only = no +; public = yes + +# A publicly accessible directory, but read only, except for people in +# the "staff" group +;[public] +; comment = Public Stuff +; path = /home/samba +; public = yes +; writable = yes +; printable = no +; write list = @staff + +# Other examples. +# +# A private printer, usable only by fred. Spool data will be placed in fred's +# home directory. Note that fred must have write access to the spool directory, +# wherever it is. +;[fredsprn] +; comment = Fred's Printer +; valid users = fred +; path = /homes/fred +; printer = freds_printer +; public = no +; writable = no +; printable = yes + +# A private directory, usable only by fred. Note that fred requires write +# access to the directory. +;[fredsdir] +; comment = Fred's Service +; path = /usr/somewhere/private +; valid users = fred +; public = no +; writable = yes +; printable = no + +# a service which has a different directory for each machine that connects +# this allows you to tailor configurations to incoming machines. You could +# also use the %u option to tailor it by user name. +# The %m gets replaced with the machine name that is connecting. +;[pchome] +; comment = PC Directories +; path = /usr/pc/%m +; public = no +; writable = yes + +# A publicly accessible directory, read/write to all users. Note that all files +# created in the directory by users will be owned by the default user, so +# any user with access can delete any other user's files. Obviously this +# directory must be writable by the default user. Another user could of course +# be specified, in which case all files would be owned by that user instead. +;[public] +; path = /usr/somewhere/else/public +; public = yes +; only guest = yes +; writable = yes +; printable = no + +# The following two entries demonstrate how to share a directory so that two +# users can place files there that will be owned by the specific users. In this +# setup, the directory should be writable by both users and should have the +# sticky bit set on it to prevent abuse. Obviously this could be extended to +# as many users as required. +;[myshare] +; comment = Mary's and Fred's stuff +; path = /usr/somewhere/shared +; valid users = mary fred +; public = no +; writable = yes +; printable = no +; create mask = 0765 + + diff --git a/packaging/Caldera/OpenServer/smb.init b/packaging/Caldera/OpenServer/smb.init new file mode 100755 index 0000000000..ce6c6fa4b3 --- /dev/null +++ b/packaging/Caldera/OpenServer/smb.init @@ -0,0 +1,76 @@ +#!/bin/sh +#ident "@(#)samba.server 1.0 96/06/19 TK" /* SVr4.0 1.1.13.1*/ +# +# Please send info on modifications to knuutila@cs.utu.fi +# +# This file should have uid root, gid sys and chmod 744 +# +# Modified 17-Jul-99 by Ron Record (rr@sco.com) for use in SCO Skunkware +# + +SAMBADIR=/usr/local/samba +RCSCRIPT=/etc/rc2.d/S99samba + +if [ ! -d /usr/bin ] +then # /usr not mounted + exit +fi + +killproc() { # kill the named process(es) + if [ -f $SAMBADIR/var/locks/$1.pid ] + then + kill `cat $SAMBADIR/var/locks/$1.pid` + else + pid=`/usr/bin/ps -e | + /usr/bin/grep $1 | + /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid + fi +} + +start() { +# +# Edit these lines to suit your installation (paths, workgroup, host) +# + $SAMBADIR/sbin/smbd -D -s $SAMBADIR/lib/smb.conf + $SAMBADIR/sbin/nmbd -D -s $SAMBADIR/lib/smb.conf +} + +stop() { + killproc nmbd + killproc smbd +} + +# Start/stop processes required for samba server + +case "$1" in + +'start') + start + ;; +'stop') + stop + ;; +'restart') + stop + start + ;; +'enable') + if [ -h $RCSCRIPT ] ; then + echo "Samba is already enabled." + else + echo "Enabling Samba ... \c" + rm -f $RCSCRIPT + ln -s /etc/init.d/samba $RCSCRIPT + echo "Done" + fi + ;; +'disable') + echo "Disabling Samba ... \c" + rm -f $RCSCRIPT + echo "Done" + ;; +*) + echo "Usage: /etc/init.d/samba { start | stop | restart | enable | disable }" + ;; +esac diff --git a/packaging/Caldera/OpenServer/smbadduser b/packaging/Caldera/OpenServer/smbadduser new file mode 100755 index 0000000000..2f38bf28f1 --- /dev/null +++ b/packaging/Caldera/OpenServer/smbadduser @@ -0,0 +1,73 @@ +#!/bin/csh +# +# smbadduser - Written by Mike Zakharoff +# +unalias * +set path = ($path) + +set smbpasswd = /etc/smbpasswd +set user_map = /etc/smbusers +# +# Set to site specific passwd command +# +set passwd = "cat /etc/passwd" +#set passwd = "niscat passwd.org_dir" +#set passwd = "ypcat passwd" + +set line = "----------------------------------------------------------" +if ($#argv == 0) then + echo $line + echo "Written: Mike Zakharoff email: michael.j.zakharoff@boeing.com" + echo "" + echo " 1) Updates $smbpasswd" + echo " 2) Updates $user_map" + echo " 3) Executes smbpasswd for each new user" + echo "" + echo "smbadduser unixid:ntid unixid:ntid ..." + echo "" + echo "Example: smbadduser zak:zakharoffm johns:smithj" + echo $line + exit 1 +endif + +touch $smbpasswd $user_map +set new = () +foreach one ($argv) + echo $one | grep ':' >& /dev/null + if ($status != 0) then + echo "ERROR: Must use unixid:ntid like -> zak:zakharoffm" + continue + endif + set unix = `echo $one | awk -F: '{print $1}'` + set ntid = `echo $one | awk -F: '{print $2}'` + + set usr = `eval $passwd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#usr != 1) then + echo "ERROR: $unix Not in passwd database SKIPPING..." + continue + endif + set tmp = `cat $smbpasswd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#tmp != 0) then + echo "ERROR: $unix is already in $smbpasswd SKIPPING..." + continue + endif + + echo "Adding: $unix to $smbpasswd" + eval $passwd | \ + awk -F: '$1==USR { \ + printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd + if ($unix != $ntid) then + echo "Adding: {$unix = $ntid} to $user_map" + echo "$unix = $ntid" >> $user_map + endif + set new = ($new $unix) +end + +# +# Enter password for new users +# +foreach one ($new) + echo $line + echo "ENTER password for $one" + smbpasswd $one +end diff --git a/packaging/Caldera/OpenServer/smbprint b/packaging/Caldera/OpenServer/smbprint new file mode 100755 index 0000000000..ec083eede6 --- /dev/null +++ b/packaging/Caldera/OpenServer/smbprint @@ -0,0 +1,77 @@ +#!/bin/sh + +# This script is an input filter for printcap printing on a unix machine. It +# uses the smbclient program to print the file to the specified smb-based +# server and service. +# For example you could have a printcap entry like this +# +# smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint +# +# which would create a unix printer called "smb" that will print via this +# script. You will need to create the spool directory /usr/spool/smb with +# appropriate permissions and ownerships for your system. + +# Set these to the server and service you wish to print to +# In this example I have a WfWg PC called "lapland" that has a printer +# exported called "printer" with no password. + +# +# Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton) +# so that the server, service, and password can be read from +# a /var/spool/lpd/PRINTNAME/.config file. +# +# In order for this to work the /etc/printcap entry must include an +# accounting file (af=...): +# +# cdcolour:\ +# :cm=CD IBM Colorjet on 6th:\ +# :sd=/var/spool/lpd/cdcolour:\ +# :af=/var/spool/lpd/cdcolour/acct:\ +# :if=/usr/local/etc/smbprint:\ +# :mx=0:\ +# :lp=/dev/null: +# +# The /usr/var/spool/lpd/PRINTNAME/.config file should contain: +# server=PC_SERVER +# service=PR_SHARENAME +# password="password" +# +# E.g. +# server=PAULS_PC +# service=CJET_371 +# password="" + +# +# Debugging log file, change to /dev/null if you like. +# +# logfile=/tmp/smb-print.log +logfile=/dev/null + + +# +# The last parameter to the filter is the accounting file name. +# Extract the directory name from the file name. +# Concat this with /.config to get the config file. +# +eval acct_file=\${$#} +spool_dir=`dirname $acct_file` +config_file=$spool_dir/.config + +# Should read the following variables set in the config file: +# server +# service +# password +eval `cat $config_file` + +# +# Some debugging help, change the >> to > if you want to same space. +# +echo "server $server, service $service" >> $logfile + +( +# NOTE You may wish to add the line `echo translate' if you want automatic +# CR/LF translation when printing. +# echo translate + echo "print -" + cat +) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P >> $logfile diff --git a/packaging/Caldera/OpenServer/smbusers b/packaging/Caldera/OpenServer/smbusers new file mode 100644 index 0000000000..08f611826a --- /dev/null +++ b/packaging/Caldera/OpenServer/smbusers @@ -0,0 +1,3 @@ +# Unix_name = SMB_name1 SMB_name2 ... +root = administrator admin +nouser = guest pcguest smbguest diff --git a/packaging/Caldera/UnixWare/Clean b/packaging/Caldera/UnixWare/Clean new file mode 100755 index 0000000000..fe4eed2527 --- /dev/null +++ b/packaging/Caldera/UnixWare/Clean @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Cleanup after having configured, compiled, installed and packaged. +# Careful - running this script attempts to restore this hierarchy to +# freshly unpacked source +# +# Invoke as "./Clean -n" to get this script to tell you what it would do +# without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +[ -d dist ] && $V rm -rf dist +[ -f ../../../source/Makefile ] && { + $V cd ../../../source + $V rm -f bin/locktest bin/masktest bin/smbsh bin/debug2html \ + bin/locktest2 bin/smbfilter bin/smbtorture + $V make clean + $V make distclean + $V rm -f mout* +} diff --git a/packaging/Caldera/UnixWare/Compile b/packaging/Caldera/UnixWare/Compile new file mode 100755 index 0000000000..2867e4d5ad --- /dev/null +++ b/packaging/Caldera/UnixWare/Compile @@ -0,0 +1,52 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="cc -Kthread -Kalloca -I/usr/local/include -L/usr/local/lib" +CPP="$CC -E" +CFLAGS="-Xa -Dasm=__asm -DANSICPP -O3" +LDFLAGS="-L/usr/local/lib" +CXX="CC -I/usr/local/include" +CXXFLAGS="-O3 -I/usr/local/include/stl -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CPP=$CPP" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" + echo "LDFLAGS=$LDFLAGS" +else + export CC CPP CXX RANLIB MAKE CFLAGS CXXFLAGS LDFLAGS +fi + +if [ "$V" = "echo" ] +then + echo "cd ../../../source" + echo "rm -f mout-1 mout-2 mout-3 mout-4" + echo "make all 2>&1 | tee mout-1" + echo "make smbfilter smbtorture debug2html 2>&1 | tee mout-2" + echo "make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3" + echo "make masktest locktest locktest2 2>&1 | tee mout-3" +else + cd ../../../source + rm -f mout-1 mout-2 mout-3 mout-4 + make all 2>&1 | tee mout-1 + make smbfilter smbtorture debug2html 2>&1 | tee mout-2 + make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3 + make masktest locktest locktest2 2>&1 | tee mout-3 +fi +# +# Not building : +# nsswitch - no <nss.h> +# rpctorture - improper use of client_info struct, dunno diff --git a/packaging/Caldera/UnixWare/Configure b/packaging/Caldera/UnixWare/Configure new file mode 100755 index 0000000000..e5a7fbba4d --- /dev/null +++ b/packaging/Caldera/UnixWare/Configure @@ -0,0 +1,67 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="cc -Kthread -Kalloca -I/usr/local/include -L/usr/local/lib" +CPP="$CC -E" +CFLAGS="-Xa -Dasm=__asm -DANSICPP -O3" +LDFLAGS="-L/usr/local/lib" +CXX="CC -I/usr/local/include" +CXXFLAGS="-O3 -I/usr/local/include/stl -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +PREFIX=/usr/local/samba +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CPP=$CPP" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" + echo "LDFLAGS=$LDFLAGS" + echo "PREFIX=$PREFIX" +else + export CC CPP CXX RANLIB MAKE CFLAGS CXXFLAGS LDFLAGS PREFIX +fi + +cd ../../../source +[ -f mout-config ] && { + if [ "$V" = "echo" ] + then + echo "mv mout-config mout-config$$" + else + mv mout-config mout-config$$ + fi +} +if [ "$V" = "echo" ] +then + echo "./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config" +else + ./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config +fi diff --git a/packaging/Caldera/UnixWare/Install b/packaging/Caldera/UnixWare/Install new file mode 100755 index 0000000000..3fffc37d25 --- /dev/null +++ b/packaging/Caldera/UnixWare/Install @@ -0,0 +1,146 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +PREFIX=/usr/local/samba +HERE=`pwd` +PKGDIR=packaging/Caldera/UnixWare + +BUILD_ROOT=${HERE}/dist +BLDFIX=${BUILD_ROOT}/${PREFIX} +$V rm -rf $BUILD_ROOT +$V mkdir -p $BUILD_ROOT/etc/init.d +$V mkdir -p ${BLDFIX}/bin +$V mkdir -p ${BLDFIX}/sbin +$V mkdir -p ${BLDFIX}/swat/using_samba/gifs +$V mkdir -p ${BLDFIX}/swat/using_samba/figs +$V mkdir -p ${BLDFIX}/swat/images +$V mkdir -p ${BLDFIX}/swat/help +$V mkdir -p ${BLDFIX}/swat/include +$V mkdir -p ${BLDFIX}/man/man1 +$V mkdir -p ${BLDFIX}/man/man5 +$V mkdir -p ${BLDFIX}/man/man7 +$V mkdir -p ${BLDFIX}/man/man8 +$V mkdir -p ${BLDFIX}/var/locks +$V mkdir -p ${BLDFIX}/lib/codepages/src + +# Copy into the dist tree the pkg data files +for i in pkg/* +do + [ -f $i ] && $V cp $i ${BUILD_ROOT} +done + +cd ../../.. + +# Install standard binary files +for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \ + smbsh smbwrapper.so +do +$V install -m755 -s source/bin/$i ${BLDFIX}/bin +done +for i in mksmbpasswd.sh smbtar +do +$V install -m755 source/script/$i ${BLDFIX}/bin +done + +# Install secure binary files +for i in smbd nmbd swat debug2html smbtorture smbfilter locktest2 masktest +do +$V install -m755 -s source/bin/$i ${BLDFIX}/sbin +done + + +# Install level 1 man pages +for i in *.1 +do +$V install -m644 docs/manpages/$i ${BLDFIX}/man/man1 +done + +# Install codepage source files +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do +$V install -m644 source/codepages/codepage_def.$i ${BLDFIX}/lib/codepages/src +done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +$V install -m644 source/codepages/CP$i.TXT ${BLDFIX}/lib/codepages/src +done + +# Install SWAT helper files +for i in swat/help/*.html docs/htmldocs/*.html +do +$V install -m644 $i ${BLDFIX}/swat/help +done +for i in swat/images/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/images +done +for i in swat/include/*.html +do +$V install -m644 $i ${BLDFIX}/swat/include +done + +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +$V install -m644 $i ${BLDFIX}/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/gifs +done + +# Install the miscellany +$V install -m644 swat/README ${BLDFIX}/swat +$V install -m644 docs/manpages/smb.conf.5 ${BLDFIX}/man/man5 +$V install -m644 docs/manpages/lmhosts.5 ${BLDFIX}/man/man5 +$V install -m644 docs/manpages/smbpasswd.5 ${BLDFIX}/man/man5 +$V install -m644 docs/manpages/samba.7 ${BLDFIX}/man/man7 +$V install -m644 docs/manpages/smbd.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/nmbd.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbpasswd.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/swat.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbmount.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbmnt.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbumount.8 ${BLDFIX}/man/man8 +$V install -m644 ${PKGDIR}/smb.conf ${BLDFIX}/lib/smb.conf +$V install -m644 ${PKGDIR}/smbusers $BUILD_ROOT/etc/smbusers +$V install -m755 ${PKGDIR}/smbprint ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/findsmb ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smbadduser ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smb.init $BUILD_ROOT/etc/init.d/samba + +# The following is now done in the postinstall script +# +# if [ "$V" = "echo" ] +# then +# echo "echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts" +# else +# echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts +# fi +# +# Build codepage load files +# $V cd ${BLDFIX}/lib/codepages +# for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +# do +# $V ${PREFIX}/bin/make_smbcodepage c $i \ +# ${BLDFIX}/lib/codepages/src/codepage_def.$i \ +# ${BLDFIX}/lib/codepages/codepage.$i +# done +# for i in 437 737 850 852 861 866 932 936 949 950 \ +# ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +# do +# $V ${PREFIX}/bin/make_unicodemap $i \ +# ${BLDFIX}/lib/codepages/src/CP$i.TXT \ +# ${BLDFIX}/lib/codepages/unicode_map.$i +# done diff --git a/packaging/Caldera/UnixWare/Makepkg b/packaging/Caldera/UnixWare/Makepkg new file mode 100755 index 0000000000..dc57b246ef --- /dev/null +++ b/packaging/Caldera/UnixWare/Makepkg @@ -0,0 +1,10 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +./Configure $* +./Compile $* +./Install $* +./Package $* diff --git a/packaging/Caldera/UnixWare/Package b/packaging/Caldera/UnixWare/Package new file mode 100755 index 0000000000..f225b8eb7e --- /dev/null +++ b/packaging/Caldera/UnixWare/Package @@ -0,0 +1,40 @@ +#!/bin/ksh +# +# Now create the actual pkgadd installable datastream +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +$V cd dist +PKGNAME=samba +PKGBLD=`pwd` +[ "$V" = "echo" ] && PKGBLD=$PKGBLD/dist + +PKGCOMPRESS="-c" +#PKGBLOCKLIM=2876 +PKGBLOCKLIM=6200 + +############################################################################## +# +# make filesystem-type package in directory ./$PKGNAME/ +# (source files reside in ./root) +# +# don't use PKGBLOCKLIM for now +# +$V pkgmk -o $PKGCOMPRESS -d $PKGBLD -r $PKGBLD +#pkgmk -o $PKGCOMPRESS -l $PKGBLOCKLIM -d $PKGBLD -r $PKGBLD +#pkgmk -o $PKGCOMPRESS -l $PKGBLOCKLIM -d $PKGBLD -r $PKGBLD/root + +# +# make $PKGNAME.pkg datastream-type package +# +$V pkgtrans -s $PKGBLD $PKGBLD/$PKGNAME.pkg $PKGNAME + +# +# remove filesystem-type package +# +#rm -rf $PKGBLD/$PKGNAME diff --git a/packaging/Caldera/UnixWare/README b/packaging/Caldera/UnixWare/README new file mode 100644 index 0000000000..74f8dc53d5 --- /dev/null +++ b/packaging/Caldera/UnixWare/README @@ -0,0 +1,54 @@ +Preparation Date: December 28, 2000 +Preparer: Ronald Joe Record <rr@sco.com> + +Instructions: Preparing Samba Packages for UnixWare +=============================================================== + +We provide support only for current versions of UnixWare. + +The file samba-2.2-uw7.patch is a patch file suitable for use +with the patch command as follows: + + # cd ../../../source + # patch -p 0 -i ../packaging/Caldera/UnixWare/samba-2.2-uw7.patch + +The files modified by this patch are: + smbwrapper/smbw.c + tdb/tdb.c + utils/torture.c + utils/locktest.c + utils/locktest2.c + utils/masktest.c + utils/smbcacls.c + ltconfig + configure.in + +This patch should only be necessary until these changes are accepted +back into the 2.2 source tree. Until then, this patch must be applied +prior to building Samba 2.2 on UnixWare 7. After applying the patch it +is then necessary to run autoconf again and regenerate the configure file: + + # cd ../../../source + # autoconf + +To produce the pkgadd installable datastream simply type (in this directory): + # ./Makepkg + +The resultant samba.pkg should reside in the ./dist subdirectory. +To install from this pkgadd datastream, issue the command (as root): + + # cd dist + # pkgadd -d `pwd`/samba.pkg all + +Alternately, each of the steps in building the datastream may be performed +individually by invoking each of the following: + + # ./Configure + # ./Compile + # ./Install + # ./Package + +If files are added or deleted from the UnixWare Samba distribution then +the prototype file in the pkg directory should be appropriately modified. +The files in the pkg subdirectory were initially created using the mkpkg +package from SCO Skunkware (see http://www.sco.com/skunkware). diff --git a/packaging/Caldera/UnixWare/findsmb b/packaging/Caldera/UnixWare/findsmb new file mode 100755 index 0000000000..bb91c784b8 --- /dev/null +++ b/packaging/Caldera/UnixWare/findsmb @@ -0,0 +1,141 @@ +#!/usr/local/bin/perl +# +# Prints info on all smb responding machines on a subnet. +# This script needs to be run on a machine without nmbd running and be +# run as root to get correct info from WIN95 clients. +# +# syntax: +# findsmb [subnet broadcast address] +# +# with no agrument it will list machines on the current subnet +# +# There will be a "+" in front of the workgroup name for machines that are +# local master browsers for that workgroup. There will be an "*" in front +# of the workgroup name for machines that are the domain master browser for +# that workgroup. +# + +$SAMBABIN = "/usr/local/samba/bin"; + +for ($i = 0; $i < 2; $i++) { # test for -d option and broadcast address + $_ = shift; + if (m/-d|-D/) { + $DEBUG = 1; + } else { + if ($_) { + $BCAST = "-B $_"; + } + } +} + +sub ipsort # do numeric sort on last field of IP address +{ + @t1 = split(/\./,$a); + @t2 = split(/\./,$b); + @t1[3] <=> @t2[3]; +} + +# look for all machines that respond to a name lookup + +open(NMBLOOKUP,"$SAMBABIN/nmblookup $BCAST '*'|") || + die("Can't run nmblookup '*'.\n"); + +# get rid of all lines that are not a response IP address, +# strip everything but IP address and sort by last field in address + +@ipaddrs = sort ipsort grep(s/ \*<00>.*$//,<NMBLOOKUP>); + +# print header info + +print "\nIP ADDR NETBIOS NAME WORKGROUP/OS/VERSION $BCAST\n"; +print "---------------------------------------------------------------------\n"; + +foreach $ip (@ipaddrs) # loop through each IP address found +{ + $ip =~ s/\n//; # strip newline from IP address + +# find the netbios names registered by each machine + + open(NMBLOOKUP,"$SAMBABIN/nmblookup -r -A $ip|") || + die("Can't get nmb name list.\n"); + @nmblookup = <NMBLOOKUP>; + close NMBLOOKUP; + +# get the first <00> name + + @name = grep(/<00>/,@nmblookup); + $_ = @name[0]; + if ($_) { # we have a netbios name + if (/GROUP/) { # is it a group name + ($name, $aliases, $type, $length, @addresses) = + gethostbyaddr(pack('C4',split('\.',$ip)),2); + if (! $name) { # could not get name + $name = "unknown nis name"; + } + } else { + /(\S+)/; + $name = $1; + } + +# do an smbclient command on the netbios name. + + open(SMB,"$SAMBABIN/smbclient -N -L $name -I $ip -U% |") || + die("Can't do smbclient command.\n"); + @smb = <SMB>; + close SMB; + + if ($DEBUG) { # if -d flag print results of nmblookup and smbclient + print "===============================================================\n"; + print @nmblookup; + print @smb; + } + +# look for the OS= string + + @info = grep(/OS=/,@smb); + $_ = @info[0]; + if ($_) { # we found response + s/Domain=|OS=|Server=|\n//g; # strip out descriptions to make line shorter + + } else { # no OS= string in response (WIN95 client) + +# for WIN95 clients get workgroup name from nmblookup response + @name = grep(/<00> - <GROUP>/,@nmblookup); + $_ = @name[0]; + if ($_) { + /(\S+)/; + $_ = "[$1]"; + } else { + $_ = "Unknown Workgroup"; + } + } + +# see if machine registered a local master browser name + if (grep(/<1d>/,@nmblookup)) { + $master = '+'; # indicate local master browser + if (grep(/<1b>/,@nmblookup)) { # how about domain master browser? + $master = '*'; # indicate domain master browser + } + } else { + $master = ' '; # not a browse master + } + +# line up info in 3 columns + + print "$ip".' 'x(16-length($ip))."$name".' 'x(14-length($name))."$master"."$_\n"; + + } else { # no netbios name found +# try getting the host name + ($name, $aliases, $type, $length, @addresses) = + gethostbyaddr(pack('C4',split('\.',$ip)),2); + if (! $name) { # could not get name + $name = "unknown nis name"; + } + if ($DEBUG) { # if -d flag print results of nmblookup + print "===============================================================\n"; + print @nmblookup; + } + print "$ip".' 'x(16-length($ip))."$name\n"; + } +} + diff --git a/packaging/Caldera/UnixWare/pkg/admin b/packaging/Caldera/UnixWare/pkg/admin new file mode 100644 index 0000000000..fe2438c770 --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/admin @@ -0,0 +1 @@ +basedir=ask diff --git a/packaging/Caldera/UnixWare/pkg/pkginfo b/packaging/Caldera/UnixWare/pkg/pkginfo new file mode 100644 index 0000000000..c4d8bff0bb --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/pkginfo @@ -0,0 +1,10 @@ +PKG="samba" +NAME="Samba - A Windows SMB/CIFS fileserver for UNIX" +VERSION="2.2" +VENDOR="SCO" +HOTLINE="1-800-SCO-UNIX" +EMAIL="rr@sco.com" +CATEGORY="skunkware" +CLASSES="samba" +ARCH="i386" +BASEDIR=/ diff --git a/packaging/Caldera/UnixWare/pkg/postinstall b/packaging/Caldera/UnixWare/pkg/postinstall new file mode 100755 index 0000000000..4e202ae354 --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/postinstall @@ -0,0 +1,56 @@ +#!/bin/sh +# +# Create /var/spool/samba, setup swat to be run out of inetd on port 901, +# initialize the lmhosts file and create the codepage load files +# +# Written 10-Aug-1999 by Ronald Joe Record (rr@sco.com) +# + +SPOOL=/var/spool/samba +SVCS=/etc/services +INET=/etc/inetd.conf +PREFIX=/usr/local/samba +LMHOST=/etc/lmhosts + +[ -d $SPOOL ] || { + mkdir -p $SPOOL + chmod 1777 $SPOOL +} + +grep swat $SVCS > /dev/null || { + echo "swat 901/tcp # Samba Web Administration Tool " >> $SVCS +} + +grep swat $INET > /dev/null || { + echo "swat stream tcp nowait root /usr/local/samba/bin/swat swat " >> $INET +} + +if [ -f $LMHOST ] +then + grep localhost $LMHOST > /dev/null || { + echo 127.0.0.1 localhost >> $LMHOST + } +else + echo 127.0.0.1 localhost > $LMHOST +fi + +# +# Build codepage load files +# + +cd ${PREFIX}/lib/codepages +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do + ${PREFIX}/bin/make_smbcodepage c $i \ + ${PREFIX}/lib/codepages/src/codepage_def.$i \ + ${PREFIX}/lib/codepages/codepage.$i +done +for i in 437 737 850 852 861 866 932 936 949 950 \ + ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do + ${PREFIX}/bin/make_unicodemap $i \ + ${PREFIX}/lib/codepages/src/CP$i.TXT \ + ${PREFIX}/lib/codepages/unicode_map.$i +done + +kill -1 `ps -e | grep inetd | awk ' { print $1 } '` diff --git a/packaging/Caldera/UnixWare/pkg/postremove b/packaging/Caldera/UnixWare/pkg/postremove new file mode 100755 index 0000000000..dc81d6fa85 --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/postremove @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Remove /var/spool/samba and delete inetd entries for swat +# + +SPOOL=/var/spool/samba +SVCS=/etc/services +INET=/etc/inetd.conf + +[ -d $SPOOL ] && { + rm -rf $SPOOL +} + +grep swat $SVCS > /dev/null && { + B=`basename $SVCS` + T=$B$$ + grep -v swat $SVCS > /tmp/$T + cp /tmp/$T $SVCS + rm -f /tmp/$T +} + +grep swat $INET > /dev/null || { + B=`basename $INET` + T=$B$$ + grep -v swat $INET > /tmp/$T + cp /tmp/$T $INET + rm -f /tmp/$T +} + +kill -1 `ps -e | grep inetd | awk ' { print $1 } '` diff --git a/packaging/Caldera/UnixWare/pkg/prototype b/packaging/Caldera/UnixWare/pkg/prototype new file mode 100644 index 0000000000..13a64b6feb --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/prototype @@ -0,0 +1,310 @@ +i admin=admin +i pkginfo=pkginfo +i postinstall=postinstall +i postremove=postremove + +d samba etc 0755 root sys +d samba etc/init.d 0755 root sys +f samba etc/init.d/samba 0755 root sys +f samba etc/smbusers 0644 root sys +d samba usr 0755 root sys +d samba usr/local 0755 root sys +d samba usr/local/samba 0755 root sys +d samba usr/local/samba/bin 0755 root sys +f samba usr/local/samba/bin/nmblookup 0755 root sys +f samba usr/local/samba/bin/smbclient 0755 root sys +f samba usr/local/samba/bin/smbpasswd 0755 root sys +f samba usr/local/samba/bin/smbstatus 0755 root sys +f samba usr/local/samba/bin/testparm 0755 root sys +f samba usr/local/samba/bin/testprns 0755 root sys +f samba usr/local/samba/bin/make_smbcodepage 0755 root sys +f samba usr/local/samba/bin/make_unicodemap 0755 root sys +f samba usr/local/samba/bin/make_printerdef 0755 root sys +f samba usr/local/samba/bin/rpcclient 0755 root sys +f samba usr/local/samba/bin/smbspool 0755 root sys +f samba usr/local/samba/bin/smbsh 0755 root sys +f samba usr/local/samba/bin/smbwrapper.so 0755 root sys +f samba usr/local/samba/bin/mksmbpasswd.sh 0755 root sys +f samba usr/local/samba/bin/smbtar 0755 root sys +f samba usr/local/samba/bin/smbprint 0755 root sys +f samba usr/local/samba/bin/findsmb 0755 root sys +f samba usr/local/samba/bin/smbadduser 0755 root sys +d samba usr/local/samba/sbin 0755 root sys +f samba usr/local/samba/sbin/smbd 0755 root sys +f samba usr/local/samba/sbin/nmbd 0755 root sys +f samba usr/local/samba/sbin/swat 0755 root sys +f samba usr/local/samba/sbin/debug2html 0755 root sys +f samba usr/local/samba/sbin/smbtorture 0755 root sys +f samba usr/local/samba/sbin/smbfilter 0755 root sys +f samba usr/local/samba/sbin/locktest2 0755 root sys +f samba usr/local/samba/sbin/masktest 0755 root sys +d samba usr/local/samba/swat 0755 root sys +d samba usr/local/samba/swat/using_samba 0755 root sys +d samba usr/local/samba/swat/using_samba/gifs 0755 root sys +f samba usr/local/samba/swat/using_samba/gifs/index.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/samba.s.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/txthome.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/txtnexta.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/txtpreva.gif 0644 root sys +d samba usr/local/samba/swat/using_samba/figs 0755 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0101.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0102.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0103.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0104.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0105.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0106.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0107.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0108.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0109.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0110.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0111.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0112.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0113.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0114.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0201.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0202.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0203.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0204.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0301.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0302.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0303.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0304.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0305.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0306.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0307.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0308.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0309.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0310.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0311.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0312.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0313.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0314.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0315.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0316.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0317.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0318.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0319.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0320.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0321.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0322.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0323.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0324.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0325.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0326.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0327.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0328.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0401.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0402.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0403.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0404.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0405.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0406.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0407.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0501.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0502.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0503.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0504.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0505.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0506.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0507.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0508.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0601.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0602.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0603.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0604.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0605.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0606.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0701.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0702.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0703.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0704.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0705.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0706.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0707.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0708.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0709.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0801.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0802.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0803.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0804.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0805.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0901.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0902.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0903.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0904.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0905.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.aa01.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.ab01.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.ab02.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appb_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appb_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appb_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appc_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appd_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appe_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appf_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_07.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_08.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch03_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch03_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch03_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_07.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_08.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch07_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch07_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch07_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_07.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch09_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch09_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch09_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/index.html 0644 root sys +f samba usr/local/samba/swat/using_samba/inx.html 0644 root sys +f samba usr/local/samba/swat/using_samba/licenseinfo.html 0644 root sys +f samba usr/local/samba/swat/using_samba/this_edition.html 0644 root sys +d samba usr/local/samba/swat/images 0755 root sys +f samba usr/local/samba/swat/images/globals.gif 0644 root sys +f samba usr/local/samba/swat/images/home.gif 0644 root sys +f samba usr/local/samba/swat/images/passwd.gif 0644 root sys +f samba usr/local/samba/swat/images/printers.gif 0644 root sys +f samba usr/local/samba/swat/images/samba.gif 0644 root sys +f samba usr/local/samba/swat/images/shares.gif 0644 root sys +f samba usr/local/samba/swat/images/status.gif 0644 root sys +f samba usr/local/samba/swat/images/viewconfig.gif 0644 root sys +d samba usr/local/samba/swat/help 0755 root sys +f samba usr/local/samba/swat/help/welcome.html 0644 root sys +f samba usr/local/samba/swat/help/DOMAIN_MEMBER.html 0644 root sys +f samba usr/local/samba/swat/help/NT_Security.html 0644 root sys +f samba usr/local/samba/swat/help/findsmb.1.html 0644 root sys +f samba usr/local/samba/swat/help/lmhosts.5.html 0644 root sys +f samba usr/local/samba/swat/help/make_smbcodepage.1.html 0644 root sys +f samba usr/local/samba/swat/help/nmbd.8.html 0644 root sys +f samba usr/local/samba/swat/help/nmblookup.1.html 0644 root sys +f samba usr/local/samba/swat/help/rpcclient.1.html 0644 root sys +f samba usr/local/samba/swat/help/samba-pdc-faq.html 0644 root sys +f samba usr/local/samba/swat/help/samba-pdc-howto.html 0644 root sys +f samba usr/local/samba/swat/help/samba.7.html 0644 root sys +f samba usr/local/samba/swat/help/smb.conf.5.html 0644 root sys +f samba usr/local/samba/swat/help/smbclient.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbcontrol.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbd.8.html 0644 root sys +f samba usr/local/samba/swat/help/smbpasswd.5.html 0644 root sys +f samba usr/local/samba/swat/help/smbpasswd.8.html 0644 root sys +f samba usr/local/samba/swat/help/smbrun.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbsh.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbspool.8.html 0644 root sys +f samba usr/local/samba/swat/help/smbstatus.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbtar.1.html 0644 root sys +f samba usr/local/samba/swat/help/swat.8.html 0644 root sys +f samba usr/local/samba/swat/help/testparm.1.html 0644 root sys +f samba usr/local/samba/swat/help/testprns.1.html 0644 root sys +f samba usr/local/samba/swat/help/wbinfo.1.html 0644 root sys +f samba usr/local/samba/swat/help/winbindd.8.html 0644 root sys +d samba usr/local/samba/swat/include 0755 root sys +f samba usr/local/samba/swat/include/footer.html 0644 root sys +f samba usr/local/samba/swat/include/header.html 0644 root sys +f samba usr/local/samba/swat/README 0644 root sys +d samba usr/local/samba/man 0755 root sys +d samba usr/local/samba/man/man1 0755 root sys +f samba usr/local/samba/man/man1/findsmb.1 0644 root sys +f samba usr/local/samba/man/man1/make_smbcodepage.1 0644 root sys +f samba usr/local/samba/man/man1/make_unicodemap.1 0644 root sys +f samba usr/local/samba/man/man1/nmblookup.1 0644 root sys +f samba usr/local/samba/man/man1/smbclient.1 0644 root sys +f samba usr/local/samba/man/man1/smbcontrol.1 0644 root sys +f samba usr/local/samba/man/man1/smbrun.1 0644 root sys +f samba usr/local/samba/man/man1/smbsh.1 0644 root sys +f samba usr/local/samba/man/man1/smbstatus.1 0644 root sys +f samba usr/local/samba/man/man1/smbtar.1 0644 root sys +f samba usr/local/samba/man/man1/testparm.1 0644 root sys +f samba usr/local/samba/man/man1/testprns.1 0644 root sys +f samba usr/local/samba/man/man1/wbinfo.1 0644 root sys +d samba usr/local/samba/man/man5 0755 root sys +f samba usr/local/samba/man/man5/smb.conf.5 0644 root sys +f samba usr/local/samba/man/man5/lmhosts.5 0644 root sys +f samba usr/local/samba/man/man5/smbpasswd.5 0644 root sys +d samba usr/local/samba/man/man7 0755 root sys +f samba usr/local/samba/man/man7/samba.7 0644 root sys +d samba usr/local/samba/man/man8 0755 root sys +f samba usr/local/samba/man/man8/smbd.8 0644 root sys +f samba usr/local/samba/man/man8/nmbd.8 0644 root sys +f samba usr/local/samba/man/man8/smbpasswd.8 0644 root sys +f samba usr/local/samba/man/man8/swat.8 0644 root sys +f samba usr/local/samba/man/man8/smbmount.8 0644 root sys +f samba usr/local/samba/man/man8/smbmnt.8 0644 root sys +f samba usr/local/samba/man/man8/smbumount.8 0644 root sys +d samba usr/local/samba/var 0755 root sys +d samba usr/local/samba/var/locks 0755 root sys +d samba usr/local/samba/lib 0755 root sys +d samba usr/local/samba/lib/codepages 0755 root sys +d samba usr/local/samba/lib/codepages/src 0755 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.437 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.737 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.775 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.850 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.852 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.861 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.866 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.932 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.936 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.949 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.950 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.1251 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP437.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP737.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP850.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP852.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP861.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP866.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP932.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP936.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP949.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP950.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-1.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-2.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-5.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-7.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPKOI8-R.TXT 0644 root sys +f samba usr/local/samba/lib/smb.conf 0644 root sys +d samba usr/local/man 0755 root sys +d samba usr/local/man/html 0755 root sys +s samba usr/local/man/html/samba=/usr/local/samba/swat/using_samba diff --git a/packaging/Caldera/UnixWare/samba-2.2-uw7-prototype.patch b/packaging/Caldera/UnixWare/samba-2.2-uw7-prototype.patch new file mode 100644 index 0000000000..7678379b06 --- /dev/null +++ b/packaging/Caldera/UnixWare/samba-2.2-uw7-prototype.patch @@ -0,0 +1,11 @@ +--- packaging/Caldera/UnixWare/pkg/prototype.00 Tue Jan 9 05:40:47 2001 ++++ packaging/Caldera/UnixWare/pkg/prototype Fri Apr 13 14:44:33 2001 +@@ -220,7 +220,7 @@ + f samba usr/local/samba/swat/help/make_smbcodepage.1.html 0644 root sys + f samba usr/local/samba/swat/help/nmbd.8.html 0644 root sys + f samba usr/local/samba/swat/help/nmblookup.1.html 0644 root sys +-f samba usr/local/samba/swat/help/rpcclient.8.html 0644 root sys ++f samba usr/local/samba/swat/help/rpcclient.1.html 0644 root sys + f samba usr/local/samba/swat/help/samba-pdc-faq.html 0644 root sys + f samba usr/local/samba/swat/help/samba-pdc-howto.html 0644 root sys + f samba usr/local/samba/swat/help/samba.7.html 0644 root sys diff --git a/packaging/Caldera/UnixWare/samba-2.2-uw7.patch b/packaging/Caldera/UnixWare/samba-2.2-uw7.patch new file mode 100644 index 0000000000..c4412e542e --- /dev/null +++ b/packaging/Caldera/UnixWare/samba-2.2-uw7.patch @@ -0,0 +1,200 @@ +--- smbwrapper/smbw.c.orig Mon Jan 8 12:37:48 2001 ++++ smbwrapper/smbw.c Fri Apr 13 13:09:00 2001 +@@ -22,6 +22,11 @@ + #include "includes.h" + #include "realcalls.h" + ++#if defined(__USLC__) && defined(HAVE_SYS_ACL_H) ++#define GETACL ACL_GET ++#define GETACLCNT ACL_CNT ++#endif ++ + pstring smbw_cwd; + + static struct smbw_file *smbw_files; +@@ -1462,7 +1467,11 @@ + /***************************************************** + say no to acls + *******************************************************/ ++#if defined(__USLC__) ++ int smbw_acl(const char *pathp, int cmd, int nentries, void *aclbufp) ++#else + int smbw_acl(const char *pathp, int cmd, int nentries, aclent_t *aclbufp) ++#endif + { + if (cmd == GETACL || cmd == GETACLCNT) return 0; + errno = ENOSYS; +@@ -1474,7 +1483,11 @@ + /***************************************************** + say no to acls + *******************************************************/ ++#if defined(__USLC__) ++ int smbw_facl(int fd, int cmd, int nentries, void *aclbufp) ++#else + int smbw_facl(int fd, int cmd, int nentries, aclent_t *aclbufp) ++#endif + { + if (cmd == GETACL || cmd == GETACLCNT) return 0; + errno = ENOSYS; +--- tdb/tdb.c.orig Fri Apr 13 05:58:34 2001 ++++ tdb/tdb.c Fri Apr 13 13:34:18 2001 +@@ -856,7 +856,11 @@ + { + TDB_DATA key, dbuf; + struct list_struct rec; ++#if defined(__USLC__) ++ struct tdb_traverse_lock tl = { (struct tdb_traverse_lock *)0, 0, 0 }; ++#else + struct tdb_traverse_lock tl = { NULL, 0, 0 }; ++#endif + int ret, count = 0; + + /* This was in the initializaton, above, but the IRIX compiler +--- utils/torture.c.orig Fri Mar 30 13:53:26 2001 ++++ utils/torture.c Fri Apr 13 13:09:01 2001 +@@ -2703,7 +2703,11 @@ + + dbf = stdout; + ++#if defined(__USLC__) ++ setbuf(stdout, NULL); ++#else + setbuffer(stdout, NULL, 0); ++#endif + + charset_initialise(); + +--- utils/locktest.c.orig Fri Sep 29 13:18:14 2000 ++++ utils/locktest.c Fri Apr 13 13:09:01 2001 +@@ -34,7 +34,7 @@ + + #define FILENAME "\\locktest.dat" + #define LOCKRANGE 1000 +-#define LOCKBASE 0; ++#define LOCKBASE 0 + + /* + #define LOCKBASE (0x40000000 - 50) +@@ -59,6 +59,7 @@ + char needed; + }; + ++#ifndef __USLC__ + static struct record preset[] = { + #if 0 + {36, 5, 0, 0, 0, 8, 1}, +@@ -67,6 +68,7 @@ + {99, 11, 0, 0, 7, 1, 1}, + #endif + }; ++#endif /* __USLC__) */ + + static struct record *recorded; + +@@ -378,20 +380,23 @@ + recorded = (struct record *)malloc(sizeof(*recorded) * numops); + + for (n=0; n<numops; n++) { ++#ifndef __USLC__ + if (n < sizeof(preset) / sizeof(preset[0])) { + recorded[n] = preset[n]; + } else { ++#endif + recorded[n].conn = random() % NCONNECTIONS; + recorded[n].f = random() % NFILES; + recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1)); +- recorded[n].len = 1 + +- random() % (LOCKRANGE-(recorded[n].start-LOCKBASE)); ++ recorded[n].len = 1 + random() % (LOCKRANGE-(recorded[n].start-LOCKBASE)); + recorded[n].start *= RANGE_MULTIPLE; + recorded[n].len *= RANGE_MULTIPLE; + recorded[n].r1 = random() % 100; + recorded[n].r2 = random() % 100; + recorded[n].needed = True; ++#ifndef __USLC__ + } ++#endif + } + + reconnect(cli, fnum, share); +@@ -484,7 +489,11 @@ + int seed, server; + static pstring servicesf = CONFIGFILE; + ++#if defined(__USLC__) ++ setvbuf(stdout,NULL,_IOLBF,0); /* line buffered */ ++#else + setlinebuf(stdout); ++#endif + + dbf = stderr; + +--- utils/locktest2.c.orig Tue Jun 13 08:47:44 2000 ++++ utils/locktest2.c Fri Apr 13 13:09:01 2001 +@@ -540,7 +540,11 @@ + int seed; + static pstring servicesf = CONFIGFILE; + ++#if defined(__USLC__) ++ setvbuf(stdout,NULL,_IOLBF,0); /* line buffered */ ++#else + setlinebuf(stdout); ++#endif + + dbf = stderr; + +--- utils/masktest.c.orig Fri May 26 17:28:02 2000 ++++ utils/masktest.c Fri Apr 13 13:09:01 2001 +@@ -310,7 +310,11 @@ + int seed; + static pstring servicesf = CONFIGFILE; + ++#if defined(__USLC__) ++ setvbuf(stdout,NULL,_IOLBF,0); /* line buffered */ ++#else + setlinebuf(stdout); ++#endif + + dbf = stderr; + +--- utils/smbcacls.c.orig Thu Apr 12 21:09:39 2001 ++++ utils/smbcacls.c Fri Apr 13 13:09:01 2001 +@@ -824,7 +824,11 @@ + + ctx=talloc_init(); + ++#if defined(__USLC__) ++ setvbuf(stdout,NULL,_IOLBF,0); /* line buffered */ ++#else + setlinebuf(stdout); ++#endif + + dbf = stderr; + +--- ltconfig.orig Mon Mar 13 15:20:00 2000 ++++ ltconfig Fri Apr 13 13:09:01 2001 +@@ -1482,9 +1482,9 @@ + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now +- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts' ++ archive_cmds='$LD -G${allow_undefined_flag} -h $rpath/$soname -o $lib $libobjs $deplibs $linkopts' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ +- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' ++ $LD -G${allow_undefined_flag} -M $lib.exp -h $rpath/$soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' +--- configure.in.orig Fri Apr 13 11:33:18 2001 ++++ configure.in Fri Apr 13 13:09:01 2001 +@@ -727,6 +727,10 @@ + *sysv5*) + if [ test "$GCC" != yes ]; then + AC_DEFINE(HAVE_MEMSET) ++ PICFLAG="-KPIC" ++ ac_cv_prog_cc_fpic=no ++ ac_cv_prog_cc_Kpic=no ++ ac_cv_prog_cc_KPIC=yes + fi + LDSHFLAGS="-G" + ;; diff --git a/packaging/Caldera/UnixWare/smb.conf b/packaging/Caldera/UnixWare/smb.conf new file mode 100644 index 0000000000..e3b3ae9e69 --- /dev/null +++ b/packaging/Caldera/UnixWare/smb.conf @@ -0,0 +1,291 @@ +# This is the main Samba configuration file. You should read the +# smb.conf(5) manual page in order to understand the options listed +# here. Samba has a huge number of configurable options (perhaps too +# many!) most of which are not shown in this example +# +# Any line which starts with a ; (semi-colon) or a # (hash) +# is a comment and is ignored. In this example we will use a # +# for commentry and a ; for parts of the config file that you +# may wish to enable +# +# NOTE: Whenever you modify this file you should run the command "testparm" +# to check that you have not many any basic syntactic errors. +# +#======================= Global Settings ===================================== +[global] + +# workgroup = NT-Domain-Name or Workgroup-Name + workgroup = MYGROUP + +# server string is the equivalent of the NT Description field + server string = Samba Server + +# This option is important for security. It allows you to restrict +# connections to machines which are on your local network. The +# following example restricts access to two C class networks and +# the "loopback" interface. For more examples of the syntax see +# the smb.conf man page +; hosts allow = 192.168.1. 192.168.2. 127. + +# if you want to automatically load your printer list rather +# than setting them up individually then you'll need this + printcap name = lpstat + load printers = yes + +# It should not be necessary to spell out the print system type unless +# yours is non-standard. Currently supported print systems include: +# bsd, sysv, plp, lprng, aix, hpux, qnx + printing = sysv + +# Uncomment this if you want a guest account, you must add this to /etc/passwd +# otherwise the user "nobody" is used +; guest account = pcguest + +# this tells Samba to use a separate log file for each machine +# that connects + log file = /usr/local/samba/var/log.%m + +# Put a capping on the size of the log files (in Kb). + max log size = 50 + +# Security mode. Most people will want user level security. See +# security_level.txt for details. + security = user +# Use password server option only with security = server +; password server = <NT-Server-Name> + +# Password Level allows matching of _n_ characters of the password for +# all combinations of upper and lower case. +; password level = 8 +; username level = 8 + +# You may wish to use password encryption. Please read +# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. +# Do not enable this option unless you have read those documents +; encrypt passwords = yes +; smb passwd file = /etc/smbpasswd + +# The following are needed to allow password changing from Windows to +# update the Linux sytsem password also. +# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. +# NOTE2: You do NOT need these to allow workstations to change only +# the encrypted SMB passwords. They allow the Unix password +# to be kept in sync with the SMB password. +; unix password sync = Yes +; passwd program = /usr/bin/passwd %u +; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* + +# Unix users can map to different SMB User names +; username map = /etc/smbusers + +# Using the following line enables you to customise your configuration +# on a per machine basis. The %m gets replaced with the netbios name +# of the machine that is connecting +; include = /etc/smb.conf.%m + +# Most people will find that this option gives better performance. +# See speed.txt and the manual pages for details + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 + +# Configure Samba to use multiple interfaces +# If you have multiple network interfaces then you must list them +# here. See the man page for details. +; interfaces = 192.168.12.2/24 192.168.13.2/24 + +# Configure remote browse list synchronisation here +# request announcement to, or browse list sync from: +# a specific host or from / to a whole subnet (see below) +; remote browse sync = 192.168.3.25 192.168.5.255 +# Cause this host to announce itself to local subnets here +; remote announce = 192.168.1.255 192.168.2.44 + +# Browser Control Options: +# set local master to no if you don't want Samba to become a master +# browser on your network. Otherwise the normal election rules apply +; local master = no + +# OS Level determines the precedence of this server in master browser +# elections. The default value should be reasonable +; os level = 33 + +# Domain Master specifies Samba to be the Domain Master Browser. This +# allows Samba to collate browse lists between subnets. Don't use this +# if you already have a Windows NT domain controller doing this job +; domain master = yes + +# Preferred Master causes Samba to force a local browser election on startup +# and gives it a slightly higher chance of winning the election +; preferred master = yes + +# Use only if you have an NT server on your network that has been +# configured at install time to be a primary domain controller. +; domain controller = <NT-Domain-Controller-SMBName> + +# Enable this if you want Samba to be a domain logon server for +# Windows95 workstations. +; domain logons = yes + +# if you enable domain logons then you may want a per-machine or +# per user logon script +# run a specific logon batch file per workstation (machine) +; logon script = %m.bat +# run a specific logon batch file per username +; logon script = %U.bat + +# Where to store roving profiles (only for Win95 and WinNT) +# %L substitutes for this servers netbios name, %U is username +# You must uncomment the [Profiles] share below +; logon path = \\%L\Profiles\%U + +# All NetBIOS names must be resolved to IP Addresses +# 'Name Resolve Order' allows the named resolution mechanism to be specified +# the default order is "host lmhosts wins bcast". "host" means use the unix +# system gethostbyname() function call that will use either /etc/hosts OR +# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf +# and the /etc/resolv.conf file. "host" therefore is system configuration +# dependant. This parameter is most often of use to prevent DNS lookups +# in order to resolve NetBIOS names to IP Addresses. Use with care! +# The example below excludes use of name resolution for machines that are NOT +# on the local network segment +# - OR - are not deliberately to be known via lmhosts or via WINS. +; name resolve order = wins lmhosts bcast + +# Windows Internet Name Serving Support Section: +# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server +; wins support = yes + +# WINS Server - Tells the NMBD components of Samba to be a WINS Client +# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both +; wins server = w.x.y.z + +# WINS Proxy - Tells Samba to answer name resolution queries on +# behalf of a non WINS capable client, for this to work there must be +# at least one WINS Server on the network. The default is NO. +; wins proxy = yes + +# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names +# via DNS nslookups. The built-in default for versions 1.9.17 is yes, +# this has been changed in version 1.9.18 to no. + dns proxy = no + +# Case Preservation can be handy - system default is _no_ +# NOTE: These can be set on a per share basis +; preserve case = no +; short preserve case = no +# Default case is normally upper case for all DOS files +; default case = lower +# Be very careful with case sensitivity - it can break things! +; case sensitive = no + +#============================ Share Definitions ============================== +[homes] + comment = Home Directories + browseable = no + writable = yes + +# Un-comment the following and create the netlogon directory for Domain Logons +; [netlogon] +; comment = Network Logon Service +; path = /home/netlogon +; guest ok = yes +; writable = no +; share modes = no + + +# Un-comment the following to provide a specific roving profile share +# the default is to use the user's home directory +;[Profiles] +; path = /home/profiles +; browseable = no +; guest ok = yes + + +# NOTE: If you have a BSD-style print system there is no need to +# specifically define each individual printer +[printers] + comment = All Printers + path = /var/spool/samba + browseable = no +# Set public = yes to allow user 'guest account' to print + guest ok = no + writable = no + printable = yes + +# This one is useful for people to share files +;[tmp] +; comment = Temporary file space +; path = /tmp +; read only = no +; public = yes + +# A publicly accessible directory, but read only, except for people in +# the "staff" group +;[public] +; comment = Public Stuff +; path = /home/samba +; public = yes +; writable = yes +; printable = no +; write list = @staff + +# Other examples. +# +# A private printer, usable only by fred. Spool data will be placed in fred's +# home directory. Note that fred must have write access to the spool directory, +# wherever it is. +;[fredsprn] +; comment = Fred's Printer +; valid users = fred +; path = /homes/fred +; printer = freds_printer +; public = no +; writable = no +; printable = yes + +# A private directory, usable only by fred. Note that fred requires write +# access to the directory. +;[fredsdir] +; comment = Fred's Service +; path = /usr/somewhere/private +; valid users = fred +; public = no +; writable = yes +; printable = no + +# a service which has a different directory for each machine that connects +# this allows you to tailor configurations to incoming machines. You could +# also use the %u option to tailor it by user name. +# The %m gets replaced with the machine name that is connecting. +;[pchome] +; comment = PC Directories +; path = /usr/pc/%m +; public = no +; writable = yes + +# A publicly accessible directory, read/write to all users. Note that all files +# created in the directory by users will be owned by the default user, so +# any user with access can delete any other user's files. Obviously this +# directory must be writable by the default user. Another user could of course +# be specified, in which case all files would be owned by that user instead. +;[public] +; path = /usr/somewhere/else/public +; public = yes +; only guest = yes +; writable = yes +; printable = no + +# The following two entries demonstrate how to share a directory so that two +# users can place files there that will be owned by the specific users. In this +# setup, the directory should be writable by both users and should have the +# sticky bit set on it to prevent abuse. Obviously this could be extended to +# as many users as required. +;[myshare] +; comment = Mary's and Fred's stuff +; path = /usr/somewhere/shared +; valid users = mary fred +; public = no +; writable = yes +; printable = no +; create mask = 0765 + + diff --git a/packaging/Caldera/UnixWare/smb.init b/packaging/Caldera/UnixWare/smb.init new file mode 100755 index 0000000000..ce6c6fa4b3 --- /dev/null +++ b/packaging/Caldera/UnixWare/smb.init @@ -0,0 +1,76 @@ +#!/bin/sh +#ident "@(#)samba.server 1.0 96/06/19 TK" /* SVr4.0 1.1.13.1*/ +# +# Please send info on modifications to knuutila@cs.utu.fi +# +# This file should have uid root, gid sys and chmod 744 +# +# Modified 17-Jul-99 by Ron Record (rr@sco.com) for use in SCO Skunkware +# + +SAMBADIR=/usr/local/samba +RCSCRIPT=/etc/rc2.d/S99samba + +if [ ! -d /usr/bin ] +then # /usr not mounted + exit +fi + +killproc() { # kill the named process(es) + if [ -f $SAMBADIR/var/locks/$1.pid ] + then + kill `cat $SAMBADIR/var/locks/$1.pid` + else + pid=`/usr/bin/ps -e | + /usr/bin/grep $1 | + /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid + fi +} + +start() { +# +# Edit these lines to suit your installation (paths, workgroup, host) +# + $SAMBADIR/sbin/smbd -D -s $SAMBADIR/lib/smb.conf + $SAMBADIR/sbin/nmbd -D -s $SAMBADIR/lib/smb.conf +} + +stop() { + killproc nmbd + killproc smbd +} + +# Start/stop processes required for samba server + +case "$1" in + +'start') + start + ;; +'stop') + stop + ;; +'restart') + stop + start + ;; +'enable') + if [ -h $RCSCRIPT ] ; then + echo "Samba is already enabled." + else + echo "Enabling Samba ... \c" + rm -f $RCSCRIPT + ln -s /etc/init.d/samba $RCSCRIPT + echo "Done" + fi + ;; +'disable') + echo "Disabling Samba ... \c" + rm -f $RCSCRIPT + echo "Done" + ;; +*) + echo "Usage: /etc/init.d/samba { start | stop | restart | enable | disable }" + ;; +esac diff --git a/packaging/Caldera/UnixWare/smbadduser b/packaging/Caldera/UnixWare/smbadduser new file mode 100755 index 0000000000..2f38bf28f1 --- /dev/null +++ b/packaging/Caldera/UnixWare/smbadduser @@ -0,0 +1,73 @@ +#!/bin/csh +# +# smbadduser - Written by Mike Zakharoff +# +unalias * +set path = ($path) + +set smbpasswd = /etc/smbpasswd +set user_map = /etc/smbusers +# +# Set to site specific passwd command +# +set passwd = "cat /etc/passwd" +#set passwd = "niscat passwd.org_dir" +#set passwd = "ypcat passwd" + +set line = "----------------------------------------------------------" +if ($#argv == 0) then + echo $line + echo "Written: Mike Zakharoff email: michael.j.zakharoff@boeing.com" + echo "" + echo " 1) Updates $smbpasswd" + echo " 2) Updates $user_map" + echo " 3) Executes smbpasswd for each new user" + echo "" + echo "smbadduser unixid:ntid unixid:ntid ..." + echo "" + echo "Example: smbadduser zak:zakharoffm johns:smithj" + echo $line + exit 1 +endif + +touch $smbpasswd $user_map +set new = () +foreach one ($argv) + echo $one | grep ':' >& /dev/null + if ($status != 0) then + echo "ERROR: Must use unixid:ntid like -> zak:zakharoffm" + continue + endif + set unix = `echo $one | awk -F: '{print $1}'` + set ntid = `echo $one | awk -F: '{print $2}'` + + set usr = `eval $passwd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#usr != 1) then + echo "ERROR: $unix Not in passwd database SKIPPING..." + continue + endif + set tmp = `cat $smbpasswd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#tmp != 0) then + echo "ERROR: $unix is already in $smbpasswd SKIPPING..." + continue + endif + + echo "Adding: $unix to $smbpasswd" + eval $passwd | \ + awk -F: '$1==USR { \ + printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd + if ($unix != $ntid) then + echo "Adding: {$unix = $ntid} to $user_map" + echo "$unix = $ntid" >> $user_map + endif + set new = ($new $unix) +end + +# +# Enter password for new users +# +foreach one ($new) + echo $line + echo "ENTER password for $one" + smbpasswd $one +end diff --git a/packaging/Caldera/UnixWare/smbprint b/packaging/Caldera/UnixWare/smbprint new file mode 100755 index 0000000000..ec083eede6 --- /dev/null +++ b/packaging/Caldera/UnixWare/smbprint @@ -0,0 +1,77 @@ +#!/bin/sh + +# This script is an input filter for printcap printing on a unix machine. It +# uses the smbclient program to print the file to the specified smb-based +# server and service. +# For example you could have a printcap entry like this +# +# smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint +# +# which would create a unix printer called "smb" that will print via this +# script. You will need to create the spool directory /usr/spool/smb with +# appropriate permissions and ownerships for your system. + +# Set these to the server and service you wish to print to +# In this example I have a WfWg PC called "lapland" that has a printer +# exported called "printer" with no password. + +# +# Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton) +# so that the server, service, and password can be read from +# a /var/spool/lpd/PRINTNAME/.config file. +# +# In order for this to work the /etc/printcap entry must include an +# accounting file (af=...): +# +# cdcolour:\ +# :cm=CD IBM Colorjet on 6th:\ +# :sd=/var/spool/lpd/cdcolour:\ +# :af=/var/spool/lpd/cdcolour/acct:\ +# :if=/usr/local/etc/smbprint:\ +# :mx=0:\ +# :lp=/dev/null: +# +# The /usr/var/spool/lpd/PRINTNAME/.config file should contain: +# server=PC_SERVER +# service=PR_SHARENAME +# password="password" +# +# E.g. +# server=PAULS_PC +# service=CJET_371 +# password="" + +# +# Debugging log file, change to /dev/null if you like. +# +# logfile=/tmp/smb-print.log +logfile=/dev/null + + +# +# The last parameter to the filter is the accounting file name. +# Extract the directory name from the file name. +# Concat this with /.config to get the config file. +# +eval acct_file=\${$#} +spool_dir=`dirname $acct_file` +config_file=$spool_dir/.config + +# Should read the following variables set in the config file: +# server +# service +# password +eval `cat $config_file` + +# +# Some debugging help, change the >> to > if you want to same space. +# +echo "server $server, service $service" >> $logfile + +( +# NOTE You may wish to add the line `echo translate' if you want automatic +# CR/LF translation when printing. +# echo translate + echo "print -" + cat +) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P >> $logfile diff --git a/packaging/Caldera/UnixWare/smbusers b/packaging/Caldera/UnixWare/smbusers new file mode 100644 index 0000000000..ae3389f53f --- /dev/null +++ b/packaging/Caldera/UnixWare/smbusers @@ -0,0 +1,3 @@ +# Unix_name = SMB_name1 SMB_name2 ... +root = administrator admin +nobody = guest pcguest smbguest |