From ed9e858c1dd37364f8c39fb56c09d7397ef8e85b Mon Sep 17 00:00:00 2001
From: John Terpstra
+You may copy, modify, use and distribute this software, (i)
+provided that you include the entirety of this reservation of
+rights notice in all such copies, and (ii) you comply with any
+additional or different obligations and/or use restrictions
+specified by any third party owner or supplier of the software
+in other notices that may be included with the software.
+
+
+SGI DISCLAIMS ALL WARRANTIES WITH RESPECT TO THIS SOFTWARE,
+EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION,
+ALL WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE OR NONINFRINGEMENT. SGI SHALL NOT BE LIABLE FOR ANY
+SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING,
+WITHOUT LIMITATION, LOST REVENUES, LOST PROFITS, OR LOSS OF
+PROSPECTIVE ECONOMIC ADVANTAGE, RESULTING FROM THE USE OR MISUSE
+OF THIS SOFTWARE.
+
+
+U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
+
+
+
+Use, duplication or disclosure by the Government is subject to
+restrictions as set forth in FAR 52.227.19(c)(2) or subparagraph
+(c)(1)(ii) of the Rights in Technical Data and Computer Software
+clause at DFARS 252.227-7013 and/or in similar or successor
+clauses in the FAR, or the DOD or NASA FAR Supplement.
+Unpublished - rights reserved under the Copyright Laws of United
+States. Contractor/manufacturer is Silicon Graphics, Inc., 2011
+N. Shoreline Blvd. Mountain View, CA 94039-7311.
+
+
+Freeware products are not supported by Silicon Graphics or any
+of its support providers. The software contained in this package
+is made available through the generous efforts of their authors.
+Although they are interested in your feedback, they are under no
+obligation to address bugs, enhancements, or answer questions.
+
+
+
diff --git a/packaging/SGI/mkman b/packaging/SGI/mkman
new file mode 100755
index 0000000000..fedeb4d719
--- /dev/null
+++ b/packaging/SGI/mkman
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ ! -d catman ]; then
+ mkdir catman
+fi
+
+# if you wish to make html versions of the man pages then uncomment
+# the following section and the "rman" command below
+#
+# if [ ! -d html ]; then
+# mkdir html
+# fi
+
+FILES="*.?"
+
+cd ../../docs
+for FILE in $FILES ; do
+ neqn $FILE | tbl | nroff -man > ../packaging/SGI/catman/`basename $FILE`
+ compress -f ../packaging/SGI/catman/`basename $FILE`
+# rman -f html -r "%s.%s.html" $FILE > ../packaging/SGI/html/$FILE.html
+done
+cd ../packaging/SGI
diff --git a/packaging/SGI/mkprintcap.sh b/packaging/SGI/mkprintcap.sh
new file mode 100755
index 0000000000..f610e757f0
--- /dev/null
+++ b/packaging/SGI/mkprintcap.sh
@@ -0,0 +1,15 @@
+#! /bin/sh
+#
+# create printcap file
+#
+if [ -r /usr/samba/printcap ]
+then
+ cp /usr/samba/printcap /usr/samba/printcap.O
+fi
+
+echo "#" > /usr/samba/printcap
+echo "# Samba printcap file" >> /usr/samba/printcap
+echo "# Alias names are separated by |, any name with spaces is taken as a comment" >> /usr/samba/printcap
+echo "#" >> /usr/samba/printcap
+lpstat -a | sed -e "s/ .*//" >> /usr/samba/printcap
+
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
new file mode 100755
index 0000000000..03644b2f7c
--- /dev/null
+++ b/packaging/SGI/mkrelease.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# create the catman versions of the manual pages
+#
+echo Making manual pages
+./mkman
+
+# build the sources
+#
+echo Making binaries
+cd ../../source
+# make -f ../packaging/SGI/Makefile clean
+make -f ../packaging/SGI/Makefile all
+cd ../packaging/SGI
+
+# generate the packages
+#
+echo Generating Inst Packages
+
+if [ ! -d bins ]; then
+ mkdir bins
+fi
+
+/usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all
+
diff --git a/packaging/SGI/printcap b/packaging/SGI/printcap
new file mode 100644
index 0000000000..b67b9cb167
--- /dev/null
+++ b/packaging/SGI/printcap
@@ -0,0 +1,5 @@
+#
+# Sample printcap file
+# Alias names are separated by |, any name with spaces is taken as a comment
+#
+lp4js|lp12|LaserJet on the third floor by the coffee machine
diff --git a/packaging/SGI/psfixes.sed b/packaging/SGI/psfixes.sed
new file mode 100644
index 0000000000..cf5ce88914
--- /dev/null
+++ b/packaging/SGI/psfixes.sed
@@ -0,0 +1,4 @@
+/^%/,/
/d
+/^%%Title:/s/.
$/
/
+/^\/VM?/,/ VM?/c\
+/VM? { pop } def
diff --git a/packaging/SGI/relnotes.html b/packaging/SGI/relnotes.html
new file mode 100644
index 0000000000..71140420fe
--- /dev/null
+++ b/packaging/SGI/relnotes.html
@@ -0,0 +1,234 @@
+
+
+
+\"
+#
is select character code set for JAPAN.
+# sjis: if your machine support SJIS
+# euc: if your machine support EUC
+# jis7: if your machine support JIS7
+# jis8: if your machine support JIS8
+# junet: if your machine support jis7 + junet rule
+# hex: if your machine only support 7 bits ascii filename only
+# convert to hexdecimal code preseeding ':'.
+# see also README.jis
+######################################
+
+
+# This is for SUNOS 4. Use the SUNOS5 entry for Solaris 2.
+# Note that you cannot use Suns "cc" compiler
+# as it's not an Ansi-C compiler. Get gcc or acc.
+# Note that if you have adjunct passwords you may need the GETPWANAM
+# or PWDAUTH option. There have been reports that using PWDAUTH may crash
+# your pwdauthd server so GETPWANAM is preferable (and probably faster)
+# contributed by Andrew.Tridgell@anu.edu.au
+# FLAGSM = -DSUNOS4
+# LIBSM =
+# AWK = nawk
+
+# Use this for Linux with shadow passwords
+# contributed by Andrew.Tridgell@anu.edu.au
+# add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
+# right libraries and includes
+# FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
+# LIBSM = -lshadow
+
+# Use this for Linux without shadow passwords
+# contributed by Andrew.Tridgell@anu.edu.au
+# AXPROC defines DEC Alpha Processor
+# FLAGSM = -DLINUX -DAXPROC -DFAST_SHARE_MODES
+# FLAGSM = -DLINUX -DFAST_SHARE_MODES
+# LIBSM =
+
+# Use this for Linux with shadow passwords and quota
+# contributed by xeno@mix.hive.no
+# Tested on the 1.3.57 kernel and ext2fs filesystem.
+# Notes:
+# /usr/include/sys/quota.h must be a symlink to /usr/include/linux/quota.h
+# The directory quota here must be a symlink to your quota package.
+# I just do 'ln -sf /usr/src/quota-1.50 quota' in this directory to get it to work.
+# FLAGSM = -O3 -m486 -DLINUX -DSHADOW_PWD -DQUOTAS -DFAST_SHARE_MODES
+# LIBSM = -lshadow
+
+# Use this for Linux with quota and glibc2
+# contributed by Thorvald Natvig
+# FLAGSM = -DOSF1 -DOSF1_ENH_SEC
+# LIBSM = -lsecurity
+
+
+# This is for AIX 4.x
+# contributed by tomc@osi.curtin.edu.au
+# FLAGSM = -DAIX -DFAST_SHARE_MODES
+# LIBSM =
+
+# This is for AIX 4.x with quota support
+# contributed by tomc@osi.curtin.edu.au
+# FLAGSM = -DAIX -DFAST_SHARE_MODES -DQUOTAS
+# LIBSM =
+
+# This is for AIX 3.2.5 with DCE/DFS
+# contributed by Jim Doyle
Silicon Graphics Freeware Legal Notice
+
+Copyright 1995, Silicon Graphics, Inc. -- ALL RIGHTS RESERVED
+Product Support
+
+Samba 1.9.17 Release Notes
+
+
+
Samba is an SMB client and server for Unix. It makes it possible for +client machines running Windows 95 and Windows for Workgroups to access +files and/or print services on a Unix system. Samba includes an SMB server +to provide LanManager-style file and print services to PCs, a Netbios (RFC10001/1002) +name server, and an FTP-like client application for accessing PC resources +from Unix.
+ +To make Samba work you'll need to configure your server host to run +smbd and nmbd whenever you connect to a certain Internet +port from the client machine. Smbd and nmbd can be started +either as daemons or from inetd.
+ +By default smbd and nmbd are started as daemons by the +file /etc/init.d/samba in conjunction with the chkconfig variable +samba being set to on. If you set chkconfig samba off then the deamons +will not be automatically started on reboot. In this case you must type +the following at a shell prompt to start samba after a reboot:
+ +chkconfig samba on + /etc/init.d/samba start ++ +
If you make changes to your configuration files, smbd and nmbd +may be restarted by typing the following at a shell prompt:
+ +/etc/init.d/samba start ++ +
smbd and nmbd may be killed by typing the following at +a shell prompt:
+ +/etc/init.d/samba stop ++ +
To have smbd and nmbd started by inetd you can execute +the shell script /usr/samba/inetd.sh to automatically configure +the various files and start the processes. This shell script first kills +any running smbd and nmbd processes. It then removes any +existing entries for "netbios*" from /etc/inetd.conf and +adds the following lines
+ +netbios-ssn stream tcp nowait root /usr/samba/bin/smbd smbd + netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S ++ +
It then removes any existing entries for "netbios*" from /etc/services +and adds the following lines
+ +netbios-ns 137/udp # SAMBA + netbios-ssn 139/tcp # SAMBA ++ +
Inetd is then restarted by executing:
+ +/etc/killall -HUP inetd ++ +
If you make changes to your configuration files, smbd and nmbd +may be restarted by typing the following at a shell prompt:
+ +/etc/killall smbd nmbd + /etc/killall -HUP inetd ++ +
The author of this product is: Andrew Tridgell
+ +Samba is distributed freely under the GNU +public license.
+ +The software in this package is considered unsupported by Silicon Graphics. +Neither the authors or Silicon Graphics are compelled to help resolve problems +you may encounter in the installation, setup, or execution of this software. +To be more to the point, if you call us with an issue regarding products +in the Freeware package, we'll have to gracefully terminate the call. The + +Samba Web Page has a listing of companies and individuals that offer +commercial support for a fee. +
+ +Samba includes these subsystems:
+ +samba.sw.base (default) | + +Execution environment for Samba. | +
samba.man.manpages(default) | + +Samba 1.9.17's online manual pages (preformatted). | +
samba.man.doc (default) | + +Samba documentation: hints on installation and configuration, an FAQ +(Frequently Asked Questions), help in diagnosing problems, etc.. | +
samba.man.relnotes (default) | + +Samba online release notes. | +
samba.src.samba | + +The Samba 1.9.17 software distribution from which this product was +built (including the packaging/SGI directory which will allow this distribution +to be rebuilt). | +
All of the subsystems for Samba can be installed using IRIX. You do +not need to use the miniroot. Refer to the Software Installation Administrator's +Guide for complete installation instructions.
+ +Your workstation must be running IRIX 5.3 or later in order to use this +product.
+ +Because configuration files often contain modifications, inst treats +them specially during the installation process. If they have not been modified, +inst removes the old file and installs the new version during software +updates. For configuration files that have been modified, the new version +is installed and the old version is renamed by adding the suffix .O (for +older) to the name. The no-suffix version contains changes that are required +for compatibility with the rest of the newly installed software, that increase +functionality, or that fix bugs. You should use diff(1) or gdiff(1) to +compare the two versions of the files and transfer information that you +recognize as machine or site-specific from the .O version to the no-suffix +version.
+ +Preformatted manual pages are installed by default as are the contents +of the docs directory from the Samba distribution; consult samba(7) +for an introduction.
+ +There is a mailing list for discussion of Samba. To subscribe send mail +to listproc@samba.anu.edu.au +with a body of "subscribe samba Your Name"
+ +To send mail to everyone on the list mail to samba@samba.anu.edu.au. +
+ +There is also an announcement mailing list where new versions are announced. +To subscribe send mail to listproc@samba.anu.edu.au +with a body of "subscribe samba-announce Your Name". All announcements +also go to the samba list.
+ +You might also like to look at the Usenet news group comp.protocols.smb +as it often contains lots of useful info and is frequented by lots of Samba +users. The newsgroup was initially setup by people on the Samba mailing +list. It is not, however, exclusive to Samba, it is a forum for discussing +the SMB protocol (which Samba implements).
+ +A Samba WWW site has been setup with lots of useful info. Connect to: +http://samba.anu.edu.au/pub/samba/. +It is maintained by Paul Blackman (thanks Paul!). You can contact him at +ictinus@lake.canberra.edu.au. +
+ + + diff --git a/packaging/SGI/samba.config b/packaging/SGI/samba.config new file mode 100644 index 0000000000..b3d86404ab --- /dev/null +++ b/packaging/SGI/samba.config @@ -0,0 +1 @@ +on diff --git a/packaging/SGI/samba.idb b/packaging/SGI/samba.idb new file mode 100644 index 0000000000..dbf9f3b10f --- /dev/null +++ b/packaging/SGI/samba.idb @@ -0,0 +1,394 @@ +f 0644 root sys etc/config/samba packaging/SGI/samba.config samba.sw.base config(update) +f 0755 root sys etc/init.d/samba packaging/SGI/samba.rc samba.sw.base +l 0000 root sys etc/rc0.d/K39samba packaging/SGI samba.sw.base symval(../init.d/samba) +l 0000 root sys etc/rc2.d/S81samba packaging/SGI samba.sw.base symval(../init.d/samba) +d 0755 root sys usr/relnotes/samba packaging/SGI samba.man.relnotes +f 0644 root sys usr/relnotes/samba/GNU_COPYING.txt COPYING samba.man.relnotes +f 0644 root sys usr/relnotes/samba/legal_notice.html packaging/SGI/legal_notice.html samba.man.relnotes +f 0644 root sys usr/relnotes/samba/samba-relnotes.html packaging/SGI/relnotes.html samba.man.relnotes +d 0755 root sys usr/samba packaging/SGI samba.sw.base +f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base +d 0755 root sys usr/samba/bin packaging/SGI samba.sw.base +f 0755 root sys usr/samba/bin/addtosmbpass source/addtosmbpass samba.sw.base +f 0775 root sys usr/samba/bin/nmbd source/nmbd samba.sw.base +f 0755 root sys usr/samba/bin/nmblookup source/nmblookup samba.sw.base +f 0644 root sys usr/samba/bin/psfixes.sed packaging/SGI/psfixes.sed samba.sw.base +f 0755 root sys usr/samba/bin/sambalp packaging/SGI/sambalp samba.sw.base +f 0755 root sys usr/samba/bin/smbclient source/smbclient samba.sw.base +f 0775 root sys usr/samba/bin/smbd source/smbd samba.sw.base +f 4555 root sys usr/samba/bin/smbpasswd source/smbpasswd samba.sw.base +f 0755 root sys usr/samba/bin/smbprint packaging/SGI/smbprint samba.sw.base +f 0755 root sys usr/samba/bin/smbrun source/smbrun samba.sw.base +f 0755 root sys usr/samba/bin/smbstatus source/smbstatus samba.sw.base +f 0755 root sys usr/samba/bin/smbtar source/smbtar samba.sw.base +f 0775 root sys usr/samba/bin/testparm source/testparm samba.sw.base +f 0775 root sys usr/samba/bin/testprns source/testprns samba.sw.base +d 0755 root sys usr/samba/docs docs samba.man.doc +f 0644 root sys usr/samba/docs/Application_Serving.txt docs/Application_Serving.txt samba.man.doc +f 0644 root sys usr/samba/docs/BROWSING.txt docs/BROWSING.txt samba.man.doc +f 0644 root sys usr/samba/docs/BUGS.txt docs/BUGS.txt samba.man.doc +f 0644 root sys usr/samba/docs/DIAGNOSIS.txt docs/DIAGNOSIS.txt samba.man.doc +f 0644 root sys usr/samba/docs/DNIX.txt docs/DNIX.txt samba.man.doc +f 0644 root sys usr/samba/docs/DOMAIN.txt docs/DOMAIN.txt samba.man.doc +f 0644 root sys usr/samba/docs/DOMAIN_CONTROL.txt docs/DOMAIN_CONTROL.txt samba.man.doc +f 0644 root sys usr/samba/docs/ENCRYPTION.txt docs/ENCRYPTION.txt samba.man.doc +f 0644 root sys usr/samba/docs/Faxing.txt docs/Faxing.txt samba.man.doc +f 0644 root sys usr/samba/docs/GOTCHAS.txt docs/GOTCHAS.txt samba.man.doc +f 0644 root sys usr/samba/docs/HINTS.txt docs/HINTS.txt samba.man.doc +f 0644 root sys usr/samba/docs/INSTALL.sambatar docs/INSTALL.sambatar samba.man.doc +f 0644 root sys usr/samba/docs/MIRRORS docs/MIRRORS samba.man.doc +f 0644 root sys usr/samba/docs/NT4_PlainPassword.reg docs/NT4_PlainPassword.reg samba.man.doc +f 0644 root sys usr/samba/docs/NetBIOS.txt docs/NetBIOS.txt samba.man.doc +f 0644 root sys usr/samba/docs/OS2-Client-HOWTO.txt docs/OS2-Client-HOWTO.txt samba.man.doc +f 0644 root sys usr/samba/docs/PROJECTS docs/PROJECTS samba.man.doc +f 0644 root sys usr/samba/docs/Passwords.txt docs/Passwords.txt samba.man.doc +f 0644 root sys usr/samba/docs/Printing.txt docs/Printing.txt samba.man.doc +f 0644 root sys usr/samba/docs/README.DCEDFS docs/README.DCEDFS samba.man.doc +f 0644 root sys usr/samba/docs/README.jis docs/README.jis samba.man.doc +f 0644 root sys usr/samba/docs/README.sambatar docs/README.sambatar samba.man.doc +f 0644 root sys usr/samba/docs/SCO.txt docs/SCO.txt samba.man.doc +f 0644 root sys usr/samba/docs/SMBTAR.notes docs/SMBTAR.notes samba.man.doc +f 0644 root sys usr/samba/docs/Speed.txt docs/Speed.txt samba.man.doc +f 0644 root sys usr/samba/docs/Support.txt docs/Support.txt samba.man.doc +f 0644 root sys usr/samba/docs/THANKS docs/THANKS samba.man.doc +f 0644 root sys usr/samba/docs/Tracing.txt docs/Tracing.txt samba.man.doc +f 0644 root sys usr/samba/docs/UNIX-SMB.txt docs/UNIX-SMB.txt samba.man.doc +f 0644 root sys usr/samba/docs/UNIX_INSTALL.txt docs/UNIX_INSTALL.txt samba.man.doc +f 0644 root sys usr/samba/docs/Win95.txt docs/Win95.txt samba.man.doc +f 0644 root sys usr/samba/docs/Win95_PlainPassword.reg docs/Win95_PlainPassword.reg samba.man.doc +f 0644 root sys usr/samba/docs/WinNT.txt docs/WinNT.txt samba.man.doc +f 0644 root sys usr/samba/docs/announce docs/announce samba.man.doc +d 0755 root sys usr/samba/docs/faq docs/faq samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ-1.html docs/faq/Samba-Server-FAQ-1.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ-2.html docs/faq/Samba-Server-FAQ-2.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ.html docs/faq/Samba-Server-FAQ.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ.sgml docs/faq/Samba-Server-FAQ.sgml samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-1.html docs/faq/Samba-meta-FAQ-1.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-2.html docs/faq/Samba-meta-FAQ-2.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-3.html docs/faq/Samba-meta-FAQ-3.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-4.html docs/faq/Samba-meta-FAQ-4.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-5.html docs/faq/Samba-meta-FAQ-5.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-6.html docs/faq/Samba-meta-FAQ-6.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ.html docs/faq/Samba-meta-FAQ.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ.sgml docs/faq/Samba-meta-FAQ.sgml samba.man.doc +f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ.txt docs/faq/Samba-meta-FAQ.txt samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq-1.html docs/faq/sambafaq-1.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq-2.html docs/faq/sambafaq-2.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq-3.html docs/faq/sambafaq-3.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq-4.html docs/faq/sambafaq-4.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq-5.html docs/faq/sambafaq-5.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq.html docs/faq/sambafaq.html samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq.sgml docs/faq/sambafaq.sgml samba.man.doc +f 0644 root sys usr/samba/docs/faq/sambafaq.txt docs/faq/sambafaq.txt samba.man.doc +f 0644 root sys usr/samba/docs/history docs/history samba.man.doc +f 0644 root sys usr/samba/docs/internals.doc source/internals.doc samba.man.doc +f 0644 root sys usr/samba/docs/nameannounce.doc source/nameannounce.doc samba.man.doc +f 0644 root sys usr/samba/docs/namebrowse.doc source/namebrowse.doc samba.man.doc +f 0644 root sys usr/samba/docs/namedbname.doc source/namedbname.doc samba.man.doc +f 0644 root sys usr/samba/docs/namedbresp.doc source/namedbresp.doc samba.man.doc +f 0644 root sys usr/samba/docs/nameelect.doc source/nameelect.doc samba.man.doc +f 0644 root sys usr/samba/docs/namelogon.doc source/namelogon.doc samba.man.doc +f 0644 root sys usr/samba/docs/namepacket.doc source/namepacket.doc samba.man.doc +f 0644 root sys usr/samba/docs/namequery.doc source/namequery.doc samba.man.doc +f 0644 root sys usr/samba/docs/nameresp.doc source/nameresp.doc samba.man.doc +f 0644 root sys usr/samba/docs/nameserv.doc source/nameserv.doc samba.man.doc +f 0644 root sys usr/samba/docs/nameservreply.doc source/nameservreply.doc samba.man.doc +f 0644 root sys usr/samba/docs/nameservresp.doc source/nameservresp.doc samba.man.doc +f 0644 root sys usr/samba/docs/namework.doc source/namework.doc samba.man.doc +f 0644 root sys usr/samba/docs/nmbd.8 docs/nmbd.8 samba.man.doc +f 0644 root sys usr/samba/docs/samba.7 docs/samba.7 samba.man.doc +f 0644 root sys usr/samba/docs/samba.faq docs/samba.faq samba.man.doc +f 0644 root sys usr/samba/docs/samba.lsm docs/samba.lsm samba.man.doc +f 0644 root sys usr/samba/docs/security_level.txt docs/security_level.txt samba.man.doc +f 0644 root sys usr/samba/docs/smb.conf.5 docs/smb.conf.5 samba.man.doc +f 0644 root sys usr/samba/docs/smbclient.1 docs/smbclient.1 samba.man.doc +f 0644 root sys usr/samba/docs/smbd.8 docs/smbd.8 samba.man.doc +f 0644 root sys usr/samba/docs/smbpasswd.8 docs/smbpasswd.8 samba.man.doc +f 0644 root sys usr/samba/docs/smbrun.1 docs/smbrun.1 samba.man.doc +f 0644 root sys usr/samba/docs/smbstatus.1 docs/smbstatus.1 samba.man.doc +f 0644 root sys usr/samba/docs/smbtar.1 docs/smbtar.1 samba.man.doc +f 0644 root sys usr/samba/docs/testparm.1 docs/testparm.1 samba.man.doc +f 0644 root sys usr/samba/docs/testprns.1 docs/testprns.1 samba.man.doc +f 0644 root sys usr/samba/docs/wfw_slip.htm docs/wfw_slip.htm samba.man.doc +f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base +d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base +f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update) +f 0775 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base exitop(/usr/samba/mkprintcap.sh) removeop(rm /usr/samba/printcap) +d 0755 root sys usr/samba/src source samba.src.samba +f 0644 root sys usr/samba/src/COPYING COPYING samba.src.samba +f 0644 root sys usr/samba/src/Manifest Manifest samba.src.samba +f 0644 root sys usr/samba/src/README README samba.src.samba +f 0644 root sys usr/samba/src/Read-Manifest-Now Read-Manifest-Now samba.src.samba +f 0644 root sys usr/samba/src/Roadmap Roadmap samba.src.samba +f 0644 root sys usr/samba/src/WHATSNEW.txt WHATSNEW.txt samba.src.samba +d 0755 root sys usr/samba/src/docs docs samba.src.samba +f 0644 root sys usr/samba/src/docs/Application_Serving.txt docs/Application_Serving.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/BROWSING.txt docs/BROWSING.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/BUGS.txt docs/BUGS.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/DIAGNOSIS.txt docs/DIAGNOSIS.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/DNIX.txt docs/DNIX.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/DOMAIN.txt docs/DOMAIN.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/DOMAIN_CONTROL.txt docs/DOMAIN_CONTROL.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/ENCRYPTION.txt docs/ENCRYPTION.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/Faxing.txt docs/Faxing.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/GOTCHAS.txt docs/GOTCHAS.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/HINTS.txt docs/HINTS.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/INSTALL.sambatar docs/INSTALL.sambatar samba.src.samba +f 0644 root sys usr/samba/src/docs/MIRRORS docs/MIRRORS samba.src.samba +f 0644 root sys usr/samba/src/docs/NT4_PlainPassword.reg docs/NT4_PlainPassword.reg samba.src.samba +f 0644 root sys usr/samba/src/docs/NetBIOS.txt docs/NetBIOS.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/OS2-Client-HOWTO.txt docs/OS2-Client-HOWTO.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/PROJECTS docs/PROJECTS samba.src.samba +f 0644 root sys usr/samba/src/docs/Passwords.txt docs/Passwords.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/Printing.txt docs/Printing.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/README.DCEDFS docs/README.DCEDFS samba.src.samba +f 0644 root sys usr/samba/src/docs/README.jis docs/README.jis samba.src.samba +f 0644 root sys usr/samba/src/docs/README.sambatar docs/README.sambatar samba.src.samba +f 0644 root sys usr/samba/src/docs/SCO.txt docs/SCO.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/SMBTAR.notes docs/SMBTAR.notes samba.src.samba +f 0644 root sys usr/samba/src/docs/Speed.txt docs/Speed.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/Support.txt docs/Support.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/THANKS docs/THANKS samba.src.samba +f 0644 root sys usr/samba/src/docs/Tracing.txt docs/Tracing.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/UNIX-SMB.txt docs/UNIX-SMB.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/UNIX_INSTALL.txt docs/UNIX_INSTALL.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/Win95.txt docs/Win95.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/Win95_PlainPassword.reg docs/Win95_PlainPassword.reg samba.src.samba +f 0644 root sys usr/samba/src/docs/WinNT.txt docs/WinNT.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/announce docs/announce samba.src.samba +d 0755 root sys usr/samba/src/docs/faq docs/faq samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ-1.html docs/faq/Samba-Server-FAQ-1.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ-2.html docs/faq/Samba-Server-FAQ-2.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ.html docs/faq/Samba-Server-FAQ.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ.sgml docs/faq/Samba-Server-FAQ.sgml samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-1.html docs/faq/Samba-meta-FAQ-1.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-2.html docs/faq/Samba-meta-FAQ-2.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-3.html docs/faq/Samba-meta-FAQ-3.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-4.html docs/faq/Samba-meta-FAQ-4.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-5.html docs/faq/Samba-meta-FAQ-5.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-6.html docs/faq/Samba-meta-FAQ-6.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ.html docs/faq/Samba-meta-FAQ.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ.sgml docs/faq/Samba-meta-FAQ.sgml samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ.txt docs/faq/Samba-meta-FAQ.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq-1.html docs/faq/sambafaq-1.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq-2.html docs/faq/sambafaq-2.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq-3.html docs/faq/sambafaq-3.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq-4.html docs/faq/sambafaq-4.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq-5.html docs/faq/sambafaq-5.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq.html docs/faq/sambafaq.html samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq.sgml docs/faq/sambafaq.sgml samba.src.samba +f 0644 root sys usr/samba/src/docs/faq/sambafaq.txt docs/faq/sambafaq.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/history docs/history samba.src.samba +f 0644 root sys usr/samba/src/docs/nmbd.8 docs/nmbd.8 samba.src.samba +f 0644 root sys usr/samba/src/docs/samba.7 docs/samba.7 samba.src.samba +f 0644 root sys usr/samba/src/docs/samba.faq docs/samba.faq samba.src.samba +f 0644 root sys usr/samba/src/docs/samba.lsm docs/samba.lsm samba.src.samba +f 0644 root sys usr/samba/src/docs/security_level.txt docs/security_level.txt samba.src.samba +f 0644 root sys usr/samba/src/docs/smb.conf.5 docs/smb.conf.5 samba.src.samba +f 0644 root sys usr/samba/src/docs/smbclient.1 docs/smbclient.1 samba.src.samba +f 0644 root sys usr/samba/src/docs/smbd.8 docs/smbd.8 samba.src.samba +f 0644 root sys usr/samba/src/docs/smbpasswd.8 docs/smbpasswd.8 samba.src.samba +f 0644 root sys usr/samba/src/docs/smbrun.1 docs/smbrun.1 samba.src.samba +f 0644 root sys usr/samba/src/docs/smbstatus.1 docs/smbstatus.1 samba.src.samba +f 0644 root sys usr/samba/src/docs/smbtar.1 docs/smbtar.1 samba.src.samba +f 0644 root sys usr/samba/src/docs/testparm.1 docs/testparm.1 samba.src.samba +f 0644 root sys usr/samba/src/docs/testprns.1 docs/testprns.1 samba.src.samba +f 0644 root sys usr/samba/src/docs/wfw_slip.htm docs/wfw_slip.htm samba.src.samba +d 0755 root sys usr/samba/src/examples examples samba.src.samba +f 0664 root sys usr/samba/src/examples/README examples/README samba.src.samba +d 0755 root sys usr/samba/src/examples/dce-dfs examples/dce-dfs samba.src.samba +f 0644 root sys usr/samba/src/examples/dce-dfs/README examples/dce-dfs/README samba.src.samba +f 0644 root sys usr/samba/src/examples/dce-dfs/smb.conf examples/dce-dfs/smb.conf samba.src.samba +d 0755 root sys usr/samba/src/examples/misc examples/misc samba.src.samba +f 0644 root sys usr/samba/src/examples/misc/extra_smbstatus examples/misc/extra_smbstatus samba.src.samba +f 0644 root sys usr/samba/src/examples/misc/wall.perl examples/misc/wall.perl samba.src.samba +d 0775 root sys usr/samba/src/examples/printer-accounting examples/printer-accounting samba.src.samba +f 0664 root sys usr/samba/src/examples/printer-accounting/README examples/printer-accounting/README samba.src.samba +f 0664 root sys usr/samba/src/examples/printer-accounting/acct-all examples/printer-accounting/acct-all samba.src.samba +f 0664 root sys usr/samba/src/examples/printer-accounting/acct-sum examples/printer-accounting/acct-sum samba.src.samba +f 0664 root sys usr/samba/src/examples/printer-accounting/hp5-redir examples/printer-accounting/hp5-redir samba.src.samba +f 0664 root sys usr/samba/src/examples/printer-accounting/lp-acct examples/printer-accounting/lp-acct samba.src.samba +f 0664 root sys usr/samba/src/examples/printer-accounting/printcap examples/printer-accounting/printcap samba.src.samba +d 0755 root sys usr/samba/src/examples/printing examples/printing samba.src.samba +f 0755 root sys usr/samba/src/examples/printing/smbprint examples/printing/smbprint samba.src.samba +f 0644 root sys usr/samba/src/examples/printing/smbprint.sysv examples/printing/smbprint.sysv samba.src.samba +d 0755 root sys usr/samba/src/examples/simple examples/simple samba.src.samba +f 0644 root sys usr/samba/src/examples/simple/README examples/simple/README samba.src.samba +f 0644 root sys usr/samba/src/examples/simple/smb.conf examples/simple/smb.conf samba.src.samba +d 0775 root sys usr/samba/src/examples/svr4-startup examples/svr4-startup samba.src.samba +f 0664 root sys usr/samba/src/examples/svr4-startup/README examples/svr4-startup/README samba.src.samba +f 0775 root sys usr/samba/src/examples/svr4-startup/samba.server examples/svr4-startup/samba.server samba.src.samba +d 0755 root sys usr/samba/src/examples/thoralf examples/thoralf samba.src.samba +f 0644 root sys usr/samba/src/examples/thoralf/smb.conf examples/thoralf/smb.conf samba.src.samba +d 0755 root sys usr/samba/src/examples/tridge examples/tridge samba.src.samba +f 0644 root sys usr/samba/src/examples/tridge/README examples/tridge/README samba.src.samba +f 0644 root sys usr/samba/src/examples/tridge/smb.conf examples/tridge/smb.conf samba.src.samba +f 0644 root sys usr/samba/src/examples/tridge/smb.conf.WinNT examples/tridge/smb.conf.WinNT samba.src.samba +f 0644 root sys usr/samba/src/examples/tridge/smb.conf.fjall examples/tridge/smb.conf.fjall samba.src.samba +f 0644 root sys usr/samba/src/examples/tridge/smb.conf.lapland examples/tridge/smb.conf.lapland samba.src.samba +f 0644 root sys usr/samba/src/examples/tridge/smb.conf.vittjokk examples/tridge/smb.conf.vittjokk samba.src.samba +d 0775 root sys usr/samba/src/examples/validchars examples/validchars samba.src.samba +f 0664 root sys usr/samba/src/examples/validchars/msdos70.out examples/validchars/msdos70.out samba.src.samba +f 0664 root sys usr/samba/src/examples/validchars/nwdos70.out examples/validchars/nwdos70.out samba.src.samba +f 0664 root sys usr/samba/src/examples/validchars/readme examples/validchars/readme samba.src.samba +f 0664 root sys usr/samba/src/examples/validchars/validchr.c examples/validchars/validchr.c samba.src.samba +f 0664 root sys usr/samba/src/examples/validchars/validchr.com examples/validchars/validchr.com samba.src.samba +d 0755 root sys usr/samba/src/packaging packaging samba.src.samba +f 0644 root sys usr/samba/src/packaging/README packaging/README samba.src.samba +d 0755 root sys usr/samba/src/packaging/SGI packaging/SGI samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/Makefile packaging/SGI/Makefile samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/README packaging/SGI/README samba.src.samba +f 0755 root sys usr/samba/src/packaging/SGI/inetd.sh packaging/SGI/inetd.sh samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/legal_notice.html packaging/SGI/legal_notice.html samba.src.samba +f 0755 root sys usr/samba/src/packaging/SGI/mkman packaging/SGI/mkman samba.src.samba +f 0755 root sys usr/samba/src/packaging/SGI/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.src.samba +f 0755 root sys usr/samba/src/packaging/SGI/mkrelease.sh packaging/SGI/mkrelease.sh samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/printcap packaging/SGI/printcap samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/psfixes.sed packaging/SGI/psfixes.sed samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/relnotes.html packaging/SGI/relnotes.html samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/samba.config packaging/SGI/samba.config samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/samba.idb packaging/SGI/samba.idb samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/samba.rc packaging/SGI/samba.rc samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/samba.spec packaging/SGI/samba.spec samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/sambalp packaging/SGI/sambalp samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/smb.conf packaging/SGI/smb.conf samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/smbpasswd packaging/SGI/smbpasswd samba.src.samba +f 0644 root sys usr/samba/src/packaging/SGI/smbprint packaging/SGI/smbprint samba.src.samba +d 0755 root sys usr/samba/src/packaging/redhat packaging/redhat samba.src.samba +f 0644 root sys usr/samba/src/packaging/redhat/Instructions packaging/redhat/Instructions samba.src.samba +f 0755 root sys usr/samba/src/packaging/redhat/makeldirp.sh packaging/redhat/makeldirs.sh samba.src.samba +f 0755 root sys usr/samba/src/packaging/redhat/makerpms.sh packaging/redhat/makerpms.sh samba.src.samba +f 0644 root sys usr/samba/src/packaging/redhat/samba-axp.patch packaging/redhat/samba-axp.patch samba.src.samba +f 0644 root sys usr/samba/src/packaging/redhat/samba-make.patch packaging/redhat/samba-make.patch samba.src.samba +f 0644 root sys usr/samba/src/packaging/redhat/samba.log packaging/redhat/samba.log samba.src.samba +f 0644 root sys usr/samba/src/packaging/redhat/samba.pamd packaging/redhat/samba.pamd samba.src.samba +f 0644 root sys usr/samba/src/packaging/redhat/samba.spec packaging/redhat/samba.spec samba.src.samba +f 0644 root sys usr/samba/src/packaging/redhat/smb.conf packaging/redhat/smb.conf samba.src.samba +f 0755 root sys usr/samba/src/packaging/redhat/smb.init packaging/redhat/smb.init samba.src.samba +f 0755 root sys usr/samba/src/packaging/redhat/smbprint packaging/redhat/smbprint samba.src.samba +d 0755 root sys usr/samba/src/source source samba.src.samba +f 0644 root sys usr/samba/src/source/Makefile source/Makefile samba.src.samba +f 0644 root sys usr/samba/src/source/Makefile.OS2 source/Makefile.OS2 samba.src.samba +f 0644 root sys usr/samba/src/source/access.c source/access.c samba.src.samba +f 0644 root sys usr/samba/src/source/addtosmbpass source/addtosmbpass samba.src.samba +f 0644 root sys usr/samba/src/source/byteorder.h source/byteorder.h samba.src.samba +f 0644 root sys usr/samba/src/source/change-log source/change-log samba.src.samba +f 0644 root sys usr/samba/src/source/charcnv.c source/charcnv.c samba.src.samba +f 0644 root sys usr/samba/src/source/charset.c source/charset.c samba.src.samba +f 0644 root sys usr/samba/src/source/charset.h source/charset.h samba.src.samba +f 0644 root sys usr/samba/src/source/checkos.sh source/checkos.sh samba.src.samba +f 0644 root sys usr/samba/src/source/chgpasswd.c source/chgpasswd.c samba.src.samba +f 0644 root sys usr/samba/src/source/client.c source/client.c samba.src.samba +f 0644 root sys usr/samba/src/source/clientutil.c source/clientutil.c samba.src.samba +f 0644 root sys usr/samba/src/source/clitar.c source/clitar.c samba.src.samba +f 0644 root sys usr/samba/src/source/clitar.h source/clitar.h samba.src.samba +f 0644 root sys usr/samba/src/source/dir.c source/dir.c samba.src.samba +f 0644 root sys usr/samba/src/source/fault.c source/fault.c samba.src.samba +f 0644 root sys usr/samba/src/source/getsmbpass.c source/getsmbpass.c samba.src.samba +f 0644 root sys usr/samba/src/source/includes.h source/includes.h samba.src.samba +f 0644 root sys usr/samba/src/source/installbin.sh source/installbin.sh samba.src.samba +f 0644 root sys usr/samba/src/source/installman.sh source/installman.sh samba.src.samba +f 0644 root sys usr/samba/src/source/installscripts.sh source/installscripts.sh samba.src.samba +f 0644 root sys usr/samba/src/source/interface.c source/interface.c samba.src.samba +f 0644 root sys usr/samba/src/source/internals.doc source/internals.doc samba.src.samba +f 0644 root sys usr/samba/src/source/ipc.c source/ipc.c samba.src.samba +f 0644 root sys usr/samba/src/source/kanji.c source/kanji.c samba.src.samba +f 0644 root sys usr/samba/src/source/kanji.h source/kanji.h samba.src.samba +f 0644 root sys usr/samba/src/source/loadparm.c source/loadparm.c samba.src.samba +f 0644 root sys usr/samba/src/source/local.h source/local.h samba.src.samba +f 0644 root sys usr/samba/src/source/locking.c source/locking.c samba.src.samba +f 0644 root sys usr/samba/src/source/mangle.c source/mangle.c samba.src.samba +f 0644 root sys usr/samba/src/source/md4.c source/md4.c samba.src.samba +f 0644 root sys usr/samba/src/source/md4.h source/md4.h samba.src.samba +f 0644 root sys usr/samba/src/source/message.c source/message.c samba.src.samba +f 0644 root sys usr/samba/src/source/mkproto.awk source/mkproto.awk samba.src.samba +f 0644 root sys usr/samba/src/source/mksmbpasswd.sh source/mksmbpasswd.sh samba.src.samba +f 0644 root sys usr/samba/src/source/nameannounce.c source/nameannounce.c samba.src.samba +f 0644 root sys usr/samba/src/source/nameannounce.doc source/nameannounce.doc samba.src.samba +f 0644 root sys usr/samba/src/source/namebrowse.c source/namebrowse.c samba.src.samba +f 0644 root sys usr/samba/src/source/namebrowse.doc source/namebrowse.doc samba.src.samba +f 0644 root sys usr/samba/src/source/nameconf.c source/nameconf.c samba.src.samba +f 0644 root sys usr/samba/src/source/namedbname.c source/namedbname.c samba.src.samba +f 0644 root sys usr/samba/src/source/namedbname.doc source/namedbname.doc samba.src.samba +f 0644 root sys usr/samba/src/source/namedbresp.c source/namedbresp.c samba.src.samba +f 0644 root sys usr/samba/src/source/namedbresp.doc source/namedbresp.doc samba.src.samba +f 0644 root sys usr/samba/src/source/namedbserver.c source/namedbserver.c samba.src.samba +f 0644 root sys usr/samba/src/source/namedbsubnet.c source/namedbsubnet.c samba.src.samba +f 0644 root sys usr/samba/src/source/namedbwork.c source/namedbwork.c samba.src.samba +f 0644 root sys usr/samba/src/source/nameelect.c source/nameelect.c samba.src.samba +f 0644 root sys usr/samba/src/source/nameelect.doc source/nameelect.doc samba.src.samba +f 0644 root sys usr/samba/src/source/namelogon.c source/namelogon.c samba.src.samba +f 0644 root sys usr/samba/src/source/namelogon.doc source/namelogon.doc samba.src.samba +f 0644 root sys usr/samba/src/source/namepacket.c source/namepacket.c samba.src.samba +f 0644 root sys usr/samba/src/source/namepacket.doc source/namepacket.doc samba.src.samba +f 0644 root sys usr/samba/src/source/namequery.c source/namequery.c samba.src.samba +f 0644 root sys usr/samba/src/source/namequery.doc source/namequery.doc samba.src.samba +f 0644 root sys usr/samba/src/source/nameresp.c source/nameresp.c samba.src.samba +f 0644 root sys usr/samba/src/source/nameresp.doc source/nameresp.doc samba.src.samba +f 0644 root sys usr/samba/src/source/nameserv.c source/nameserv.c samba.src.samba +f 0644 root sys usr/samba/src/source/nameserv.doc source/nameserv.doc samba.src.samba +f 0644 root sys usr/samba/src/source/nameserv.h source/nameserv.h samba.src.samba +f 0644 root sys usr/samba/src/source/nameservreply.c source/nameservreply.c samba.src.samba +f 0644 root sys usr/samba/src/source/nameservreply.doc source/nameservreply.doc samba.src.samba +f 0644 root sys usr/samba/src/source/nameservresp.c source/nameservresp.c samba.src.samba +f 0644 root sys usr/samba/src/source/nameservresp.doc source/nameservresp.doc samba.src.samba +f 0644 root sys usr/samba/src/source/namework.c source/namework.c samba.src.samba +f 0644 root sys usr/samba/src/source/namework.doc source/namework.doc samba.src.samba +f 0644 root sys usr/samba/src/source/nmbd.c source/nmbd.c samba.src.samba +f 0644 root sys usr/samba/src/source/nmblib.c source/nmblib.c samba.src.samba +f 0644 root sys usr/samba/src/source/nmblookup.c source/nmblookup.c samba.src.samba +f 0644 root sys usr/samba/src/source/nmbsync.c source/nmbsync.c samba.src.samba +f 0644 root sys usr/samba/src/source/params.c source/params.c samba.src.samba +f 0644 root sys usr/samba/src/source/password.c source/password.c samba.src.samba +f 0644 root sys usr/samba/src/source/pcap.c source/pcap.c samba.src.samba +f 0644 root sys usr/samba/src/source/pipes.c source/pipes.c samba.src.samba +f 0644 root sys usr/samba/src/source/predict.c source/predict.c samba.src.samba +f 0644 root sys usr/samba/src/source/printing.c source/printing.c samba.src.samba +f 0644 root sys usr/samba/src/source/proto.h source/proto.h samba.src.samba +f 0644 root sys usr/samba/src/source/quotas.c source/quotas.c samba.src.samba +f 0644 root sys usr/samba/src/source/replace.c source/replace.c samba.src.samba +f 0644 root sys usr/samba/src/source/reply.c source/reply.c samba.src.samba +f 0644 root sys usr/samba/src/source/revert.sh source/revert.sh samba.src.samba +f 0644 root sys usr/samba/src/source/server.c source/server.c samba.src.samba +f 0644 root sys usr/samba/src/source/shmem.c source/shmem.c samba.src.samba +f 0644 root sys usr/samba/src/source/smb.h source/smb.h samba.src.samba +f 0644 root sys usr/samba/src/source/smbencrypt.c source/smbencrypt.c samba.src.samba +f 0644 root sys usr/samba/src/source/smbpass.c source/smbpass.c samba.src.samba +f 0644 root sys usr/samba/src/source/smbpasswd.c source/smbpasswd.c samba.src.samba +f 0644 root sys usr/samba/src/source/smbrun.c source/smbrun.c samba.src.samba +f 0644 root sys usr/samba/src/source/smbtar source/smbtar samba.src.samba +f 0644 root sys usr/samba/src/source/status.c source/status.c samba.src.samba +f 0644 root sys usr/samba/src/source/system.c source/system.c samba.src.samba +f 0644 root sys usr/samba/src/source/testparm.c source/testparm.c samba.src.samba +f 0644 root sys usr/samba/src/source/testprns.c source/testprns.c samba.src.samba +f 0644 root sys usr/samba/src/source/time.c source/time.c samba.src.samba +f 0644 root sys usr/samba/src/source/trans2.c source/trans2.c samba.src.samba +f 0644 root sys usr/samba/src/source/trans2.h source/trans2.h samba.src.samba +f 0644 root sys usr/samba/src/source/ufc.c source/ufc.c samba.src.samba +f 0644 root sys usr/samba/src/source/uid.c source/uid.c samba.src.samba +f 0644 root sys usr/samba/src/source/uninstallbin.sh source/uninstallbin.sh samba.src.samba +f 0644 root sys usr/samba/src/source/uninstallman.sh source/uninstallman.sh samba.src.samba +f 0644 root sys usr/samba/src/source/uninstallscripts.sh source/uninstallscripts.sh samba.src.samba +f 0644 root sys usr/samba/src/source/updatesmbpasswd.sh source/updatesmbpasswd.sh samba.src.samba +f 0644 root sys usr/samba/src/source/username.c source/username.c samba.src.samba +f 0644 root sys usr/samba/src/source/util.c source/util.c samba.src.samba +f 0644 root sys usr/samba/src/source/version.h source/version.h samba.src.samba +f 0644 root sys usr/samba/src/source/vt_mode.c source/vt_mode.c samba.src.samba +f 0644 root sys usr/samba/src/source/vt_mode.h source/vt_mode.h samba.src.samba +d 0775 root sys usr/samba/var/locks packaging/SGI samba.sw.base +d 0755 root sys usr/share/catman/u_man packaging/SGI/catman samba.man.manpages +d 0755 root sys usr/share/catman/u_man/cat1 packaging/SGI/catman samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat1/smbclient.1.Z packaging/SGI/catman/smbclient.1.Z samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat1/smbrun.1.Z packaging/SGI/catman/smbrun.1.Z samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat1/smbstatus.1.Z packaging/SGI/catman/smbstatus.1.Z samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat1/smbtar.1.Z packaging/SGI/catman/smbtar.1.Z samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat1/testparm.1.Z packaging/SGI/catman/testparm.1.Z samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat1/testprns.1.Z packaging/SGI/catman/testprns.1.Z samba.man.manpages +d 0755 root sys usr/share/catman/u_man/cat5 packaging/SGI/catman samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat5/smb.conf.5.Z packaging/SGI/catman/smb.conf.5.Z samba.man.manpages +d 0755 root sys usr/share/catman/u_man/cat7 packaging/SGI/catman samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat7/samba.7.Z packaging/SGI/catman/samba.7.Z samba.man.manpages +d 0755 root sys usr/share/catman/u_man/cat8 packaging/SGI/catman samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat8/nmbd.8.Z packaging/SGI/catman/nmbd.8.Z samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat8/smbd.8.Z packaging/SGI/catman/smbd.8.Z samba.man.manpages +f 0664 root sys usr/share/catman/u_man/cat8/smbpasswd.8.Z packaging/SGI/catman/smbpasswd.8.Z samba.man.manpages diff --git a/packaging/SGI/samba.rc b/packaging/SGI/samba.rc new file mode 100644 index 0000000000..121b3400a3 --- /dev/null +++ b/packaging/SGI/samba.rc @@ -0,0 +1,42 @@ +#! /bin/sh + +# +# Samba server control +# + +IS_ON=/etc/chkconfig +KILLALL=/sbin/killall + +SAMBAD=/usr/samba/bin/smbd +#SAMBA_OPTS=-d2 +NMBD=/usr/samba/bin/nmbd +#NMBD_OPTS=-d1 + +if test ! -x $IS_ON ; then + IS_ON=true +fi + +if $IS_ON verbose ; then + ECHO=echo +else # For a quiet startup and shutdown + ECHO=: +fi + +case $1 in +'start') + if $IS_ON samba && test -x $SAMBAD; then + $KILLALL -15 smbd nmbd + $ECHO "Samba:\c" + $SAMBAD $SAMBA_OPTS -D; $ECHO " smbd\c" + $NMBD $NMBD_OPTS -D; $ECHO " nmbd\c" + $ECHO "." + fi + ;; +'stop') + $ECHO "Stopping Samba Servers." + $KILLALL -15 smbd nmbd + ;; +*) + echo "usage: /etc/init.d/samba {start|stop}" + ;; +esac diff --git a/packaging/SGI/samba.spec b/packaging/SGI/samba.spec new file mode 100644 index 0000000000..1940e93e93 --- /dev/null +++ b/packaging/SGI/samba.spec @@ -0,0 +1,45 @@ +product samba + id "Samba version 1.9.17" + image sw + id "Samba Execution Environment" + version 0109170006 + order 0 + subsys base default + id "Samba Execution Environment" + replaces fw_samba.sw.base 0 9999999999 + replaces fw_samba.sw.samba 0 9999999999 + exp samba.sw.base + endsubsys + endimage + image man + id "Samba Online Documentation" + version 0109170006 + order 1 + subsys manpages default + id "Samba Man Page" + replaces fw_samba.man.manpages 0 9999999999 + replaces fw_samba.man.samba 0 9999999999 + exp samba.man.manpages + endsubsys + subsys doc default + id "Samba Documentation" + replaces fw_samba.man.doc 0 9999999999 + exp samba.man.doc + endsubsys + subsys relnotes default + id "Samba Release Notes" + replaces fw_samba.man.relnotes 0 9999999999 + exp samba.man.relnotes + endsubsys + endimage + image src + id "Samba Source Code" + version 0109170006 + order 2 + subsys samba + id "Samba Source Code" + replaces fw_samba.src.samba 0 9999999999 + exp samba.src.samba + endsubsys + endimage +endproduct diff --git a/packaging/SGI/sambalp b/packaging/SGI/sambalp new file mode 100644 index 0000000000..d7c6be2a2d --- /dev/null +++ b/packaging/SGI/sambalp @@ -0,0 +1,21 @@ +#! /bin/sh +# +# Workaround Win95 printer driver/Impressario bug by removing +# the PS check for available virtual memory. Note that this +# bug appears to be in all Win95 print drivers that generate +# PostScript; but is for certain there with a QMS-PS 810 (the +# printer type I configure on the Win95-side for printing with +# Samba). +# +# the sed script fixes 3 different bugs. The first line removes +# the JCL statements added by some HP printer drivers to the +# beginning of the postscript output. The second line fixes a +# bug in output from word files with long filenames. A non-printing +# character added to the end of the title comment by word is +# removed. The third and fourth lines are the VM fix described +# above. +# +TITLE="$3 on $4" + +sed -f /usr/samba/bin/psfixes.sed $2 | /usr/bin/lp -c -d$1 -t"$TITLE" +rm $2 diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf new file mode 100644 index 0000000000..178231d2cd --- /dev/null +++ b/packaging/SGI/smb.conf @@ -0,0 +1,84 @@ +; Configuration file for smbd. +; ============================================================================ +; For the format of this file and comprehensive descriptions of all the +; configuration option, please refer to the man page for smb.conf(5). + +; This is a sample configuration for IRIX 6.x systems +; +; The following configuration should suit most systems for basic usage and +; initial testing. It gives all clients access to their home directories and +; allows access to all printers specified in /etc/printcap as well as /usr/tmp. +; +[global] + comment = Samba %v + workgroup = workgroup + printing = sysv +; +; A printcap file is created during installation that contains the names +; of all printers attached to your system. Names longer than 8 characters +; will not be visible to clients. +; + printcap name = /usr/samba/printcap +; +; If you are using Impressario then you'll want to use the +; sambalp script provided with this package. It works around +; a problem in the PostScript generated by the standard Windows +; drivers--there is a check to verify sufficient virtual memory +; is available in the printer to print the job, but this fails +; under Impressario because of a bug in Impressario. The sambalp +; script strips out the vmstatus check. BTW, when using this +; setup to print be sure to configure a Windows printer driver +; that generates PostScript--QMS-PS 810 is one that should work +; with the sambalp script. +; + print command = /usr/samba/bin/sambalp %p %s %U %m + load printers = yes + guest account = nobody + browseable = yes + +; Set a max size for log files in Kb + log file = /usr/samba/var + max log size = 50 + +; You will need a world readable lock directory and "share modes=yes" +; if you want to support the file sharing modes for multiple users +; of the same files + locking = yes + lock directory = /usr/samba/var/locks + share modes = yes + +; security = user + +; You need to test to see if this makes a difference on your system + socket options = TCP_NODELAY + +; Set the os level to > 32 if there is no NT server for your workgroup + os level = 0 + preferred master = no + domain master = no + local master = no + wins support = no + wins server = + + preserve case = yes + short preserve case = yes + +[homes] + comment = Home Directories + browseable = no + writable = yes + +[printers] + comment = All Printers + path = /usr/tmp + browseable = no + printable = yes + public = yes + writable = no + create mask = 0700 + +[tmp] + comment = Temporary file space + path = /usr/tmp + read only = no + public = yes diff --git a/packaging/SGI/smbpasswd b/packaging/SGI/smbpasswd new file mode 100644 index 0000000000..79c834dc35 --- /dev/null +++ b/packaging/SGI/smbpasswd @@ -0,0 +1 @@ +username:uid:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:Long name:user home dir:user shell diff --git a/packaging/SGI/smbprint b/packaging/SGI/smbprint new file mode 100644 index 0000000000..935f98bf92 --- /dev/null +++ b/packaging/SGI/smbprint @@ -0,0 +1,52 @@ +#!/bin/sh +# +# @(#) smbprint.sysv version 1.0 Ross Wakelin
\"
-# is select character code set for JAPAN.
-# sjis: if your machine support SJIS
-# euc: if your machine support EUC
-# jis7: if your machine support JIS7
-# jis8: if your machine support JIS8
-# junet: if your machine support jis7 + junet rule
-# hex: if your machine only support 7 bits ascii filename only
-# convert to hexdecimal code preseeding ':'.
-# see also README.jis
-######################################
-
-
-# This is for SUNOS 4. Use the SUNOS5 entry for Solaris 2.
-# Note that you cannot use Suns "cc" compiler
-# as it's not an Ansi-C compiler. Get gcc or acc.
-# Note that if you have adjunct passwords you may need the GETPWANAM
-# or PWDAUTH option. There have been reports that using PWDAUTH may crash
-# your pwdauthd server so GETPWANAM is preferable (and probably faster)
-# contributed by Andrew.Tridgell@anu.edu.au
-# FLAGSM = -DSUNOS4
-# LIBSM =
-# AWK = nawk
-
-# Use this for Linux with shadow passwords - but not using PAM!
-# contributed by Andrew.Tridgell@anu.edu.au
-# add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
-# right libraries and includes
-# FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
-# LIBSM = -lshadow
-
-# Use this for Linux without shadow passwords or for any Linux
-# system that uses PAM (eg: RedHat) in which case it handles ALL
-# authentication methods that are supported by the version of
-# PAM that is available on your system.
-# contributed by Andrew.Tridgell@anu.edu.au & John.Terpstra@aquasoft.com.au
-# AXPROC defines DEC Alpha Processor
-# FLAGSM = -DLINUX -DAXPROC -DFAST_SHARE_MODES
-# FLAGSM = -DLINUX -DFAST_SHARE_MODES
-# LIBSM =
-
-# Use this for Linux with shadow passwords and quota - but not using PAM!
-# contributed by xeno@mix.hive.no
-# Tested on the 1.3.57 kernel and ext2fs filesystem.
-# Notes:
-# /usr/include/sys/quota.h must be a symlink to /usr/include/linux/quota.h
-# The directory quota here must be a symlink to your quota package.
-# I just do 'ln -sf /usr/src/quota-1.50 quota' in this directory to get it to work.
-# FLAGSM = -O3 -m486 -DLINUX -DSHADOW_PWD -DQUOTAS -DFAST_SHARE_MODES
-# LIBSM = -lshadow
-
-# Use this for Linux with quota and glibc2 - not using PAM!
-# contributed by Thorvald Natvig
-# Tested on the 2.0.30 kernel and ext2fs filesystem.
-# FLAGSM = -DLINUX -DQUOTAS -DNO_ASMSIGNALH -DGLIBC2 -DFAST_SHARE_MODES
-# LIBSM = -L/lib/libc5-compat -lcrypt
-
-# Use this for Linux with glibc2 (libc6)
-# contributed by Eloy Paris
-# FLAGSM = -DLINUX -DNETGROUP -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2
-# LIBSM = -lnsl -lcrypt
-
-# Use this for Linux with glibc2 (libc6) - RedHat Linux v5.0 with PAM
-# contributed by John H Terpstra
-# FLAGSM = -DLINUX -DNETGROUP -DALLOW_CHANGE_PASSWORD -DFAST_SHARE_MODES -DNO_ASMSIGNALH -DGLIBC2
-# LIBSM = -lnsl -lcrypt
-
-# This is for SUNOS5.4 and later (also known as Solaris 2.4 and later)
-# contributed by Andrew.Tridgell@anu.edu.au
-# FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES
-# LIBSM = -lsocket -lnsl
-# AWK = nawk
-
-# This is for SUNOS 5.2 and 5.3 (also known as Solaris 2.2 and 2.3)
-# contributed by hdsi@newtech.net
-# FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DNO_STRFTIME -DFAST_SHARE_MODES
-# LIBSM = -lsocket -lnsl
-# AWK = nawk
-
-# This is for UXP/DS
-# contributed by dsfrost@oai6.yk.fujitsu.co.jp
-# FLAGSM = -DSVR4 -DSHADOW_PWD
-# LIBSM = -lsocket -lnsl
-
-# This is for SVR4
-# Contributed by mark@scot1.ucsalf.ac.uk
-# FLAGSM = -DSVR4 -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD
-# LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
-
-
-# This is for the Motorola 88xxx/9xx range of machines
-# Contributed by RPE@monnet.com
-# FLAGSM = -DSVR4 -DSHADOW_PWD -DGETTIMEOFDAY1
-# LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
-
-
-# This is for UnixWare 1.x.
-# Contributed by Warren Young
-#FLAGSM = -Xa -DSVR4 -DSHADOW_PWD
-#LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
-
-# This is for UnixWare 2.x WITH libdes support.
-# Contributed by tangent@cyberport.com
-#FLAGSM = -Xa -DSVR4
-#LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
-
-# This is for UnixWare 2.x WITHOUT libdes support.
-# Contributed by tangent@cyberport.com
-#FLAGSM = -Xa -DSVR4 -DIA_UINFO
-#LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb -lcrypt -liaf
-
-# This is for UNIXWARE 2.x with shadow passwords.
-# Contributed by fja@extratech.com
-#FLAGSM = -Xa -DSVR4 -DSHADOW_PWD
-#LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb -lcrypt -lgen
-
-# This is for ULTRIX. Add -DULTRIX_AUTH for Ultrix enhanced security.
-# contributed by iversen@dsfys1.fi.uib.no
-# FLAGSM = -DULTRIX
-# LIBSM =
-
-
-# This is for OSF1 (Alpha)
-# contributed by errath@balu.kfunigraz.ac.at
-# NOTE: You may need -warning_unresolved if you get unresolved symbols
-# FLAGSM = -DOSF1
-# LIBSM =
-
-# This is for OSF1 with DCE/DFS
-# contributed by Jim Doyle
-# FLAGSM = -DOSF1 -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
-# LIBSM = -ldce -lpthreads -lmach -lc_r
-
-# This is for OSF1 (Alpha) with NIS and Fast Crypt
-# contributed by David Gardiner
-# FLAGSM = -DOSF1 -DNETGROUP -DUFC_CRYPT
-# LIBSM =
-
-
-# This is for OSF1 (Alpha) V2.0/V4.0 Enhanced Security
-# contributed by Udo Linauer
-# FLAGSM = -DOSF1 -DOSF1_ENH_SEC -DFAST_SHARE_MODES
-# LIBSM = -lsecurity
-
-
-# This is for AIX 4.x
-# contributed by tomc@osi.curtin.edu.au
-# FLAGSM = -DAIX -DFAST_SHARE_MODES
-# LIBSM =
-
-# This is for AIX 4.x with quota support
-# contributed by tomc@osi.curtin.edu.au
-# FLAGSM = -DAIX -DFAST_SHARE_MODES -DQUOTAS
-# LIBSM =
-
-# This is for AIX 3.2.5 with DCE/DFS
-# contributed by Jim Doyle
-# FLAGSM = -DAIX -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
-# LIBSM = -lc_r -ldce -lpthreads
-# CC = cc_r
-
-# This is for BSDI
-# contributed by tomh@metrics.com
-# versions of BSDI prior to 2.0 may need to add -DUSE_F_FSIZE for
-# disk usage stats to be correct
-# FLAGSM = -DBSDI -DFAST_SHARE_MODES
-# LIBSM =
-
-
-# This is for NetBSD. Add -DNETBSD_1_0 if you are using 1.0
-# contributed by noses@oink.rhein.de
-# FLAGSM = -DNETBSD -DSHADOW_PWD
-# LIBSM = -lcrypt
-
-
-# This is for SEQUENT.
-# Contributed by fwk@ix.netcom.com (Frank Keeney) and
-# rpwillia@Pentagon-EMH6.army.mil (Ray Williams)
-# tested on DYNIX/ptx(R) V2.1.0
-# FLAGSM = -DSEQUENT -DSHADOW_PWD -DHAVE_TIMEZONE
-# LIBSM = -lrpc -lsocket -lPW -linet -lnsl -lseq -lsec
-
-
-# This is for SEQUENT PTX 4.1.x
-# Contributed by bressler@iftccu.ca.boeing.com (Rick Bressler)
-# based on Keeny and Williams contribution.
-# tested on DYNIX/ptx(R) V4.1.3
-# FLAGSM = -DSEQUENT -DSHADOW_PWD -DHAVE_TIMEZONE -DPTX4
-# LIBSM = -lrpc -lsocket -lPW -lnsl -lseq -lsec
-
-
-# This is for HP-UX. Note that some systems don't like the -Aa switch.
-# contributed by Pasi.Kaara@atk.tpo.fi
-# You will need -DREPLACE_GETPASS if you use smb encryption
-# Add -DHPUX10 if compiling on HPUX 10.x
-# FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE
-# LIBSM =
-
-# This is for HP-UX with DCE/DFS
-# contributed by Jim Doyle
-# Add -DHPUX10 if compiling on HPUX 10.x
-# FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE -DDFS_AUTH -D_REENTRANT -I/usr/include/reentrant
-# LIBSM = -ldce -lM -lc_r
-
-# HP-UX 10.x Trusted System
-# Contributed by David-Michael Lincke (dlincke@sgcl1.unisg.ch)
-# FLAGSM = +O3 -Ae -DHPUX -DHPUX10 -DHPUX_10_TRUSTED
-# LIBSM = -lsec
-
-
-# This is for SGI.
-# contributed by lpc@solomon.technet.sg (Michael Chua)
-# FOR SGI IRIX 4.x.x, use the following line
-# FLAGSM = -DSGI4 -DHAVE_TIMEZONE
-# LIBSM = -lsun
-# FLAGS1 = -O -g3
-
-# FOR SGI IRIX 5.x.x, use this line instead
-# FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES
-# LIBSM =
-# FLAGS1 = -O -g3
-
-# FOR SGI IRIX 6.2 using the system compiler (*NOT* gcc), use this line instead
-# Contributed by David.Billinghurst@restech.cra.com.au
-FLAGSM = -DSGI6 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES
-LIBSM =
-FLAGS1 = -O -n32 -g3
-
-# This is for FreeBSD
-# contributed by kuku@acds.physik.rwth-aachen.de
-# NOTE: You may need to add -DBSD44 if you have password problems
-# FLAGSM = -DFreeBSD -DFAST_SHARE_MODES
-# LIBSM = -lcrypt
-
-
-# This is for NEXTSTEP Release 2.X
-# No Posix.
-# contributed by brad@cac.washington.edu (Brad Greer)
-# FLAGSM = -DNEXT2
-# LIBSM =
-
-# This is for NEXTSTEP Release 3.0 and greater (including OPENSTEP for Mach).
-# contributed by brad@cac.washington.edu (Brad Greer)
-# additional configuration by pmarcos@next.com (Paul Marcos)
-# For compiling n-way fat executables, you should append the appropriat -arch
-# flags to the FLAGSM variable. Valid flags are:
-# -arch m68k
-# -arch i386
-# -arch hppa
-# -arch sparc
-# To compile 4-way fat, you would append
-# -arch m68k -arch i386 -arch hppa -arch sparc
-# FLAGSM = -DNEXT3_0
-# LIBSM =
-
-
-# NOTE: ISC is also known as "INTERACTIVE"
-# This is for Sunsoft ISC SVR3V4 running in POSIX mode
-# contributed by pim@cti-software.nl (Pim Zandbergen)
-# FLAGSM = -posix -D_SYSV3 -DISC -DSHADOW_PWD
-# LIBSM = -lsec -lcrypt -linet
-
-# This is for Sunsoft ISC SVR3V4 running in iBCS2 mode
-# contributed by pim@cti-software.nl (Pim Zandbergen)
-# FLAGSM = -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_SYSV3\
-# -DISC -DSHADOW_PWD -DREPLACE_GETWD -DREPLACE_RENAME
-# LIBSM = -lsec -lcrypt -linet -lcposix
-
-
-# This is for A/UX 3.0
-# Contributed by root@dolphin.csudh.edu (Jon S. Stevens)
-# FLAGSM = -DAUX
-# LIBSM =
-
-# This is for Altos Series 386/1000
-# Contributed by cal@zls.com
-# FLAGSM = -DALTOS -DHAS_RDCHK
-# LIBSM = -lsocket -lxenix
-
-
-#Note: The SCO entries require the libcrypt library. You can get it via
-#anonymous ftp from ftp.sco.com:/SLS/lng225b.* or ftp.uu.net:/vendors/sco
-#
-# Use this for SCO with shadow passwords. Tested on "Open enterprise 3.0"
-# SCO changes from Heinz Mauelshagen (mauelsha@ez.da.telekom.de)
-# FLAGSM = -DSCO -DSHADOW_PWD -DNETGROUP
-# LIBSM = -lyp -lrpc -lyp -lsec -lsocket -lcrypt_i -lintl
-
-# Use this for SCO with shadow passwords, without YP.
-# Tested on "Open Enterprise Server 3.0" (John Owens john@micros.com)
-# Also, use "CC = cc" above.
-# FLAGSM = -DSCO -DSHADOW_PWD
-# LIBSM = -lsec -lsocket -lcrypt_i
-
-# Use this for SCO with TCB passwords (default).
-# Tested on "Open enterprise 3.0". Contributed by lance@fox.com.
-# CC = cc
-# FLAGSM = -DSCO -DSecureWare
-# LIBSM = -lprot_s -lcrypt -lsocket -lm -lc_s
-
-# Use this for SCO Unix 3.2v2 (ODT 1.1) with TCB passwords (default).
-# Contributed by Stephen.Rothwell@pd.necisa.oz.au
-# N.B. this needs gcc
-# FLAGSM = -DSCO -DSecureWare -DSCO3_2_2
-# LIBSM = -lprot -lcrypt_i -lsocket -lm -lintl
-
-# This is for the european distribution of SCO.
-# Contributed by Urmet.Janes@gwhite.goodwin.ee
-# FLAGSM = -DSCO -DSHADOW_PWD
-# LIBSM = -lsec -lsocket /usr/lib/libcrypt_i.a -lintl
-
-# Use this for SCO OpenServer 5 with TCB passwords (default).
-# contributed by Scott Michel
-# you may also like to add the -dy switch (recommended by Marnus van
-# Niekerk, mvn@pixie.co.za)
-# CC = cc -Xc
-# FLAGSM = -DSCO -DSecureWare -DEVEREST -DUSE_MMAP
-# LIBSM = -lprot -lcurses -lcrypt -lsocket -lPW -lm -lx -lc_s -lc
-
-
-# This is for intergraph.
-# contributed by cjkiick@flinx.b11.ingr.com
-# modified by ttj@sknsws61.sjo.statkart.no
-# FLAGSM = -DCLIX -D_INGR_EXTENSIONS=1
-# LIBSM = -lbsd -lc_s
-
-# This is for DGUX.
-# Contributed by ross@augie.insci.com (Ross Andrus)
-# FLAGSM = -DDGUX
-# LIBSM =
-
-# This is for DGUX on Intel boxes.
-# Contributed by tim@denmantire.com
-# FLAGSM = -DDGUX
-# LIBSM = -lsocket -lnsl -lresolv
-
-# This is for Apollo Domain/OS sr10.3 (systype = BSD4.3)
-# Added 1994-07-08 Stephen C. Steel
-# additional patches by jmi@csd.cri.dk (John Mills)
-# you may need the "-A ansi" switch to cc
-# FLAGSM = -DAPOLLO -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE
-# LIBSM =
-
-
-# RiscIX.
-# contributed by Jim Barry and
-# Charles Gay-Jones
-# FLAGSM = -DRiscIX -DNOSTRDUP
-# LIBSM =
-
-
-# This is for System V with some berkely extensions (Motorola 88k R32V3.2).
-# contributed by tonyb@plaza.ds.adp.com (Tony D. Birnseth)
-# FLAGSM = -DM88K_R3
-# LIBSM = -lgen -lbsd -lnsl
-
-
-# This is for DNIX.
-# contributed by Peter Olsson
-# NOTE: You may need an updated libc.a from your vendor as older
-# versions have broken mktime calls and no initgroups() call
-# NOTE2: You may need -lpasswd if you use shadow passwords
-# NOTE3: Please read the file DNIX.txt in the docs directory. It
-# contains important information about uid handling under DNIX, you may
-# need to patch your C library.
-# FLAGSM = -DDNIX -I/usr/include/bsd
-# LIBSM = -ln
-
-
-# This is for Cray, Unicos 8.0
-# contributed by velo@sesun3.epfl.ch (Martin Ouwehand)
-# FLAGSM = -DCRAY -U__STDC__ -DQUOTAS
-# LIBSM =
-
-# This is for Convex
-# contributed by Victor Balashov
-# and Ulrich Hahn
-# FLAGSM= -DCONVEX -DSHADOW_PWD
-# LIBSM=
-
-# This is for SMP_DC.OSx v1.1-94c079 on Pyramid S series
-# contributed by jeffrey@itm.org
-# FLAGSM = -DSOLARIS -DSHADOW_PWD -DBSD_COMP
-# LIBSM = -lsocket -lnsl
-
-# This is for QNX 4.22
-# Contributed by eldo@invisa.satlink.net (Eldo Loguzzo)
-# FLAGSM = -DQNX -DGUEST_SESSSETUP=1
-# LIBSM =
-
-
-# This is for SONY NEWS, NEWS-OS 4.2.x
-# contributed by sky@sm.sony.co.jp (Katushi Sato)
-# FLAGSM = -DNEWS42 -DKANJI=\"sjis\"
-# LIBSM =
-
-
-# This is for SONY NEWS, NEWS-OS 6.1.x
-# contributed by kobo@sm.sony.co.jp (Yoichi Kobori)
-# FLAGSM = -Xa -DSVR4 -DNEWS61 -DSHADOW_PWD -DNETGROUP -DGETTIMEOFDAY1 -DKANJI=\"euc\"\ -D_SONYILS_H
-# LIBSM = -lsocket -lnsl
-
-
-# This is for OS/2 using EMX
-# Contributed by jasonr@pec.co.nz (Jason Rumney)
-# Now maintained by Jacco de Leeuw
-# FLAGSM = -DOS2
-# LIBSM = -Zexe -lsocket
-
-
-# This is for LYNX 2.3.0 (gcc v2.6)
-# Contributed by woelfel@hpe.fzk.de (Manfred Woelfel)
-# FLAGSM = -DLYNX -DUFC_CRYPT -mposix
-# LIBSM = -lbsd
-
-
-# This is for MachTen (a unix like system for Macintoshes)
-# contributed by Trevor Strohman (trev@figment.tenon.com)
-# FLAGSM = -DMACHTEN
-# LIBSM =
-
-
-# RISCOs 5.0B
-# contributed by John Agnew
-# FLAGSM = -systype svr4 -std -DSVR4
-# LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
-
-
-# This is for B.O.S. (Bull Operating System)
-# Contributed by koine@fileita.it
-# FLAGSM = -DBOS -DNO_RESOURCEH -DUSE_WAITPID
-# LIBSM = -linet
-
-
-# This for Amiga using GCC and ixemul.library 43.0 or later.
-# contributed by Rask Ingemann Lambertsen
-# The binaries will support both AmiTCP and AS225R2 compatible
-# protocol stacks because of the use of ixnet.library.
-# Other protocol stacks will be supported automatically if
-# support for them is added to ixnet.library.
-# The binaries will have automatic stack extension :-)
-# smbd must be run from inetd :-(
-# FLAGSM = -DAMIGA -Dfork=vfork -mstackextend
-# LIBSM =
-
-
-
-######################################################################
-# DON'T EDIT BELOW THIS LINE
-######################################################################
-
-PASSWD_FLAGS = -DSMB_PASSWD=\"$(SMB_PASSWD)\" -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\"
-CFLAGS1 = $(FLAGS1) -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\"
-CFLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
-CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
-CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\"
-CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) $(KRB5_FLAGS) $(RPM_OPT_FLAGS)
-CFLAGS = $(CFLAGS5) $(PAM_FLAGS) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
-LIBS = $(LIBS1) $(LIBSM) $(PAM_LIBS) $(DCE_LIBS) $(KRB5_LIBS) $(DES_LIB)
-
-SPROGS = smbd nmbd
-PROGS1 = smbclient testparm testprns smbrun smbstatus smbpasswd make_smbcodepage
-PROGS = $(PROGS1) nmblookup
-SCRIPTS = smbtar addtosmbpass
-
-all : CHECK $(SPROGS) $(PROGS)
-
-CHECK :
- @$(SHELL) $(srcdir)checkos.sh $(FLAGSM)
- @echo "Using CFLAGS = $(CFLAGS)"
- @echo "Using LIBS = $(LIBS)"
-
-INCLUDES1 = version.h local.h includes.h smb.h
-INCLUDES2 = trans2.h ubi_dLinkList.h
-INCLUDES = $(INCLUDES1) $(INCLUDES2)
-
-UTILOBJ1 = util.o system.o charset.o kanji.o fault.o smbencrypt.o smbdes.o charcnv.o
-UTILOBJ2 = $(UTILOBJ1) md4.o loadparm.o params.o pcap.o username.o time.o
-UTILOBJ = $(UTILOBJ2) interface.o replace.o ubi_dLinkList.o
-PARAMOBJ = $(UTILOBJ) ufc.o smbpass.o access.o shmem.o
-SMBDOBJ1 = $(PARAMOBJ) trans2.o pipes.o message.o dir.o printing.o
-SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o quotas.o uid.o
-SMBDOBJ3 = predict.o smbparse.o lsaparse.o credentials.o pipeutil.o pipentlsa.o pipenetlog.o
-SMBDOBJ4 = pipesrvsvc.o srvparse.o clientgen.o
-SMBDOBJ = $(SMBDOBJ1) $(SMBDOBJ2) $(SMBDOBJ3) $(SMBDOBJ4) $(VTP_OBJ)
-LOCKOBJ = locking_shm.o locking_slow.o locking.o
-NMBDOBJ1 = nmblib.o namepacket.o nameresp.o nmbsync.o nameannounce.o nameelect.o
-NMBDOBJ2 = namedbresp.o namedbwork.o namedbserver.o namedbsubnet.o namedbname.o
-NMBDOBJ3 = nameservresp.o nameservreply.o namelogon.o namebrowse.o namework.o nameserv.o clientutil.o smbpass.o
-NMBDOBJ = $(UTILOBJ) $(NMBDOBJ1) $(NMBDOBJ2) $(NMBDOBJ3)
-BINOBJS = server.o smbrun.o nmblookup.o namequery.o nmbd.o client.o clitar.o nmblib.o status.o testparm.o testprns.o smbpasswd.o getsmbpass.o
-
-.SUFFIXES:
-.SUFFIXES: .c .o .h
-
-.c.o: $(INCLUDES)
- @echo Compiling $*.c
- @$(CC) $(CFLAGS) -c $(srcdir)$*.c
-
-smbd: server.o $(SMBDOBJ) $(LOCKOBJ)
- @echo Linking smbd
- @$(CC) $(CFLAGS) -o smbd server.o $(SMBDOBJ) $(LOCKOBJ) $(LIBS) $(AFS_LIBS)
-
-smbrun: smbrun.o
- @echo Linking smbrun
- @$(CC) $(CFLAGS) -o smbrun smbrun.o $(LIBS)
-
-nmblookup: nmblookup.o namequery.o nmblib.o $(UTILOBJ)
- @echo Linking nmblookup
- @$(CC) $(CFLAGS) -o nmblookup nmblookup.o namequery.o nmblib.o $(UTILOBJ) $(LIBS)
-
-nmbd: nmbd.o $(NMBDOBJ)
- @echo Linking nmbd
- @$(CC) $(CFLAGS) -o nmbd nmbd.o $(NMBDOBJ) $(LIBS)
-
-smbclient: client.o clitar.o getsmbpass.o namequery.o nmblib.o $(UTILOBJ)
- @echo Linking smbclient
- @$(CC) $(CFLAGS) -o smbclient client.o clitar.o getsmbpass.o namequery.o nmblib.o $(UTILOBJ) $(LIBS)
-
-smbstatus: status.o $(PARAMOBJ) $(LOCKOBJ)
- @echo Linking smbstatus
- @$(CC) $(CFLAGS) -o smbstatus status.o $(PARAMOBJ) $(LOCKOBJ) $(LIBS)
-
-testparm: testparm.o $(PARAMOBJ)
- @echo Linking testparm
- @$(CC) $(CFLAGS) -o testparm testparm.o $(PARAMOBJ) $(LIBS)
-
-testprns: testprns.o $(PARAMOBJ)
- @echo Linking testprns
- @$(CC) $(CFLAGS) -o testprns testprns.o $(PARAMOBJ) $(LIBS)
-
-smbpasswd: smbpasswd.o getsmbpass.o $(PARAMOBJ)
- @echo Linking smbpasswd
- @$(CC) $(CFLAGS) -o smbpasswd smbpasswd.o getsmbpass.o $(PARAMOBJ) $(LIBS)
-
-make_smbcodepage: make_smbcodepage.o $(PARAMOBJ)
- @echo Linking make_smbcodepage
- @$(CC) $(CFLAGS) -o make_smbcodepage make_smbcodepage.o $(PARAMOBJ) $(LIBS)
-
-wsmbstatus: wsmbstatus.o $(PARAMOBJ)
- @echo Linking wsmbstatus
- @$(CC) $(CFLAGS) -o wsmbstatus wsmbstatus.o $(PARAMOBJ) $(LIBS)
-
-wsmbconf: wsmbconf.o $(PARAMOBJ) cgi.o
- @echo Linking wsmbconf
- @$(CC) $(CFLAGS) -o wsmbconf wsmbconf.o $(PARAMOBJ) cgi.o $(LIBS)
-
-install: installbin installman installscripts installcp
-
-installbin: all
- @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
- @$(SHELL) $(srcdir)installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
-
-installscripts:
- @$(SHELL) $(srcdir)installscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
-
-installcp:
- @$(SHELL) $(srcdir)installcp.sh $(LIBDIR) $(CODEPAGEDIR) $(BINDIR) $(CODEPAGELIST)
-
-# revert to the previously installed version
-revert:
- @$(SHELL) $(srcdir)revert.sh $(SBINDIR) $(SPROGS) $(SCRIPTS)
- @$(SHELL) $(srcdir)revert.sh $(BINDIR) $(PROGS) $(SCRIPTS)
-
-installman:
- @$(SHELL) $(srcdir)installman.sh $(MANDIR) $(srcdir)
-
-uninstall: uninstallman uninstallbin uninstallscripts uninstallcp
-
-uninstallman:
- @$(SHELL) $(srcdir)uninstallman.sh $(MANDIR) $(srcdir)
-
-uninstallbin:
- @$(SHELL) $(srcdir)uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
- @$(SHELL) $(srcdir)uninstallbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
-
-uninstallscripts:
- @$(SHELL) $(srcdir)uninstallscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
-
-uninstallcp:
- @$(SHELL) $(srcdir)uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST)
-
-clean:
- rm -f core *.o *~ $(PROGS) $(SPROGS)
-
-cleandir: clean
- rm -f .depend tags
-
-proto:
- @$(SHELL) $(srcdir)checkos.sh $(FLAGSM)
- $(AWK) -f mkproto.awk `echo $(BINOBJS) $(UTILOBJ) $(PARAMOBJ) $(SMBDOBJ) $(NMBDOBJ) $(LOCKOBJ) | sed -e 's/\.o/\.c/g' | tr ' ' '\n' | sort | uniq` > proto.h
-
-realclean: clean
-
diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl
new file mode 100755
index 0000000000..0857ecd909
--- /dev/null
+++ b/packaging/SGI/makefile.pl
@@ -0,0 +1,24 @@
+#!/usr/bin/perl
+
+while (<>) {
+ if (/^BASEDIR =/) {
+ print "BASEDIR = /usr/samba\n";
+ }
+ elsif (/^MANDIR =/) {
+ print "MANDIR = /usr/share/man\n";
+ }
+ elsif (/^# FOR SGI IRIX 6/) {
+ print;
+ $a = <>;
+ print $a;
+ <>;
+ <>;
+ <>;
+ print "FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES\n";
+ print "LIBSM =\n";
+ print "FLAGS1 = -O -n32 -g3 -OPT:fold_arith_limit=1256\n";
+ }
+ else {
+ print;
+ }
+}
--
cgit
From 3c214a8fa16826c8c404dab3bc14d66d7dc18ec6 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Tue, 28 Oct 1997 19:21:26 +0000
Subject: mention that Perl is required for build scripts (This used to be
commit 9e51c248af8e7845b4ab477893fb07ab7840b7a2)
---
packaging/SGI/README | 1 +
1 file changed, 1 insertion(+)
(limited to 'packaging')
diff --git a/packaging/SGI/README b/packaging/SGI/README
index 4b174b34df..17c5780067 100644
--- a/packaging/SGI/README
+++ b/packaging/SGI/README
@@ -34,5 +34,6 @@ to have the Software Packager software (inst_dev) installed to
generate the inst images.
From /usr/samba/packaging/SGI directory run the mkrelease.sh script.
+This script uses Perl to generate the Makefile with the proper defines.
The package files will be placed in ./bins
--
cgit
From bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Fri, 31 Oct 1997 17:33:04 +0000
Subject: Update file for automatically generating a release (This used to be
commit 01df21c22d567a0cc6d69a03fd3246dcfd92217d)
---
packaging/SGI/.cvsignore | 7 +
packaging/SGI/README | 19 +-
packaging/SGI/idb.pl | 236 ++++++++++++++++++++++++
packaging/SGI/makefile.pl | 42 +++--
packaging/SGI/mkrelease.sh | 10 +-
packaging/SGI/psfixes.pl | 12 +-
packaging/SGI/relnotes.html | 2 +-
packaging/SGI/samba.idb | 432 --------------------------------------------
packaging/SGI/samba.spec | 45 -----
packaging/SGI/spec.pl | 76 ++++++++
10 files changed, 372 insertions(+), 509 deletions(-)
create mode 100644 packaging/SGI/.cvsignore
create mode 100755 packaging/SGI/idb.pl
delete mode 100644 packaging/SGI/samba.idb
delete mode 100644 packaging/SGI/samba.spec
create mode 100755 packaging/SGI/spec.pl
(limited to 'packaging')
diff --git a/packaging/SGI/.cvsignore b/packaging/SGI/.cvsignore
new file mode 100644
index 0000000000..c653c29ad2
--- /dev/null
+++ b/packaging/SGI/.cvsignore
@@ -0,0 +1,7 @@
+bins
+catman
+html
+codepage
+Makefile
+samba.idb
+samba.spec
diff --git a/packaging/SGI/README b/packaging/SGI/README
index 17c5780067..02855bb3a2 100644
--- a/packaging/SGI/README
+++ b/packaging/SGI/README
@@ -16,9 +16,9 @@ is created from the samba version number plus a release number.
Each section of the samba version number forms 2 digits of the
version number (with leading zeros if necessary).
-samba version 1.9.16 first release would become 0109160000
-samba version 1.9.16p9 first release would become 0109160900
-samba version 1.9.16p9 second release would become 0109160901
+samba version 1.9.16 would become 0109160000
+samba version 1.9.16p9 would become 0109160900
+samba version 1.9.16alpha9 would become 0109160009
You can enable all printers on your system to be used by samba
by running the script /usr/samba/mkprintcap.sh
@@ -31,9 +31,12 @@ inetd you can run the script /usr/samba/inetd.sh.
To create a Samba distribution you must have the Documenter's WorkBench
package installed to format the manual pages. In addition you need
to have the Software Packager software (inst_dev) installed to
-generate the inst images.
-
-From /usr/samba/packaging/SGI directory run the mkrelease.sh script.
-This script uses Perl to generate the Makefile with the proper defines.
-The package files will be placed in ./bins
+generate the inst images, and Perl to generate the spec and idb files.
+
+From /usr/samba/packaging/SGI directory run the mkrelease.sh script.
+There is one optional argument which is the major release number of the
+OS version (4, 5, or 6) you desire. If no number is specified it defaults
+to 6. This script uses Perl to generate the Makefile with the proper
+defines and the packaging files samba.spec and samba.idb. The binary
+package files will be placed in ./bins
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
new file mode 100755
index 0000000000..4e32bdb526
--- /dev/null
+++ b/packaging/SGI/idb.pl
@@ -0,0 +1,236 @@
+#!/usr/bin/perl
+
+# This perl script automatically generates the samba.idb file
+
+$curdir = $ENV{"PWD"};
+
+# get a complete list of all files in the tree
+chdir '../../';
+&dodir('.');
+chdir $curdir;
+
+# We don't want the files listed in .cvsignore in the source tree
+open(IGNORES,"../../source/.cvsignore");
+while () {
+ chop;
+ $ignores{$_}++;
+}
+close IGNORES;
+
+# get the names of all the binary files to be installed
+open(MAKEFILE,"Makefile");
+@makefile = ;
+@sprogs = grep(/^SPROGS /,@makefile);
+@progs1 = grep(/^PROGS1 /,@makefile);
+@progs = grep(/^PROGS /,@makefile);
+@scripts = grep(/^SCRIPTS /,@makefile);
+@codepage = grep(/^CODEPAGELIST/,@makefile);
+close MAKEFILE;
+
+if (@sprogs) {
+ @sprogs[0] =~ s/^.*\=//;
+ @sprogs[0] =~ s/^.*\)//;
+ @sprogs = split(' ',@sprogs[0]);
+}
+if (@progs) {
+ @progs[0] =~ s/^.*\=//;
+ @progs[0] =~ s/^.*\)//;
+ @progs = split(' ',@progs[0]);
+}
+if (@progs1) {
+ @progs1[0] =~ s/^.*\=//;
+ @progs1[0] =~ s/^.*\)//;
+ @progs1 = split(' ',@progs1[0]);
+}
+if (@scripts) {
+ @scripts[0] =~ s/^.*\=//;
+ @scripts[0] =~ s/^.*\)//;
+ @scripts = split(' ',@scripts[0]);
+}
+if (@codepage) {
+ @codepage[0] =~ s/^.*\=//;
+ @codepage[0] =~ s/^.*\)//;
+ chdir '../../source';
+ # if we have codepages we need to create them for the package
+ system("./installcp.sh . ../packaging/SGI/codepage . @codepage[0]");
+ chdir $curdir;
+ @codepage = sort split(' ',@codepage[0]);
+}
+
+# add my local files to the list of binaries to install
+@bins = sort (@sprogs,@progs,@progs1,@scripts,("psfixes.pl","sambalp","smbprint"));
+
+# the files installed in docs include all the original files in docs plus all
+# the "*.doc" files from the source tree
+@docs = sort byfilename grep (!/^docs\/$/ & (/^source\/.*\.doc$/ | /^docs\//),@allfiles);
+
+@catman = sort grep(/^packaging\/SGI\/catman/ & !/\/$/, @allfiles);
+@catman = sort bydirnum @catman;
+
+# strip out all the generated directories and the "*.o" files from the source
+# release
+@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepage/, @allfiles);
+
+open(IDB,">samba.idb");
+
+print IDB "f 0644 root sys etc/config/samba packaging/SGI/samba.config samba.sw.base config(update)\n";
+print IDB "f 0755 root sys etc/init.d/samba packaging/SGI/samba.rc samba.sw.base\n";
+print IDB "l 0000 root sys etc/rc0.d/K39samba packaging/SGI samba.sw.base symval(../init.d/samba)\n";
+print IDB "l 0000 root sys etc/rc2.d/S81samba packaging/SGI samba.sw.base symval(../init.d/samba)\n";
+
+@copyfile = grep (/^COPY/,@allfiles);
+print IDB "d 0755 root sys usr/relnotes/samba packaging/SGI samba.man.relnotes\n";
+print IDB "f 0644 root sys usr/relnotes/samba/@copyfile[0] @copyfile[0] samba.man.relnotes\n";
+print IDB "f 0644 root sys usr/relnotes/samba/legal_notice.html packaging/SGI/legal_notice.html samba.man.relnotes\n";
+print IDB "f 0644 root sys usr/relnotes/samba/samba-relnotes.html packaging/SGI/relnotes.html samba.man.relnotes\n";
+
+print IDB "d 0755 root sys usr/samba packaging/SGI samba.sw.base\n";
+print IDB "f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base\n";
+
+print IDB "d 0755 root sys usr/samba/bin packaging/SGI samba.sw.base\n";
+while(@bins) {
+ $nextfile = shift @bins;
+ if ($nextfile eq "smbpasswd") {
+ print IDB "f 4555 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ }
+ elsif ($nextfile eq "psfixes.pl") {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
+ elsif ($nextfile eq "sambalp") {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
+ elsif ($nextfile eq "smbprint") {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
+ else {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ }
+}
+
+print IDB "d 0755 root sys usr/samba/docs docs samba.man.doc\n";
+while (@docs) {
+ $nextfile = shift @docs;
+ next if ($nextfile eq "CVS");
+ ($junk,$file) = split(/\//,$nextfile,2);
+ if (grep(/\/$/,$nextfile)) {
+ chop $nextfile;
+ chop $file;
+ print IDB "d 0755 root sys usr/samba/docs/$file $nextfile samba.man.doc\n";
+ }
+ else {
+ print IDB "f 0644 root sys usr/samba/docs/$file $nextfile samba.man.doc\n";
+ }
+}
+
+print IDB "f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base\n";
+if (@codepage) {
+ print IDB "d 0755 root sys usr/samba/lib/codepage packaging/SGI samba.sw.base\n";
+ while (@codepage) {
+ $nextpage = shift @codepage;
+ print IDB "f 0644 root sys usr/samba/lib/codepage/codepage.$nextpage packaging/SGI/codepage/codepage.$nextpage samba.sw.base\n";
+ }
+}
+print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
+print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base exitop(/usr/samba/mkprintcap.sh) removeop(rm /usr/samba/printcap)\n";
+
+print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
+while (@allfiles) {
+ $nextfile = shift @allfiles;
+ ($file = $nextfile) =~ s/^.*\///;
+ next if grep(/packaging\/SGI/& (/Makefile/ | /samba\.spec/ | /samba\.idb/),$nextfile);
+ next if grep(/source/,$nextfile) && ($ignores{$file});
+ next if ($nextfile eq "CVS");
+ if (grep(/\/$/,$nextfile)) {
+ chop $nextfile;
+ print IDB "d 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n";
+ }
+ else {
+ if (grep(/SGI/ & (/\.sh$/ | /\.pl$/ | /mkman$/),$nextfile)) {
+ print IDB "f 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n";
+ }
+ else {
+ print IDB "f 0644 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n";
+ }
+ }
+}
+
+print IDB "d 0755 root sys usr/samba/var packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/var/locks packaging/SGI samba.sw.base\n";
+
+print IDB "d 0755 root sys usr/share/catman/u_man packaging/SGI samba.man.manpages\n";
+$olddirnum = "0";
+while (@catman) {
+ $nextfile = shift @catman;
+ ($file = $nextfile) =~ s/^packaging\/SGI\/catman\///;
+ ($dirnum = $file) =~ s/^[\D]*//;
+ $dirnum =~ s/\.Z//;
+ if ($dirnum ne $olddirnum) {
+ print IDB "d 0755 root sys usr/share/catman/u_man/cat$dirnum packaging/SGI samba.man.manpages\n";
+ $olddirnum = $dirnum;
+ }
+ print IDB "f 0664 root sys usr/share/catman/u_man/cat$dirnum/$file $nextfile samba.man.manpages\n";
+}
+
+close IDB;
+print "\n\nsamba.idb file has been created\n";
+
+sub dodir {
+ local($dir, $nlink) = @_;
+ local($dev,$ino,$mode,$subcount);
+
+ ($dev,$ino,$mode,$nlink) = stat('.') unless $nlink;
+
+ opendir(DIR,'.') || die "Can't open $dir";
+ local(@filenames) = sort readdir(DIR);
+ closedir(DIR);
+
+ if ($nlink ==2) { # This dir has no subdirectories.
+ for (@filenames) {
+ next if $_ eq '.';
+ next if $_ eq '..';
+ $this = substr($dir,2)."/$_";
+ push(@allfiles,$this);
+ }
+ }
+ else {
+ $subcount = $nlink -2;
+ for (@filenames) {
+ next if $_ eq '.';
+ next if $_ eq '..';
+ next if $_ eq 'CVS';
+ ($dev,$ino,$mode,$nlink) = lstat($_);
+ $name = "$dir/$_";
+ $this = substr($name,2);
+ $this .= '/' if -d;
+ push(@allfiles,$this);
+ next if $subcount == 0; # seen all the subdirs?
+
+ next unless -d _;
+
+ chdir $_ || die "Can't cd to $name";
+ &dodir($name,$nlink);
+ chdir '..';
+ --$subcount;
+ }
+ }
+}
+
+sub byfilename {
+ ($f0,$f1) = split(/\//,$a,2);
+ ($f0,$f2) = split(/\//,$b,2);
+ $f1 cmp $f2;
+}
+
+sub bydirnum {
+ ($f1 = $a) =~ s/^.*\///;
+ ($f2 = $b) =~ s/^.*\///;
+ ($dir1 = $a) =~ s/^[\D]*//;
+ ($dir2 = $b) =~ s/^[\D]*//;
+ if (!($dir1 <=> $dir2)) {
+ $f1 cmp $f2;
+ }
+ else {
+ $dir1 <=> $dir2;
+ }
+}
diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl
index 0857ecd909..544fb7e32d 100755
--- a/packaging/SGI/makefile.pl
+++ b/packaging/SGI/makefile.pl
@@ -1,24 +1,38 @@
#!/usr/bin/perl
-while (<>) {
+# This perl script creates the SGI specific Makefile.
+# The BASEDIR is set to /usr/samba, MANDIR is set to /usr/share/man, and
+# the lines are uncommented for the requested OS version. If no version
+# is specified, IRIX 6 is used.
+
+if (!@ARGV) {
+ $OSver = "6";
+}
+else {
+ $OSver = $ARGV[0];
+}
+
+open(MAKEIN,"../../source/Makefile");
+open(MAKEOUT,">Makefile");
+while () {
if (/^BASEDIR =/) {
- print "BASEDIR = /usr/samba\n";
+ print MAKEOUT "BASEDIR = /usr/samba\n";
}
elsif (/^MANDIR =/) {
- print "MANDIR = /usr/share/man\n";
+ print MAKEOUT "MANDIR = /usr/share/man\n";
}
- elsif (/^# FOR SGI IRIX 6/) {
- print;
- $a = <>;
- print $a;
- <>;
- <>;
- <>;
- print "FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES\n";
- print "LIBSM =\n";
- print "FLAGS1 = -O -n32 -g3 -OPT:fold_arith_limit=1256\n";
+ elsif (/^# FOR SGI IRIX $OSver/) {
+ print MAKEOUT;
+ $a = ;
+ print MAKEOUT $a;
+ ($a = ) =~ s/^# //;
+ print MAKEOUT $a;
+ ($a = ) =~ s/^# //;
+ print MAKEOUT $a;
+ ($a = ) =~ s/^# //;
+ print MAKEOUT $a;
}
else {
- print;
+ print MAKEOUT;
}
}
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index 052a4d8ddb..fed7a5dc42 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+# This file goes through all the necessary steps to build a release package.
+# You may specify a OS major version number (4, 5, or 6) to specify which
+# OS release to build. If no version number is given it will default to 6.
+
# create the catman versions of the manual pages
#
echo Making manual pages
@@ -8,7 +12,7 @@ echo Making manual pages
# build the sources
#
echo Making binaries
-./makefile.pl ../../source/Makefile > Makefile
+./makefile.pl $1 # create the Makefile for the specified OS ver
cd ../../source
# make -f ../packaging/SGI/Makefile clean
make -f ../packaging/SGI/Makefile all
@@ -17,10 +21,12 @@ cd ../packaging/SGI
# generate the packages
#
echo Generating Inst Packages
-
+./spec.pl # create the samba.spec file
+./idb.pl # create the samba.idb file
if [ ! -d bins ]; then
mkdir bins
fi
+# do the packaging
/usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all
diff --git a/packaging/SGI/psfixes.pl b/packaging/SGI/psfixes.pl
index c64b67c8d4..4ed9e16f7e 100755
--- a/packaging/SGI/psfixes.pl
+++ b/packaging/SGI/psfixes.pl
@@ -9,14 +9,12 @@ while (<>) {
s/.
$/
/;
print;
}
+ elsif (/^\/VM?/) {
+ print "/VM? { pop } bind def
\n";
+ $found_vm = 1;
+ }
else {
- if (/^\/VM?/) {
- print "/VM? { pop } bind def
\n";
- $found_vm = 1;
- }
- else {
- print;
- }
+ print;
}
}
}
diff --git a/packaging/SGI/relnotes.html b/packaging/SGI/relnotes.html
index eea4cefd0b..7477d28c27 100644
--- a/packaging/SGI/relnotes.html
+++ b/packaging/SGI/relnotes.html
@@ -100,7 +100,7 @@ may be restarted by typing the following at a shell prompt:
The author of this product is: Andrew Tridgell
-Samba is distributed freely under the GNU
+Samba is distributed freely under the GNU
public license.
Support:
diff --git a/packaging/SGI/samba.idb b/packaging/SGI/samba.idb
deleted file mode 100644
index 358f3499ca..0000000000
--- a/packaging/SGI/samba.idb
+++ /dev/null
@@ -1,432 +0,0 @@
-f 0644 root sys etc/config/samba packaging/SGI/samba.config samba.sw.base config(update)
-f 0755 root sys etc/init.d/samba packaging/SGI/samba.rc samba.sw.base
-l 0000 root sys etc/rc0.d/K39samba packaging/SGI samba.sw.base symval(../init.d/samba)
-l 0000 root sys etc/rc2.d/S81samba packaging/SGI samba.sw.base symval(../init.d/samba)
-d 0755 root sys usr/relnotes/samba packaging/SGI samba.man.relnotes
-f 0644 root sys usr/relnotes/samba/GNU_COPYING.txt COPYING samba.man.relnotes
-f 0644 root sys usr/relnotes/samba/legal_notice.html packaging/SGI/legal_notice.html samba.man.relnotes
-f 0644 root sys usr/relnotes/samba/samba-relnotes.html packaging/SGI/relnotes.html samba.man.relnotes
-d 0755 root sys usr/samba packaging/SGI samba.sw.base
-f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base
-d 0755 root sys usr/samba/bin packaging/SGI samba.sw.base
-f 0755 root sys usr/samba/bin/addtosmbpass source/addtosmbpass samba.sw.base
-f 0775 root sys usr/samba/bin/nmbd source/nmbd samba.sw.base
-f 0755 root sys usr/samba/bin/nmblookup source/nmblookup samba.sw.base
-f 0644 root sys usr/samba/bin/psfixes.pl packaging/SGI/psfixes.pl samba.sw.base
-f 0755 root sys usr/samba/bin/sambalp packaging/SGI/sambalp samba.sw.base
-f 0755 root sys usr/samba/bin/smbclient source/smbclient samba.sw.base
-f 0775 root sys usr/samba/bin/smbd source/smbd samba.sw.base
-f 4555 root sys usr/samba/bin/smbpasswd source/smbpasswd samba.sw.base
-f 0755 root sys usr/samba/bin/smbprint packaging/SGI/smbprint samba.sw.base
-f 0755 root sys usr/samba/bin/smbrun source/smbrun samba.sw.base
-f 0755 root sys usr/samba/bin/smbstatus source/smbstatus samba.sw.base
-f 0755 root sys usr/samba/bin/smbtar source/smbtar samba.sw.base
-f 0775 root sys usr/samba/bin/testparm source/testparm samba.sw.base
-f 0775 root sys usr/samba/bin/testprns source/testprns samba.sw.base
-d 0755 root sys usr/samba/docs docs samba.man.doc
-f 0644 root sys usr/samba/docs/Application_Serving.txt docs/Application_Serving.txt samba.man.doc
-f 0644 root sys usr/samba/docs/BROWSING.txt docs/BROWSING.txt samba.man.doc
-f 0644 root sys usr/samba/docs/BUGS.txt docs/BUGS.txt samba.man.doc
-f 0644 root sys usr/samba/docs/DIAGNOSIS.txt docs/DIAGNOSIS.txt samba.man.doc
-f 0644 root sys usr/samba/docs/DNIX.txt docs/DNIX.txt samba.man.doc
-f 0644 root sys usr/samba/docs/DOMAIN.txt docs/DOMAIN.txt samba.man.doc
-f 0644 root sys usr/samba/docs/DOMAIN_CONTROL.txt docs/DOMAIN_CONTROL.txt samba.man.doc
-f 0644 root sys usr/samba/docs/ENCRYPTION.txt docs/ENCRYPTION.txt samba.man.doc
-f 0644 root sys usr/samba/docs/Faxing.txt docs/Faxing.txt samba.man.doc
-f 0644 root sys usr/samba/docs/GOTCHAS.txt docs/GOTCHAS.txt samba.man.doc
-f 0644 root sys usr/samba/docs/HINTS.txt docs/HINTS.txt samba.man.doc
-f 0644 root sys usr/samba/docs/INSTALL.sambatar docs/INSTALL.sambatar samba.man.doc
-f 0644 root sys usr/samba/docs/MIRRORS.txt docs/MIRRORS.txt samba.man.doc
-f 0644 root sys usr/samba/docs/NT4_PlainPassword.reg docs/NT4_PlainPassword.reg samba.man.doc
-f 0644 root sys usr/samba/docs/NetBIOS.txt docs/NetBIOS.txt samba.man.doc
-f 0644 root sys usr/samba/docs/OS2-Client-HOWTO.txt docs/OS2-Client-HOWTO.txt samba.man.doc
-f 0644 root sys usr/samba/docs/PROJECTS docs/PROJECTS samba.man.doc
-f 0644 root sys usr/samba/docs/Passwords.txt docs/Passwords.txt samba.man.doc
-f 0644 root sys usr/samba/docs/Printing.txt docs/Printing.txt samba.man.doc
-f 0644 root sys usr/samba/docs/README.DCEDFS docs/README.DCEDFS samba.man.doc
-f 0644 root sys usr/samba/docs/README.jis docs/README.jis samba.man.doc
-f 0644 root sys usr/samba/docs/README.sambatar docs/README.sambatar samba.man.doc
-f 0644 root sys usr/samba/docs/SCO.txt docs/SCO.txt samba.man.doc
-f 0644 root sys usr/samba/docs/SMBTAR.notes docs/SMBTAR.notes samba.man.doc
-f 0644 root sys usr/samba/docs/Speed.txt docs/Speed.txt samba.man.doc
-f 0644 root sys usr/samba/docs/Support.txt docs/Support.txt samba.man.doc
-f 0644 root sys usr/samba/docs/THANKS docs/THANKS samba.man.doc
-f 0644 root sys usr/samba/docs/Tracing.txt docs/Tracing.txt samba.man.doc
-f 0644 root sys usr/samba/docs/UNIX-SMB.txt docs/UNIX-SMB.txt samba.man.doc
-f 0644 root sys usr/samba/docs/UNIX_INSTALL.txt docs/UNIX_INSTALL.txt samba.man.doc
-f 0644 root sys usr/samba/docs/Win95.txt docs/Win95.txt samba.man.doc
-f 0644 root sys usr/samba/docs/Win95_PlainPassword.reg docs/Win95_PlainPassword.reg samba.man.doc
-f 0644 root sys usr/samba/docs/WinNT.txt docs/WinNT.txt samba.man.doc
-f 0644 root sys usr/samba/docs/announce docs/announce samba.man.doc
-d 0755 root sys usr/samba/docs/faq docs/faq samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ-1.html docs/faq/Samba-Server-FAQ-1.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ-2.html docs/faq/Samba-Server-FAQ-2.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ.html docs/faq/Samba-Server-FAQ.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-Server-FAQ.sgml docs/faq/Samba-Server-FAQ.sgml samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-1.html docs/faq/Samba-meta-FAQ-1.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-2.html docs/faq/Samba-meta-FAQ-2.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-3.html docs/faq/Samba-meta-FAQ-3.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-4.html docs/faq/Samba-meta-FAQ-4.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-5.html docs/faq/Samba-meta-FAQ-5.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ-6.html docs/faq/Samba-meta-FAQ-6.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ.html docs/faq/Samba-meta-FAQ.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ.sgml docs/faq/Samba-meta-FAQ.sgml samba.man.doc
-f 0644 root sys usr/samba/docs/faq/Samba-meta-FAQ.txt docs/faq/Samba-meta-FAQ.txt samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq-1.html docs/faq/sambafaq-1.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq-2.html docs/faq/sambafaq-2.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq-3.html docs/faq/sambafaq-3.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq-4.html docs/faq/sambafaq-4.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq-5.html docs/faq/sambafaq-5.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq.html docs/faq/sambafaq.html samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq.sgml docs/faq/sambafaq.sgml samba.man.doc
-f 0644 root sys usr/samba/docs/faq/sambafaq.txt docs/faq/sambafaq.txt samba.man.doc
-f 0644 root sys usr/samba/docs/history docs/history samba.man.doc
-f 0644 root sys usr/samba/docs/internals.doc source/internals.doc samba.man.doc
-f 0644 root sys usr/samba/docs/nameannounce.doc source/nameannounce.doc samba.man.doc
-f 0644 root sys usr/samba/docs/namebrowse.doc source/namebrowse.doc samba.man.doc
-f 0644 root sys usr/samba/docs/namedbname.doc source/namedbname.doc samba.man.doc
-f 0644 root sys usr/samba/docs/namedbresp.doc source/namedbresp.doc samba.man.doc
-f 0644 root sys usr/samba/docs/nameelect.doc source/nameelect.doc samba.man.doc
-f 0644 root sys usr/samba/docs/namelogon.doc source/namelogon.doc samba.man.doc
-f 0644 root sys usr/samba/docs/namepacket.doc source/namepacket.doc samba.man.doc
-f 0644 root sys usr/samba/docs/namequery.doc source/namequery.doc samba.man.doc
-f 0644 root sys usr/samba/docs/nameresp.doc source/nameresp.doc samba.man.doc
-f 0644 root sys usr/samba/docs/nameserv.doc source/nameserv.doc samba.man.doc
-f 0644 root sys usr/samba/docs/nameservreply.doc source/nameservreply.doc samba.man.doc
-f 0644 root sys usr/samba/docs/nameservresp.doc source/nameservresp.doc samba.man.doc
-f 0644 root sys usr/samba/docs/namework.doc source/namework.doc samba.man.doc
-f 0644 root sys usr/samba/docs/nmbd.8 docs/nmbd.8 samba.man.doc
-f 0644 root sys usr/samba/docs/samba.7 docs/samba.7 samba.man.doc
-f 0644 root sys usr/samba/docs/samba.lsm docs/samba.lsm samba.man.doc
-f 0644 root sys usr/samba/docs/security_level.txt docs/security_level.txt samba.man.doc
-f 0644 root sys usr/samba/docs/smb.conf.5 docs/smb.conf.5 samba.man.doc
-f 0644 root sys usr/samba/docs/smbclient.1 docs/smbclient.1 samba.man.doc
-f 0644 root sys usr/samba/docs/smbd.8 docs/smbd.8 samba.man.doc
-f 0644 root sys usr/samba/docs/smbpasswd.8 docs/smbpasswd.8 samba.man.doc
-f 0644 root sys usr/samba/docs/smbrun.1 docs/smbrun.1 samba.man.doc
-f 0644 root sys usr/samba/docs/smbstatus.1 docs/smbstatus.1 samba.man.doc
-f 0644 root sys usr/samba/docs/smbtar.1 docs/smbtar.1 samba.man.doc
-f 0644 root sys usr/samba/docs/testparm.1 docs/testparm.1 samba.man.doc
-f 0644 root sys usr/samba/docs/testprns.1 docs/testprns.1 samba.man.doc
-f 0644 root sys usr/samba/docs/wfw_slip.htm docs/wfw_slip.htm samba.man.doc
-f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base
-d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base
-f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)
-f 0775 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base exitop(/usr/samba/mkprintcap.sh) removeop(rm /usr/samba/printcap)
-d 0755 root sys usr/samba/src source samba.src.samba
-f 0644 root sys usr/samba/src/COPYING COPYING samba.src.samba
-f 0644 root sys usr/samba/src/COPYING.LGPL COPYING.LGPL samba.src.samba
-f 0644 root sys usr/samba/src/Manifest Manifest samba.src.samba
-f 0644 root sys usr/samba/src/README README samba.src.samba
-f 0644 root sys usr/samba/src/README.UBI README.UBI samba.src.samba
-f 0644 root sys usr/samba/src/Read-Manifest-Now Read-Manifest-Now samba.src.samba
-f 0644 root sys usr/samba/src/Roadmap Roadmap samba.src.samba
-f 0644 root sys usr/samba/src/WHATSNEW.txt WHATSNEW.txt samba.src.samba
-d 0755 root sys usr/samba/src/docs docs samba.src.samba
-f 0644 root sys usr/samba/src/docs/Application_Serving.txt docs/Application_Serving.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/BROWSING.txt docs/BROWSING.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/BUGS.txt docs/BUGS.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/DIAGNOSIS.txt docs/DIAGNOSIS.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/DNIX.txt docs/DNIX.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/DOMAIN.txt docs/DOMAIN.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/DOMAIN_CONTROL.txt docs/DOMAIN_CONTROL.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/ENCRYPTION.txt docs/ENCRYPTION.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/Faxing.txt docs/Faxing.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/GOTCHAS.txt docs/GOTCHAS.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/HINTS.txt docs/HINTS.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/INSTALL.sambatar docs/INSTALL.sambatar samba.src.samba
-f 0644 root sys usr/samba/src/docs/MIRRORS.txt docs/MIRRORS.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/NT4_PlainPassword.reg docs/NT4_PlainPassword.reg samba.src.samba
-f 0644 root sys usr/samba/src/docs/NTDOMAIN.txt docs/NTDOMAIN.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/NetBIOS.txt docs/NetBIOS.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/OS2-Client-HOWTO.txt docs/OS2-Client-HOWTO.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/PROJECTS docs/PROJECTS samba.src.samba
-f 0644 root sys usr/samba/src/docs/Passwords.txt docs/Passwords.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/Printing.txt docs/Printing.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/README.DCEDFS docs/README.DCEDFS samba.src.samba
-f 0644 root sys usr/samba/src/docs/README.jis docs/README.jis samba.src.samba
-f 0644 root sys usr/samba/src/docs/README.sambatar docs/README.sambatar samba.src.samba
-f 0644 root sys usr/samba/src/docs/SCO.txt docs/SCO.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/SMBTAR.notes docs/SMBTAR.notes samba.src.samba
-f 0644 root sys usr/samba/src/docs/Speed.txt docs/Speed.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/Support.txt docs/Support.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/THANKS docs/THANKS samba.src.samba
-f 0644 root sys usr/samba/src/docs/Tracing.txt docs/Tracing.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/UNIX-SMB.txt docs/UNIX-SMB.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/UNIX_INSTALL.txt docs/UNIX_INSTALL.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/Win95.txt docs/Win95.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/Win95_PlainPassword.reg docs/Win95_PlainPassword.reg samba.src.samba
-f 0644 root sys usr/samba/src/docs/WinNT.txt docs/WinNT.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/announce docs/announce samba.src.samba
-f 0644 root sys usr/samba/src/docs/cifsntdomain.txt docs/cifsntdomain.txt samba.src.samba
-d 0755 root sys usr/samba/src/docs/faq docs/faq samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ-1.html docs/faq/Samba-Server-FAQ-1.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ-2.html docs/faq/Samba-Server-FAQ-2.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ.html docs/faq/Samba-Server-FAQ.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-Server-FAQ.sgml docs/faq/Samba-Server-FAQ.sgml samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-1.html docs/faq/Samba-meta-FAQ-1.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-2.html docs/faq/Samba-meta-FAQ-2.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-3.html docs/faq/Samba-meta-FAQ-3.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-4.html docs/faq/Samba-meta-FAQ-4.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-5.html docs/faq/Samba-meta-FAQ-5.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ-6.html docs/faq/Samba-meta-FAQ-6.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ.html docs/faq/Samba-meta-FAQ.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ.sgml docs/faq/Samba-meta-FAQ.sgml samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/Samba-meta-FAQ.txt docs/faq/Samba-meta-FAQ.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq-1.html docs/faq/sambafaq-1.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq-2.html docs/faq/sambafaq-2.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq-3.html docs/faq/sambafaq-3.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq-4.html docs/faq/sambafaq-4.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq-5.html docs/faq/sambafaq-5.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq.html docs/faq/sambafaq.html samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq.sgml docs/faq/sambafaq.sgml samba.src.samba
-f 0644 root sys usr/samba/src/docs/faq/sambafaq.txt docs/faq/sambafaq.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/history docs/history samba.src.samba
-f 0644 root sys usr/samba/src/docs/make_smbcodepage.1 docs/make_smbcodepage.1 samba.src.samba
-f 0644 root sys usr/samba/src/docs/nmbd.8 docs/nmbd.8 samba.src.samba
-f 0644 root sys usr/samba/src/docs/samba.7 docs/samba.7 samba.src.samba
-f 0644 root sys usr/samba/src/docs/samba.lsm docs/samba.lsm samba.src.samba
-f 0644 root sys usr/samba/src/docs/security_level.txt docs/security_level.txt samba.src.samba
-f 0644 root sys usr/samba/src/docs/smb.conf.5 docs/smb.conf.5 samba.src.samba
-f 0644 root sys usr/samba/src/docs/smbclient.1 docs/smbclient.1 samba.src.samba
-f 0644 root sys usr/samba/src/docs/smbd.8 docs/smbd.8 samba.src.samba
-f 0644 root sys usr/samba/src/docs/smbpasswd.8 docs/smbpasswd.8 samba.src.samba
-f 0644 root sys usr/samba/src/docs/smbrun.1 docs/smbrun.1 samba.src.samba
-f 0644 root sys usr/samba/src/docs/smbstatus.1 docs/smbstatus.1 samba.src.samba
-f 0644 root sys usr/samba/src/docs/smbtar.1 docs/smbtar.1 samba.src.samba
-f 0644 root sys usr/samba/src/docs/testparm.1 docs/testparm.1 samba.src.samba
-f 0644 root sys usr/samba/src/docs/testprns.1 docs/testprns.1 samba.src.samba
-f 0644 root sys usr/samba/src/docs/wfw_slip.htm docs/wfw_slip.htm samba.src.samba
-d 0755 root sys usr/samba/src/examples examples samba.src.samba
-f 0664 root sys usr/samba/src/examples/README examples/README samba.src.samba
-d 0755 root sys usr/samba/src/examples/dce-dfs examples/dce-dfs samba.src.samba
-f 0644 root sys usr/samba/src/examples/dce-dfs/README examples/dce-dfs/README samba.src.samba
-f 0644 root sys usr/samba/src/examples/dce-dfs/smb.conf examples/dce-dfs/smb.conf samba.src.samba
-d 0755 root sys usr/samba/src/examples/misc examples/misc samba.src.samba
-f 0644 root sys usr/samba/src/examples/misc/extra_smbstatus examples/misc/extra_smbstatus samba.src.samba
-f 0644 root sys usr/samba/src/examples/misc/wall.perl examples/misc/wall.perl samba.src.samba
-d 0775 root sys usr/samba/src/examples/printer-accounting examples/printer-accounting samba.src.samba
-f 0664 root sys usr/samba/src/examples/printer-accounting/README examples/printer-accounting/README samba.src.samba
-f 0664 root sys usr/samba/src/examples/printer-accounting/acct-all examples/printer-accounting/acct-all samba.src.samba
-f 0664 root sys usr/samba/src/examples/printer-accounting/acct-sum examples/printer-accounting/acct-sum samba.src.samba
-f 0664 root sys usr/samba/src/examples/printer-accounting/hp5-redir examples/printer-accounting/hp5-redir samba.src.samba
-f 0664 root sys usr/samba/src/examples/printer-accounting/lp-acct examples/printer-accounting/lp-acct samba.src.samba
-f 0664 root sys usr/samba/src/examples/printer-accounting/printcap examples/printer-accounting/printcap samba.src.samba
-d 0755 root sys usr/samba/src/examples/printing examples/printing samba.src.samba
-f 0755 root sys usr/samba/src/examples/printing/smbprint examples/printing/smbprint samba.src.samba
-f 0644 root sys usr/samba/src/examples/printing/smbprint.sysv examples/printing/smbprint.sysv samba.src.samba
-d 0755 root sys usr/samba/src/examples/simple examples/simple samba.src.samba
-f 0644 root sys usr/samba/src/examples/simple/README examples/simple/README samba.src.samba
-f 0644 root sys usr/samba/src/examples/simple/smb.conf examples/simple/smb.conf samba.src.samba
-f 0664 root sys usr/samba/src/examples/smb.conf.default examples/smb.conf.default samba.src.samba
-d 0775 root sys usr/samba/src/examples/svr4-startup examples/svr4-startup samba.src.samba
-f 0664 root sys usr/samba/src/examples/svr4-startup/README examples/svr4-startup/README samba.src.samba
-f 0775 root sys usr/samba/src/examples/svr4-startup/samba.server examples/svr4-startup/samba.server samba.src.samba
-d 0755 root sys usr/samba/src/examples/thoralf examples/thoralf samba.src.samba
-f 0644 root sys usr/samba/src/examples/thoralf/smb.conf examples/thoralf/smb.conf samba.src.samba
-d 0755 root sys usr/samba/src/examples/tridge examples/tridge samba.src.samba
-f 0644 root sys usr/samba/src/examples/tridge/README examples/tridge/README samba.src.samba
-f 0644 root sys usr/samba/src/examples/tridge/smb.conf examples/tridge/smb.conf samba.src.samba
-f 0644 root sys usr/samba/src/examples/tridge/smb.conf.WinNT examples/tridge/smb.conf.WinNT samba.src.samba
-f 0644 root sys usr/samba/src/examples/tridge/smb.conf.fjall examples/tridge/smb.conf.fjall samba.src.samba
-f 0644 root sys usr/samba/src/examples/tridge/smb.conf.lapland examples/tridge/smb.conf.lapland samba.src.samba
-f 0644 root sys usr/samba/src/examples/tridge/smb.conf.vittjokk examples/tridge/smb.conf.vittjokk samba.src.samba
-d 0775 root sys usr/samba/src/examples/validchars examples/validchars samba.src.samba
-f 0664 root sys usr/samba/src/examples/validchars/msdos70.out examples/validchars/msdos70.out samba.src.samba
-f 0664 root sys usr/samba/src/examples/validchars/nwdos70.out examples/validchars/nwdos70.out samba.src.samba
-f 0664 root sys usr/samba/src/examples/validchars/readme examples/validchars/readme samba.src.samba
-f 0664 root sys usr/samba/src/examples/validchars/validchr.c examples/validchars/validchr.c samba.src.samba
-f 0664 root sys usr/samba/src/examples/validchars/validchr.com examples/validchars/validchr.com samba.src.samba
-d 0755 root sys usr/samba/src/packaging packaging samba.src.samba
-f 0644 root sys usr/samba/src/packaging/README packaging/README samba.src.samba
-d 0755 root sys usr/samba/src/packaging/SGI packaging/SGI samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/Makefile packaging/SGI/Makefile samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/README packaging/SGI/README samba.src.samba
-f 0755 root sys usr/samba/src/packaging/SGI/inetd.sh packaging/SGI/inetd.sh samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/legal_notice.html packaging/SGI/legal_notice.html samba.src.samba
-f 0755 root sys usr/samba/src/packaging/SGI/mkman packaging/SGI/mkman samba.src.samba
-f 0755 root sys usr/samba/src/packaging/SGI/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.src.samba
-f 0755 root sys usr/samba/src/packaging/SGI/mkrelease.sh packaging/SGI/mkrelease.sh samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/printcap packaging/SGI/printcap samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/psfixes.pl packaging/SGI/psfixes.pl samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/relnotes.html packaging/SGI/relnotes.html samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/samba.config packaging/SGI/samba.config samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/samba.idb packaging/SGI/samba.idb samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/samba.rc packaging/SGI/samba.rc samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/samba.spec packaging/SGI/samba.spec samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/sambalp packaging/SGI/sambalp samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/smb.conf packaging/SGI/smb.conf samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/smbpasswd packaging/SGI/smbpasswd samba.src.samba
-f 0644 root sys usr/samba/src/packaging/SGI/smbprint packaging/SGI/smbprint samba.src.samba
-d 0755 root sys usr/samba/src/packaging/Solaris packaging/Solaris samba.src.samba
-d 0755 root sys usr/samba/src/packaging/Solaris/pkg-specs packaging/Solaris/pkg-specs samba.src.samba
-f 0644 root sys usr/samba/src/packaging/Solaris/pkg-specs/Packaging.script packaging/Solaris/pkg-specs/Packaging.script samba.src.samba
-f 0644 root sys usr/samba/src/packaging/Solaris/pkg-specs/mkprototype packaging/Solaris/pkg-specs/mkprototype samba.src.samba
-f 0644 root sys usr/samba/src/packaging/Solaris/pkg-specs/pkginfo packaging/Solaris/pkg-specs/pkginfo samba.src.samba
-f 0644 root sys usr/samba/src/packaging/Solaris/pkg-specs/postinstall packaging/Solaris/pkg-specs/postinstall samba.src.samba
-f 0644 root sys usr/samba/src/packaging/Solaris/pkg-specs/postremove packaging/Solaris/pkg-specs/postremove samba.src.samba
-d 0755 root sys usr/samba/src/packaging/redhat packaging/redhat samba.src.samba
-f 0644 root sys usr/samba/src/packaging/redhat/Instructions packaging/redhat/Instructions samba.src.samba
-f 0755 root sys usr/samba/src/packaging/redhat/makeldirs.sh packaging/redhat/makeldirs.sh samba.src.samba
-f 0755 root sys usr/samba/src/packaging/redhat/makerpms.sh packaging/redhat/makerpms.sh samba.src.samba
-f 0644 root sys usr/samba/src/packaging/redhat/samba-axp.patch packaging/redhat/samba-axp.patch samba.src.samba
-f 0644 root sys usr/samba/src/packaging/redhat/samba-make.patch packaging/redhat/samba-make.patch samba.src.samba
-f 0644 root sys usr/samba/src/packaging/redhat/samba.log packaging/redhat/samba.log samba.src.samba
-f 0644 root sys usr/samba/src/packaging/redhat/samba.pamd packaging/redhat/samba.pamd samba.src.samba
-f 0644 root sys usr/samba/src/packaging/redhat/samba.spec packaging/redhat/samba.spec samba.src.samba
-f 0644 root sys usr/samba/src/packaging/redhat/smb.conf packaging/redhat/smb.conf samba.src.samba
-f 0755 root sys usr/samba/src/packaging/redhat/smb.init packaging/redhat/smb.init samba.src.samba
-f 0755 root sys usr/samba/src/packaging/redhat/smbadduser packaging/redhat/smbadduser samba.src.samba
-f 0755 root sys usr/samba/src/packaging/redhat/smbprint packaging/redhat/smbprint samba.src.samba
-d 0755 root sys usr/samba/src/source source samba.src.samba
-f 0644 root sys usr/samba/src/source/Makefile source/Makefile samba.src.samba
-f 0644 root sys usr/samba/src/source/Makefile.OS2 source/Makefile.OS2 samba.src.samba
-f 0644 root sys usr/samba/src/source/access.c source/access.c samba.src.samba
-f 0644 root sys usr/samba/src/source/addtosmbpass source/addtosmbpass samba.src.samba
-f 0644 root sys usr/samba/src/source/byteorder.h source/byteorder.h samba.src.samba
-f 0644 root sys usr/samba/src/source/cgi.c source/cgi.c samba.src.samba
-f 0644 root sys usr/samba/src/source/change-log source/change-log samba.src.samba
-f 0644 root sys usr/samba/src/source/charcnv.c source/charcnv.c samba.src.samba
-f 0644 root sys usr/samba/src/source/charset.c source/charset.c samba.src.samba
-f 0644 root sys usr/samba/src/source/charset.h source/charset.h samba.src.samba
-f 0644 root sys usr/samba/src/source/checkos.sh source/checkos.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/chgpasswd.c source/chgpasswd.c samba.src.samba
-f 0644 root sys usr/samba/src/source/client.c source/client.c samba.src.samba
-f 0644 root sys usr/samba/src/source/clientgen.c source/clientgen.c samba.src.samba
-f 0644 root sys usr/samba/src/source/clientutil.c source/clientutil.c samba.src.samba
-f 0644 root sys usr/samba/src/source/clitar.c source/clitar.c samba.src.samba
-f 0644 root sys usr/samba/src/source/clitar.h source/clitar.h samba.src.samba
-f 0644 root sys usr/samba/src/source/codepage_def.437 source/codepage_def.437 samba.src.samba
-f 0644 root sys usr/samba/src/source/codepage_def.850 source/codepage_def.850 samba.src.samba
-f 0644 root sys usr/samba/src/source/codepage_def.852 source/codepage_def.852 samba.src.samba
-f 0644 root sys usr/samba/src/source/codepage_def.932 source/codepage_def.932 samba.src.samba
-f 0644 root sys usr/samba/src/source/credentials.c source/credentials.c samba.src.samba
-f 0644 root sys usr/samba/src/source/cvs.log source/cvs.log samba.src.samba
-f 0644 root sys usr/samba/src/source/dir.c source/dir.c samba.src.samba
-f 0644 root sys usr/samba/src/source/fault.c source/fault.c samba.src.samba
-f 0644 root sys usr/samba/src/source/getsmbpass.c source/getsmbpass.c samba.src.samba
-f 0644 root sys usr/samba/src/source/includes.h source/includes.h samba.src.samba
-f 0644 root sys usr/samba/src/source/installbin.sh source/installbin.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/installcp.sh source/installcp.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/installman.sh source/installman.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/installscripts.sh source/installscripts.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/interface.c source/interface.c samba.src.samba
-f 0644 root sys usr/samba/src/source/internals.doc source/internals.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/ipc.c source/ipc.c samba.src.samba
-f 0644 root sys usr/samba/src/source/kanji.c source/kanji.c samba.src.samba
-f 0644 root sys usr/samba/src/source/kanji.h source/kanji.h samba.src.samba
-f 0644 root sys usr/samba/src/source/loadparm.c source/loadparm.c samba.src.samba
-f 0644 root sys usr/samba/src/source/local.h source/local.h samba.src.samba
-f 0644 root sys usr/samba/src/source/locking.c source/locking.c samba.src.samba
-f 0644 root sys usr/samba/src/source/locking_shm.c source/locking_shm.c samba.src.samba
-f 0644 root sys usr/samba/src/source/locking_slow.c source/locking_slow.c samba.src.samba
-f 0644 root sys usr/samba/src/source/lsaparse.c source/lsaparse.c samba.src.samba
-f 0644 root sys usr/samba/src/source/make_smbcodepage.c source/make_smbcodepage.c samba.src.samba
-f 0644 root sys usr/samba/src/source/mangle.c source/mangle.c samba.src.samba
-f 0644 root sys usr/samba/src/source/md4.c source/md4.c samba.src.samba
-f 0644 root sys usr/samba/src/source/message.c source/message.c samba.src.samba
-f 0644 root sys usr/samba/src/source/mkproto.awk source/mkproto.awk samba.src.samba
-f 0644 root sys usr/samba/src/source/mksmbpasswd.sh source/mksmbpasswd.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/nameannounce.c source/nameannounce.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nameannounce.doc source/nameannounce.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/namebrowse.c source/namebrowse.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namebrowse.doc source/namebrowse.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/nameconf.c source/nameconf.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namedbname.c source/namedbname.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namedbname.doc source/namedbname.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/namedbresp.c source/namedbresp.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namedbresp.doc source/namedbresp.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/namedbserver.c source/namedbserver.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namedbsubnet.c source/namedbsubnet.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namedbwork.c source/namedbwork.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nameelect.c source/nameelect.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nameelect.doc source/nameelect.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/namelogon.c source/namelogon.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namelogon.doc source/namelogon.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/namepacket.c source/namepacket.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namepacket.doc source/namepacket.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/namequery.c source/namequery.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namequery.doc source/namequery.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/nameresp.c source/nameresp.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nameresp.doc source/nameresp.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/nameserv.c source/nameserv.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nameserv.doc source/nameserv.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/nameserv.h source/nameserv.h samba.src.samba
-f 0644 root sys usr/samba/src/source/nameservreply.c source/nameservreply.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nameservreply.doc source/nameservreply.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/nameservresp.c source/nameservresp.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nameservresp.doc source/nameservresp.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/namework.c source/namework.c samba.src.samba
-f 0644 root sys usr/samba/src/source/namework.doc source/namework.doc samba.src.samba
-f 0644 root sys usr/samba/src/source/nmbd.c source/nmbd.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nmblib.c source/nmblib.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nmblookup.c source/nmblookup.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nmbsync.c source/nmbsync.c samba.src.samba
-f 0644 root sys usr/samba/src/source/nterr.h source/nterr.h samba.src.samba
-f 0644 root sys usr/samba/src/source/params.c source/params.c samba.src.samba
-f 0644 root sys usr/samba/src/source/password.c source/password.c samba.src.samba
-f 0644 root sys usr/samba/src/source/pcap.c source/pcap.c samba.src.samba
-f 0644 root sys usr/samba/src/source/pipenetlog.c source/pipenetlog.c samba.src.samba
-f 0644 root sys usr/samba/src/source/pipentlsa.c source/pipentlsa.c samba.src.samba
-f 0644 root sys usr/samba/src/source/pipes.c source/pipes.c samba.src.samba
-f 0644 root sys usr/samba/src/source/pipesrvsvc.c source/pipesrvsvc.c samba.src.samba
-f 0644 root sys usr/samba/src/source/pipeutil.c source/pipeutil.c samba.src.samba
-f 0644 root sys usr/samba/src/source/predict.c source/predict.c samba.src.samba
-f 0644 root sys usr/samba/src/source/printing.c source/printing.c samba.src.samba
-f 0644 root sys usr/samba/src/source/proto.h source/proto.h samba.src.samba
-f 0644 root sys usr/samba/src/source/quotas.c source/quotas.c samba.src.samba
-f 0644 root sys usr/samba/src/source/replace.c source/replace.c samba.src.samba
-f 0644 root sys usr/samba/src/source/reply.c source/reply.c samba.src.samba
-f 0644 root sys usr/samba/src/source/revert.sh source/revert.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/server.c source/server.c samba.src.samba
-f 0644 root sys usr/samba/src/source/shmem.c source/shmem.c samba.src.samba
-f 0644 root sys usr/samba/src/source/smb.h source/smb.h samba.src.samba
-f 0644 root sys usr/samba/src/source/smbadduser source/smbadduser samba.src.samba
-f 0644 root sys usr/samba/src/source/smbdes.c source/smbdes.c samba.src.samba
-f 0644 root sys usr/samba/src/source/smbencrypt.c source/smbencrypt.c samba.src.samba
-f 0644 root sys usr/samba/src/source/smbparse.c source/smbparse.c samba.src.samba
-f 0644 root sys usr/samba/src/source/smbpass.c source/smbpass.c samba.src.samba
-f 0644 root sys usr/samba/src/source/smbpasswd.c source/smbpasswd.c samba.src.samba
-f 0644 root sys usr/samba/src/source/smbrun.c source/smbrun.c samba.src.samba
-f 0644 root sys usr/samba/src/source/smbtar source/smbtar samba.src.samba
-f 0644 root sys usr/samba/src/source/srvparse.c source/srvparse.c samba.src.samba
-f 0644 root sys usr/samba/src/source/status.c source/status.c samba.src.samba
-f 0644 root sys usr/samba/src/source/system.c source/system.c samba.src.samba
-f 0644 root sys usr/samba/src/source/testparm.c source/testparm.c samba.src.samba
-f 0644 root sys usr/samba/src/source/testprns.c source/testprns.c samba.src.samba
-f 0644 root sys usr/samba/src/source/time.c source/time.c samba.src.samba
-f 0644 root sys usr/samba/src/source/trans2.c source/trans2.c samba.src.samba
-f 0644 root sys usr/samba/src/source/trans2.h source/trans2.h samba.src.samba
-f 0644 root sys usr/samba/src/source/ubi_dLinkList.c source/ubi_dLinkList.c samba.src.samba
-f 0644 root sys usr/samba/src/source/ubi_dLinkList.h source/ubi_dLinkList.h samba.src.samba
-f 0644 root sys usr/samba/src/source/ufc.c source/ufc.c samba.src.samba
-f 0644 root sys usr/samba/src/source/uid.c source/uid.c samba.src.samba
-f 0644 root sys usr/samba/src/source/uninstallbin.sh source/uninstallbin.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/uninstallcp.sh source/uninstallcp.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/uninstallman.sh source/uninstallman.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/uninstallscripts.sh source/uninstallscripts.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/updatesmbpasswd.sh source/updatesmbpasswd.sh samba.src.samba
-f 0644 root sys usr/samba/src/source/username.c source/username.c samba.src.samba
-f 0644 root sys usr/samba/src/source/util.c source/util.c samba.src.samba
-f 0644 root sys usr/samba/src/source/version.h source/version.h samba.src.samba
-f 0644 root sys usr/samba/src/source/vt_mode.c source/vt_mode.c samba.src.samba
-f 0644 root sys usr/samba/src/source/vt_mode.h source/vt_mode.h samba.src.samba
-f 0644 root sys usr/samba/src/source/wsmbconf.c source/wsmbconf.c samba.src.samba
-f 0644 root sys usr/samba/src/source/wsmbstatus.c source/wsmbstatus.c samba.src.samba
-d 0775 root sys usr/samba/var/locks packaging/SGI samba.sw.base
-d 0755 root sys usr/share/catman/u_man packaging/SGI/catman samba.man.manpages
-d 0755 root sys usr/share/catman/u_man/cat1 packaging/SGI/catman samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat1/smbclient.1.Z packaging/SGI/catman/smbclient.1.Z samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat1/smbrun.1.Z packaging/SGI/catman/smbrun.1.Z samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat1/smbstatus.1.Z packaging/SGI/catman/smbstatus.1.Z samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat1/smbtar.1.Z packaging/SGI/catman/smbtar.1.Z samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat1/testparm.1.Z packaging/SGI/catman/testparm.1.Z samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat1/testprns.1.Z packaging/SGI/catman/testprns.1.Z samba.man.manpages
-d 0755 root sys usr/share/catman/u_man/cat5 packaging/SGI/catman samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat5/smb.conf.5.Z packaging/SGI/catman/smb.conf.5.Z samba.man.manpages
-d 0755 root sys usr/share/catman/u_man/cat7 packaging/SGI/catman samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat7/samba.7.Z packaging/SGI/catman/samba.7.Z samba.man.manpages
-d 0755 root sys usr/share/catman/u_man/cat8 packaging/SGI/catman samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat8/nmbd.8.Z packaging/SGI/catman/nmbd.8.Z samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat8/smbd.8.Z packaging/SGI/catman/smbd.8.Z samba.man.manpages
-f 0664 root sys usr/share/catman/u_man/cat8/smbpasswd.8.Z packaging/SGI/catman/smbpasswd.8.Z samba.man.manpages
diff --git a/packaging/SGI/samba.spec b/packaging/SGI/samba.spec
deleted file mode 100644
index 62941a2711..0000000000
--- a/packaging/SGI/samba.spec
+++ /dev/null
@@ -1,45 +0,0 @@
-product samba
- id "Samba version 1.9.18alpha3"
- image sw
- id "Samba Execution Environment"
- version 0109180003
- order 0
- subsys base default
- id "Samba Execution Environment"
- replaces fw_samba.sw.base 0 9999999999
- replaces fw_samba.sw.samba 0 9999999999
- exp samba.sw.base
- endsubsys
- endimage
- image man
- id "Samba Online Documentation"
- version 0109180003
- order 1
- subsys manpages default
- id "Samba Man Page"
- replaces fw_samba.man.manpages 0 9999999999
- replaces fw_samba.man.samba 0 9999999999
- exp samba.man.manpages
- endsubsys
- subsys doc default
- id "Samba Documentation"
- replaces fw_samba.man.doc 0 9999999999
- exp samba.man.doc
- endsubsys
- subsys relnotes default
- id "Samba Release Notes"
- replaces fw_samba.man.relnotes 0 9999999999
- exp samba.man.relnotes
- endsubsys
- endimage
- image src
- id "Samba Source Code"
- version 0109180003
- order 2
- subsys samba
- id "Samba Source Code"
- replaces fw_samba.src.samba 0 9999999999
- exp samba.src.samba
- endsubsys
- endimage
-endproduct
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl
new file mode 100755
index 0000000000..93aa8632d9
--- /dev/null
+++ b/packaging/SGI/spec.pl
@@ -0,0 +1,76 @@
+#!/usr/bin/perl
+
+# This perl script generates the samba.spec file based on the version
+# information in the version.h file in the source tree
+
+open (VER,'../../source/version.h');
+($_ = ) =~ s/"//g;
+close (VER);
+@foo = split(' ');
+splice(@foo,0,2);
+$_ = $foo[0];
+
+# create the package name
+$vername = " id \"Samba Version ".$_."\"\n";
+
+#create the subsystem version numbers
+if (/alpha/) {
+ $_ =~ s/alpha/.00./;
+}
+elsif (/p/) {
+ $_ =~ s/p/./;
+ $_ .= '.00';
+}
+($v1,$v2,$v3,$v4,$v5) = split('\.');
+$vernum = sprintf " version %02d%02d%02d%02d%02d\n",$v1,$v2,$v3,$v4,$v5;
+
+# generate the samba.spec file
+open(SPEC,">samba.spec");
+print SPEC "product samba\n";
+print SPEC $vername;
+print SPEC " image sw\n";
+print SPEC " id \"Samba Execution Environment\"\n";
+print SPEC $vernum;
+print SPEC " order 0\n";
+print SPEC " subsys base default\n";
+print SPEC " id \"Samba Execution Environment\"\n";
+print SPEC " replaces fw_samba.sw.base 0 9999999999\n";
+print SPEC " replaces fw_samba.sw.samba 0 9999999999\n";
+print SPEC " exp samba.sw.base\n";
+print SPEC " endsubsys\n";
+print SPEC " endimage\n";
+print SPEC " image man\n";
+print SPEC " id \"Samba Online Documentation\"\n";
+print SPEC $vernum;
+print SPEC " order 1\n";
+print SPEC " subsys manpages default\n";
+print SPEC " id \"Samba Man Page\"\n";
+print SPEC " replaces fw_samba.man.manpages 0 9999999999\n";
+print SPEC " replaces fw_samba.man.samba 0 9999999999\n";
+print SPEC " exp samba.man.manpages\n";
+print SPEC " endsubsys\n";
+print SPEC " subsys doc default\n";
+print SPEC " id \"Samba Documentation\"\n";
+print SPEC " replaces fw_samba.man.doc 0 9999999999\n";
+print SPEC " exp samba.man.doc\n";
+print SPEC " endsubsys\n";
+print SPEC " subsys relnotes default\n";
+print SPEC " id \"Samba Release Notes\"\n";
+print SPEC " replaces fw_samba.man.relnotes 0 9999999999\n";
+print SPEC " exp samba.man.relnotes\n";
+print SPEC " endsubsys\n";
+print SPEC " endimage\n";
+print SPEC " image src\n";
+print SPEC " id \"Samba Source Code\"\n";
+print SPEC $vernum;
+print SPEC " order 2\n";
+print SPEC " subsys samba\n";
+print SPEC " id \"Samba Source Code\"\n";
+print SPEC " replaces fw_samba.src.samba 0 9999999999\n";
+print SPEC " exp samba.src.samba\n";
+print SPEC " endsubsys\n";
+print SPEC " endimage\n";
+print SPEC "endproduct\n";
+close SPEC;
+
+print "\nsamba.spec file has been created\n\n";
--
cgit
From 365f1eadaa969e807dd8906a3291100b4a37def6 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 1 Dec 1997 14:50:52 +0000
Subject: dded error checking to scripts (This used to be commit
b7e1265f106010e03d92575f4578162ec659994b)
---
packaging/SGI/idb.pl | 6 +++---
packaging/SGI/makefile.pl | 4 ++--
packaging/SGI/mkrelease.sh | 29 +++++++++++++++++++++++++++++
packaging/SGI/spec.pl | 6 +++---
4 files changed, 37 insertions(+), 8 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 4e32bdb526..c4a03c817b 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -10,7 +10,7 @@ chdir '../../';
chdir $curdir;
# We don't want the files listed in .cvsignore in the source tree
-open(IGNORES,"../../source/.cvsignore");
+open(IGNORES,"../../source/.cvsignore") || die "Unable to open .cvsignore file\n";
while () {
chop;
$ignores{$_}++;
@@ -18,7 +18,7 @@ while () {
close IGNORES;
# get the names of all the binary files to be installed
-open(MAKEFILE,"Makefile");
+open(MAKEFILE,"Makefile") || die "Unable to open Makefile\n";
@makefile = ;
@sprogs = grep(/^SPROGS /,@makefile);
@progs1 = grep(/^PROGS1 /,@makefile);
@@ -71,7 +71,7 @@ if (@codepage) {
# release
@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepage/, @allfiles);
-open(IDB,">samba.idb");
+open(IDB,">samba.idb") || die "Unable to open samba.idb for output\n";
print IDB "f 0644 root sys etc/config/samba packaging/SGI/samba.config samba.sw.base config(update)\n";
print IDB "f 0755 root sys etc/init.d/samba packaging/SGI/samba.rc samba.sw.base\n";
diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl
index 544fb7e32d..bd34299ac7 100755
--- a/packaging/SGI/makefile.pl
+++ b/packaging/SGI/makefile.pl
@@ -12,8 +12,8 @@ else {
$OSver = $ARGV[0];
}
-open(MAKEIN,"../../source/Makefile");
-open(MAKEOUT,">Makefile");
+open(MAKEIN,"../../source/Makefile") || die "Unable to open source Makefile\n";
+open(MAKEOUT,">Makefile") || die "Unable to open Makefile for output\n";
while () {
if (/^BASEDIR =/) {
print MAKEOUT "BASEDIR = /usr/samba\n";
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index fed7a5dc42..fcf247d9b4 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -8,21 +8,50 @@
#
echo Making manual pages
./mkman
+errstat=$?
+if [ $errstat -ne 0 ]; then
+ echo "Error $errstat making manual pages\n";
+ exit $errstat;
+fi
# build the sources
#
echo Making binaries
./makefile.pl $1 # create the Makefile for the specified OS ver
+errstat=$?
+if [ $errstat -ne 0 ]; then
+ echo "Error $errstat creating Makefile\n";
+ exit $errstat;
+fi
+
cd ../../source
# make -f ../packaging/SGI/Makefile clean
make -f ../packaging/SGI/Makefile all
+errstat=$?
+if [ $errstat -ne 0 ]; then
+ echo "Error $errstat building sources\n";
+ exit $errstat;
+fi
+
cd ../packaging/SGI
# generate the packages
#
echo Generating Inst Packages
./spec.pl # create the samba.spec file
+errstat=$?
+if [ $errstat -ne 0 ]; then
+ echo "Error $errstat creating samba.spec\n";
+ exit $errstat;
+fi
+
./idb.pl # create the samba.idb file
+errstat=$?
+if [ $errstat -ne 0 ]; then
+ echo "Error $errstat creating samba.idb\n";
+ exit $errstat;
+fi
+
if [ ! -d bins ]; then
mkdir bins
fi
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl
index 93aa8632d9..01453fd923 100755
--- a/packaging/SGI/spec.pl
+++ b/packaging/SGI/spec.pl
@@ -3,7 +3,7 @@
# This perl script generates the samba.spec file based on the version
# information in the version.h file in the source tree
-open (VER,'../../source/version.h');
+open (VER,'../../source/version.h') || die "Unable to open version.h\n";
($_ = ) =~ s/"//g;
close (VER);
@foo = split(' ');
@@ -25,7 +25,7 @@ elsif (/p/) {
$vernum = sprintf " version %02d%02d%02d%02d%02d\n",$v1,$v2,$v3,$v4,$v5;
# generate the samba.spec file
-open(SPEC,">samba.spec");
+open(SPEC,">samba.spec") || die "Unable to open samba.spec for output\n";
print SPEC "product samba\n";
print SPEC $vername;
print SPEC " image sw\n";
@@ -71,6 +71,6 @@ print SPEC " exp samba.src.samba\n";
print SPEC " endsubsys\n";
print SPEC " endimage\n";
print SPEC "endproduct\n";
-close SPEC;
+close SPEC || die "Error on close of samba.spec\n";
print "\nsamba.spec file has been created\n\n";
--
cgit
From 00b5a07744964eb48cda7c72a428bd6c4587cca7 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 1 Dec 1997 22:49:09 +0000
Subject: fix for systems that don't have PWD environment variable defined
(This used to be commit f67e21f73ffa3bbb1f3bffae709219c86be236f6)
---
packaging/SGI/idb.pl | 2 ++
1 file changed, 2 insertions(+)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index c4a03c817b..47cf16a5bc 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -1,7 +1,9 @@
#!/usr/bin/perl
+require "pwd.pl" || die "Required pwd.pl not found";
# This perl script automatically generates the samba.idb file
+&initpwd;
$curdir = $ENV{"PWD"};
# get a complete list of all files in the tree
--
cgit
From 56f87885bceebe4bd89a67a7b5a65c52f99a1708 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 4 Dec 1997 19:17:02 +0000
Subject: fix typo in directory name (This used to be commit
2e73fc0449beabc9658b3fe869e577a868af3c0d)
---
packaging/SGI/idb.pl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 47cf16a5bc..bad7bfb862 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -54,7 +54,7 @@ if (@codepage) {
@codepage[0] =~ s/^.*\)//;
chdir '../../source';
# if we have codepages we need to create them for the package
- system("./installcp.sh . ../packaging/SGI/codepage . @codepage[0]");
+ system("./installcp.sh . ../packaging/SGI/codepages . @codepage[0]");
chdir $curdir;
@codepage = sort split(' ',@codepage[0]);
}
@@ -71,7 +71,7 @@ if (@codepage) {
# strip out all the generated directories and the "*.o" files from the source
# release
-@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepage/, @allfiles);
+@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/, @allfiles);
open(IDB,">samba.idb") || die "Unable to open samba.idb for output\n";
@@ -127,10 +127,10 @@ while (@docs) {
print IDB "f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base\n";
if (@codepage) {
- print IDB "d 0755 root sys usr/samba/lib/codepage packaging/SGI samba.sw.base\n";
+ print IDB "d 0755 root sys usr/samba/lib/codepages packaging/SGI samba.sw.base\n";
while (@codepage) {
$nextpage = shift @codepage;
- print IDB "f 0644 root sys usr/samba/lib/codepage/codepage.$nextpage packaging/SGI/codepage/codepage.$nextpage samba.sw.base\n";
+ print IDB "f 0644 root sys usr/samba/lib/codepages/codepage.$nextpage packaging/SGI/codepages/codepage.$nextpage samba.sw.base\n";
}
}
print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
--
cgit
From 95d600a3521ef97cad9852a09e534c0c7ae8a8d7 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Tue, 16 Dec 1997 05:15:00 +0000
Subject: fix bug in log file specification (This used to be commit
9b77a642bd302b7aea2147d1cbcd61e310ccfd91)
---
packaging/SGI/smb.conf | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf
index b484cc918b..dce487b4e3 100644
--- a/packaging/SGI/smb.conf
+++ b/packaging/SGI/smb.conf
@@ -38,8 +38,11 @@
guest account = nobody
browseable = yes
+; this tells Samba to use a separate log file for each machine
+; that connects - default is single file named /usr/samba/var/log.smb
+; log file = /usr/samba/var/log.%m
+
; Set a max size for log files in Kb
- log file = /usr/samba/var
max log size = 50
; You will need a world readable lock directory and "share modes=yes"
--
cgit
From 32b1501b1e026d85b8d50b4a923424eeeed230e2 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Fri, 2 Jan 1998 04:26:39 +0000
Subject: fix up perl script so it is a little cleaner and also works with perl
4 (This used to be commit 5b724c6551c963454fe4ce27cfc8756e0c76712d)
---
packaging/SGI/psfixes.pl | 38 +++++++++++++++++++++-----------------
1 file changed, 21 insertions(+), 17 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/psfixes.pl b/packaging/SGI/psfixes.pl
index 4ed9e16f7e..c5269b9142 100755
--- a/packaging/SGI/psfixes.pl
+++ b/packaging/SGI/psfixes.pl
@@ -1,26 +1,30 @@
#!/usr/bin/perl
-$found_vm = 0;
-
while (<>) {
- if (not $found_vm) {
- if (not /^%/) {
- if (/^%%Title:/) {
- s/.
$/
/;
+# strip any ctrl-d's
+ $_ =~ s/^//;
+# get rid of any non-postscript commands
+ if (/^%/) {
+ do {
+ $_ = <>;
+ } until ( /^%/ ) || eof() ;
+ if (! eof()) {
print;
}
- elsif (/^\/VM?/) {
- print "/VM? { pop } bind def
\n";
- $found_vm = 1;
- }
- else {
+ }
+# fix bug in long titles from MS Word
+ elsif (/^%%Title:/) {
+ s/.
$/
/;
print;
- }
}
- }
- else {
- if (/def
/) {
- $found_vm = 0;
+# remove VM test
+ elsif (/^\/VM?/) {
+ print "/VM? { pop } bind def
\n";
+ do {
+ $_ = <>;
+ } until (/def
/) || eof() ;
+ }
+ else {
+ print;
}
- }
}
--
cgit
From b0e6cf38224950cfa84df1f2bfc758c0cc120018 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Sat, 3 Jan 1998 03:55:52 +0000
Subject: added commented out sections for supporting automatically providing
printer drivers to Win95 clients. (This used to be commit
e414f4223208dffb464940da90d536add88183db)
---
packaging/SGI/smb.conf | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
(limited to 'packaging')
diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf
index dce487b4e3..eb7139c136 100644
--- a/packaging/SGI/smb.conf
+++ b/packaging/SGI/smb.conf
@@ -73,6 +73,19 @@
browseable = no
writable = yes
+; To allow Win95 clients to automatically load printer drivers, uncomment
+; the following section (and the lines in the printers section below).
+; Run the make_printerdef command to create the /usr/samba/lib/printers.def
+; file (see the PRINTER_DRIVER.txt file in the docs directory for info).
+; Copy all the required files to the /usr/samba/printer directory
+;
+;[printer$]
+; comment = printer driver directory
+; path=/usr/samba/printer
+; public=yes
+; writable=no
+; browseable=yes
+
[printers]
comment = All Printers
path = /usr/tmp
@@ -81,6 +94,19 @@
public = yes
writable = no
create mask = 0700
+;
+; this specifies the location of the share containing the printer driver
+; files - see the printer$ section above
+;
+; printer driver location = \\%h\printer$
+;
+; the following line will make all printers default to the QMS-PS 810 Turbo
+; driver - which works quite well for Impressario. If you need a diferent
+; driver for a specific printer, create a section for that printer and
+; specify the correct printer driver.
+;
+; printer driver = QMS-PS 810 Turbo
+
[tmp]
comment = Temporary file space
--
cgit
From c2201f106fed3445b0684f1b2313101c1da60477 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Sat, 3 Jan 1998 05:26:31 +0000
Subject: fixed type in list of ignored files (This used to be commit
ae50080b6a09b62fbca0260e07a1bca4cde139ff)
---
packaging/SGI/.cvsignore | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/.cvsignore b/packaging/SGI/.cvsignore
index c653c29ad2..b303a93a9a 100644
--- a/packaging/SGI/.cvsignore
+++ b/packaging/SGI/.cvsignore
@@ -1,7 +1,7 @@
bins
catman
html
-codepage
+codepages
Makefile
samba.idb
samba.spec
--
cgit
From 7bd96a661eab0e42a4138f23a45e0764b327efdc Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 8 Jan 1998 10:50:18 +0000
Subject: missing a couple of binary files in the distribution (This used to be
commit 84e2f7854769190816690f55bfd442e8bedc92fe)
---
packaging/SGI/idb.pl | 36 +++++++++++++++++-------------------
1 file changed, 17 insertions(+), 19 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index bad7bfb862..698d566a73 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -31,27 +31,22 @@ close MAKEFILE;
if (@sprogs) {
@sprogs[0] =~ s/^.*\=//;
- @sprogs[0] =~ s/^.*\)//;
@sprogs = split(' ',@sprogs[0]);
}
if (@progs) {
@progs[0] =~ s/^.*\=//;
- @progs[0] =~ s/^.*\)//;
@progs = split(' ',@progs[0]);
}
if (@progs1) {
@progs1[0] =~ s/^.*\=//;
- @progs1[0] =~ s/^.*\)//;
@progs1 = split(' ',@progs1[0]);
}
if (@scripts) {
@scripts[0] =~ s/^.*\=//;
- @scripts[0] =~ s/^.*\)//;
@scripts = split(' ',@scripts[0]);
}
if (@codepage) {
@codepage[0] =~ s/^.*\=//;
- @codepage[0] =~ s/^.*\)//;
chdir '../../source';
# if we have codepages we need to create them for the package
system("./installcp.sh . ../packaging/SGI/codepages . @codepage[0]");
@@ -92,20 +87,23 @@ print IDB "f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base\n
print IDB "d 0755 root sys usr/samba/bin packaging/SGI samba.sw.base\n";
while(@bins) {
$nextfile = shift @bins;
- if ($nextfile eq "smbpasswd") {
- print IDB "f 4555 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
- }
- elsif ($nextfile eq "psfixes.pl") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
- }
- elsif ($nextfile eq "sambalp") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
- }
- elsif ($nextfile eq "smbprint") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
- }
- else {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+
+ if (index($nextfile,'$')) {
+ if ($nextfile eq "smbpasswd") {
+ print IDB "f 4555 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ }
+ elsif ($nextfile eq "psfixes.pl") {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
+ elsif ($nextfile eq "sambalp") {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
+ elsif ($nextfile eq "smbprint") {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
+ else {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ }
}
}
--
cgit
From 89450e370cb63160b7d8f0965e865dd73f56dd66 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 8 Jan 1998 16:34:09 +0000
Subject: fix bug in version numbering scheme (This used to be commit
2e9f4b5daa74484cbc8c3dc929ab3ae42d663f9f)
---
packaging/SGI/spec.pl | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl
index 01453fd923..84dbc85229 100755
--- a/packaging/SGI/spec.pl
+++ b/packaging/SGI/spec.pl
@@ -13,6 +13,7 @@ $_ = $foo[0];
# create the package name
$vername = " id \"Samba Version ".$_."\"\n";
+$patch = 0;
#create the subsystem version numbers
if (/alpha/) {
$_ =~ s/alpha/.00./;
@@ -21,8 +22,13 @@ elsif (/p/) {
$_ =~ s/p/./;
$_ .= '.00';
}
+else {
+ $_ .='.01.00';
+}
+
($v1,$v2,$v3,$v4,$v5) = split('\.');
-$vernum = sprintf " version %02d%02d%02d%02d%02d\n",$v1,$v2,$v3,$v4,$v5;
+$v4 = $v4 + $patch;
+$vernum = sprintf(" version %02d%02d%02d%02d%02d\n",$v1,$v2,$v3,$v4,$v5);
# generate the samba.spec file
open(SPEC,">samba.spec") || die "Unable to open samba.spec for output\n";
--
cgit
From 08e00050f14420dee205779c275b51bd820a87f8 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Tue, 13 Jan 1998 05:08:08 +0000
Subject: fix bug in search string (This used to be commit
04d2773a8e3b7c7dda33cd89b3042c868a1bb8dd)
---
packaging/SGI/psfixes.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/psfixes.pl b/packaging/SGI/psfixes.pl
index c5269b9142..13e9bdb0a8 100755
--- a/packaging/SGI/psfixes.pl
+++ b/packaging/SGI/psfixes.pl
@@ -18,7 +18,7 @@ while (<>) {
print;
}
# remove VM test
- elsif (/^\/VM?/) {
+ elsif (/^\/VM\?/) {
print "/VM? { pop } bind def
\n";
do {
$_ = <>;
--
cgit
From 28ba0fb270ca1fe738a4143f5216257686b1d8c5 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 14 Jan 1998 02:47:36 +0000
Subject: left out a piece of my last fix for inst package version number (This
used to be commit 66899c27cd4b475bb7974c4d6de6ecb6764fb6fb)
---
packaging/SGI/spec.pl | 1 +
1 file changed, 1 insertion(+)
(limited to 'packaging')
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl
index 84dbc85229..ab06da49f8 100755
--- a/packaging/SGI/spec.pl
+++ b/packaging/SGI/spec.pl
@@ -21,6 +21,7 @@ if (/alpha/) {
elsif (/p/) {
$_ =~ s/p/./;
$_ .= '.00';
+ $patch = 1;
}
else {
$_ .='.01.00';
--
cgit
From 5dd1eb4e32f95bd1d8f5da3ca30c7a0fc4ef87c0 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 14 Jan 1998 07:17:37 +0000
Subject: README describe inst package version number correctly idb.pl
fix some permission problems with shell scripts sambalp new
script supplied by Alan Stebbens that can run setuid to
properly print banner page for known users. smb.conf use new sambalp by
default. psfixes.pl remove - now handled by sambalp (This used to be
commit 129aab955c069206109461e31f2b0244d8586908)
---
packaging/SGI/README | 16 +++---
packaging/SGI/idb.pl | 2 +-
packaging/SGI/psfixes.pl | 30 -----------
packaging/SGI/sambalp | 136 +++++++++++++++++++++++++++++++++++++++++++++--
packaging/SGI/smb.conf | 10 ++--
5 files changed, 150 insertions(+), 44 deletions(-)
delete mode 100755 packaging/SGI/psfixes.pl
(limited to 'packaging')
diff --git a/packaging/SGI/README b/packaging/SGI/README
index 02855bb3a2..f13164af4a 100644
--- a/packaging/SGI/README
+++ b/packaging/SGI/README
@@ -12,13 +12,15 @@ binary, and log files are placed in the /usr/samba file hierarchy.
Man pages are placed in the /usr/share/catman/u_man hierarchy.
The version number of the distribution is a 10 digit number that
-is created from the samba version number plus a release number.
-Each section of the samba version number forms 2 digits of the
-version number (with leading zeros if necessary).
-
-samba version 1.9.16 would become 0109160000
-samba version 1.9.16p9 would become 0109160900
-samba version 1.9.16alpha9 would become 0109160009
+is created from the samba version number. Each section of the samba
+version number forms 2 digits of the version number (with leading
+zeros if necessary). The alpha versions add 00 and 2 digits for
+the alpha number. The first release adds 0100. Patch releases add
+2 digits for the patch level plus 1 and 00.
+
+samba version 1.9.18alpha9 would become 0109180009
+samba version 1.9.18 would become 0109180100
+samba version 1.9.18p9 would become 0109181000
You can enable all printers on your system to be used by samba
by running the script /usr/samba/mkprintcap.sh
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 698d566a73..c698a7f60a 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -146,7 +146,7 @@ while (@allfiles) {
print IDB "d 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n";
}
else {
- if (grep(/SGI/ & (/\.sh$/ | /\.pl$/ | /mkman$/),$nextfile)) {
+ if (grep((/\.sh$/ | /\.pl$/ | /mkman$/),$nextfile)) {
print IDB "f 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n";
}
else {
diff --git a/packaging/SGI/psfixes.pl b/packaging/SGI/psfixes.pl
deleted file mode 100755
index 13e9bdb0a8..0000000000
--- a/packaging/SGI/psfixes.pl
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/perl
-
-while (<>) {
-# strip any ctrl-d's
- $_ =~ s/^//;
-# get rid of any non-postscript commands
- if (/^%/) {
- do {
- $_ = <>;
- } until ( /^%/ ) || eof() ;
- if (! eof()) {
- print;
- }
- }
-# fix bug in long titles from MS Word
- elsif (/^%%Title:/) {
- s/.
$/
/;
- print;
- }
-# remove VM test
- elsif (/^\/VM\?/) {
- print "/VM? { pop } bind def
\n";
- do {
- $_ = <>;
- } until (/def
/) || eof() ;
- }
- else {
- print;
- }
-}
diff --git a/packaging/SGI/sambalp b/packaging/SGI/sambalp
index cb95ef089f..fd0cef8f93 100644
--- a/packaging/SGI/sambalp
+++ b/packaging/SGI/sambalp
@@ -1,4 +1,24 @@
-#! /bin/sh
+#!/bin/perl
+#
+# Hacked by Alan Stebbens to setuid to the username if
+# valid on this system. Written as a secure Perl script. To enable,
+#
+# chown root /usr/samba/bin/sambalp
+# chmod u+s,+x /usr/samba/bin/sambalp
+#
+# If setuidshells is not enabled on your system, you must also do this:
+#
+# systune -i
+# nosuidshells = 0
+# y
+# quit
+#
+# reboot
+#
+# This script will still work as a normal user; it will not try
+# to setuid in this case.
+#
+# If the "$PSFIX" variable is set below...
#
# Workaround Win95 printer driver/Impressario bug by removing
# the PS check for available virtual memory. Note that this
@@ -15,6 +35,116 @@
# removed.
# 3. The VM fix described above.
#
+#
+# Modified for Perl4 compatibility.
+#
+
+$PROG = "sambalp";
+
+$PSFIX = 1; # set to 0 if you don't want to run
+ # the "psfix" portion
+
+# Untaint the PATH variable
+@PATH = split(' ',<) {
+ next unless /^printer (\w+)/;
+ push(@printers,$1);
+}
+close LPSTAT;
+# Create a hash list
+@printers{@printers} = @printers;
+
+# Untaint the printer name
+if (defined($prtname = $printers{$printer})) {
+ $printer = $prtname;
+} else {
+ die("Unknown printer: \"$printer\"\n");
+}
+
+if ($> == 0) { # are we root?
+ # yes -- then perform a taint checks and possibly do a suid check
+
+ # Untaint the file and system names (pretend to filter them)
+ $file = $file =~ /^(.*)/ ? $1 : die("Bad file: $file\n");
+ $system = $system =~ /^(.*)/ ? $1 : die("Bad system: $system\n");
+
+ # Get the valid users
+ setpwent;
+ %users = ();
+ while (@pwe = getpwent()) {
+ $uids{$pwe[0]} = $pwe[2];
+ $users{$pwe[2]} = $pwe[0];
+ }
+ endpwent();
+
+ # Check out the user -- if the user is a real user on this system,
+ # then become that user so that the printer header page looks right
+ # otherwise, remain as the default user (probably "nobody").
+
+ if (defined($uid = $uids{$user})) {
+
+ # before we change UID, we must ensure that the file is still
+ # readable after the UID change.
+ chown($uid, 9, $file); # make the file owned by the user
+
+ # Now, go ahead and become the user
+ $name = $users{$uid};
+ $> = $uid; # become the user
+ $< = $uid;
+ } else { # do untaint filtering
+ $name = $user =~ /^(\w+)/ ? $1 : die("Bad user: $user\n");
+ }
+} else { # otherwise, just be me
+ $name = $user; # whomever that is
+}
+
+$lpcommand = "/usr/bin/lp -c -d$printer -t'$name on $system'";
+
+# This code is from the original "psfix" but it has been completely
+# rewritten for speed.
+
+if ($PSFIX) { # are we running a "psfix"?
+ open(FILE, $file) || die("Can't read $file: $!\n");
+ open(LP, "|$lpcommand -") || die("Can't open pipe to \"lp\": $!\n");
+ select(LP);
+ while () { #
+ $_ =~ s/^\004//; # strip any ctrl-d's
+ if (/^\e%/) { # get rid of any non-postscript commands
+ while () { # remove text until next %!PS
+ s/^\001M//; # lenmark driver prefixes Ctrl-A M to %!PS
+ last if /^%!PS/;
+ }
+ last if eof(FILE);
+ } elsif (/^%%Title:/) { # fix bug in long titles from MS Word
+ s/.\r$/\r/; # remove trailing character on the title
+ } elsif (/^\/VM\?/) { # remove VM test
+ print "/VM? { pop } bind def\r\n";
+ while () { last if /def\r/; }
+ next; # don't print
+ }
+ print;
+ }
+ close FILE;
+ close LP;
+} else { # we're not running psfix?
+ system("$lpcommand $file");
+}
-/usr/samba/bin/psfixes.pl $2 | /usr/bin/lp -c -d$1 -t"$3 on $4"
-rm $2
+# Remove the file only if it lives in /usr/tmp, /tmp, or /var/tmp.
+unlink($file) if $file =~ m=^(/(usr|var))?/tmp=;
diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf
index eb7139c136..bdd8806c96 100644
--- a/packaging/SGI/smb.conf
+++ b/packaging/SGI/smb.conf
@@ -29,10 +29,14 @@
; script strips out the vmstatus check. BTW, when using this
; setup to print be sure to configure a Windows printer driver
; that generates PostScript--QMS-PS 810 is one that should work
-; with the sambalp script.
+; with the sambalp script. This version of sambalp (if installed
+; as a setuid script - see the comments at the beginning of the
+; script) will setuid to the username if valid on the system. This
+; makes the banner pages print the proper username. You can disable
+; the PostScript fixes by changing a variable in sambalp.
;
-; print command = /usr/samba/bin/sambalp %p %s %U %m
- print command = /usr/bin/lp -c -d%p -t"%U on machine %m" %s ; rm %s
+ print command = /usr/samba/bin/sambalp %p %s %U %m
+; print command = /usr/bin/lp -c -d%p -t"%U on machine %m" %s ; rm %s
load printers = yes
guest account = nobody
--
cgit
From b5eb6899b440e7b1b5e801dc5f42cef1595b69e0 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 28 Jan 1998 11:45:57 +0000
Subject: get rid of reference to removed file (This used to be commit
afafae133f32f33ae642662a7e9cbb427ce4691a)
---
packaging/SGI/idb.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index c698a7f60a..993ec73f79 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -55,7 +55,7 @@ if (@codepage) {
}
# add my local files to the list of binaries to install
-@bins = sort (@sprogs,@progs,@progs1,@scripts,("psfixes.pl","sambalp","smbprint"));
+@bins = sort (@sprogs,@progs,@progs1,@scripts,("sambalp","smbprint"));
# the files installed in docs include all the original files in docs plus all
# the "*.doc" files from the source tree
--
cgit
From 3e36ba5ffab937b530c829b2a2869eba1fb892c5 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 11 Feb 1998 11:38:09 +0000
Subject: removed old unused test (This used to be commit
88247f23c6b6f3a7972cee3ffc3a0f8d15a899e2)
---
packaging/SGI/idb.pl | 3 ---
1 file changed, 3 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 993ec73f79..78d5eb1de8 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -92,9 +92,6 @@ while(@bins) {
if ($nextfile eq "smbpasswd") {
print IDB "f 4555 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
}
- elsif ($nextfile eq "psfixes.pl") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
- }
elsif ($nextfile eq "sambalp") {
print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
}
--
cgit
From f0e121d100ef207b683fbb8d3079403e22929d0a Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 2 Mar 1998 21:27:07 +0000
Subject: adding findsmb perl script to get info on smb machines on a net (This
used to be commit 4adb00e41abbbaf6eaa014e6a599cb2c8b77d7da)
---
packaging/SGI/findsmb | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++
packaging/SGI/idb.pl | 5 +-
2 files changed, 133 insertions(+), 1 deletion(-)
create mode 100755 packaging/SGI/findsmb
(limited to 'packaging')
diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb
new file mode 100755
index 0000000000..59dc960402
--- /dev/null
+++ b/packaging/SGI/findsmb
@@ -0,0 +1,129 @@
+#!/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/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>.*$//,);
+
+# 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 = ;
+ close NMBLOOKUP;
+
+# get the first <00> name
+
+ @name = grep(/<00>/,@nmblookup);
+ $_ = @name[0];
+ if ($_) { # we have a netbios name
+ /(\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 = ;
+ 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> - /,@nmblookup);
+ $_ = @name[0];
+ /(\S+)/;
+ $_ = "[$1]";
+ }
+
+# 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/SGI/idb.pl b/packaging/SGI/idb.pl
index 78d5eb1de8..7eea09d8d5 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -55,7 +55,7 @@ if (@codepage) {
}
# add my local files to the list of binaries to install
-@bins = sort (@sprogs,@progs,@progs1,@scripts,("sambalp","smbprint"));
+@bins = sort (@sprogs,@progs,@progs1,@scripts,("findsmb","sambalp","smbprint"));
# the files installed in docs include all the original files in docs plus all
# the "*.doc" files from the source tree
@@ -92,6 +92,9 @@ while(@bins) {
if ($nextfile eq "smbpasswd") {
print IDB "f 4555 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
}
+ elsif ($nextfile eq "findsmb") {
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
elsif ($nextfile eq "sambalp") {
print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
}
--
cgit
From 09c0c6f0d6fa02554a2a3e0c10a2c93ae4de3583 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 16 Mar 1998 23:11:48 +0000
Subject: add swat to build package fix minor bug in findsmb (This used to be
commit d21a4368d27c77b083ac30ae080649157255b9f7)
---
packaging/SGI/.cvsignore | 1 +
packaging/SGI/findsmb | 8 ++++++--
packaging/SGI/idb.pl | 36 +++++++++++++++++++++++++++++-------
packaging/SGI/smb.conf | 8 +++-----
packaging/SGI/spec.pl | 4 ++++
5 files changed, 43 insertions(+), 14 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/.cvsignore b/packaging/SGI/.cvsignore
index b303a93a9a..7b74def5ae 100644
--- a/packaging/SGI/.cvsignore
+++ b/packaging/SGI/.cvsignore
@@ -2,6 +2,7 @@ bins
catman
html
codepages
+swat
Makefile
samba.idb
samba.spec
diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb
index 59dc960402..82aeb28dab 100755
--- a/packaging/SGI/findsmb
+++ b/packaging/SGI/findsmb
@@ -94,8 +94,12 @@ foreach $ip (@ipaddrs) # loop through each IP address found
# for WIN95 clients get workgroup name from nmblookup response
@name = grep(/<00> - /,@nmblookup);
$_ = @name[0];
- /(\S+)/;
- $_ = "[$1]";
+ if ($_) {
+ /(\S+)/;
+ $_ = "[$1]";
+ } else {
+ $_ = "Unknown Workgroup";
+ }
}
# see if machine registered a local master browser name
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 7eea09d8d5..2e04fc0716 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -6,11 +6,6 @@ require "pwd.pl" || die "Required pwd.pl not found";
&initpwd;
$curdir = $ENV{"PWD"};
-# get a complete list of all files in the tree
-chdir '../../';
-&dodir('.');
-chdir $curdir;
-
# We don't want the files listed in .cvsignore in the source tree
open(IGNORES,"../../source/.cvsignore") || die "Unable to open .cvsignore file\n";
while () {
@@ -53,20 +48,30 @@ if (@codepage) {
chdir $curdir;
@codepage = sort split(' ',@codepage[0]);
}
+# install the swat files
+chdir '../../source';
+system("./installswat.sh ../packaging/SGI/swat ./");
+chdir $curdir;
# add my local files to the list of binaries to install
@bins = sort (@sprogs,@progs,@progs1,@scripts,("findsmb","sambalp","smbprint"));
+# get a complete list of all files in the tree
+chdir '../../';
+&dodir('.');
+chdir $curdir;
+
# the files installed in docs include all the original files in docs plus all
# the "*.doc" files from the source tree
@docs = sort byfilename grep (!/^docs\/$/ & (/^source\/.*\.doc$/ | /^docs\//),@allfiles);
+@swatfiles = sort grep(/^packaging\/SGI\/swat/, @allfiles);
@catman = sort grep(/^packaging\/SGI\/catman/ & !/\/$/, @allfiles);
@catman = sort bydirnum @catman;
# strip out all the generated directories and the "*.o" files from the source
# release
-@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/, @allfiles);
+@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/ & !/^packaging\/SGI\/swat/, @allfiles);
open(IDB,">samba.idb") || die "Unable to open samba.idb for output\n";
@@ -95,6 +100,9 @@ while(@bins) {
elsif ($nextfile eq "findsmb") {
print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
}
+ elsif ($nextfile eq "swat") {
+ print IDB "f 4755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ }
elsif ($nextfile eq "sambalp") {
print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
}
@@ -132,7 +140,7 @@ if (@codepage) {
}
}
print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
-print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base exitop(/usr/samba/mkprintcap.sh) removeop(rm /usr/samba/printcap)\n";
+print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base
print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
while (@allfiles) {
@@ -155,6 +163,20 @@ while (@allfiles) {
}
}
+print IDB "d 0755 root sys usr/samba/swat packaging/SGI/swat samba.sw.base\n";
+while (@swatfiles) {
+ $nextfile = shift @swatfiles;
+ ($file = $nextfile) =~ s/^packaging\/SGI\/swat\///;
+ next if !$file;
+ if (grep(/\/$/,$file)) {
+ chop $file;
+ print IDB "d 0755 root sys usr/samba/swat/$file packaging/SGI/swat/$file samba.sw.base\n";
+ }
+ else {
+ print IDB "f 0444 root sys usr/samba/swat/$file packaging/SGI/swat/$file samba.sw.base\n";
+ }
+}
+
print IDB "d 0755 root sys usr/samba/var packaging/SGI samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/var/locks packaging/SGI samba.sw.base\n";
diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf
index bdd8806c96..ded898d192 100644
--- a/packaging/SGI/smb.conf
+++ b/packaging/SGI/smb.conf
@@ -7,18 +7,16 @@
;
; The following configuration should suit most systems for basic usage and
; initial testing. It gives all clients access to their home directories and
-; allows access to all printers specified in /etc/printcap as well as /usr/tmp.
+; /usr/tmp and allows access to all printers returned by lpstat.
;
[global]
comment = Samba %v
workgroup = workgroup
printing = sysv
;
-; A printcap file is created during installation that contains the names
-; of all printers attached to your system. Names longer than 8 characters
-; will not be visible to clients.
+; Use lpstat to get names of all printers attached to your system.
;
- printcap name = /usr/samba/printcap
+ printcap name = lpstat
;
; If you are using Impressario 1.x then you'll want to use the
; sambalp script provided with this package. It works around
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl
index ab06da49f8..5557112df1 100755
--- a/packaging/SGI/spec.pl
+++ b/packaging/SGI/spec.pl
@@ -18,6 +18,10 @@ $patch = 0;
if (/alpha/) {
$_ =~ s/alpha/.00./;
}
+elsif (/-HEAD/) {
+ $_ =~ s/-HEAD/.01/;
+ $_ .= '.99';
+}
elsif (/p/) {
$_ =~ s/p/./;
$_ .= '.00';
--
cgit
From 7a60caa1186dc84d6e590b968e072cdb448b6335 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Tue, 17 Mar 1998 01:09:14 +0000
Subject: fix typos (This used to be commit
c53ca2cc2fff39afc917c280196995fde159af94)
---
packaging/SGI/idb.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 2e04fc0716..68dcedf660 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -101,7 +101,7 @@ while(@bins) {
print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
}
elsif ($nextfile eq "swat") {
- print IDB "f 4755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ print IDB "f 4755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
}
elsif ($nextfile eq "sambalp") {
print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
@@ -140,7 +140,7 @@ if (@codepage) {
}
}
print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
-print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base
+print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
while (@allfiles) {
--
cgit
From 5767ec92789fd3a79ae21ffe23fb68da0486c6a5 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Fri, 20 Mar 1998 16:07:08 +0000
Subject: added comments about printcap name (This used to be commit
b916d225afd8137a04d48f376b549f1ae57d767e)
---
packaging/SGI/smb.conf | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf
index ded898d192..b7cbae63d1 100644
--- a/packaging/SGI/smb.conf
+++ b/packaging/SGI/smb.conf
@@ -14,9 +14,14 @@
workgroup = workgroup
printing = sysv
;
-; Use lpstat to get names of all printers attached to your system.
+; The default for printcap name is lpstat which will export all printers.
+; If you want to limit the printers that are visible to clients, you can
+; use a printcap file. The script mkprintcap.sh will create a printcap
+; file that contains all your printers. Edit this file to only contain the
+; printers that you wish to be visible. Names longer than 15 characters
+; in the printcap file will not be visible to clients.
;
- printcap name = lpstat
+; printcap name = /usr/samba/printcap
;
; If you are using Impressario 1.x then you'll want to use the
; sambalp script provided with this package. It works around
--
cgit
From ff71b96f4265e16f128b3aab61993daca2309211 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 25 Mar 1998 00:20:52 +0000
Subject: added check for one more error case (This used to be commit
6cba6919ebf65691d2fb6a880da038a6dff9f6b1)
---
packaging/SGI/findsmb | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb
index 82aeb28dab..4cb3c80a42 100755
--- a/packaging/SGI/findsmb
+++ b/packaging/SGI/findsmb
@@ -65,9 +65,17 @@ foreach $ip (@ipaddrs) # loop through each IP address found
@name = grep(/<00>/,@nmblookup);
$_ = @name[0];
- if ($_) { # we have a netbios name
- /(\S+)/;
- $name = $1;
+ 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.
--
cgit
From b6373786853fe9f41437b588054dad38ee3cee60 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 25 Mar 1998 17:53:00 +0000
Subject: no longer make smbpasswd setuid root (This used to be commit
b14551d316c0d41daeaecbae3e30993e9fc1cca6)
---
packaging/SGI/idb.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 68dcedf660..788b77819b 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -95,7 +95,7 @@ while(@bins) {
if (index($nextfile,'$')) {
if ($nextfile eq "smbpasswd") {
- print IDB "f 4555 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ print IDB "f 0755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
}
elsif ($nextfile eq "findsmb") {
print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
--
cgit
From 49ce0cab3c3ec31e08be9afb7872b8bb03371810 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 13 Apr 1998 23:39:43 +0000
Subject: make it look for only the proper lines to uncomment. (This used to be
commit c963ec8cc4bd311023ca4ad00ded4502989b7faa)
---
packaging/SGI/makefile.pl | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl
index bd34299ac7..d621097a22 100755
--- a/packaging/SGI/makefile.pl
+++ b/packaging/SGI/makefile.pl
@@ -23,14 +23,14 @@ while () {
}
elsif (/^# FOR SGI IRIX $OSver/) {
print MAKEOUT;
- $a = ;
- print MAKEOUT $a;
- ($a = ) =~ s/^# //;
- print MAKEOUT $a;
- ($a = ) =~ s/^# //;
- print MAKEOUT $a;
- ($a = ) =~ s/^# //;
- print MAKEOUT $a;
+ while () {
+ last if ($_ eq "\n");
+ if (/^# (FLAGSM|LIBSM|FLAGS1)/) {
+ s/^# //;
+ }
+ print MAKEOUT;
+ }
+ print MAKEOUT;
}
else {
print MAKEOUT;
--
cgit
From b8fff2cc4e3d2903bc009bf2f46459855dad526e Mon Sep 17 00:00:00 2001
From: Volker Lendecke
Date: Mon, 27 Apr 1998 09:11:28 +0000
Subject: Added SuSE packaging files.
Volker
(This used to be commit 201330a729db1a45a069ecb5188059a0a84cea52)
---
packaging/SuSE/5.2/samba-1.9.18p5.dif | 233 ++++++++++++++++++++++++++++++++++
packaging/SuSE/5.2/samba.spec | 121 ++++++++++++++++++
2 files changed, 354 insertions(+)
create mode 100644 packaging/SuSE/5.2/samba-1.9.18p5.dif
create mode 100644 packaging/SuSE/5.2/samba.spec
(limited to 'packaging')
diff --git a/packaging/SuSE/5.2/samba-1.9.18p5.dif b/packaging/SuSE/5.2/samba-1.9.18p5.dif
new file mode 100644
index 0000000000..575ed917ca
--- /dev/null
+++ b/packaging/SuSE/5.2/samba-1.9.18p5.dif
@@ -0,0 +1,233 @@
+--- Makefile.Linux
++++ Makefile.Linux 1998/04/27 07:49:10
+@@ -0,0 +1,34 @@
++#
++#
++# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux
++#
++# Copyright (C) 1996 S.u.S.E. GmbH Fuerth, Germany.
++#
++# Please send bug-fixes or comments to feedback@suse.de.
++#
++# Author: Florian La Roche
++# Volker Lendecke
++#
++#
++
++doc=/usr/doc/packages/samba
++
++compile:
++ make -C source
++
++install:
++ make install -C source
++ mkdir -p $(doc)
++ cp -a docs/* $(doc)
++ rm -rf $(doc)/*.[0-9]
++ cp -R examples $(doc)
++ chmod 644 `find $(doc) -type f`
++ chmod 755 `find $(doc) -type d`
++ install -m 644 smb.conf /etc/smb.conf
++ install rc /sbin/init.d/smb
++ ln -sf ../smb /sbin/init.d/rc2.d/S20smb
++ ln -sf ../smb /sbin/init.d/rc2.d/K20smb
++ ln -sf ../smb /sbin/init.d/rc3.d/S20smb
++ ln -sf ../smb /sbin/init.d/rc3.d/K20smb
++ mkdir -p /var/adm/fillup-templates
++ cp rc.config.samba /var/adm/fillup-templates
+--- doinst.sh
++++ doinst.sh 1998/04/27 07:49:10
+@@ -0,0 +1,15 @@
++#
++# install/doinst.sh - to be done after extraction
++#
++# Copyright (c) 1997 S.u.S.E. GmbH Fuerth, Germany.
++#
++#
++echo "Updating etc/rc.config..."
++if [ -x bin/fillup ] ; then
++ bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba
++else
++ echo "ERROR: fillup not found. This should not happen. Please compare"
++ echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and"
++ echo "update by hand."
++fi
++
+--- rc
++++ rc 1998/04/27 07:49:10
+@@ -0,0 +1,32 @@
++#! /bin/sh
++# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
++# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
++#
++# Author: Bastian Epting, StarDivision GmbH
++# Florian La Roche,
++# Volker Lendecke,
++#
++
++. /etc/rc.config
++
++test "$START_SMB" = "yes" || exit 0
++
++case "$1" in
++ start)
++ echo -n "Starting SMB services."
++ /usr/sbin/nmbd -D
++ /usr/sbin/smbd -D
++ echo
++ ;;
++ stop)
++ echo -n "Shutting down SMB services."
++ killproc -TERM /usr/sbin/nmbd
++ killproc -TERM /usr/sbin/smbd
++ echo
++ ;;
++ *)
++ echo "Usage: $0 {start|stop}"
++ exit 1
++esac
++
++exit 0
+--- rc.config.samba
++++ rc.config.samba 1998/04/27 07:49:10
+@@ -0,0 +1,5 @@
++#
++# start samba? ("yes" or "no")
++# Windows 95 / NT - File- and Printservices
++#
++START_SMB="no"
+--- smb.conf
++++ smb.conf 1998/04/27 07:49:10
+@@ -0,0 +1,48 @@
++[global]
++ workgroup = arbeitsgruppe
++ guest account = nobody
++ keep alive = 30
++ os level = 2
++ security = user
++ printing = bsd
++ printcap name = /etc/printcap
++ load printers = yes
++
++; Please uncomment the following entry and replace the
++; ip number and netmask with the correct numbers for
++; your ethernet interface.
++; interfaces = 192.168.1.1/255.255.255.0
++
++; If you want Samba to act as a wins server, please set
++; 'wins support = yes'
++ wins support = no
++
++; If you want Samba to use an existing wins server,
++; please uncomment the following line and replace
++; the dummy with the wins server's ip number.
++; wins server = 192.168.1.1
++
++[homes]
++ comment = Heimatverzeichnis
++ browseable = no
++ read only = no
++ create mode = 0750
++
++; The following share gives all users access to the Server's CD drive,
++; assuming it is mounted under /cd. To enable this share, please remove
++; the semicolons before the lines
++;
++; [cdrom]
++; comment = Linux CD-ROM
++; path = /cd
++; read only = yes
++; locking = no
++
++[printers]
++ comment = All Printers
++ browseable = no
++ printable = yes
++ public = no
++ read only = yes
++ create mode = 0700
++ directory = /tmp
+--- source/Makefile
++++ source/Makefile 1998/04/27 07:49:10
+@@ -5,11 +5,11 @@
+ ###########################################################################
+
+ # The base directory for all samba files
+-BASEDIR = /usr/local/samba
++BASEDIR = /usr
+
+ # The base manpages directory to put the man pages in
+ # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
+-MANDIR = /usr/local/man
++MANDIR = /usr/man
+
+ # The directories to put things in. If you use multiple
+ # architectures or share the samba binaries across NFS then
+@@ -18,16 +18,16 @@
+ # normally only applies to nmbd and smbd
+ # SBINDIR implies a secure binary directory
+ BINDIR = $(BASEDIR)/bin
+-SBINDIR = $(BASEDIR)/bin
+-LIBDIR = $(BASEDIR)/lib
+-VARDIR = $(BASEDIR)/var
++SBINDIR = $(BASEDIR)/sbin
++LIBDIR = $(BASEDIR)/lib/samba
++VARDIR = /var/log
+
+ # The permissions to give the executables
+ INSTALLPERMS = 0755
+
+ # Add any optimisation or debugging flags here
+ # add -DSYSLOG for syslog support
+-FLAGS1 = -O
++FLAGS1 = -O2
+ LIBS1 =
+
+ # You will need to use a ANSI C compiler. This means under SunOS 4 you can't
+@@ -47,15 +47,15 @@
+ # or in smb.conf (see smb.conf(5))
+ SMBLOGFILE = $(VARDIR)/log.smb
+ NMBLOGFILE = $(VARDIR)/log.nmb
+-CONFIGFILE = $(LIBDIR)/smb.conf
+-LMHOSTSFILE = $(LIBDIR)/lmhosts
+-DRIVERFILE = $(LIBDIR)/printers.def
++CONFIGFILE = /etc/smb.conf
++LMHOSTSFILE = /etc/lmhosts
++DRIVERFILE = /etc/printers.def
+ SMB_PASSWD = $(BINDIR)/smbpasswd
+-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+-WEB_ROOT = $(BASEDIR)
++SMB_PASSWD_FILE = /etc/smbpasswd
++WEB_ROOT = /etc
+
+ # the directory where lock files go
+-LOCKDIR = $(VARDIR)/locks
++LOCKDIR = /var/lock
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
+@@ -206,7 +206,7 @@
+ # contributed by Andrew.Tridgell@anu.edu.au
+ # add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
+ # right libraries and includes
+-# FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
++FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
+ # LIBSM = -lshadow
+
+ # Use this for Linux without shadow passwords or for any Linux
+--- source/includes.h
++++ source/includes.h 1998/04/27 07:49:10
+@@ -244,13 +244,6 @@
+ #define USE_SETFS
+ #endif
+ #endif
+-#ifdef SHADOW_PWD
+-#if _LINUX_C_LIB_VERSION_MAJOR < 5
+-#ifndef crypt
+-#define crypt pw_encrypt
+-#endif
+-#endif
+-#endif
+ #endif
+
+ #ifdef SUNOS4
diff --git a/packaging/SuSE/5.2/samba.spec b/packaging/SuSE/5.2/samba.spec
new file mode 100644
index 0000000000..6ae54b5066
--- /dev/null
+++ b/packaging/SuSE/5.2/samba.spec
@@ -0,0 +1,121 @@
+#
+# spec file for package samba (Version 1.9.18p1)
+#
+# Copyright (c) 1997 S.u.S.E. GmbH Fuerth, Germany.
+#
+# please send bugfixes or comments to feedback@suse.de.
+#
+
+Vendor: S.u.S.E. GmbH, Fuerth, Germany
+Distribution: S.u.S.E. Linux 5.1 (i386)
+Name: samba
+Release: 1
+Copyright: 1992-98 Andrew Tridgell, Karl Auer, Jeremy Allison
+Group:
+Provides: samba smbfs
+Requires:
+Conflicts:
+Autoreqprov: on
+Packager: feedback@suse.de
+
+Version: 1.9.18p5
+Summary: Samba is a file server for Unix, similar to LanManager.
+Source: samba-1.9.18p5.tar.gz
+Source1: smbfs-2.0.2.tar.gz
+Patch: samba-1.9.18p5.dif
+Patch1: smbfs-2.0.2.dif
+%prep
+%setup
+%patch
+%setup -T -n smbfs-2.0.2 -b1
+%patch -P 1
+%build
+cd ../samba-1.9.18p5
+make -f Makefile.Linux compile
+cd ../smbfs-2.0.2
+make -f Makefile.Linux compile
+%install
+cd ../samba-1.9.18p5
+make -f Makefile.Linux install
+cd ../smbfs-2.0.2
+make -f Makefile.Linux install
+Check
+%post
+echo "Updating etc/rc.config..."
+if [ -x bin/fillup ] ; then
+ bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba
+else
+ echo "ERROR: fillup not found. This should not happen. Please compare"
+ echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and"
+ echo "update by hand."
+fi
+%files
+%docdir /usr/doc/packages/samba
+/usr/doc/packages/samba
+%config /etc/smb.conf
+/usr/lib/samba/codepages
+/sbin/init.d/rc2.d/K20smb
+/sbin/init.d/rc2.d/S20smb
+/sbin/init.d/rc3.d/K20smb
+/sbin/init.d/rc3.d/S20smb
+%config /sbin/init.d/smb
+/usr/bin/addtosmbpass
+/usr/bin/make_printerdef
+/usr/bin/make_smbcodepage
+/usr/bin/nmblookup
+/usr/bin/smbclient
+/usr/bin/smbmount
+/usr/bin/smbpasswd
+/usr/bin/smbrun
+/usr/bin/smbstatus
+/usr/bin/smbtar
+/usr/bin/smbumount
+/usr/bin/testparm
+/usr/bin/testprns
+%doc /usr/man/man1/smbclient.1.gz
+%doc /usr/man/man1/smbrun.1.gz
+%doc /usr/man/man1/smbstatus.1.gz
+%doc /usr/man/man1/smbtar.1.gz
+%doc /usr/man/man1/testparm.1.gz
+%doc /usr/man/man1/testprns.1.gz
+%doc /usr/man/man1/make_smbcodepage.1.gz
+%doc /usr/man/man5/smb.conf.5.gz
+%doc /usr/man/man7/samba.7.gz
+%doc /usr/man/man8/nmbd.8.gz
+%doc /usr/man/man8/smbd.8.gz
+%doc /usr/man/man8/smbmount.8.gz
+%doc /usr/man/man8/smbumount.8.gz
+%doc /usr/man/man8/smbmnt.8.gz
+%doc /usr/man/man8/smbpasswd.8.gz
+/usr/sbin/nmbd
+/usr/sbin/smbd
+/var/adm/fillup-templates/rc.config.samba
+%description
+Samba is a suite of programs which work together to allow clients to
+access Unix filespace and printers via the SMB protocol (Seerver Message
+Block).
+CAUTION: The samba daemons are started by the init script
+/sbin/init.d/samba, not by inetd. The entries for /usr/sbin/smbd
+and /usr/sbin/nmbd must be commented out in /etc/inetd.conf.
+In practice, this means that you can redirect disks and printers to
+Unix disks and printers from LAN Manager clients, Windows for
+Workgroups 3.11 clients, Windows'95 clients, Windows NT clients
+and OS/2 clients. There is
+also a Unix client program supplied as part of the suite which allows
+Unix users to use an ftp-like interface to access filespace and
+printers on any other SMB server.
+Samba includes the following programs (in summary):
+* smbd, the SMB server. This handles actual connections from clients.
+* nmbd, the Netbios name server, which helps clients locate servers.
+* smbclient, the Unix-hosted client program.
+* smbrun, a little 'glue' program to help the server run external
+programs.
+* testprns, a program to test server access to printers.
+* testparm, a program to test the Samba configuration file for correctness.
+* smb.conf, the Samba configuration file.
+* smbprint, a sample script to allow a Unix host to use smbclient
+to print to an SMB server.
+The suite is supplied with full source and is GPLed.
+This package expects its config file under /etc/smb.conf .
+Documentation: /usr/doc/packages/samba
+
--
cgit
From 1a25f56066f950f20cd2ee8cbb15d62ecb9ecc61 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Tue, 28 Apr 1998 18:58:20 +0000
Subject: fix problem with output file not being properly sorted (This used to
be commit d13678b079faf0da91b4ef582481fb987d377c8a)
---
packaging/SGI/idb.pl | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 788b77819b..51ba1df7d3 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -121,8 +121,6 @@ while (@docs) {
next if ($nextfile eq "CVS");
($junk,$file) = split(/\//,$nextfile,2);
if (grep(/\/$/,$nextfile)) {
- chop $nextfile;
- chop $file;
print IDB "d 0755 root sys usr/samba/docs/$file $nextfile samba.man.doc\n";
}
else {
@@ -143,14 +141,14 @@ print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.s
print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
-while (@allfiles) {
- $nextfile = shift @allfiles;
+@sorted = sort(@allfiles);
+while (@sorted) {
+ $nextfile = shift @sorted;
($file = $nextfile) =~ s/^.*\///;
next if grep(/packaging\/SGI/& (/Makefile/ | /samba\.spec/ | /samba\.idb/),$nextfile);
next if grep(/source/,$nextfile) && ($ignores{$file});
next if ($nextfile eq "CVS");
if (grep(/\/$/,$nextfile)) {
- chop $nextfile;
print IDB "d 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n";
}
else {
@@ -169,7 +167,6 @@ while (@swatfiles) {
($file = $nextfile) =~ s/^packaging\/SGI\/swat\///;
next if !$file;
if (grep(/\/$/,$file)) {
- chop $file;
print IDB "d 0755 root sys usr/samba/swat/$file packaging/SGI/swat/$file samba.sw.base\n";
}
else {
--
cgit
From 4eb37c104d3a23ecefcefe9038de5d10515078dd Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 29 Apr 1998 13:45:27 +0000
Subject: add clean option (This used to be commit
e21b3a527cc6a3a3b0dee12430bd78d9cc340ae8)
---
packaging/SGI/mkrelease.sh | 8 ++++++++
1 file changed, 8 insertions(+)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index fcf247d9b4..05c64b12fc 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -4,6 +4,14 @@
# You may specify a OS major version number (4, 5, or 6) to specify which
# OS release to build. If no version number is given it will default to 6.
+if [ "$1" = "clean" ]; then
+ cd ../../source
+ make clean
+ cd ../packaging/SGI
+ shift
+ rm -rf bins catman html codepages swat Makefile samba.idb samba.spec
+fi
+
# create the catman versions of the manual pages
#
echo Making manual pages
--
cgit
From 9aba1bee37b6981e69ea738f05cc92e0125f6007 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 30 Apr 1998 16:00:18 +0000
Subject: mkman - add argument for making html versions of man pages idb.pl -
minor fixups for sorting of output file. (This used to be commit
4657367c5c80867fcd08e9bbe7557bc2ac770504)
---
packaging/SGI/idb.pl | 25 +++++++++++++++----------
packaging/SGI/mkman | 19 ++++++++++++-------
2 files changed, 27 insertions(+), 17 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 51ba1df7d3..424c4ed130 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -44,13 +44,16 @@ if (@codepage) {
@codepage[0] =~ s/^.*\=//;
chdir '../../source';
# if we have codepages we need to create them for the package
+ system("chmod +x ./installcp.sh");
system("./installcp.sh . ../packaging/SGI/codepages . @codepage[0]");
chdir $curdir;
@codepage = sort split(' ',@codepage[0]);
}
# install the swat files
chdir '../../source';
+system("chmod +x ./installswat.sh");
system("./installswat.sh ../packaging/SGI/swat ./");
+system("cp ../swat/README ../packaging/SGI/swat");
chdir $curdir;
# add my local files to the list of binaries to install
@@ -81,15 +84,15 @@ print IDB "l 0000 root sys etc/rc0.d/K39samba packaging/SGI samba.sw.base symval
print IDB "l 0000 root sys etc/rc2.d/S81samba packaging/SGI samba.sw.base symval(../init.d/samba)\n";
@copyfile = grep (/^COPY/,@allfiles);
-print IDB "d 0755 root sys usr/relnotes/samba packaging/SGI samba.man.relnotes\n";
+print IDB "d 0755 root sys usr/relnotes/samba/ packaging/SGI samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/@copyfile[0] @copyfile[0] samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/legal_notice.html packaging/SGI/legal_notice.html samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/samba-relnotes.html packaging/SGI/relnotes.html samba.man.relnotes\n";
-print IDB "d 0755 root sys usr/samba packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/ packaging/SGI samba.sw.base\n";
print IDB "f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/bin packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/bin/ packaging/SGI samba.sw.base\n";
while(@bins) {
$nextfile = shift @bins;
@@ -115,7 +118,7 @@ while(@bins) {
}
}
-print IDB "d 0755 root sys usr/samba/docs docs samba.man.doc\n";
+print IDB "d 0755 root sys usr/samba/docs/ docs samba.man.doc\n";
while (@docs) {
$nextfile = shift @docs;
next if ($nextfile eq "CVS");
@@ -129,7 +132,7 @@ while (@docs) {
}
print IDB "f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/lib/ packaging/SGI samba.sw.base\n";
if (@codepage) {
print IDB "d 0755 root sys usr/samba/lib/codepages packaging/SGI samba.sw.base\n";
while (@codepage) {
@@ -140,7 +143,9 @@ if (@codepage) {
print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
+print IDB "d 0644 root sys usr/samba/private/ packaging/SGI samba.sw.base\n";
+print IDB "f 0600 root sys usr/samba/private/smbpasswd packaging/SGI/smbpasswd samba.sw.base config(update)\n";
+print IDB "d 0755 root sys usr/samba/src/ packaging/SGI samba.src.samba\n";
@sorted = sort(@allfiles);
while (@sorted) {
$nextfile = shift @sorted;
@@ -161,7 +166,7 @@ while (@sorted) {
}
}
-print IDB "d 0755 root sys usr/samba/swat packaging/SGI/swat samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/swat/ packaging/SGI/swat samba.sw.base\n";
while (@swatfiles) {
$nextfile = shift @swatfiles;
($file = $nextfile) =~ s/^packaging\/SGI\/swat\///;
@@ -174,10 +179,10 @@ while (@swatfiles) {
}
}
-print IDB "d 0755 root sys usr/samba/var packaging/SGI samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/var/locks packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/var/ packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/var/locks/ packaging/SGI samba.sw.base\n";
-print IDB "d 0755 root sys usr/share/catman/u_man packaging/SGI samba.man.manpages\n";
+print IDB "d 0755 root sys usr/share/catman/u_man/ packaging/SGI samba.man.manpages\n";
$olddirnum = "0";
while (@catman) {
$nextfile = shift @catman;
diff --git a/packaging/SGI/mkman b/packaging/SGI/mkman
index fedeb4d719..4f14fafcdc 100755
--- a/packaging/SGI/mkman
+++ b/packaging/SGI/mkman
@@ -1,15 +1,18 @@
#!/bin/sh
+# if you wish to make html versions of the man pages then add the
+# argument html when calling this script. You must have rman installed.
+#
if [ ! -d catman ]; then
mkdir catman
fi
-# if you wish to make html versions of the man pages then uncomment
-# the following section and the "rman" command below
-#
-# if [ ! -d html ]; then
-# mkdir html
-# fi
+if [ "$1" = "html" ]; then
+ if [ ! -d html ]; then
+ mkdir html
+ fi
+fi
+
FILES="*.?"
@@ -17,6 +20,8 @@ cd ../../docs
for FILE in $FILES ; do
neqn $FILE | tbl | nroff -man > ../packaging/SGI/catman/`basename $FILE`
compress -f ../packaging/SGI/catman/`basename $FILE`
-# rman -f html -r "%s.%s.html" $FILE > ../packaging/SGI/html/$FILE.html
+ if [ "$1" = "html" ]; then
+ rman -f html -r "%s.%s.html" $FILE > ../packaging/SGI/html/$FILE.html
+ fi
done
cd ../packaging/SGI
--
cgit
From a1e1641b84aae432576a3d1b4b9aa724fa61fe5c Mon Sep 17 00:00:00 2001
From: Volker Lendecke
Date: Wed, 6 May 1998 16:13:31 +0000
Subject: Added mksmbpasswd.sh to binary package (This used to be commit
94f31b95f708a4362fdcc697610d6edc9b72a5fc)
---
packaging/SuSE/5.2/samba-1.9.18p5.dif | 17 +++++++++--------
packaging/SuSE/5.2/samba.spec | 1 +
2 files changed, 10 insertions(+), 8 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SuSE/5.2/samba-1.9.18p5.dif b/packaging/SuSE/5.2/samba-1.9.18p5.dif
index 575ed917ca..39b13f010d 100644
--- a/packaging/SuSE/5.2/samba-1.9.18p5.dif
+++ b/packaging/SuSE/5.2/samba-1.9.18p5.dif
@@ -1,6 +1,6 @@
--- Makefile.Linux
-+++ Makefile.Linux 1998/04/27 07:49:10
-@@ -0,0 +1,34 @@
++++ Makefile.Linux 1998/05/06 15:58:42
+@@ -0,0 +1,35 @@
+#
+#
+# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux
@@ -29,6 +29,7 @@
+ chmod 755 `find $(doc) -type d`
+ install -m 644 smb.conf /etc/smb.conf
+ install rc /sbin/init.d/smb
++ install -m 755 source/mksmbpasswd.sh /usr/bin/mksmbpasswd.sh
+ ln -sf ../smb /sbin/init.d/rc2.d/S20smb
+ ln -sf ../smb /sbin/init.d/rc2.d/K20smb
+ ln -sf ../smb /sbin/init.d/rc3.d/S20smb
@@ -36,7 +37,7 @@
+ mkdir -p /var/adm/fillup-templates
+ cp rc.config.samba /var/adm/fillup-templates
--- doinst.sh
-+++ doinst.sh 1998/04/27 07:49:10
++++ doinst.sh 1998/05/06 15:54:52
@@ -0,0 +1,15 @@
+#
+# install/doinst.sh - to be done after extraction
@@ -54,7 +55,7 @@
+fi
+
--- rc
-+++ rc 1998/04/27 07:49:10
++++ rc 1998/05/06 15:54:52
@@ -0,0 +1,32 @@
+#! /bin/sh
+# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
@@ -89,7 +90,7 @@
+
+exit 0
--- rc.config.samba
-+++ rc.config.samba 1998/04/27 07:49:10
++++ rc.config.samba 1998/05/06 15:54:52
@@ -0,0 +1,5 @@
+#
+# start samba? ("yes" or "no")
@@ -97,7 +98,7 @@
+#
+START_SMB="no"
--- smb.conf
-+++ smb.conf 1998/04/27 07:49:10
++++ smb.conf 1998/05/06 15:54:52
@@ -0,0 +1,48 @@
+[global]
+ workgroup = arbeitsgruppe
@@ -148,7 +149,7 @@
+ create mode = 0700
+ directory = /tmp
--- source/Makefile
-+++ source/Makefile 1998/04/27 07:49:10
++++ source/Makefile 1998/05/06 15:54:52
@@ -5,11 +5,11 @@
###########################################################################
@@ -216,7 +217,7 @@
# Use this for Linux without shadow passwords or for any Linux
--- source/includes.h
-+++ source/includes.h 1998/04/27 07:49:10
++++ source/includes.h 1998/05/06 15:54:52
@@ -244,13 +244,6 @@
#define USE_SETFS
#endif
diff --git a/packaging/SuSE/5.2/samba.spec b/packaging/SuSE/5.2/samba.spec
index 6ae54b5066..637af1781e 100644
--- a/packaging/SuSE/5.2/samba.spec
+++ b/packaging/SuSE/5.2/samba.spec
@@ -60,6 +60,7 @@ fi
/sbin/init.d/rc3.d/S20smb
%config /sbin/init.d/smb
/usr/bin/addtosmbpass
+/usr/bin/mksmbpasswd.sh
/usr/bin/make_printerdef
/usr/bin/make_smbcodepage
/usr/bin/nmblookup
--
cgit
From 27e91f67f2e8d726946d9993bc5218b628a97847 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Fri, 8 May 1998 17:30:48 +0000
Subject: move things around to get rid of make clean warning messages (This
used to be commit d7975ef1e3f38e678ea20d3f86718b05f4fb1aff)
---
packaging/SGI/mkrelease.sh | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index 05c64b12fc..e42f76e207 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -4,12 +4,21 @@
# You may specify a OS major version number (4, 5, or 6) to specify which
# OS release to build. If no version number is given it will default to 6.
+doclean=""
+
if [ "$1" = "clean" ]; then
+ doclean=$1
+ shift
+fi
+
+echo Create SGI specific Makefile
+./makefile.pl $1 # create the Makefile for the specified OS ver
+
+if [ "$doclean" = "clean" ]; then
cd ../../source
- make clean
+ make -f ../packaging/SGI/Makefile clean
cd ../packaging/SGI
- shift
- rm -rf bins catman html codepages swat Makefile samba.idb samba.spec
+ rm -rf bins catman html codepages swat samba.idb samba.spec
fi
# create the catman versions of the manual pages
@@ -25,7 +34,6 @@ fi
# build the sources
#
echo Making binaries
-./makefile.pl $1 # create the Makefile for the specified OS ver
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat creating Makefile\n";
--
cgit
From 109654575b3c68db3c5cea4e7701ada622f3f8cb Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 14 May 1998 19:04:29 +0000
Subject: sync with 1.9.18 branch (clean up comments) (This used to be commit
b924e378f82bfca23b47261a5d0991635b2962ba)
---
packaging/SGI/smbprint | 40 +++++++++++++++++++++-------------------
1 file changed, 21 insertions(+), 19 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/smbprint b/packaging/SGI/smbprint
index 935f98bf92..0db8b6f7e3 100644
--- a/packaging/SGI/smbprint
+++ b/packaging/SGI/smbprint
@@ -5,46 +5,48 @@
# Version 1.0 13 January 1995
# modified from the original smbprint (bsd) script
#
-# this script is a System 5 printer interface script. It
-# uses the smbclient program to print the file to the specified smb-based
-# server and service.
+# this script is a System 5 printer interface script. It uses the smbclient
+# program to print the file to the specified smb-based server and service.
#
-# To add this to your lp system, copy this file into your samba directory
-# (the example here is /opt/samba), modify the server and service variables
-# and then execute the following command (as root)
+# To add this to your lp system, modify the server and service variables
+# and then execute the following command (as root):
#
-# lpadmin -punixprintername -v/dev/null -i/opt/samba/smbprint
+# lpadmin -punixprintername -v/dev/null -i/usr/samba/bin/smbprint
#
# where unixprintername is the name that the printer will be known as
# on your unix box.
#
# the script smbprint will be copied into your printer administration
-# directory (/usr/lib/lp or /etc/lp) as a new interface
-# (interface/unixprintername)
-# Then you have to enable unixprintername and accept unixprintername
+# directory (/usr/spool/lp) as a new interface (interface/unixprintername)
+# Then you have to execute the following commands:
#
-# This script will then be called by the lp service to print the files
+# enable unixprintername
+# accept unixprintername
+#
+# This script will then be called by the lp service to print the files.
# This script will have 6 or more parameters passed to it by the lp service.
# The first five will contain details of the print job, who queued it etc,
# while parameters 6 onwards are a list of files to print. We just
-# cat these at the samba client.
-#
-# 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.
+# cat these to the samba client.
#
# clear out the unwanted parameters
+
shift;shift;shift;shift;shift
+
# now the argument list is just the files to print
+# Set these to the server and service you wish to print to
+# In this example I have a PC called "admin" that has a printer
+# exported called "hplj2" with no password.
+#
server=admin
service=hplj2
password=""
+# NOTE: The line `echo translate' provides automatic CR/LF translation
+# when printing.
(
-# NOTE You may wish to add the line `echo translate' if you want automatic
-# CR/LF translation when printing.
- echo translate
+ echo translate
echo "print -"
cat $*
) | /usr/samba/bin/smbclient "\\\\$server\\$service" $password -N -P > /dev/null
--
cgit
From 05e6d0bcc19019c5cdba150ba84f911cf5f51381 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Fri, 7 Aug 1998 18:56:12 +0000
Subject: add startswat.sh to automate starting swat with inetd update make
scripts to use new autoconfigure setup (This used to be commit
737a58c1568fd76afe32a78895ee09b1543a595d)
---
packaging/SGI/idb.pl | 1 +
packaging/SGI/mkrelease.sh | 27 ++++++++++++++++-----------
packaging/SGI/startswat.sh | 21 +++++++++++++++++++++
3 files changed, 38 insertions(+), 11 deletions(-)
create mode 100755 packaging/SGI/startswat.sh
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 424c4ed130..a211322fa9 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -166,6 +166,7 @@ while (@sorted) {
}
}
+print IDB "f 0755 root sys usr/samba/startswat.sh packaging/SGI/startswat.sh samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/swat/ packaging/SGI/swat samba.sw.base\n";
while (@swatfiles) {
$nextfile = shift @swatfiles;
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index e42f76e207..6f4b600f41 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -11,12 +11,9 @@ if [ "$1" = "clean" ]; then
shift
fi
-echo Create SGI specific Makefile
-./makefile.pl $1 # create the Makefile for the specified OS ver
-
if [ "$doclean" = "clean" ]; then
cd ../../source
- make -f ../packaging/SGI/Makefile clean
+ make clean
cd ../packaging/SGI
rm -rf bins catman html codepages swat samba.idb samba.spec
fi
@@ -31,18 +28,26 @@ if [ $errstat -ne 0 ]; then
exit $errstat;
fi
-# build the sources
-#
-echo Making binaries
+cd ../../source
+echo Create SGI specific Makefile
+./configure --prefix=/usr --mandir=/usr/src/man
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat creating Makefile\n";
exit $errstat;
fi
-cd ../../source
-# make -f ../packaging/SGI/Makefile clean
-make -f ../packaging/SGI/Makefile all
+
+# build the sources
+#
+echo Making binaries
+
+if [ "$1" = "5" ]; then
+ make "CFLAGS=-O -g3" all
+else
+ make "CFLAGS=-O -g3 -n32" all
+fi
+
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat building sources\n";
@@ -73,5 +78,5 @@ if [ ! -d bins ]; then
fi
# do the packaging
-/usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all
+/usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -nostrip -all
diff --git a/packaging/SGI/startswat.sh b/packaging/SGI/startswat.sh
new file mode 100755
index 0000000000..c2fc9fb467
--- /dev/null
+++ b/packaging/SGI/startswat.sh
@@ -0,0 +1,21 @@
+#! /bin/sh
+#
+# add SWAT deamon to inetd.conf
+#
+cp /etc/inetd.conf /etc/inetd.O
+sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf
+echo '#SWAT services' >> /etc/inetd.conf
+echo swat stream tcp nowait root /usr/samba/bin/swat swat >> /etc/inetd.conf
+
+#
+# add SWAT service port to /etc/services
+#
+cp /etc/services /etc/services.O
+sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services
+echo '#SWAT services' >> /etc/services
+echo 'swat 901/tcp # SWAT' >> /etc/services
+
+#
+# restart inetd to start SWAT
+#
+/etc/killall -HUP inetd
--
cgit
From c0e709417f278f2a37c36655909ca0f2b1409232 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Fri, 7 Aug 1998 19:01:59 +0000
Subject: forgot to remove -nostrip option for packaging. Makes inst package
too big. (This used to be commit 8bf365a54a5aedbd1b2aa373aa6b26a9708d7156)
---
packaging/SGI/mkrelease.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index 6f4b600f41..f54723f7f6 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -78,5 +78,5 @@ if [ ! -d bins ]; then
fi
# do the packaging
-/usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -nostrip -all
+/usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all
--
cgit
From cd9bfc6310b7a3a792840525f52392c2de9db451 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 10 Aug 1998 22:36:11 +0000
Subject: update for new directory structure (This used to be commit
5fc8b4a1d5d973028396b667daaa119d21f0c0f0)
---
packaging/SGI/idb.pl | 35 ++++++++++++++++++-----------------
packaging/SGI/spec.pl | 2 +-
2 files changed, 19 insertions(+), 18 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index a211322fa9..5145047ec2 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -15,7 +15,7 @@ while () {
close IGNORES;
# get the names of all the binary files to be installed
-open(MAKEFILE,"Makefile") || die "Unable to open Makefile\n";
+open(MAKEFILE,"../../source/Makefile") || die "Unable to open Makefile\n";
@makefile = ;
@sprogs = grep(/^SPROGS /,@makefile);
@progs1 = grep(/^PROGS1 /,@makefile);
@@ -44,20 +44,20 @@ if (@codepage) {
@codepage[0] =~ s/^.*\=//;
chdir '../../source';
# if we have codepages we need to create them for the package
- system("chmod +x ./installcp.sh");
- system("./installcp.sh . ../packaging/SGI/codepages . @codepage[0]");
+ system("chmod +x ./script/installcp.sh");
+ system("./script/installcp.sh . ../packaging/SGI/codepages ./bin @codepage[0]");
chdir $curdir;
@codepage = sort split(' ',@codepage[0]);
}
# install the swat files
chdir '../../source';
-system("chmod +x ./installswat.sh");
-system("./installswat.sh ../packaging/SGI/swat ./");
+system("chmod +x ./script/installswat.sh");
+system("./script/installswat.sh ../packaging/SGI/swat ./");
system("cp ../swat/README ../packaging/SGI/swat");
chdir $curdir;
# add my local files to the list of binaries to install
-@bins = sort (@sprogs,@progs,@progs1,@scripts,("findsmb","sambalp","smbprint"));
+@bins = sort byfilename (@sprogs,@progs,@progs1,@scripts,("/findsmb","/sambalp","/smbprint"));
# get a complete list of all files in the tree
chdir '../../';
@@ -95,25 +95,26 @@ print IDB "f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base\n
print IDB "d 0755 root sys usr/samba/bin/ packaging/SGI samba.sw.base\n";
while(@bins) {
$nextfile = shift @bins;
+ ($filename = $nextfile) =~ s/^.*\///;;
if (index($nextfile,'$')) {
- if ($nextfile eq "smbpasswd") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ if ($filename eq "smbpasswd") {
+ print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base\n";
}
- elsif ($nextfile eq "findsmb") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ elsif ($filename eq "findsmb") {
+ print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
}
- elsif ($nextfile eq "swat") {
- print IDB "f 4755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ elsif ($filename eq "swat") {
+ print IDB "f 4755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base\n";
}
- elsif ($nextfile eq "sambalp") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ elsif ($filename eq "sambalp") {
+ print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
}
- elsif ($nextfile eq "smbprint") {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile packaging/SGI/$nextfile samba.sw.base\n";
+ elsif ($filename eq "smbprint") {
+ print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
}
else {
- print IDB "f 0755 root sys usr/samba/bin/$nextfile source/$nextfile samba.sw.base\n";
+ print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base\n";
}
}
}
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl
index 5557112df1..3bd643eef6 100755
--- a/packaging/SGI/spec.pl
+++ b/packaging/SGI/spec.pl
@@ -3,7 +3,7 @@
# This perl script generates the samba.spec file based on the version
# information in the version.h file in the source tree
-open (VER,'../../source/version.h') || die "Unable to open version.h\n";
+open (VER,'../../source/include/version.h') || die "Unable to open version.h\n";
($_ = ) =~ s/"//g;
close (VER);
@foo = split(' ');
--
cgit
From 392a9f7225ef78f6cda34dbfe22c63658d4fbff4 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Tue, 11 Aug 1998 17:34:00 +0000
Subject: strip out extra spaces from smbclient output that were added recently
(This used to be commit 5f5562ff601b69c3f7629fa57ddd621e201c5806)
---
packaging/SGI/findsmb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb
index 4cb3c80a42..c10efbf22a 100755
--- a/packaging/SGI/findsmb
+++ b/packaging/SGI/findsmb
@@ -95,7 +95,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found
@info = grep(/OS=/,@smb);
$_ = @info[0];
if ($_) { # we found response
- s/Domain=|OS=|Server=|\n//g; # strip out descriptions to make line shorter
+ s/.*Domain=|OS=|Server=|\n//g; # strip out descriptions to make line shorter
} else { # no OS= string in response (WIN95 client)
--
cgit
From c8f34dac393efcf4823736c9f804ac1412556cb9 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Fri, 21 Aug 1998 14:20:38 +0000
Subject: Adding first cut of the new Red Hat Linux packaging tools. Note: It
is intended to extend this so that the release process produces all the
packaging scripts, templates, etc. that may be needed. (This used to be
commit 6e196841c618044d33da45d3de5371004a58e4c6)
---
packaging/RedHat/README | 11 ++
packaging/RedHat/findsmb | 141 ++++++++++++++++++
packaging/RedHat/makefile-path.patch | 43 ++++++
packaging/RedHat/makerpms.sh.tmpl | 14 ++
packaging/RedHat/samba.log | 11 ++
packaging/RedHat/samba.pamd | 2 +
packaging/RedHat/samba2.spec.tmpl | 267 +++++++++++++++++++++++++++++++++
packaging/RedHat/smb.conf | 281 +++++++++++++++++++++++++++++++++++
packaging/RedHat/smb.init | 49 ++++++
packaging/RedHat/smbadduser | 73 +++++++++
packaging/RedHat/smbprint | 77 ++++++++++
packaging/RedHat/smbusers | 3 +
12 files changed, 972 insertions(+)
create mode 100644 packaging/RedHat/README
create mode 100755 packaging/RedHat/findsmb
create mode 100644 packaging/RedHat/makefile-path.patch
create mode 100644 packaging/RedHat/makerpms.sh.tmpl
create mode 100644 packaging/RedHat/samba.log
create mode 100644 packaging/RedHat/samba.pamd
create mode 100644 packaging/RedHat/samba2.spec.tmpl
create mode 100644 packaging/RedHat/smb.conf
create mode 100755 packaging/RedHat/smb.init
create mode 100755 packaging/RedHat/smbadduser
create mode 100755 packaging/RedHat/smbprint
create mode 100644 packaging/RedHat/smbusers
(limited to 'packaging')
diff --git a/packaging/RedHat/README b/packaging/RedHat/README
new file mode 100644
index 0000000000..3b85f5e0a7
--- /dev/null
+++ b/packaging/RedHat/README
@@ -0,0 +1,11 @@
+Preparation Date: Fri Aug 21, 1998
+Preparer: John H Terpstra
+
+Instructions: Preparing Samba Packages for Red Hat Linux 5.X
+===============================================================
+
+We provide support only for current versions of Red Hat Linux.
+
+To produce the RPMS simply type:
+ sh makerpms.sh
+
diff --git a/packaging/RedHat/findsmb b/packaging/RedHat/findsmb
new file mode 100755
index 0000000000..986c248177
--- /dev/null
+++ b/packaging/RedHat/findsmb
@@ -0,0 +1,141 @@
+#!/usr/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/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>.*$//,);
+
+# 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 = ;
+ 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 = ;
+ 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> - /,@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/RedHat/makefile-path.patch b/packaging/RedHat/makefile-path.patch
new file mode 100644
index 0000000000..b9f5984a78
--- /dev/null
+++ b/packaging/RedHat/makefile-path.patch
@@ -0,0 +1,43 @@
+--- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
++++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
+@@ -23,11 +23,11 @@
+ .SUFFIXES:
+ .SUFFIXES: .c .o
+
+-BASEDIR=$(prefix)/samba
++BASEDIR= /usr
+ BINDIR = $(BASEDIR)/bin
+-SBINDIR = $(BASEDIR)/bin
+-LIBDIR = $(BASEDIR)/lib
+-VARDIR = $(BASEDIR)/var
++SBINDIR = $(BASEDIR)/sbin
++LIBDIR = /etc
++VARDIR = /var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+@@ -36,19 +36,19 @@
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+-SMBLOGFILE = $(VARDIR)/log.smb
+-NMBLOGFILE = $(VARDIR)/log.nmb
++SMBLOGFILE = $(VARDIR)/log/samba/log.smb
++NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ SMB_PASSWD = $(BINDIR)/smbpasswd
+-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
++SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
+
+ # This is where SWAT images and help files go
+-SWATDIR = $(BASEDIR)/swat
++SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+-LOCKDIR = $(VARDIR)/locks
++LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl
new file mode 100644
index 0000000000..fa69370dff
--- /dev/null
+++ b/packaging/RedHat/makerpms.sh.tmpl
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Copyright (C) John H Terpstra 1998
+#
+RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
+SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
+SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
+
+( cd ../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
+cp -a *.spec $SPECDIR
+cp -a *.patch smb.* samba.log $SRCDIR
+cd $SRCDIR
+chown -R root.root samba-PVERSION
+cd $SPECDIR
+rpm -ba -v samba2.spec
diff --git a/packaging/RedHat/samba.log b/packaging/RedHat/samba.log
new file mode 100644
index 0000000000..c5f2a5b45b
--- /dev/null
+++ b/packaging/RedHat/samba.log
@@ -0,0 +1,11 @@
+/var/log/samba/log.nmb {
+ postrotate
+ /usr/bin/killall -HUP nmbd
+ endrotate
+}
+
+/var/log/samba/log.smb {
+ postrotate
+ /usr/bin/killall -HUP smbd
+ endrotate
+}
diff --git a/packaging/RedHat/samba.pamd b/packaging/RedHat/samba.pamd
new file mode 100644
index 0000000000..f38e70184a
--- /dev/null
+++ b/packaging/RedHat/samba.pamd
@@ -0,0 +1,2 @@
+auth required /lib/security/pam_pwdb.so nullok shadow
+account required /lib/security/pam_pwdb.so
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
new file mode 100644
index 0000000000..8ab7a01643
--- /dev/null
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -0,0 +1,267 @@
+Summary: Samba SMB client and server
+Name: samba
+Version: PVERSION
+Release: PRELEASE
+Copyright: GNU GPL version 2
+Group: Networking
+Source: ftp://samba.anu.edu.au/pub/samba/samba-PVERSION.tar.gz
+Patch: makefile-path.patch
+Packager: John H Terpstra [Samba-Team]
+Requires: pam >= 0.64
+BuildRoot: /tmp/samba
+
+%description
+Samba provides an SMB server which can be used to provide
+network services to SMB (sometimes called "Lan Manager")
+clients, including various versions of MS Windows, OS/2,
+and other Linux machines. Samba also provides some SMB
+clients, which complement the built-in SMB filesystem
+in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
+and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
+protocol.
+
+This a work in progress release only. This is NOT a production
+stable release and it is VERY VERY pre-alpha.
+
+Samba-2 features an almost working NT Domain Control
+capability and includes the new SWAT (Samba Web Administration
+Tool) that allows samba's smb.conf file to be remotely managed
+using your favourite web browser. For the time being this is
+being enabled on TCP port 901 via inetd.
+
+Please refer to the WHATSNEW.txt document for fixup information.
+This binary release includes encrypted password support.
+Please read the smb.conf file and ENCRYPTION.txt in the
+docs directory for implementation details.
+
+NOTE: Red Hat Linux 5.X Uses PAM which has integrated support
+for Shadow passwords. Do NOT recompile with the SHADOW_PWD option
+enabled. Red Hat Linux has built in support for quotas in PAM.
+
+%changelog
+* Fri Aug 21 1998 John H Terpstra
+ - Updated for Samba version 2.0 building
+
+* Sat Jul 4 1998 John H Terpstra
+ - fixed codepage preservation during update via -Uvh
+
+* Sun Apr 26 1998 John H Terpstra
+ - Tidy up for early alpha releases
+ - added findsmb from SGI packaging
+
+* Thu Apr 9 1998 John H Terpstra
+ - Updated spec file
+ - Included new codepage.936
+
+* Sat Mar 20 1998 John H Terpstra
+ - Added swat facility
+
+* Sat Jan 24 1998 John H Terpstra
+ - Many optimisations (some suggested by Manoj Kasichainula
+ - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
+ - Compounded make line
+ - Updated smb.init restart mechanism
+ - Use compound mkdir -p line instead of individual calls to mkdir
+ - Fixed smb.conf file path for log files
+ - Fixed smb.conf file path for incoming smb print spool directory
+ - Added a number of options to smb.conf file
+ - Added smbadduser command (missed from all previous RPMs) - Doooh!
+ - Added smbuser file and smb.conf file updates for username map
+
+%prep
+%setup
+%patch -p1
+
+%build
+cd source
+./configure
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/etc/codepages/src
+mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}
+mkdir -p $RPM_BUILD_ROOT/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc5.d,rc6.d}
+mkdir -p $RPM_BUILD_ROOT/home/samba
+mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin}
+mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help}
+mkdir -p $RPM_BUILD_ROOT/usr/man/{man1,man5,man7,man8}
+mkdir -p $RPM_BUILD_ROOT/var/lock/samba
+mkdir -p $RPM_BUILD_ROOT/var/log/samba
+mkdir -p $RPM_BUILD_ROOT/var/spool/samba
+
+# Install standard binary files
+for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns \
+ make_smbcodepage make_printerdef
+do
+install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin
+done
+for i in addtosmbpass mksmbpasswd.sh smbtar
+do
+install -m755 source/script/$i $RPM_BUILD_ROOT/usr/bin
+done
+
+# Install secure binary files
+for i in smbd nmbd swat
+do
+install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
+done
+
+# Install level 1 man pages
+for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1
+do
+install -m644 docs/$i $RPM_BUILD_ROOT/usr/man/man1
+done
+
+# Install codepage source files
+for i in 437 737 850 852 861 866 932 936 949 950
+do
+install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src
+done
+
+# Install SWAT helper files
+for i in swat/help/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
+done
+for i in swat/images/*.{jpg,gif}
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
+done
+
+# Install the miscellany
+install -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
+install -m644 docs/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/samba.7 $RPM_BUILD_ROOT/usr/man/man7
+install -m644 docs/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/smb.conf
+install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/smbusers
+install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/usr/sbin/samba
+install -m644 packaging/RedHat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
+install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
+echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add smb
+
+# Build codepage load files
+for i in 437 737 850 852 861 866 932 936 949 950
+do
+/usr/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i
+done
+
+# Add swat entry to /etc/services if not already there
+if !( grep ^[:space:]*swat /etc/services > /dev/null ) then
+ echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services
+fi
+
+# Add swat entry to /etc/inetd.conf if needed
+if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
+ echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
+killall -1 inetd
+fi
+
+
+%preun
+/sbin/chkconfig --del smb
+
+%postun
+if [ -x /etc/pam.d/samba ]; then
+ rm -f /etc/pam.d/samba
+fi
+if [ -e /etc/codepages ]; then
+ rm -rf /etc/codepages
+fi
+if [ -e /var/log/samba ]; then
+ rm -rf /var/log/samba
+fi
+if [ -e /var/lock/samba ]; then
+ rm -rf /var/lock/samba
+fi
+# Remove swat entries from /etc/inetd.conf and /etc/services
+cd /etc
+tmpfile=/etc/tmp.$$
+sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
+mv $tmpfile inetd.conf
+sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
+mv $tmpfile services
+
+%files
+%doc README COPYING Manifest Read-Manifest-Now
+%doc WHATSNEW.txt Roadmap
+%doc docs
+%doc swat/README
+%doc examples
+%attr(-,root,root) /usr/sbin/smbd
+%attr(-,root,root) /usr/sbin/nmbd
+%attr(-,root,root) /usr/sbin/swat
+%attr(755,root,root) /usr/sbin/samba
+%attr(-,root,root) /usr/bin/addtosmbpass
+%attr(-,root,root) /usr/bin/mksmbpasswd.sh
+%attr(-,root,root) /usr/bin/smbclient
+%attr(-,root,root) /usr/bin/testparm
+%attr(-,root,root) /usr/bin/testprns
+%attr(-,root,root) /usr/bin/smbrun
+%attr(-,root,root) /usr/bin/findsmb
+%attr(-,root,root) /usr/bin/smbstatus
+%attr(-,root,root) /usr/bin/nmblookup
+%attr(-,root,root) /usr/bin/make_smbcodepage
+%attr(-,root,root) /usr/bin/make_printerdef
+%attr(-,root,root) /usr/bin/smbpasswd
+%attr(-,root,root) /usr/bin/smbtar
+%attr(-,root,root) /usr/bin/smbprint
+%attr(-,root,root) /usr/bin/smbadduser
+%attr(-,root,root) /usr/share/swat/help/parameters.html
+%attr(-,root,root) /usr/share/swat/help/welcome.html
+%attr(-,root,root) /usr/share/swat/images/background.jpg
+%attr(-,root,root) /usr/share/swat/images/background.gif
+%attr(-,root,root) /usr/share/swat/images/globals.gif
+%attr(-,root,root) /usr/share/swat/images/home.gif
+%attr(-,root,root) /usr/share/swat/images/printers.gif
+%attr(-,root,root) /usr/share/swat/images/shares.gif
+%attr(-,root,root) /usr/share/swat/images/status.gif
+%attr(-,root,root) /usr/share/swat/images/viewconfig.gif
+%attr(-,root,root) %config /etc/lmhosts
+%attr(-,root,root) %config /etc/smb.conf
+%attr(-,root,root) %config /etc/smbusers
+%attr(-,root,root) /etc/rc.d/init.d/smb
+%attr(-,root,root) /etc/logrotate.d/samba
+%attr(-,root,root) /etc/pam.d/samba
+%attr(-,root,root) /etc/codepages/src/codepage_def.437
+%attr(-,root,root) /etc/codepages/src/codepage_def.737
+%attr(-,root,root) /etc/codepages/src/codepage_def.850
+%attr(-,root,root) /etc/codepages/src/codepage_def.852
+%attr(-,root,root) /etc/codepages/src/codepage_def.861
+%attr(-,root,root) /etc/codepages/src/codepage_def.866
+%attr(-,root,root) /etc/codepages/src/codepage_def.932
+%attr(-,root,root) /etc/codepages/src/codepage_def.936
+%attr(-,root,root) /etc/codepages/src/codepage_def.949
+%attr(-,root,root) /etc/codepages/src/codepage_def.950
+%attr(-,root,root) /usr/man/man1/smbstatus.1
+%attr(-,root,root) /usr/man/man1/smbclient.1
+%attr(-,root,root) /usr/man/man1/make_smbcodepage.1
+%attr(-,root,root) /usr/man/man1/smbrun.1
+%attr(-,root,root) /usr/man/man1/smbtar.1
+%attr(-,root,root) /usr/man/man1/testparm.1
+%attr(-,root,root) /usr/man/man1/testprns.1
+%attr(-,root,root) /usr/man/man5/smb.conf.5
+%attr(-,root,root) /usr/man/man7/samba.7
+%attr(-,root,root) /usr/man/man8/smbd.8
+%attr(-,root,root) /usr/man/man8/nmbd.8
+%attr(-,root,root) /usr/man/man8/smbpasswd.8
+%attr(-,root,nobody) %dir /home/samba
+%attr(-,root,root) %dir /etc/codepages
+%attr(-,root,root) %dir /etc/codepages/src
+%attr(-,root,root) %dir /var/lock/samba
+%attr(-,root,root) %dir /var/log/samba
+%attr(777,root,root) %dir /var/spool/samba
diff --git a/packaging/RedHat/smb.conf b/packaging/RedHat/smb.conf
new file mode 100644
index 0000000000..1e5b920b11
--- /dev/null
+++ b/packaging/RedHat/smb.conf
@@ -0,0 +1,281 @@
+# 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 = /etc/printcap
+ 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 = bsd
+
+# 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 = /var/log/samba/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 =
+
+# 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
+
+# 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
+
+# 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 =
+
+# 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/RedHat/smb.init b/packaging/RedHat/smb.init
new file mode 100755
index 0000000000..6529977d23
--- /dev/null
+++ b/packaging/RedHat/smb.init
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# chkconfig: 345 91 35
+# description: Starts and stops the Samba smbd and nmbd daemons \
+# used to provide SMB network services.
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+[ ${NETWORKING} = "no" ] && exit 0
+
+# Check that smb.conf exists.
+[ -f /etc/smb.conf ] || exit 0
+
+# See how we were called.
+case "$1" in
+ start)
+ echo -n "Starting SMB services: "
+ daemon smbd -D
+ daemon nmbd -D
+ echo
+ touch /var/lock/subsys/smb
+ ;;
+ stop)
+ echo -n "Shutting down SMB services: "
+ killproc smbd
+ killproc nmbd
+ rm -f /var/lock/subsys/smb
+ echo ""
+ ;;
+ status)
+ status smbd
+ status nmbd
+ ;;
+ restart)
+ echo -n "Restarting SMB services: "
+ $0 stop
+ $0 start
+ echo "done."
+ ;;
+ *)
+ echo "Usage: smb {start|stop|restart|status}"
+ exit 1
+esac
+
diff --git a/packaging/RedHat/smbadduser b/packaging/RedHat/smbadduser
new file mode 100755
index 0000000000..2f38bf28f1
--- /dev/null
+++ b/packaging/RedHat/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/RedHat/smbprint b/packaging/RedHat/smbprint
new file mode 100755
index 0000000000..51b15706ad
--- /dev/null
+++ b/packaging/RedHat/smbprint
@@ -0,0 +1,77 @@
+#!/bin/sh -x
+
+# 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/RedHat/smbusers b/packaging/RedHat/smbusers
new file mode 100644
index 0000000000..ae3389f53f
--- /dev/null
+++ b/packaging/RedHat/smbusers
@@ -0,0 +1,3 @@
+# Unix_name = SMB_name1 SMB_name2 ...
+root = administrator admin
+nobody = guest pcguest smbguest
--
cgit
From 03d8da6c83f16efce2f3654f86531c7356e515c1 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Sun, 6 Sep 1998 05:50:18 +0000
Subject: Adding header and footer html files for SWAT, adding samba.gif file
too. (This used to be commit c9a9fd131ba65cfde3a20d0ff5ff690064ef6c99)
---
packaging/RedHat/samba2.spec.tmpl | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 8ab7a01643..cc6e8bc33c 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -85,7 +85,7 @@ mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc5.d,rc6.d}
mkdir -p $RPM_BUILD_ROOT/home/samba
mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin}
-mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help}
+mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help,include}
mkdir -p $RPM_BUILD_ROOT/usr/man/{man1,man5,man7,man8}
mkdir -p $RPM_BUILD_ROOT/var/lock/samba
mkdir -p $RPM_BUILD_ROOT/var/log/samba
@@ -129,6 +129,10 @@ for i in swat/images/*.{jpg,gif}
do
install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
done
+for i in swat/include/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include
+done
# Install the miscellany
install -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
@@ -229,8 +233,11 @@ mv $tmpfile services
%attr(-,root,root) /usr/share/swat/images/home.gif
%attr(-,root,root) /usr/share/swat/images/printers.gif
%attr(-,root,root) /usr/share/swat/images/shares.gif
+%attr(-,root,root) /usr/share/swat/images/samba.gif
%attr(-,root,root) /usr/share/swat/images/status.gif
%attr(-,root,root) /usr/share/swat/images/viewconfig.gif
+%attr(-,root,root) /usr/share/swat/include/header.html
+%attr(-,root,root) /usr/share/swat/include/footer.html
%attr(-,root,root) %config /etc/lmhosts
%attr(-,root,root) %config /etc/smb.conf
%attr(-,root,root) %config /etc/smbusers
--
cgit
From d455d42234ebe28f00ae360627fcb2a2f88787e0 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 28 Sep 1998 23:12:12 +0000
Subject: idb.pl add new argument to call to installcp.sh mkrelease.sh use
distclean target when cleaning before making packages (This used to be commit
2c6bbc2da72af4508aa8c49d003f211da5cbe5ae)
---
packaging/SGI/idb.pl | 2 +-
packaging/SGI/mkrelease.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 5145047ec2..f071e1809b 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -45,7 +45,7 @@ if (@codepage) {
chdir '../../source';
# if we have codepages we need to create them for the package
system("chmod +x ./script/installcp.sh");
- system("./script/installcp.sh . ../packaging/SGI/codepages ./bin @codepage[0]");
+ system("./script/installcp.sh . . ../packaging/SGI/codepages ./bin @codepage[0]");
chdir $curdir;
@codepage = sort split(' ',@codepage[0]);
}
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index f54723f7f6..d298095ae9 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -13,7 +13,7 @@ fi
if [ "$doclean" = "clean" ]; then
cd ../../source
- make clean
+ make distclean
cd ../packaging/SGI
rm -rf bins catman html codepages swat samba.idb samba.spec
fi
--
cgit
From 94024edf04775cd392b410a6679d93bef18da1c2 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Mon, 5 Oct 1998 06:55:53 +0000
Subject: Added rpcclient and smbwrapper stuff. (This used to be commit
1638930839f295077778dc0af9b27343d452e959)
---
packaging/RedHat/samba2.spec.tmpl | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
(limited to 'packaging')
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index cc6e8bc33c..d57cf449d6 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -39,6 +39,10 @@ for Shadow passwords. Do NOT recompile with the SHADOW_PWD option
enabled. Red Hat Linux has built in support for quotas in PAM.
%changelog
+* Mon Oct 05 1998 John H Terpstra
+ - Added rpcclient to binaries list
+ - Added smbwrapper stuff
+
* Fri Aug 21 1998 John H Terpstra
- Updated for Samba version 2.0 building
@@ -71,11 +75,12 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
%prep
%setup
%patch -p1
+mv source/smbwrapper/README source/smbwrapper/README.smbsh
%build
cd source
./configure
-make
+make all smbwrapper
%install
rm -rf $RPM_BUILD_ROOT
@@ -93,7 +98,7 @@ mkdir -p $RPM_BUILD_ROOT/var/spool/samba
# Install standard binary files
for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns \
- make_smbcodepage make_printerdef
+ make_smbcodepage make_printerdef rpcclient
do
install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin
done
@@ -108,6 +113,10 @@ do
install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
done
+# Install smbwrapper stuff
+install -m755 -s source/smbwrapper/smbsh $RPM_BUILD_ROOT/usr/bin
+install -m755 -s source/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT/usr/bin
+
# Install level 1 man pages
for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1
do
@@ -202,17 +211,18 @@ mv $tmpfile services
%files
%doc README COPYING Manifest Read-Manifest-Now
-%doc WHATSNEW.txt Roadmap
+%doc WHATSNEW.txt Roadmap smbwrapper/README.smbsh
%doc docs
%doc swat/README
%doc examples
%attr(-,root,root) /usr/sbin/smbd
%attr(-,root,root) /usr/sbin/nmbd
%attr(-,root,root) /usr/sbin/swat
-%attr(755,root,root) /usr/sbin/samba
+%attr(0755,root,root) /usr/sbin/samba
%attr(-,root,root) /usr/bin/addtosmbpass
%attr(-,root,root) /usr/bin/mksmbpasswd.sh
%attr(-,root,root) /usr/bin/smbclient
+%attr(-,root,root) /usr/bin/rpcclient
%attr(-,root,root) /usr/bin/testparm
%attr(-,root,root) /usr/bin/testprns
%attr(-,root,root) /usr/bin/smbrun
@@ -225,6 +235,8 @@ mv $tmpfile services
%attr(-,root,root) /usr/bin/smbtar
%attr(-,root,root) /usr/bin/smbprint
%attr(-,root,root) /usr/bin/smbadduser
+%attr(0755,root,root) /usr/bin/smbsh
+%attr(0755,root,root) /usr/bin/smbwrapper.so
%attr(-,root,root) /usr/share/swat/help/parameters.html
%attr(-,root,root) /usr/share/swat/help/welcome.html
%attr(-,root,root) /usr/share/swat/images/background.jpg
--
cgit
From 4980fcf425ae40db097afe144443e025eba190e7 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Mon, 5 Oct 1998 12:58:07 +0000
Subject: More yuck changes for Red Hat RPM production. (This used to be commit
aa38a03961442e70e453f65c60f717765b4bea6f)
---
packaging/RedHat/samba2.spec.tmpl | 2 ++
packaging/RedHat/smbw.patch | 10 ++++++++++
2 files changed, 12 insertions(+)
create mode 100644 packaging/RedHat/smbw.patch
(limited to 'packaging')
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index d57cf449d6..4d65fe13d3 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -6,6 +6,7 @@ Copyright: GNU GPL version 2
Group: Networking
Source: ftp://samba.anu.edu.au/pub/samba/samba-PVERSION.tar.gz
Patch: makefile-path.patch
+Patch1: smbw.patch
Packager: John H Terpstra [Samba-Team]
Requires: pam >= 0.64
BuildRoot: /tmp/samba
@@ -75,6 +76,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
%prep
%setup
%patch -p1
+%patch1 -p1
mv source/smbwrapper/README source/smbwrapper/README.smbsh
%build
diff --git a/packaging/RedHat/smbw.patch b/packaging/RedHat/smbw.patch
new file mode 100644
index 0000000000..0abbfdf73f
--- /dev/null
+++ b/packaging/RedHat/smbw.patch
@@ -0,0 +1,10 @@
+--- samba-2.0.0/source/smbwrapper/smbsh.in.orig Mon Oct 5 22:37:01 1998
++++ samba-2.0.0/source/smbwrapper/smbsh.in Mon Oct 5 22:37:51 1998
+@@ -1,6 +1,6 @@
+ #! /bin/sh
+
+-SMBW_LIBDIR=${SMBW_LIBDIR-@builddir@/smbwrapper}
++SMBW_LIBDIR=${SMBW_LIBDIR-/usr/bin}
+
+ if [ ! -f ${SMBW_LIBDIR}/smbwrapper.so ]; then
+ echo You need to set LIBDIR in smbsh
--
cgit
From fa03e9984257bad10b50fc12e396b277b9586ac6 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 8 Oct 1998 20:43:29 +0000
Subject: add missing targets that were added to makefile (This used to be
commit 993c49a984fa2ae219f675543a1d0b6a7fbe043a)
---
packaging/SGI/idb.pl | 12 +++++++++++-
packaging/SGI/smbpasswd | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index f071e1809b..4fb0d6bb9a 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -19,6 +19,8 @@ open(MAKEFILE,"../../source/Makefile") || die "Unable to open Makefile\n";
@makefile = ;
@sprogs = grep(/^SPROGS /,@makefile);
@progs1 = grep(/^PROGS1 /,@makefile);
+@progs2 = grep(/^PROGS2 /,@makefile);
+@mprogs = grep(/^MPROGS /,@makefile);
@progs = grep(/^PROGS /,@makefile);
@scripts = grep(/^SCRIPTS /,@makefile);
@codepage = grep(/^CODEPAGELIST/,@makefile);
@@ -32,10 +34,18 @@ if (@progs) {
@progs[0] =~ s/^.*\=//;
@progs = split(' ',@progs[0]);
}
+if (@mprogs) {
+ @mprogs[0] =~ s/^.*\=//;
+ @mprogs = split(' ',@mprogs[0]);
+}
if (@progs1) {
@progs1[0] =~ s/^.*\=//;
@progs1 = split(' ',@progs1[0]);
}
+if (@progs2) {
+ @progs2[0] =~ s/^.*\=//;
+ @progs2 = split(' ',@progs2[0]);
+}
if (@scripts) {
@scripts[0] =~ s/^.*\=//;
@scripts = split(' ',@scripts[0]);
@@ -57,7 +67,7 @@ system("cp ../swat/README ../packaging/SGI/swat");
chdir $curdir;
# add my local files to the list of binaries to install
-@bins = sort byfilename (@sprogs,@progs,@progs1,@scripts,("/findsmb","/sambalp","/smbprint"));
+@bins = sort byfilename (@sprogs,@progs,@progs1,@progs2,@mprogs,@scripts,("/findsmb","/sambalp","/smbprint"));
# get a complete list of all files in the tree
chdir '../../';
diff --git a/packaging/SGI/smbpasswd b/packaging/SGI/smbpasswd
index 79c834dc35..8e7ab34cad 100644
--- a/packaging/SGI/smbpasswd
+++ b/packaging/SGI/smbpasswd
@@ -1 +1 @@
-username:uid:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:Long name:user home dir:user shell
+# Samba SMB password file
--
cgit
From a0991ee87bdfdf66850114bc04cdd577ef87d000 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Fri, 23 Oct 1998 14:21:55 +0000
Subject: Updated paths. (This used to be commit
21e56ce707963507fe301b4feaad62964196aa46)
---
packaging/RedHat/samba2.spec.tmpl | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
(limited to 'packaging')
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 4d65fe13d3..620e109f67 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -100,7 +100,7 @@ mkdir -p $RPM_BUILD_ROOT/var/spool/samba
# Install standard binary files
for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns \
- make_smbcodepage make_printerdef rpcclient
+ make_smbcodepage make_printerdef rpcclient smbsh smbwrapper.so
do
install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin
done
@@ -115,10 +115,6 @@ do
install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
done
-# Install smbwrapper stuff
-install -m755 -s source/smbwrapper/smbsh $RPM_BUILD_ROOT/usr/bin
-install -m755 -s source/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT/usr/bin
-
# Install level 1 man pages
for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1
do
--
cgit
From 9d8c5c3f760b7e3f9b6bf1a63073de138809735a Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Sun, 25 Oct 1998 09:08:22 +0000
Subject: Packaging mods - make sure we always keep our config files and NEVER
mv them to *.rpmsave (This used to be commit
af36d39434eaf39817f9916be79dcf2817897ee2)
---
packaging/RedHat/samba2.spec.tmpl | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
(limited to 'packaging')
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 620e109f67..53f955ed1c 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -21,9 +21,6 @@ in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
protocol.
-This a work in progress release only. This is NOT a production
-stable release and it is VERY VERY pre-alpha.
-
Samba-2 features an almost working NT Domain Control
capability and includes the new SWAT (Samba Web Administration
Tool) that allows samba's smb.conf file to be remotely managed
@@ -40,6 +37,13 @@ for Shadow passwords. Do NOT recompile with the SHADOW_PWD option
enabled. Red Hat Linux has built in support for quotas in PAM.
%changelog
+* Sun Oct 25 1998 John H Terpstra
+ - Added parameters to /config to ensure smb.conf, lmhosts,
+ and smbusers never gets over-written.
+
+* Sat Oct 24 1998 John H Terpstra
+ - removed README.smbsh file from docs area
+
* Mon Oct 05 1998 John H Terpstra
- Added rpcclient to binaries list
- Added smbwrapper stuff
@@ -77,7 +81,6 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
%setup
%patch -p1
%patch1 -p1
-mv source/smbwrapper/README source/smbwrapper/README.smbsh
%build
cd source
@@ -209,7 +212,7 @@ mv $tmpfile services
%files
%doc README COPYING Manifest Read-Manifest-Now
-%doc WHATSNEW.txt Roadmap smbwrapper/README.smbsh
+%doc WHATSNEW.txt Roadmap
%doc docs
%doc swat/README
%doc examples
@@ -248,9 +251,9 @@ mv $tmpfile services
%attr(-,root,root) /usr/share/swat/images/viewconfig.gif
%attr(-,root,root) /usr/share/swat/include/header.html
%attr(-,root,root) /usr/share/swat/include/footer.html
-%attr(-,root,root) %config /etc/lmhosts
-%attr(-,root,root) %config /etc/smb.conf
-%attr(-,root,root) %config /etc/smbusers
+%attr(-,root,root) %config(noreplace) /etc/lmhosts
+%attr(-,root,root) %config(noreplace) /etc/smb.conf
+%attr(-,root,root) %config(noreplace) /etc/smbusers
%attr(-,root,root) /etc/rc.d/init.d/smb
%attr(-,root,root) /etc/logrotate.d/samba
%attr(-,root,root) /etc/pam.d/samba
--
cgit
From ec73178649c03695a07c0c57292aa802e9ebd61a Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Sun, 25 Oct 1998 09:12:42 +0000
Subject: Welcome to Pacific HiTech TurboLinux support. (This used to be commit
230c42ab64aafb69313d5a8f9773bbd2bc6d47f9)
---
packaging/PHT/TurboLinux/README | 11 +
packaging/PHT/TurboLinux/findsmb | 141 +++++++++++++
packaging/PHT/TurboLinux/makefile-path.patch | 43 ++++
packaging/PHT/TurboLinux/makerpms.sh.tmpl | 14 ++
packaging/PHT/TurboLinux/samba.log | 11 +
packaging/PHT/TurboLinux/samba.pamd | 2 +
packaging/PHT/TurboLinux/samba2.spec.tmpl | 287 +++++++++++++++++++++++++++
packaging/PHT/TurboLinux/smb.conf | 281 ++++++++++++++++++++++++++
packaging/PHT/TurboLinux/smb.init | 49 +++++
packaging/PHT/TurboLinux/smbadduser | 73 +++++++
packaging/PHT/TurboLinux/smbprint | 77 +++++++
packaging/PHT/TurboLinux/smbusers | 3 +
packaging/PHT/TurboLinux/smbw.patch | 10 +
13 files changed, 1002 insertions(+)
create mode 100644 packaging/PHT/TurboLinux/README
create mode 100755 packaging/PHT/TurboLinux/findsmb
create mode 100644 packaging/PHT/TurboLinux/makefile-path.patch
create mode 100644 packaging/PHT/TurboLinux/makerpms.sh.tmpl
create mode 100644 packaging/PHT/TurboLinux/samba.log
create mode 100644 packaging/PHT/TurboLinux/samba.pamd
create mode 100644 packaging/PHT/TurboLinux/samba2.spec.tmpl
create mode 100644 packaging/PHT/TurboLinux/smb.conf
create mode 100755 packaging/PHT/TurboLinux/smb.init
create mode 100755 packaging/PHT/TurboLinux/smbadduser
create mode 100755 packaging/PHT/TurboLinux/smbprint
create mode 100644 packaging/PHT/TurboLinux/smbusers
create mode 100644 packaging/PHT/TurboLinux/smbw.patch
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/README b/packaging/PHT/TurboLinux/README
new file mode 100644
index 0000000000..5ed19ee8d5
--- /dev/null
+++ b/packaging/PHT/TurboLinux/README
@@ -0,0 +1,11 @@
+Preparation Date: October 25, 1998
+Preparer: John H Terpstra
+
+Instructions: Preparing Samba Packages for TurboLinux
+===============================================================
+
+We provide support only for current versions of TurboLinux.
+
+To produce the RPMS simply type:
+ sh makerpms.sh
+
diff --git a/packaging/PHT/TurboLinux/findsmb b/packaging/PHT/TurboLinux/findsmb
new file mode 100755
index 0000000000..986c248177
--- /dev/null
+++ b/packaging/PHT/TurboLinux/findsmb
@@ -0,0 +1,141 @@
+#!/usr/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/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>.*$//,);
+
+# 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 = ;
+ 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 = ;
+ 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> - /,@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/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch
new file mode 100644
index 0000000000..b9f5984a78
--- /dev/null
+++ b/packaging/PHT/TurboLinux/makefile-path.patch
@@ -0,0 +1,43 @@
+--- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
++++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
+@@ -23,11 +23,11 @@
+ .SUFFIXES:
+ .SUFFIXES: .c .o
+
+-BASEDIR=$(prefix)/samba
++BASEDIR= /usr
+ BINDIR = $(BASEDIR)/bin
+-SBINDIR = $(BASEDIR)/bin
+-LIBDIR = $(BASEDIR)/lib
+-VARDIR = $(BASEDIR)/var
++SBINDIR = $(BASEDIR)/sbin
++LIBDIR = /etc
++VARDIR = /var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+@@ -36,19 +36,19 @@
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+-SMBLOGFILE = $(VARDIR)/log.smb
+-NMBLOGFILE = $(VARDIR)/log.nmb
++SMBLOGFILE = $(VARDIR)/log/samba/log.smb
++NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ SMB_PASSWD = $(BINDIR)/smbpasswd
+-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
++SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
+
+ # This is where SWAT images and help files go
+-SWATDIR = $(BASEDIR)/swat
++SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+-LOCKDIR = $(VARDIR)/locks
++LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
diff --git a/packaging/PHT/TurboLinux/makerpms.sh.tmpl b/packaging/PHT/TurboLinux/makerpms.sh.tmpl
new file mode 100644
index 0000000000..fa69370dff
--- /dev/null
+++ b/packaging/PHT/TurboLinux/makerpms.sh.tmpl
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Copyright (C) John H Terpstra 1998
+#
+RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
+SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
+SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
+
+( cd ../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
+cp -a *.spec $SPECDIR
+cp -a *.patch smb.* samba.log $SRCDIR
+cd $SRCDIR
+chown -R root.root samba-PVERSION
+cd $SPECDIR
+rpm -ba -v samba2.spec
diff --git a/packaging/PHT/TurboLinux/samba.log b/packaging/PHT/TurboLinux/samba.log
new file mode 100644
index 0000000000..c5f2a5b45b
--- /dev/null
+++ b/packaging/PHT/TurboLinux/samba.log
@@ -0,0 +1,11 @@
+/var/log/samba/log.nmb {
+ postrotate
+ /usr/bin/killall -HUP nmbd
+ endrotate
+}
+
+/var/log/samba/log.smb {
+ postrotate
+ /usr/bin/killall -HUP smbd
+ endrotate
+}
diff --git a/packaging/PHT/TurboLinux/samba.pamd b/packaging/PHT/TurboLinux/samba.pamd
new file mode 100644
index 0000000000..f38e70184a
--- /dev/null
+++ b/packaging/PHT/TurboLinux/samba.pamd
@@ -0,0 +1,2 @@
+auth required /lib/security/pam_pwdb.so nullok shadow
+account required /lib/security/pam_pwdb.so
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
new file mode 100644
index 0000000000..f6f1d0c762
--- /dev/null
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -0,0 +1,287 @@
+Summary: Samba SMB client and server
+Name: samba
+Version: PVERSION
+Release: PRELEASE
+Copyright: GNU GPL version 2
+Group: Networking
+Source: ftp://samba.anu.edu.au/pub/samba/samba-PVERSION.tar.gz
+Patch: makefile-path.patch
+Patch1: smbw.patch
+Packager: John H Terpstra [Samba-Team]
+Requires: pam >= 0.64
+BuildRoot: /tmp/samba
+
+%description
+Samba provides an SMB server which can be used to provide
+network services to SMB (sometimes called "Lan Manager")
+clients, including various versions of MS Windows, OS/2,
+and other Linux machines. Samba also provides some SMB
+clients, which complement the built-in SMB filesystem
+in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
+and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
+protocol.
+
+Samba-2 features an almost working NT Domain Control
+capability and includes the new SWAT (Samba Web Administration
+Tool) that allows samba's smb.conf file to be remotely managed
+using your favourite web browser. For the time being this is
+being enabled on TCP port 901 via inetd.
+
+Please refer to the WHATSNEW.txt document for fixup information.
+This binary release includes encrypted password support.
+Please read the smb.conf file and ENCRYPTION.txt in the
+docs directory for implementation details.
+
+NOTE: TurboLinux uses PAM which has integrated support
+for Shadow passwords. Do NOT recompile with the SHADOW_PWD option
+enabled. Red Hat Linux has built in support for quotas in PAM.
+
+%changelog
+* Sun Oct 25 1998 John H Terpstra
+ - Added modifier to /config specifier so that smb.conf,
+ lmhosts and smbusers never get lost
+
+* Sat Oct 24 1998 John H Terpstra
+ - removed README.smbsh file from docs area
+
+* Mon Oct 05 1998 John H Terpstra
+ - Added rpcclient to binaries list
+ - Added smbwrapper stuff
+
+* Fri Aug 21 1998 John H Terpstra
+ - Updated for Samba version 2.0 building
+
+* Sat Jul 4 1998 John H Terpstra
+ - fixed codepage preservation during update via -Uvh
+
+* Sun Apr 26 1998 John H Terpstra
+ - Tidy up for early alpha releases
+ - added findsmb from SGI packaging
+
+* Thu Apr 9 1998 John H Terpstra
+ - Updated spec file
+ - Included new codepage.936
+
+* Sat Mar 20 1998 John H Terpstra
+ - Added swat facility
+
+* Sat Jan 24 1998 John H Terpstra
+ - Many optimisations (some suggested by Manoj Kasichainula
+ - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
+ - Compounded make line
+ - Updated smb.init restart mechanism
+ - Use compound mkdir -p line instead of individual calls to mkdir
+ - Fixed smb.conf file path for log files
+ - Fixed smb.conf file path for incoming smb print spool directory
+ - Added a number of options to smb.conf file
+ - Added smbadduser command (missed from all previous RPMs) - Doooh!
+ - Added smbuser file and smb.conf file updates for username map
+
+%prep
+%setup
+%patch -p1
+%patch1 -p1
+
+%build
+cd source
+./configure
+make all smbwrapper
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/etc/codepages/src
+mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}
+mkdir -p $RPM_BUILD_ROOT/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc5.d,rc6.d}
+mkdir -p $RPM_BUILD_ROOT/home/samba
+mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin}
+mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help,include}
+mkdir -p $RPM_BUILD_ROOT/usr/man/{man1,man5,man7,man8}
+mkdir -p $RPM_BUILD_ROOT/var/lock/samba
+mkdir -p $RPM_BUILD_ROOT/var/log/samba
+mkdir -p $RPM_BUILD_ROOT/var/spool/samba
+
+# Install standard binary files
+for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns \
+ make_smbcodepage make_printerdef rpcclient smbsh smbwrapper.so
+do
+install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin
+done
+for i in addtosmbpass mksmbpasswd.sh smbtar
+do
+install -m755 source/script/$i $RPM_BUILD_ROOT/usr/bin
+done
+
+# Install secure binary files
+for i in smbd nmbd swat
+do
+install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
+done
+
+# Install level 1 man pages
+for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1
+do
+install -m644 docs/$i $RPM_BUILD_ROOT/usr/man/man1
+done
+
+# Install codepage source files
+for i in 437 737 850 852 861 866 932 936 949 950
+do
+install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src
+done
+
+# Install SWAT helper files
+for i in swat/help/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
+done
+for i in swat/images/*.{jpg,gif}
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
+done
+for i in swat/include/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include
+done
+
+# Install the miscellany
+install -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
+install -m644 docs/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/samba.7 $RPM_BUILD_ROOT/usr/man/man7
+install -m644 docs/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/smb.conf
+install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/smbusers
+install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/usr/sbin/samba
+install -m644 packaging/RedHat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
+install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
+echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add smb
+
+# Build codepage load files
+for i in 437 737 850 852 861 866 932 936 949 950
+do
+/usr/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i
+done
+
+# Add swat entry to /etc/services if not already there
+if !( grep ^[:space:]*swat /etc/services > /dev/null ) then
+ echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services
+fi
+
+# Add swat entry to /etc/inetd.conf if needed
+if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
+ echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
+killall -1 inetd
+fi
+
+
+%preun
+/sbin/chkconfig --del smb
+
+%postun
+if [ -x /etc/pam.d/samba ]; then
+ rm -f /etc/pam.d/samba
+fi
+if [ -e /etc/codepages ]; then
+ rm -rf /etc/codepages
+fi
+if [ -e /var/log/samba ]; then
+ rm -rf /var/log/samba
+fi
+if [ -e /var/lock/samba ]; then
+ rm -rf /var/lock/samba
+fi
+# Remove swat entries from /etc/inetd.conf and /etc/services
+cd /etc
+tmpfile=/etc/tmp.$$
+sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
+mv $tmpfile inetd.conf
+sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
+mv $tmpfile services
+
+%files
+%doc README COPYING Manifest Read-Manifest-Now
+%doc WHATSNEW.txt Roadmap
+%doc docs
+%doc swat/README
+%doc examples
+%attr(-,root,root) /usr/sbin/smbd
+%attr(-,root,root) /usr/sbin/nmbd
+%attr(-,root,root) /usr/sbin/swat
+%attr(0755,root,root) /usr/sbin/samba
+%attr(-,root,root) /usr/bin/addtosmbpass
+%attr(-,root,root) /usr/bin/mksmbpasswd.sh
+%attr(-,root,root) /usr/bin/smbclient
+%attr(-,root,root) /usr/bin/rpcclient
+%attr(-,root,root) /usr/bin/testparm
+%attr(-,root,root) /usr/bin/testprns
+%attr(-,root,root) /usr/bin/smbrun
+%attr(-,root,root) /usr/bin/findsmb
+%attr(-,root,root) /usr/bin/smbstatus
+%attr(-,root,root) /usr/bin/nmblookup
+%attr(-,root,root) /usr/bin/make_smbcodepage
+%attr(-,root,root) /usr/bin/make_printerdef
+%attr(-,root,root) /usr/bin/smbpasswd
+%attr(-,root,root) /usr/bin/smbtar
+%attr(-,root,root) /usr/bin/smbprint
+%attr(-,root,root) /usr/bin/smbadduser
+%attr(0755,root,root) /usr/bin/smbsh
+%attr(0755,root,root) /usr/bin/smbwrapper.so
+%attr(-,root,root) /usr/share/swat/help/parameters.html
+%attr(-,root,root) /usr/share/swat/help/welcome.html
+%attr(-,root,root) /usr/share/swat/images/background.jpg
+%attr(-,root,root) /usr/share/swat/images/background.gif
+%attr(-,root,root) /usr/share/swat/images/globals.gif
+%attr(-,root,root) /usr/share/swat/images/home.gif
+%attr(-,root,root) /usr/share/swat/images/printers.gif
+%attr(-,root,root) /usr/share/swat/images/shares.gif
+%attr(-,root,root) /usr/share/swat/images/samba.gif
+%attr(-,root,root) /usr/share/swat/images/status.gif
+%attr(-,root,root) /usr/share/swat/images/viewconfig.gif
+%attr(-,root,root) /usr/share/swat/include/header.html
+%attr(-,root,root) /usr/share/swat/include/footer.html
+%attr(-,root,root) %config(noreplace) /etc/lmhosts
+%attr(-,root,root) %config(noreplace) /etc/smb.conf
+%attr(-,root,root) %config(noreplace) /etc/smbusers
+%attr(-,root,root) /etc/rc.d/init.d/smb
+%attr(-,root,root) /etc/logrotate.d/samba
+%attr(-,root,root) /etc/pam.d/samba
+%attr(-,root,root) /etc/codepages/src/codepage_def.437
+%attr(-,root,root) /etc/codepages/src/codepage_def.737
+%attr(-,root,root) /etc/codepages/src/codepage_def.850
+%attr(-,root,root) /etc/codepages/src/codepage_def.852
+%attr(-,root,root) /etc/codepages/src/codepage_def.861
+%attr(-,root,root) /etc/codepages/src/codepage_def.866
+%attr(-,root,root) /etc/codepages/src/codepage_def.932
+%attr(-,root,root) /etc/codepages/src/codepage_def.936
+%attr(-,root,root) /etc/codepages/src/codepage_def.949
+%attr(-,root,root) /etc/codepages/src/codepage_def.950
+%attr(-,root,root) /usr/man/man1/smbstatus.1
+%attr(-,root,root) /usr/man/man1/smbclient.1
+%attr(-,root,root) /usr/man/man1/make_smbcodepage.1
+%attr(-,root,root) /usr/man/man1/smbrun.1
+%attr(-,root,root) /usr/man/man1/smbtar.1
+%attr(-,root,root) /usr/man/man1/testparm.1
+%attr(-,root,root) /usr/man/man1/testprns.1
+%attr(-,root,root) /usr/man/man5/smb.conf.5
+%attr(-,root,root) /usr/man/man7/samba.7
+%attr(-,root,root) /usr/man/man8/smbd.8
+%attr(-,root,root) /usr/man/man8/nmbd.8
+%attr(-,root,root) /usr/man/man8/smbpasswd.8
+%attr(-,root,nobody) %dir /home/samba
+%attr(-,root,root) %dir /etc/codepages
+%attr(-,root,root) %dir /etc/codepages/src
+%attr(-,root,root) %dir /var/lock/samba
+%attr(-,root,root) %dir /var/log/samba
+%attr(777,root,root) %dir /var/spool/samba
diff --git a/packaging/PHT/TurboLinux/smb.conf b/packaging/PHT/TurboLinux/smb.conf
new file mode 100644
index 0000000000..1e5b920b11
--- /dev/null
+++ b/packaging/PHT/TurboLinux/smb.conf
@@ -0,0 +1,281 @@
+# 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 = /etc/printcap
+ 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 = bsd
+
+# 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 = /var/log/samba/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 =
+
+# 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
+
+# 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
+
+# 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 =
+
+# 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/PHT/TurboLinux/smb.init b/packaging/PHT/TurboLinux/smb.init
new file mode 100755
index 0000000000..6529977d23
--- /dev/null
+++ b/packaging/PHT/TurboLinux/smb.init
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# chkconfig: 345 91 35
+# description: Starts and stops the Samba smbd and nmbd daemons \
+# used to provide SMB network services.
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+[ ${NETWORKING} = "no" ] && exit 0
+
+# Check that smb.conf exists.
+[ -f /etc/smb.conf ] || exit 0
+
+# See how we were called.
+case "$1" in
+ start)
+ echo -n "Starting SMB services: "
+ daemon smbd -D
+ daemon nmbd -D
+ echo
+ touch /var/lock/subsys/smb
+ ;;
+ stop)
+ echo -n "Shutting down SMB services: "
+ killproc smbd
+ killproc nmbd
+ rm -f /var/lock/subsys/smb
+ echo ""
+ ;;
+ status)
+ status smbd
+ status nmbd
+ ;;
+ restart)
+ echo -n "Restarting SMB services: "
+ $0 stop
+ $0 start
+ echo "done."
+ ;;
+ *)
+ echo "Usage: smb {start|stop|restart|status}"
+ exit 1
+esac
+
diff --git a/packaging/PHT/TurboLinux/smbadduser b/packaging/PHT/TurboLinux/smbadduser
new file mode 100755
index 0000000000..2f38bf28f1
--- /dev/null
+++ b/packaging/PHT/TurboLinux/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/PHT/TurboLinux/smbprint b/packaging/PHT/TurboLinux/smbprint
new file mode 100755
index 0000000000..51b15706ad
--- /dev/null
+++ b/packaging/PHT/TurboLinux/smbprint
@@ -0,0 +1,77 @@
+#!/bin/sh -x
+
+# 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/PHT/TurboLinux/smbusers b/packaging/PHT/TurboLinux/smbusers
new file mode 100644
index 0000000000..ae3389f53f
--- /dev/null
+++ b/packaging/PHT/TurboLinux/smbusers
@@ -0,0 +1,3 @@
+# Unix_name = SMB_name1 SMB_name2 ...
+root = administrator admin
+nobody = guest pcguest smbguest
diff --git a/packaging/PHT/TurboLinux/smbw.patch b/packaging/PHT/TurboLinux/smbw.patch
new file mode 100644
index 0000000000..0abbfdf73f
--- /dev/null
+++ b/packaging/PHT/TurboLinux/smbw.patch
@@ -0,0 +1,10 @@
+--- samba-2.0.0/source/smbwrapper/smbsh.in.orig Mon Oct 5 22:37:01 1998
++++ samba-2.0.0/source/smbwrapper/smbsh.in Mon Oct 5 22:37:51 1998
+@@ -1,6 +1,6 @@
+ #! /bin/sh
+
+-SMBW_LIBDIR=${SMBW_LIBDIR-@builddir@/smbwrapper}
++SMBW_LIBDIR=${SMBW_LIBDIR-/usr/bin}
+
+ if [ ! -f ${SMBW_LIBDIR}/smbwrapper.so ]; then
+ echo You need to set LIBDIR in smbsh
--
cgit
From 0ab38b4e602e7b0078f6b8c6af083b7c81f251d2 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Sun, 25 Oct 1998 12:08:49 +0000
Subject: A little more tweaking and sqeaking. Now, will it work? Argh! (This
used to be commit d42b641acba95f45ad204e64e80e30d5d96490e8)
---
packaging/PHT/TurboLinux/samba2.spec.tmpl | 78 ++++++++++++++++++++++---------
packaging/RedHat/samba2.spec.tmpl | 78 ++++++++++++++++++++++---------
2 files changed, 114 insertions(+), 42 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index f6f1d0c762..64ef9a7f5d 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -9,6 +9,7 @@ Patch: makefile-path.patch
Patch1: smbw.patch
Packager: John H Terpstra [Samba-Team]
Requires: pam >= 0.64
+Prereq: chkconfig fileutils
BuildRoot: /tmp/samba
%description
@@ -51,14 +52,26 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
* Fri Aug 21 1998 John H Terpstra
- Updated for Samba version 2.0 building
-* Sat Jul 4 1998 John H Terpstra
+* Tue Jul 07 1998 Erik Troan
+ - updated postun triggerscript to check $0
+ - clear /etc/codepages from %preun instead of %postun
+
+* Sat Jul 04 1998 John H Terpstra
- fixed codepage preservation during update via -Uvh
+* Mon Jun 08 1998 Erik Troan
+ - made the %postun script a tad less agressive; no reason to remove
+ the logs or lock file
+ - the %postun and %preun should only exectute if this is the final
+ removal
+ - migrated %triggerpostun from Red Hat's samba package to work around
+ packaging problems in some Red Hat samba releases
+
* Sun Apr 26 1998 John H Terpstra
- Tidy up for early alpha releases
- added findsmb from SGI packaging
-* Thu Apr 9 1998 John H Terpstra
+* Thu Apr 09 1998 John H Terpstra
- Updated spec file
- Included new codepage.936
@@ -185,30 +198,53 @@ if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
killall -1 inetd
fi
-
%preun
-/sbin/chkconfig --del smb
+if [ $1 = 0 ] ; then
+ /sbin/chkconfig --del smb
-%postun
-if [ -x /etc/pam.d/samba ]; then
- rm -f /etc/pam.d/samba
-fi
-if [ -e /etc/codepages ]; then
- rm -rf /etc/codepages
+ for n in /etc/codepages/*; do
+ if [ $n != /etc/codepages/src ]; then
+ rm -rf $n
+ fi
+ done
+ # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba!
+ if [ -e /var/lock/samba/browse.dat ]; then
+ rm -f /var/lock/samba/browse.dat
+ fi
+ if [ -e /var/lock/samba/wins.dat ]; then
+ rm -f /var/lock/samba/wins.dat
+ fi
fi
-if [ -e /var/log/samba ]; then
- rm -rf /var/log/samba
+
+%postun
+# Only delete remnants of samba if this is the final deletion.
+if [ $1 != 0 ] ; then
+ exit 0
+
+ if [ -x /etc/pam.d/samba ]; then
+ rm -f /etc/pam.d/samba
+ fi
+ if [ -e /var/log/samba ]; then
+ rm -rf /var/log/samba
+ fi
+ if [ -e /var/lock/samba ]; then
+ rm -rf /var/lock/samba
+ fi
+
+ # Remove swat entries from /etc/inetd.conf and /etc/services
+ cd /etc
+ tmpfile=/etc/tmp.$$
+ sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
+ mv $tmpfile inetd.conf
+ sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
+ mv $tmpfile services
fi
-if [ -e /var/lock/samba ]; then
- rm -rf /var/lock/samba
+
+%triggerpostun -- samba < samba-2.0.0
+if [ $0 != 0 ]; then
+ /sbin/chkconfig --add smb
fi
-# Remove swat entries from /etc/inetd.conf and /etc/services
-cd /etc
-tmpfile=/etc/tmp.$$
-sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
-mv $tmpfile inetd.conf
-sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
-mv $tmpfile services
+
%files
%doc README COPYING Manifest Read-Manifest-Now
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 53f955ed1c..a9370ae4ab 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -9,6 +9,7 @@ Patch: makefile-path.patch
Patch1: smbw.patch
Packager: John H Terpstra [Samba-Team]
Requires: pam >= 0.64
+Prereq: chkconfig fileutils
BuildRoot: /tmp/samba
%description
@@ -51,14 +52,26 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
* Fri Aug 21 1998 John H Terpstra
- Updated for Samba version 2.0 building
-* Sat Jul 4 1998 John H Terpstra
+* Tue Jul 07 1998 Erik Troan
+ - updated postun triggerscript to check $0
+ - clear /etc/codepages from %preun instead of %postun
+
+* Sat Jul 04 1998 John H Terpstra
- fixed codepage preservation during update via -Uvh
+* Mon Jun 08 1998 Erik Troan
+ - made the %postun script a tad less agressive; no reason to remove
+ the logs or lock file
+ - the %postun and %preun should only exectute if this is the final
+ removal
+ - migrated %triggerpostun from Red Hat's samba package to work around
+ packaging problems in some Red Hat samba releases
+
* Sun Apr 26 1998 John H Terpstra
- Tidy up for early alpha releases
- added findsmb from SGI packaging
-* Thu Apr 9 1998 John H Terpstra
+* Thu Apr 09 1998 John H Terpstra
- Updated spec file
- Included new codepage.936
@@ -185,30 +198,53 @@ if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
killall -1 inetd
fi
-
%preun
-/sbin/chkconfig --del smb
+if [ $1 = 0 ] ; then
+ /sbin/chkconfig --del smb
-%postun
-if [ -x /etc/pam.d/samba ]; then
- rm -f /etc/pam.d/samba
-fi
-if [ -e /etc/codepages ]; then
- rm -rf /etc/codepages
+ for n in /etc/codepages/*; do
+ if [ $n != /etc/codepages/src ]; then
+ rm -rf $n
+ fi
+ done
+ # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba!
+ if [ -e /var/lock/samba/browse.dat ]; then
+ rm -f /var/lock/samba/browse.dat
+ fi
+ if [ -e /var/lock/samba/wins.dat ]; then
+ rm -f /var/lock/samba/wins.dat
+ fi
fi
-if [ -e /var/log/samba ]; then
- rm -rf /var/log/samba
+
+%postun
+# Only delete remnants of samba if this is the final deletion.
+if [ $1 != 0 ] ; then
+ exit 0
+
+ if [ -x /etc/pam.d/samba ]; then
+ rm -f /etc/pam.d/samba
+ fi
+ if [ -e /var/log/samba ]; then
+ rm -rf /var/log/samba
+ fi
+ if [ -e /var/lock/samba ]; then
+ rm -rf /var/lock/samba
+ fi
+
+ # Remove swat entries from /etc/inetd.conf and /etc/services
+ cd /etc
+ tmpfile=/etc/tmp.$$
+ sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
+ mv $tmpfile inetd.conf
+ sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
+ mv $tmpfile services
fi
-if [ -e /var/lock/samba ]; then
- rm -rf /var/lock/samba
+
+%triggerpostun -- samba < samba-2.0.0
+if [ $0 != 0 ]; then
+ /sbin/chkconfig --add smb
fi
-# Remove swat entries from /etc/inetd.conf and /etc/services
-cd /etc
-tmpfile=/etc/tmp.$$
-sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
-mv $tmpfile inetd.conf
-sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
-mv $tmpfile services
+
%files
%doc README COPYING Manifest Read-Manifest-Now
--
cgit
From 814ac705f254e9c80a2960cafa03cae3d252b03e Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 29 Oct 1998 01:15:14 +0000
Subject: clean up steps for making distribution (This used to be commit
3b2d25035e2f718532b4cfe2fd3342ddfcdb54c3)
---
packaging/SGI/mkrelease.sh | 45 ++++++++++++++++++++++++++++++---------------
1 file changed, 30 insertions(+), 15 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index d298095ae9..43765e196b 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -5,6 +5,8 @@
# OS release to build. If no version number is given it will default to 6.
doclean=""
+SGI_ABI=-n32
+export SGI_ABI
if [ "$1" = "clean" ]; then
doclean=$1
@@ -13,28 +15,39 @@ fi
if [ "$doclean" = "clean" ]; then
cd ../../source
- make distclean
+ if [ -f Makefile ]; then
+ make distclean
+ fi
cd ../packaging/SGI
rm -rf bins catman html codepages swat samba.idb samba.spec
fi
# create the catman versions of the manual pages
#
-echo Making manual pages
-./mkman
-errstat=$?
-if [ $errstat -ne 0 ]; then
- echo "Error $errstat making manual pages\n";
- exit $errstat;
+if [ "$doclean" = "clean" ]; then
+ echo Making manual pages
+ ./mkman
+ errstat=$?
+ if [ $errstat -ne 0 ]; then
+ echo "Error $errstat making manual pages\n";
+ exit $errstat;
+ fi
fi
cd ../../source
-echo Create SGI specific Makefile
-./configure --prefix=/usr --mandir=/usr/src/man
-errstat=$?
-if [ $errstat -ne 0 ]; then
- echo "Error $errstat creating Makefile\n";
- exit $errstat;
+if [ "$doclean" = "clean" -o ! -f Makefile ]; then
+ echo Create SGI specific Makefile
+ chmod +x configure
+ chmod +x configure.developer
+ chmod +x config.guess
+ chmod +x config.status
+ chmod +x config.sub
+ ./configure --prefix=/usr --mandir=/usr/src/man
+ errstat=$?
+ if [ $errstat -ne 0 ]; then
+ echo "Error $errstat creating Makefile\n";
+ exit $errstat;
+ fi
fi
@@ -43,11 +56,13 @@ fi
echo Making binaries
if [ "$1" = "5" ]; then
- make "CFLAGS=-O -g3" all
+ myflags="CFLAGS=-O -g3"
+ shift
else
- make "CFLAGS=-O -g3 -n32" all
+ myflags="CFLAGS=-O -g3"
fi
+make "$myflags" $*
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat building sources\n";
--
cgit
From 0129c460fc720daa9c5071a5fe9691262297b4c8 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Thu, 29 Oct 1998 10:17:00 +0000
Subject: Fixed spec file entry that was causing the CDRom installer to
generate a message claiming that package installation had failed when it
really did work. The error was caused by the killall command being used where
there is no /proc for it to work on. (This used to be commit
7eaf47853ea2f48702847c81a9ec7cd351a3079b)
---
packaging/PHT/TurboLinux/samba2.spec.tmpl | 2 +-
packaging/RedHat/samba2.spec.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index 64ef9a7f5d..5505931626 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -195,7 +195,7 @@ fi
# Add swat entry to /etc/inetd.conf if needed
if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
-killall -1 inetd
+killall -1 inetd || :
fi
%preun
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index a9370ae4ab..3693d22cca 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -195,7 +195,7 @@ fi
# Add swat entry to /etc/inetd.conf if needed
if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
-killall -1 inetd
+killall -1 inetd || :
fi
%preun
--
cgit
From 3f5e7c9b1eed8999fe7a6ce83d84dc19d084fac5 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Thu, 29 Oct 1998 10:29:07 +0000
Subject: Path change only. (This used to be commit
356e049a42ab5c72c7bc82ac17c3565d996ddc2d)
---
packaging/PHT/TurboLinux/makerpms.sh.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/makerpms.sh.tmpl b/packaging/PHT/TurboLinux/makerpms.sh.tmpl
index fa69370dff..3b364c74a7 100644
--- a/packaging/PHT/TurboLinux/makerpms.sh.tmpl
+++ b/packaging/PHT/TurboLinux/makerpms.sh.tmpl
@@ -5,7 +5,7 @@ RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
-( cd ../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
+( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
cp -a *.spec $SPECDIR
cp -a *.patch smb.* samba.log $SRCDIR
cd $SRCDIR
--
cgit
From 42a6727782aedc427f01f9a5e1caf563159c70da Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Thu, 5 Nov 1998 11:26:19 +0000
Subject: Changed build root to launch off /var/tmp instead of /tmp. (This used
to be commit c16f051a40ff9d2ce15539ff7d4d177e0cb6de97)
---
packaging/PHT/TurboLinux/samba2.spec.tmpl | 2 +-
packaging/RedHat/samba2.spec.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index 5505931626..3b210c9d32 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -10,7 +10,7 @@ Patch1: smbw.patch
Packager: John H Terpstra [Samba-Team]
Requires: pam >= 0.64
Prereq: chkconfig fileutils
-BuildRoot: /tmp/samba
+BuildRoot: /var/tmp/samba
%description
Samba provides an SMB server which can be used to provide
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 3693d22cca..bf781683be 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -10,7 +10,7 @@ Patch1: smbw.patch
Packager: John H Terpstra [Samba-Team]
Requires: pam >= 0.64
Prereq: chkconfig fileutils
-BuildRoot: /tmp/samba
+BuildRoot: /var/tmp/samba
%description
Samba provides an SMB server which can be used to provide
--
cgit
From e4dfd67877e8ae2110613815f204442066993b54 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Tue, 10 Nov 1998 01:31:57 +0000
Subject: Updating the password script and documenting password sync stuff.
(This used to be commit 2479fc2238757a64979903a8d79eeb14d99c7b29)
---
packaging/PHT/TurboLinux/smb.conf | 10 ++++++++++
packaging/RedHat/smb.conf | 10 ++++++++++
2 files changed, 20 insertions(+)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/smb.conf b/packaging/PHT/TurboLinux/smb.conf
index 1e5b920b11..bd9a8e15bc 100644
--- a/packaging/PHT/TurboLinux/smb.conf
+++ b/packaging/PHT/TurboLinux/smb.conf
@@ -65,6 +65,16 @@
; 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
diff --git a/packaging/RedHat/smb.conf b/packaging/RedHat/smb.conf
index 1e5b920b11..bd9a8e15bc 100644
--- a/packaging/RedHat/smb.conf
+++ b/packaging/RedHat/smb.conf
@@ -65,6 +65,16 @@
; 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
--
cgit
From 8be93971aadfa9abf5baae3967ebabeb662c3d20 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Tue, 10 Nov 1998 21:58:19 +0000
Subject: make sure we build with SGI compiler (This used to be commit
433525fd321a768eada4eecb2f8a12f367bae001)
---
packaging/SGI/mkrelease.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index 43765e196b..cfbd40ec04 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -6,7 +6,8 @@
doclean=""
SGI_ABI=-n32
-export SGI_ABI
+CC=cc
+export SGI_ABI CC
if [ "$1" = "clean" ]; then
doclean=$1
--
cgit
From 6d04a7dc259f7a573a4e48dbf7bc0c0d1962e8f7 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 11 Nov 1998 02:04:54 +0000
Subject: new directories for man page sources (This used to be commit
555b11f9bc557d7a00aca7aabe9e2536d3936cbb)
---
packaging/SGI/mkman | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkman b/packaging/SGI/mkman
index 4f14fafcdc..4de437d0ad 100755
--- a/packaging/SGI/mkman
+++ b/packaging/SGI/mkman
@@ -1,27 +1,15 @@
#!/bin/sh
-# if you wish to make html versions of the man pages then add the
-# argument html when calling this script. You must have rman installed.
-#
if [ ! -d catman ]; then
mkdir catman
fi
-if [ "$1" = "html" ]; then
- if [ ! -d html ]; then
- mkdir html
- fi
-fi
-
FILES="*.?"
-cd ../../docs
+cd ../../docs/manpages
for FILE in $FILES ; do
- neqn $FILE | tbl | nroff -man > ../packaging/SGI/catman/`basename $FILE`
- compress -f ../packaging/SGI/catman/`basename $FILE`
- if [ "$1" = "html" ]; then
- rman -f html -r "%s.%s.html" $FILE > ../packaging/SGI/html/$FILE.html
- fi
+ neqn $FILE | tbl | nroff -man > ../../packaging/SGI/catman/`basename $FILE`
+ compress -f ../../packaging/SGI/catman/`basename $FILE`
done
-cd ../packaging/SGI
+cd ../../packaging/SGI
--
cgit
From 8cae90887bef14efbda0a861928eed15bde92034 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 11 Nov 1998 21:47:04 +0000
Subject: add an empty STATUS..LCK to install so swat doesn't complain (This
used to be commit 41541a4c93555d076b1e78caae117d1fa3ae2277)
---
packaging/SGI/STATUS..LCK | 0
packaging/SGI/idb.pl | 1 +
2 files changed, 1 insertion(+)
create mode 100644 packaging/SGI/STATUS..LCK
(limited to 'packaging')
diff --git a/packaging/SGI/STATUS..LCK b/packaging/SGI/STATUS..LCK
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 4fb0d6bb9a..aa51083189 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -193,6 +193,7 @@ while (@swatfiles) {
print IDB "d 0755 root sys usr/samba/var/ packaging/SGI samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/var/locks/ packaging/SGI samba.sw.base\n";
+print IDB "f 0644 root sys usr/samba/var/locks/STATUS..LCK packaging/SGI/STATUS..LCK samba.sw.base\n";
print IDB "d 0755 root sys usr/share/catman/u_man/ packaging/SGI samba.man.manpages\n";
$olddirnum = "0";
--
cgit
From fe7090cfb052729b75873c13c75578323aff2a5d Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 12 Nov 1998 16:02:32 +0000
Subject: no longer needed (This used to be commit
fb6a79ea3a79d54099ec57715db17a7935130e9f)
---
packaging/SGI/makefile.pl | 38 --------------------------------------
1 file changed, 38 deletions(-)
delete mode 100755 packaging/SGI/makefile.pl
(limited to 'packaging')
diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl
deleted file mode 100755
index d621097a22..0000000000
--- a/packaging/SGI/makefile.pl
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/perl
-
-# This perl script creates the SGI specific Makefile.
-# The BASEDIR is set to /usr/samba, MANDIR is set to /usr/share/man, and
-# the lines are uncommented for the requested OS version. If no version
-# is specified, IRIX 6 is used.
-
-if (!@ARGV) {
- $OSver = "6";
-}
-else {
- $OSver = $ARGV[0];
-}
-
-open(MAKEIN,"../../source/Makefile") || die "Unable to open source Makefile\n";
-open(MAKEOUT,">Makefile") || die "Unable to open Makefile for output\n";
-while () {
- if (/^BASEDIR =/) {
- print MAKEOUT "BASEDIR = /usr/samba\n";
- }
- elsif (/^MANDIR =/) {
- print MAKEOUT "MANDIR = /usr/share/man\n";
- }
- elsif (/^# FOR SGI IRIX $OSver/) {
- print MAKEOUT;
- while () {
- last if ($_ eq "\n");
- if (/^# (FLAGSM|LIBSM|FLAGS1)/) {
- s/^# //;
- }
- print MAKEOUT;
- }
- print MAKEOUT;
- }
- else {
- print MAKEOUT;
- }
-}
--
cgit
From a413a745261968f01b35fbf29f4c30886fa1c521 Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 12 Nov 1998 18:29:22 +0000
Subject: remove .po and .po32 files from inst package (This used to be commit
600e599c43b85fc8d844490e59dd7b17f136c016)
---
packaging/SGI/idb.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index aa51083189..47e5d66053 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -84,7 +84,7 @@ chdir $curdir;
# strip out all the generated directories and the "*.o" files from the source
# release
-@allfiles = grep(!/^.*\.o$/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/ & !/^packaging\/SGI\/swat/, @allfiles);
+@allfiles = grep(!/^.*\.o$/ & !/^.*\.po$/ & !/^.*\.po32$/ & !/^source\/bin/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/ & !/^packaging\/SGI\/swat/, @allfiles);
open(IDB,">samba.idb") || die "Unable to open samba.idb for output\n";
--
cgit
From 1960082517daa67d1869c7bbbd93df8f6f54854c Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 12 Nov 1998 19:34:40 +0000
Subject: clear trailing / from directory names in idb file (This used to be
commit f06bed256dfaf56bcfc1982df1d8bf8fe559f53b)
---
packaging/SGI/idb.pl | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index 47e5d66053..fed2bacd05 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -94,15 +94,15 @@ print IDB "l 0000 root sys etc/rc0.d/K39samba packaging/SGI samba.sw.base symval
print IDB "l 0000 root sys etc/rc2.d/S81samba packaging/SGI samba.sw.base symval(../init.d/samba)\n";
@copyfile = grep (/^COPY/,@allfiles);
-print IDB "d 0755 root sys usr/relnotes/samba/ packaging/SGI samba.man.relnotes\n";
+print IDB "d 0755 root sys usr/relnotes/samba packaging/SGI samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/@copyfile[0] @copyfile[0] samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/legal_notice.html packaging/SGI/legal_notice.html samba.man.relnotes\n";
print IDB "f 0644 root sys usr/relnotes/samba/samba-relnotes.html packaging/SGI/relnotes.html samba.man.relnotes\n";
-print IDB "d 0755 root sys usr/samba/ packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba packaging/SGI samba.sw.base\n";
print IDB "f 0444 root sys usr/samba/README packaging/SGI/README samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/bin/ packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/bin packaging/SGI samba.sw.base\n";
while(@bins) {
$nextfile = shift @bins;
($filename = $nextfile) =~ s/^.*\///;;
@@ -129,12 +129,14 @@ while(@bins) {
}
}
-print IDB "d 0755 root sys usr/samba/docs/ docs samba.man.doc\n";
+print IDB "d 0755 root sys usr/samba/docs docs samba.man.doc\n";
while (@docs) {
$nextfile = shift @docs;
next if ($nextfile eq "CVS");
($junk,$file) = split(/\//,$nextfile,2);
if (grep(/\/$/,$nextfile)) {
+ $file =~ s/\/$//;
+ $nextfile =~ s/\/$//;
print IDB "d 0755 root sys usr/samba/docs/$file $nextfile samba.man.doc\n";
}
else {
@@ -143,7 +145,7 @@ while (@docs) {
}
print IDB "f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/lib/ packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base\n";
if (@codepage) {
print IDB "d 0755 root sys usr/samba/lib/codepages packaging/SGI samba.sw.base\n";
while (@codepage) {
@@ -154,9 +156,9 @@ if (@codepage) {
print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
-print IDB "d 0644 root sys usr/samba/private/ packaging/SGI samba.sw.base\n";
+print IDB "d 0644 root sys usr/samba/private packaging/SGI samba.sw.base\n";
print IDB "f 0600 root sys usr/samba/private/smbpasswd packaging/SGI/smbpasswd samba.sw.base config(update)\n";
-print IDB "d 0755 root sys usr/samba/src/ packaging/SGI samba.src.samba\n";
+print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
@sorted = sort(@allfiles);
while (@sorted) {
$nextfile = shift @sorted;
@@ -165,6 +167,7 @@ while (@sorted) {
next if grep(/source/,$nextfile) && ($ignores{$file});
next if ($nextfile eq "CVS");
if (grep(/\/$/,$nextfile)) {
+ $nextfile =~ s/\/$//;
print IDB "d 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n";
}
else {
@@ -178,12 +181,13 @@ while (@sorted) {
}
print IDB "f 0755 root sys usr/samba/startswat.sh packaging/SGI/startswat.sh samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/swat/ packaging/SGI/swat samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/swat packaging/SGI/swat samba.sw.base\n";
while (@swatfiles) {
$nextfile = shift @swatfiles;
($file = $nextfile) =~ s/^packaging\/SGI\/swat\///;
next if !$file;
if (grep(/\/$/,$file)) {
+ $file =~ s/\/$//;
print IDB "d 0755 root sys usr/samba/swat/$file packaging/SGI/swat/$file samba.sw.base\n";
}
else {
@@ -191,11 +195,11 @@ while (@swatfiles) {
}
}
-print IDB "d 0755 root sys usr/samba/var/ packaging/SGI samba.sw.base\n";
-print IDB "d 0755 root sys usr/samba/var/locks/ packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/var packaging/SGI samba.sw.base\n";
+print IDB "d 0755 root sys usr/samba/var/locks packaging/SGI samba.sw.base\n";
print IDB "f 0644 root sys usr/samba/var/locks/STATUS..LCK packaging/SGI/STATUS..LCK samba.sw.base\n";
-print IDB "d 0755 root sys usr/share/catman/u_man/ packaging/SGI samba.man.manpages\n";
+print IDB "d 0755 root sys usr/share/catman/u_man packaging/SGI samba.man.manpages\n";
$olddirnum = "0";
while (@catman) {
$nextfile = shift @catman;
--
cgit
From ddc6296370310298f428e38468b2d94288bc078f Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Fri, 13 Nov 1998 23:10:32 +0000
Subject: Added packing release script. (This used to be commit
a77d40ee7147207174cde4c7a0f775e588e5a6ba)
---
packaging/bin/update-pkginfo | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100755 packaging/bin/update-pkginfo
(limited to 'packaging')
diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo
new file mode 100755
index 0000000000..fab56daebf
--- /dev/null
+++ b/packaging/bin/update-pkginfo
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+VERSION=$1
+RELEASE=$2
+
+for f in */*/*.tmpl; do
+ f2=`echo $f | sed s/.tmpl//g`
+ echo $f2
+ sed -e s/PVERSION/$VERSION/g -e s/PRELEASE/$RELEASE/g < $f > $f2
+done
+for f in */*.tmpl; do
+ f2=`echo $f | sed s/.tmpl//g`
+ echo $f2
+ sed -e s/PVERSION/$VERSION/g -e s/PRELEASE/$RELEASE/g < $f > $f2
+done
--
cgit
From c54656ee9e66f36fcaf1a70abd1ebb2246b6ef1a Mon Sep 17 00:00:00 2001
From: Jeremy Allison
Date: Sat, 14 Nov 1998 00:29:38 +0000
Subject: Added --with-smbwrapper to configure lines in spec files so JohnT's
scripts work ok. Jeremy. (This used to be commit
9dc2502382f17c2bd1794c92ad0f4862a76b84e8)
---
packaging/PHT/TurboLinux/samba2.spec.tmpl | 2 +-
packaging/RedHat/samba2.spec.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index 3b210c9d32..0963bb2b04 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -97,7 +97,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
%build
cd source
-./configure
+./configure --with-smbwrapper
make all smbwrapper
%install
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index bf781683be..899b4a5591 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -97,7 +97,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
%build
cd source
-./configure
+./configure --with-smbwrapper
make all smbwrapper
%install
--
cgit
From c2ea4dc9ef918eb36472474559db0ed8d7d18bf1 Mon Sep 17 00:00:00 2001
From: Jeremy Allison
Date: Sat, 14 Nov 1998 00:50:41 +0000
Subject: Fixed makefile problem due to change from SMB_PASSWD to
PASSWD_PROGRAM. Thanks to Michael H. Warfield for that.
Jeremy. (This used to be commit 6c2a234ac9b4bbef3886c9aa4a198776a0bee6c8)
---
packaging/PHT/TurboLinux/makefile-path.patch | 2 +-
packaging/RedHat/makefile-path.patch | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch
index b9f5984a78..61aa1819c3 100644
--- a/packaging/PHT/TurboLinux/makefile-path.patch
+++ b/packaging/PHT/TurboLinux/makefile-path.patch
@@ -27,7 +27,7 @@
CONFIGFILE = $(LIBDIR)/smb.conf
LMHOSTSFILE = $(LIBDIR)/lmhosts
DRIVERFILE = $(LIBDIR)/printers.def
- SMB_PASSWD = $(BINDIR)/smbpasswd
+ PASSWD_PROGRAM = /bin/passwd
-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
diff --git a/packaging/RedHat/makefile-path.patch b/packaging/RedHat/makefile-path.patch
index b9f5984a78..61aa1819c3 100644
--- a/packaging/RedHat/makefile-path.patch
+++ b/packaging/RedHat/makefile-path.patch
@@ -27,7 +27,7 @@
CONFIGFILE = $(LIBDIR)/smb.conf
LMHOSTSFILE = $(LIBDIR)/lmhosts
DRIVERFILE = $(LIBDIR)/printers.def
- SMB_PASSWD = $(BINDIR)/smbpasswd
+ PASSWD_PROGRAM = /bin/passwd
-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
--
cgit
From 328b91d2c957ff2e17301068c961d81a1b46213e Mon Sep 17 00:00:00 2001
From: Jeremy Allison
Date: Sat, 14 Nov 1998 03:48:26 +0000
Subject: (Hopefully) correct patch files for RedHat & TurboLinux. In fixing
this I have learned more about RPM than I *ever* wanted to know.... Jeremy.
(This used to be commit 765989e4151a5f8dd48353d7c1b175092717947e)
---
packaging/PHT/TurboLinux/makefile-path.patch | 113 +++++++++++++++++----------
packaging/RedHat/makefile-path.patch | 113 +++++++++++++++++----------
2 files changed, 140 insertions(+), 86 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch
index 61aa1819c3..a6988fcb75 100644
--- a/packaging/PHT/TurboLinux/makefile-path.patch
+++ b/packaging/PHT/TurboLinux/makefile-path.patch
@@ -1,43 +1,70 @@
---- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
-+++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
-@@ -23,11 +23,11 @@
- .SUFFIXES:
- .SUFFIXES: .c .o
-
--BASEDIR=$(prefix)/samba
-+BASEDIR= /usr
- BINDIR = $(BASEDIR)/bin
--SBINDIR = $(BASEDIR)/bin
--LIBDIR = $(BASEDIR)/lib
--VARDIR = $(BASEDIR)/var
-+SBINDIR = $(BASEDIR)/sbin
-+LIBDIR = /etc
-+VARDIR = /var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
-@@ -36,19 +36,19 @@
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
--SMBLOGFILE = $(VARDIR)/log.smb
--NMBLOGFILE = $(VARDIR)/log.nmb
-+SMBLOGFILE = $(VARDIR)/log/samba/log.smb
-+NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
--SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
-+SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
-
- # This is where SWAT images and help files go
--SWATDIR = $(BASEDIR)/swat
-+SWATDIR = $(BASEDIR)/share/swat
-
- # the directory where lock files go
--LOCKDIR = $(VARDIR)/locks
-+LOCKDIR = $(VARDIR)/lock/samba
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
+--- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
++++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
+***************
+*** 22,32 ****
+ builddir=@builddir@
+ SHELL=/bin/sh
+
+! BASEDIR=$(prefix)/samba
+ BINDIR = $(BASEDIR)/bin
+! SBINDIR = $(BASEDIR)/bin
+! LIBDIR = $(BASEDIR)/lib
+! VARDIR = $(BASEDIR)/var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+--- 22,32 ----
+ builddir=@builddir@
+ SHELL=/bin/sh
+
+! BASEDIR=/usr
+ BINDIR = $(BASEDIR)/bin
+! SBINDIR = $(BASEDIR)/sbin
+! LIBDIR = /etc
+! VARDIR = /var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+***************
+*** 35,54 ****
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log.smb
+! NMBLOGFILE = $(VARDIR)/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+! SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+! SWATDIR = $(BASEDIR)/swat
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/locks
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
+--- 35,54 ----
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log/samba/log.smb
+! NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+! SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+! SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
diff --git a/packaging/RedHat/makefile-path.patch b/packaging/RedHat/makefile-path.patch
index 61aa1819c3..a6988fcb75 100644
--- a/packaging/RedHat/makefile-path.patch
+++ b/packaging/RedHat/makefile-path.patch
@@ -1,43 +1,70 @@
---- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
-+++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
-@@ -23,11 +23,11 @@
- .SUFFIXES:
- .SUFFIXES: .c .o
-
--BASEDIR=$(prefix)/samba
-+BASEDIR= /usr
- BINDIR = $(BASEDIR)/bin
--SBINDIR = $(BASEDIR)/bin
--LIBDIR = $(BASEDIR)/lib
--VARDIR = $(BASEDIR)/var
-+SBINDIR = $(BASEDIR)/sbin
-+LIBDIR = /etc
-+VARDIR = /var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
-@@ -36,19 +36,19 @@
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
--SMBLOGFILE = $(VARDIR)/log.smb
--NMBLOGFILE = $(VARDIR)/log.nmb
-+SMBLOGFILE = $(VARDIR)/log/samba/log.smb
-+NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
--SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
-+SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
-
- # This is where SWAT images and help files go
--SWATDIR = $(BASEDIR)/swat
-+SWATDIR = $(BASEDIR)/share/swat
-
- # the directory where lock files go
--LOCKDIR = $(VARDIR)/locks
-+LOCKDIR = $(VARDIR)/lock/samba
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
+--- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
++++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
+***************
+*** 22,32 ****
+ builddir=@builddir@
+ SHELL=/bin/sh
+
+! BASEDIR=$(prefix)/samba
+ BINDIR = $(BASEDIR)/bin
+! SBINDIR = $(BASEDIR)/bin
+! LIBDIR = $(BASEDIR)/lib
+! VARDIR = $(BASEDIR)/var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+--- 22,32 ----
+ builddir=@builddir@
+ SHELL=/bin/sh
+
+! BASEDIR=/usr
+ BINDIR = $(BASEDIR)/bin
+! SBINDIR = $(BASEDIR)/sbin
+! LIBDIR = /etc
+! VARDIR = /var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+***************
+*** 35,54 ****
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log.smb
+! NMBLOGFILE = $(VARDIR)/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+! SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+! SWATDIR = $(BASEDIR)/swat
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/locks
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
+--- 35,54 ----
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log/samba/log.smb
+! NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+! SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+! SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
--
cgit
From c800cda01d8dece47d4c76de06175976ee365be0 Mon Sep 17 00:00:00 2001
From: Jeremy Allison
Date: Sat, 14 Nov 1998 04:03:58 +0000
Subject: Fixes to get the manpages from the right place. Jeremy. (This used to
be commit 0e3bfe5f2860066aa07bce7a691f7af682c73949)
---
packaging/PHT/TurboLinux/samba2.spec.tmpl | 17 ++++++++++-------
packaging/RedHat/samba2.spec.tmpl | 17 ++++++++++-------
2 files changed, 20 insertions(+), 14 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index 0963bb2b04..ec6d3a620b 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -132,9 +132,9 @@ install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
done
# Install level 1 man pages
-for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1
+for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1
do
-install -m644 docs/$i $RPM_BUILD_ROOT/usr/man/man1
+install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/man/man1
done
# Install codepage source files
@@ -159,11 +159,14 @@ done
# Install the miscellany
install -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
-install -m644 docs/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
-install -m644 docs/samba.7 $RPM_BUILD_ROOT/usr/man/man7
-install -m644 docs/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
-install -m644 docs/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
-install -m644 docs/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT/usr/man/man7
+install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT/usr/man/man8
install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/smb.conf
install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/smbusers
install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT/usr/bin
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index 899b4a5591..bf95279806 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -132,9 +132,9 @@ install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
done
# Install level 1 man pages
-for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1
+for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1
do
-install -m644 docs/$i $RPM_BUILD_ROOT/usr/man/man1
+install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/man/man1
done
# Install codepage source files
@@ -159,11 +159,14 @@ done
# Install the miscellany
install -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
-install -m644 docs/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
-install -m644 docs/samba.7 $RPM_BUILD_ROOT/usr/man/man7
-install -m644 docs/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
-install -m644 docs/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
-install -m644 docs/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT/usr/man/man7
+install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/smb.conf
install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/smbusers
install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT/usr/bin
--
cgit
From 9315d3e39195a61a767dbcef1cdf60c5c81eef5d Mon Sep 17 00:00:00 2001
From: Jeremy Allison
Date: Sat, 14 Nov 1998 04:22:31 +0000
Subject: Fixed swat packaging & man page packaging. Jeremy. (This used to be
commit 178d1bd61b3a622adc48b6423fae1db815cae3da)
---
packaging/PHT/TurboLinux/samba2.spec.tmpl | 7 +++----
packaging/RedHat/samba2.spec.tmpl | 11 +++++++----
2 files changed, 10 insertions(+), 8 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index ec6d3a620b..d7586f3cae 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -148,7 +148,7 @@ for i in swat/help/*.html
do
install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
done
-for i in swat/images/*.{jpg,gif}
+for i in swat/images/*.gif
do
install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
done
@@ -277,12 +277,11 @@ fi
%attr(-,root,root) /usr/bin/smbadduser
%attr(0755,root,root) /usr/bin/smbsh
%attr(0755,root,root) /usr/bin/smbwrapper.so
-%attr(-,root,root) /usr/share/swat/help/parameters.html
+%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html
%attr(-,root,root) /usr/share/swat/help/welcome.html
-%attr(-,root,root) /usr/share/swat/images/background.jpg
-%attr(-,root,root) /usr/share/swat/images/background.gif
%attr(-,root,root) /usr/share/swat/images/globals.gif
%attr(-,root,root) /usr/share/swat/images/home.gif
+%attr(-,root,root) /usr/share/swat/images/passwd.gif
%attr(-,root,root) /usr/share/swat/images/printers.gif
%attr(-,root,root) /usr/share/swat/images/shares.gif
%attr(-,root,root) /usr/share/swat/images/samba.gif
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index bf95279806..d4121d7511 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -148,7 +148,7 @@ for i in swat/help/*.html
do
install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
done
-for i in swat/images/*.{jpg,gif}
+for i in swat/images/*.gif
do
install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
done
@@ -277,12 +277,11 @@ fi
%attr(-,root,root) /usr/bin/smbadduser
%attr(0755,root,root) /usr/bin/smbsh
%attr(0755,root,root) /usr/bin/smbwrapper.so
-%attr(-,root,root) /usr/share/swat/help/parameters.html
+%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html
%attr(-,root,root) /usr/share/swat/help/welcome.html
-%attr(-,root,root) /usr/share/swat/images/background.jpg
-%attr(-,root,root) /usr/share/swat/images/background.gif
%attr(-,root,root) /usr/share/swat/images/globals.gif
%attr(-,root,root) /usr/share/swat/images/home.gif
+%attr(-,root,root) /usr/share/swat/images/passwd.gif
%attr(-,root,root) /usr/share/swat/images/printers.gif
%attr(-,root,root) /usr/share/swat/images/shares.gif
%attr(-,root,root) /usr/share/swat/images/samba.gif
@@ -313,11 +312,15 @@ fi
%attr(-,root,root) /usr/man/man1/smbtar.1
%attr(-,root,root) /usr/man/man1/testparm.1
%attr(-,root,root) /usr/man/man1/testprns.1
+%attr(-,root,root) /usr/man/man1/nmblookup.1
%attr(-,root,root) /usr/man/man5/smb.conf.5
+%attr(-,root,root) /usr/man/man5/lmhosts.5
+%attr(-,root,root) /usr/man/man5/smbpasswd.5
%attr(-,root,root) /usr/man/man7/samba.7
%attr(-,root,root) /usr/man/man8/smbd.8
%attr(-,root,root) /usr/man/man8/nmbd.8
%attr(-,root,root) /usr/man/man8/smbpasswd.8
+%attr(-,root,root) /usr/man/man8/swat.8
%attr(-,root,nobody) %dir /home/samba
%attr(-,root,root) %dir /etc/codepages
%attr(-,root,root) %dir /etc/codepages/src
--
cgit
From 6b989ca4fd6e80e04a28ccea76875933f016dd86 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Sat, 14 Nov 1998 13:01:34 +0000
Subject: Added first cut of the new packaging scripts for Digital Unix. Note:
This will be extended for all other OS's so that it can be maintained by the
samba release scripts. (This used to be commit
0f98a2fd58aee1dac4d0f4098a2e690dfaf5ba27)
---
packaging/Digital/Instructions | 55 +++++++++++++++++++++++++++++++
packaging/Digital/PackageDate | 1 +
packaging/Digital/Packager | 2 ++
packaging/Digital/Packaging-instructions | 14 ++++++++
packaging/Digital/package-prep | 31 +++++++++++++++++
packaging/Digital/samba.init | 34 +++++++++++++++++++
packaging/Digital/setup.sh | 24 ++++++++++++++
packaging/Digital/skeleton.tar | Bin 0 -> 30720 bytes
8 files changed, 161 insertions(+)
create mode 100644 packaging/Digital/Instructions
create mode 100644 packaging/Digital/PackageDate
create mode 100644 packaging/Digital/Packager
create mode 100644 packaging/Digital/Packaging-instructions
create mode 100755 packaging/Digital/package-prep
create mode 100755 packaging/Digital/samba.init
create mode 100755 packaging/Digital/setup.sh
create mode 100644 packaging/Digital/skeleton.tar
(limited to 'packaging')
diff --git a/packaging/Digital/Instructions b/packaging/Digital/Instructions
new file mode 100644
index 0000000000..7cc1f49fa9
--- /dev/null
+++ b/packaging/Digital/Instructions
@@ -0,0 +1,55 @@
+Copyright (C) 1997-1998 John H Terpstra
+E-mail: jht@samba.anu.edu.au
+
+Subject: Installation Instructions for Digital Unix v4.0
+--------------------------------------------------------
+
+1) cd /
+2) tar xvf [path-to-]/install.tar
+3) cd /usr/local/samba/lib
+4) vi smb.conf
+
+Now modify smb.conf to reflect your site needs.
+
+5) samba start
+
+To stop samba:
+
+ samba stop
+
+You could install samba to run from the system start-up scripts
+(recommended) by running ./setup.sh
+
+Start / Stop Samba as follows:-
+
+ samba [start | stop]
+
+
+Subject: Encrypted password support
+-----------------------------------
+
+Encrypted password support is quite distinct from Digital Enhanced
+Security Mode operation of the Unix system. Encrypted passwords
+applies to the SMB connections serviced by this machine, not to
+local user logons. Local user logons are services by the security
+system chosen by your system administrator.
+
+Digital Unix knows of either BASIC or ENHANCED security mode
+operation. BASIC mode uses the traditional /etc/passwd database
+containing Unix crypted passwords. ENHANCED mode uses a TCB database.
+Samba-1.9.18p10 has been modified so that if OSF1_ENH_SEC is defined
+at compile time then a password check will be made first using ENHANCED
+mode and if that fails then it will try BASIC mode. This is the case
+for this binary distribution - you need not recompile. In other
+words: this binary distribution will work with either security mode.
+
+To enable SMB encrypted password support do the following:
+
+1) Put /usr/local/samba/bin in your PATH
+2) Edit /usr/local/samba/lib/smb.conf and uncomment the
+ line "encrypt passwd = yes"
+3) Execute: smbpasswd -a "username" "password"
+
+The above will create your /usr/local/samba/private/smbpasswd file
+in which will be the NT and LanMAN hashed passwords.
+
diff --git a/packaging/Digital/PackageDate b/packaging/Digital/PackageDate
new file mode 100644
index 0000000000..360e4148aa
--- /dev/null
+++ b/packaging/Digital/PackageDate
@@ -0,0 +1 @@
+November 14, 1998, Australia/Sydney
diff --git a/packaging/Digital/Packager b/packaging/Digital/Packager
new file mode 100644
index 0000000000..4c08c2fb02
--- /dev/null
+++ b/packaging/Digital/Packager
@@ -0,0 +1,2 @@
+Date: November 14, 1998
+Packager: John H Terpstra
diff --git a/packaging/Digital/Packaging-instructions b/packaging/Digital/Packaging-instructions
new file mode 100644
index 0000000000..77eafd312f
--- /dev/null
+++ b/packaging/Digital/Packaging-instructions
@@ -0,0 +1,14 @@
+The package building files should be located in a directory
+called: samba-2.0.0
+
+Step Directions
+==== ============================================
+1. Copy the samba distribution tarball into the packaging directory
+2. Make sure you have a installed on your system the GNU gzip/gunzip files
+3. Edit "package-prep" script as required
+4. Run "package-prep"
+
+If all goes well, you should now have a usable distribution package.
+
+Note: Update the Instructions file as required.
+
diff --git a/packaging/Digital/package-prep b/packaging/Digital/package-prep
new file mode 100755
index 0000000000..77bacd0472
--- /dev/null
+++ b/packaging/Digital/package-prep
@@ -0,0 +1,31 @@
+tar xvf skeleton.tar
+( cd /usr/local;
+ mv man man.orig;
+ mv samba samba.orig;
+ DIRNOW=`pwd1`;
+ ln -sf $NOWDIR/usr/local/man man;
+ ln -sf $NOWDIR/usr/local/samba samba; )
+gunzip samba-2.0.0.tar.gz
+tar xvf samba-2.0.0.tar
+cd samba-2.0.0/source
+./configure
+make
+make install
+cd $NOWDIR/usr/local/samba
+cp -pr man ../
+rm -rf man
+cd $NOWDIR
+tar cvf install.tar usr var
+cd samba-2.0.0/source/bin
+rm -f *
+cd ..
+make clean
+cd ../..
+tar cvf samba-2.0.0.tar samba-2.0.0
+rm -rf samba-2.0.0
+rm -rf usr var
+cd ..
+find samba-2.0.0 -print | cpio -o > samba-2.0.0-OSF1-v4.0-alpha.cpio
+gzip samba-2.0.0-OSF1-v4.0-alpha.cpio
+cd samba-2.0.0
+tar xcf install.tar
diff --git a/packaging/Digital/samba.init b/packaging/Digital/samba.init
new file mode 100755
index 0000000000..c1d605cda0
--- /dev/null
+++ b/packaging/Digital/samba.init
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+if [ ! -d /usr/bin ]; then
+ echo "The /usr file system is not mounted."
+ exit 1
+fi
+
+killproc() {
+ pid=`/bin/ps ax | grep -w $1 | sed -e 's/^ *//' -e 's/ .*//'`
+ echo "Stopping $1 now."
+ [ "$pid" != "" ] && kill -15 $pid
+ echo $pid
+}
+
+
+# Start/stop processes required for samba server
+
+case "$1" in
+
+ 'start')
+ echo "Starting Samba"
+ /usr/local/samba/sbin/smbd
+ /usr/local/samba/sbin/nmbd
+ echo "Done."
+ ;;
+ 'stop')
+ killproc smbd
+ killproc nmbd
+ ;;
+ *)
+ echo "Usage: /sbin/init.d/samba.init [ start | stop ]"
+ ;;
+esac
+exit 0
diff --git a/packaging/Digital/setup.sh b/packaging/Digital/setup.sh
new file mode 100755
index 0000000000..81b04878bb
--- /dev/null
+++ b/packaging/Digital/setup.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+echo "Setting up for SWAT - The Samba Web Administration Tool"
+
+echo 'swat 901/tcp' >> /etc/services
+uniq /etc/services /tmp/tempserv
+cp /tmp/tempserv /etc/services
+rm /tmp/tempserv
+echo 'swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat' >> /etc/inetd.conf
+uniq /etc/inetd.conf /tmp/tempinetd
+cp /tmp/tempinetd /etc/inetd.conf
+rm /tmp/tempinetd
+echo "Creating Symbolic Links for Start up Scripts"
+cp -f samba.init /sbin/init.d
+chown bin.bin /sbin/init.d/samba.init
+chmod 750 /sbin/init.d/samba.init
+ln -sf /sbin/init.d/samba.init /sbin/rc0.d/K01samba
+ln -sf /sbin/init.d/samba.init /sbin/rc2.d/K91samba
+ln -sf /sbin/init.d/samba.init /sbin/rc3.d/S91samba
+echo "Done. Now settting up samba command"
+ln /sbin/init.d/samba.init /sbin/samba
+echo "Done."
+echo "To start / stop samba:"
+echo " execute: samba [start | stop]
diff --git a/packaging/Digital/skeleton.tar b/packaging/Digital/skeleton.tar
new file mode 100644
index 0000000000..3a57413568
Binary files /dev/null and b/packaging/Digital/skeleton.tar differ
--
cgit
From 7ce840a0edbba91befbbb0a6616d0ec4db95166f Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Mon, 16 Nov 1998 12:03:16 +0000
Subject: Updated packaging files (new for Caldera). (This used to be commit
721a257c941a62508015c0939df40662f8da9a93)
---
packaging/Caldera/README | 11 ++
packaging/Caldera/findsmb | 141 +++++++++++++++
packaging/Caldera/makefile-path.patch | 70 ++++++++
packaging/Caldera/makerpms.sh.tmpl | 14 ++
packaging/Caldera/samba.log | 11 ++
packaging/Caldera/samba.pamd | 2 +
packaging/Caldera/samba2.spec.tmpl | 326 ++++++++++++++++++++++++++++++++++
packaging/Caldera/smb.conf | 291 ++++++++++++++++++++++++++++++
packaging/Caldera/smb.init | 48 +++++
packaging/Caldera/smbadduser | 73 ++++++++
packaging/Caldera/smbprint | 77 ++++++++
packaging/Caldera/smbusers | 3 +
packaging/Caldera/smbw.patch | 10 ++
packaging/PHT/TurboLinux/smbprint | 2 +-
packaging/README | 16 +-
packaging/RedHat/smbprint | 2 +-
16 files changed, 1089 insertions(+), 8 deletions(-)
create mode 100644 packaging/Caldera/README
create mode 100644 packaging/Caldera/findsmb
create mode 100644 packaging/Caldera/makefile-path.patch
create mode 100644 packaging/Caldera/makerpms.sh.tmpl
create mode 100644 packaging/Caldera/samba.log
create mode 100644 packaging/Caldera/samba.pamd
create mode 100644 packaging/Caldera/samba2.spec.tmpl
create mode 100644 packaging/Caldera/smb.conf
create mode 100755 packaging/Caldera/smb.init
create mode 100755 packaging/Caldera/smbadduser
create mode 100755 packaging/Caldera/smbprint
create mode 100644 packaging/Caldera/smbusers
create mode 100644 packaging/Caldera/smbw.patch
(limited to 'packaging')
diff --git a/packaging/Caldera/README b/packaging/Caldera/README
new file mode 100644
index 0000000000..4ce5c89251
--- /dev/null
+++ b/packaging/Caldera/README
@@ -0,0 +1,11 @@
+Preparation Date: Mon November 16 1998
+Preparer: John H Terpstra
+
+Instructions: Preparing Samba Packages for Caldera OpenLinux 1.2
+==================================================================
+
+We provide support only for current versions of Caldera OpenLinux.
+
+To produce the RPMS simply type:
+ sh makerpms.sh
+
diff --git a/packaging/Caldera/findsmb b/packaging/Caldera/findsmb
new file mode 100644
index 0000000000..986c248177
--- /dev/null
+++ b/packaging/Caldera/findsmb
@@ -0,0 +1,141 @@
+#!/usr/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/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>.*$//,);
+
+# 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 = ;
+ 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 = ;
+ 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> - /,@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/makefile-path.patch b/packaging/Caldera/makefile-path.patch
new file mode 100644
index 0000000000..a6988fcb75
--- /dev/null
+++ b/packaging/Caldera/makefile-path.patch
@@ -0,0 +1,70 @@
+--- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
++++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
+***************
+*** 22,32 ****
+ builddir=@builddir@
+ SHELL=/bin/sh
+
+! BASEDIR=$(prefix)/samba
+ BINDIR = $(BASEDIR)/bin
+! SBINDIR = $(BASEDIR)/bin
+! LIBDIR = $(BASEDIR)/lib
+! VARDIR = $(BASEDIR)/var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+--- 22,32 ----
+ builddir=@builddir@
+ SHELL=/bin/sh
+
+! BASEDIR=/usr
+ BINDIR = $(BASEDIR)/bin
+! SBINDIR = $(BASEDIR)/sbin
+! LIBDIR = /etc
+! VARDIR = /var
+ MANDIR = $(BASEDIR)/man
+
+ # The permissions to give the executables
+***************
+*** 35,54 ****
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log.smb
+! NMBLOGFILE = $(VARDIR)/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+! SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+! SWATDIR = $(BASEDIR)/swat
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/locks
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
+--- 35,54 ----
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+! SMBLOGFILE = $(VARDIR)/log/samba/log.smb
+! NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+! SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+! SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+! LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
diff --git a/packaging/Caldera/makerpms.sh.tmpl b/packaging/Caldera/makerpms.sh.tmpl
new file mode 100644
index 0000000000..fa69370dff
--- /dev/null
+++ b/packaging/Caldera/makerpms.sh.tmpl
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Copyright (C) John H Terpstra 1998
+#
+RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'`
+SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'`
+SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'`
+
+( cd ../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
+cp -a *.spec $SPECDIR
+cp -a *.patch smb.* samba.log $SRCDIR
+cd $SRCDIR
+chown -R root.root samba-PVERSION
+cd $SPECDIR
+rpm -ba -v samba2.spec
diff --git a/packaging/Caldera/samba.log b/packaging/Caldera/samba.log
new file mode 100644
index 0000000000..c5f2a5b45b
--- /dev/null
+++ b/packaging/Caldera/samba.log
@@ -0,0 +1,11 @@
+/var/log/samba/log.nmb {
+ postrotate
+ /usr/bin/killall -HUP nmbd
+ endrotate
+}
+
+/var/log/samba/log.smb {
+ postrotate
+ /usr/bin/killall -HUP smbd
+ endrotate
+}
diff --git a/packaging/Caldera/samba.pamd b/packaging/Caldera/samba.pamd
new file mode 100644
index 0000000000..f38e70184a
--- /dev/null
+++ b/packaging/Caldera/samba.pamd
@@ -0,0 +1,2 @@
+auth required /lib/security/pam_pwdb.so nullok shadow
+account required /lib/security/pam_pwdb.so
diff --git a/packaging/Caldera/samba2.spec.tmpl b/packaging/Caldera/samba2.spec.tmpl
new file mode 100644
index 0000000000..edf382b27f
--- /dev/null
+++ b/packaging/Caldera/samba2.spec.tmpl
@@ -0,0 +1,326 @@
+Summary: Samba SMB client and server
+Name: samba
+Version: PVERSION
+Release: PRELEASE
+Copyright: GNU GPL version 2
+Group: Networking
+Source: ftp://samba.anu.edu.au/pub/samba/samba-PVERSION.tar.gz
+Patch: makefile-path.patch
+Patch1: smbw.patch
+Packager: John H Terpstra [Samba-Team]
+BuildRoot: /var/tmp/samba
+
+%description
+Samba provides an SMB server which can be used to provide
+network services to SMB (sometimes called "Lan Manager")
+clients, including various versions of MS Windows, OS/2,
+and other Linux machines. Samba also provides some SMB
+clients, which complement the built-in SMB filesystem
+in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
+and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
+protocol.
+
+Samba-2 features an almost working NT Domain Control
+capability and includes the new SWAT (Samba Web Administration
+Tool) that allows samba's smb.conf file to be remotely managed
+using your favourite web browser. For the time being this is
+being enabled on TCP port 901 via inetd.
+
+Please refer to the WHATSNEW.txt document for fixup information.
+This binary release includes encrypted password support.
+Please read the smb.conf file and ENCRYPTION.txt in the
+docs directory for implementation details.
+
+%changelog
+* Mon Nov 16 1998 John H Terpstra
+ - Ported to Cadera OpenLinux
+
+* Sun Oct 25 1998 John H Terpstra
+ - Added parameters to /config to ensure smb.conf, lmhosts,
+ and smbusers never gets over-written.
+
+* Sat Oct 24 1998 John H Terpstra
+ - removed README.smbsh file from docs area
+
+* Mon Oct 05 1998 John H Terpstra
+ - Added rpcclient to binaries list
+ - Added smbwrapper stuff
+
+* Fri Aug 21 1998 John H Terpstra
+ - Updated for Samba version 2.0 building
+
+* Tue Jul 07 1998 Erik Troan
+ - updated postun triggerscript to check $0
+ - clear /etc/codepages from %preun instead of %postun
+
+* Sat Jul 04 1998 John H Terpstra
+ - fixed codepage preservation during update via -Uvh
+
+* Mon Jun 08 1998 Erik Troan
+ - made the %postun script a tad less agressive; no reason to remove
+ the logs or lock file
+ - the %postun and %preun should only exectute if this is the final
+ removal
+ - migrated %triggerpostun from Red Hat's samba package to work around
+ packaging problems in some Red Hat samba releases
+
+* Sun Apr 26 1998 John H Terpstra
+ - Tidy up for early alpha releases
+ - added findsmb from SGI packaging
+
+* Thu Apr 09 1998 John H Terpstra
+ - Updated spec file
+ - Included new codepage.936
+
+* Sat Mar 20 1998 John H Terpstra
+ - Added swat facility
+
+* Sat Jan 24 1998 John H Terpstra
+ - Many optimisations (some suggested by Manoj Kasichainula
+ - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
+ - Compounded make line
+ - Updated smb.init restart mechanism
+ - Use compound mkdir -p line instead of individual calls to mkdir
+ - Fixed smb.conf file path for log files
+ - Fixed smb.conf file path for incoming smb print spool directory
+ - Added a number of options to smb.conf file
+ - Added smbadduser command (missed from all previous RPMs) - Doooh!
+ - Added smbuser file and smb.conf file updates for username map
+
+%prep
+%setup
+%patch -p1
+%patch1 -p1
+
+%build
+cd source
+./configure --with-smbwrapper
+make all smbwrapper
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/etc/codepages/src
+mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d}
+mkdir -p $RPM_BUILD_ROOT/etc/rc.d/{init.d,rc0.d,rc1.d,rc2.d,rc3.d,rc5.d,rc6.d}
+mkdir -p $RPM_BUILD_ROOT/home/samba
+mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin}
+mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help,include}
+mkdir -p $RPM_BUILD_ROOT/usr/man/{man1,man5,man7,man8}
+mkdir -p $RPM_BUILD_ROOT/var/lock/samba
+mkdir -p $RPM_BUILD_ROOT/var/log/samba
+mkdir -p $RPM_BUILD_ROOT/var/spool/samba
+
+# Install standard binary files
+for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns \
+ make_smbcodepage make_printerdef rpcclient smbsh smbwrapper.so
+do
+install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin
+done
+for i in addtosmbpass mksmbpasswd.sh smbtar
+do
+install -m755 source/script/$i $RPM_BUILD_ROOT/usr/bin
+done
+
+# Install secure binary files
+for i in smbd nmbd swat
+do
+install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin
+done
+
+# Install level 1 man pages
+for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1
+do
+install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/man/man1
+done
+
+# Install codepage source files
+for i in 437 737 850 852 861 866 932 936 949 950
+do
+install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src
+done
+
+# Install SWAT helper files
+for i in swat/help/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help
+done
+for i in swat/images/*.gif
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images
+done
+for i in swat/include/*.html
+do
+install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include
+done
+
+# Install the miscellany
+install -m644 swat/README $RPM_BUILD_ROOT/usr/share/swat
+install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT/usr/man/man5
+install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT/usr/man/man7
+install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8
+install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/smb.conf
+install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/smbusers
+install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
+install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/usr/sbin/samba
+install -m644 packaging/RedHat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba
+install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba
+echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add smb
+
+# Build codepage load files
+for i in 437 737 850 852 861 866 932 936 949 950
+do
+/usr/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i
+done
+
+# Add swat entry to /etc/services if not already there
+if !( grep ^[:space:]*swat /etc/services > /dev/null ) then
+ echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services
+fi
+
+# Add swat entry to /etc/inetd.conf if needed
+if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then
+ echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf
+killall -1 inetd || :
+fi
+
+%preun
+if [ $1 = 0 ] ; then
+ /sbin/chkconfig --del smb
+
+ for n in /etc/codepages/*; do
+ if [ $n != /etc/codepages/src ]; then
+ rm -rf $n
+ fi
+ done
+ # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba!
+ if [ -e /var/lock/samba/browse.dat ]; then
+ rm -f /var/lock/samba/browse.dat
+ fi
+ if [ -e /var/lock/samba/wins.dat ]; then
+ rm -f /var/lock/samba/wins.dat
+ fi
+fi
+
+%postun
+# Only delete remnants of samba if this is the final deletion.
+if [ $1 != 0 ] ; then
+ exit 0
+
+ if [ -x /etc/pam.d/samba ]; then
+ rm -f /etc/pam.d/samba
+ fi
+ if [ -e /var/log/samba ]; then
+ rm -rf /var/log/samba
+ fi
+ if [ -e /var/lock/samba ]; then
+ rm -rf /var/lock/samba
+ fi
+
+ # Remove swat entries from /etc/inetd.conf and /etc/services
+ cd /etc
+ tmpfile=/etc/tmp.$$
+ sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile
+ mv $tmpfile inetd.conf
+ sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile
+ mv $tmpfile services
+fi
+
+%triggerpostun -- samba < samba-2.0.0
+if [ $0 != 0 ]; then
+ /sbin/chkconfig --add smb
+fi
+
+
+%files
+%doc README COPYING Manifest Read-Manifest-Now
+%doc WHATSNEW.txt Roadmap
+%doc docs
+%doc swat/README
+%doc examples
+%attr(-,root,root) /usr/sbin/smbd
+%attr(-,root,root) /usr/sbin/nmbd
+%attr(-,root,root) /usr/sbin/swat
+%attr(0755,root,root) /usr/sbin/samba
+%attr(-,root,root) /usr/bin/addtosmbpass
+%attr(-,root,root) /usr/bin/mksmbpasswd.sh
+%attr(-,root,root) /usr/bin/smbclient
+%attr(-,root,root) /usr/bin/rpcclient
+%attr(-,root,root) /usr/bin/testparm
+%attr(-,root,root) /usr/bin/testprns
+%attr(-,root,root) /usr/bin/smbrun
+%attr(-,root,root) /usr/bin/findsmb
+%attr(-,root,root) /usr/bin/smbstatus
+%attr(-,root,root) /usr/bin/nmblookup
+%attr(-,root,root) /usr/bin/make_smbcodepage
+%attr(-,root,root) /usr/bin/make_printerdef
+%attr(-,root,root) /usr/bin/smbpasswd
+%attr(-,root,root) /usr/bin/smbtar
+%attr(-,root,root) /usr/bin/smbprint
+%attr(-,root,root) /usr/bin/smbadduser
+%attr(0755,root,root) /usr/bin/smbsh
+%attr(0755,root,root) /usr/bin/smbwrapper.so
+%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html
+%attr(-,root,root) /usr/share/swat/help/welcome.html
+%attr(-,root,root) /usr/share/swat/images/globals.gif
+%attr(-,root,root) /usr/share/swat/images/home.gif
+%attr(-,root,root) /usr/share/swat/images/passwd.gif
+%attr(-,root,root) /usr/share/swat/images/printers.gif
+%attr(-,root,root) /usr/share/swat/images/shares.gif
+%attr(-,root,root) /usr/share/swat/images/samba.gif
+%attr(-,root,root) /usr/share/swat/images/status.gif
+%attr(-,root,root) /usr/share/swat/images/viewconfig.gif
+%attr(-,root,root) /usr/share/swat/include/header.html
+%attr(-,root,root) /usr/share/swat/include/footer.html
+%attr(-,root,root) %config(noreplace) /etc/lmhosts
+%attr(-,root,root) %config(noreplace) /etc/smb.conf
+%attr(-,root,root) %config(noreplace) /etc/smbusers
+%attr(-,root,root) /etc/rc.d/init.d/smb
+%attr(-,root,root) /etc/logrotate.d/samba
+%attr(-,root,root) /etc/pam.d/samba
+%attr(-,root,root) /etc/codepages/src/codepage_def.437
+%attr(-,root,root) /etc/codepages/src/codepage_def.737
+%attr(-,root,root) /etc/codepages/src/codepage_def.850
+%attr(-,root,root) /etc/codepages/src/codepage_def.852
+%attr(-,root,root) /etc/codepages/src/codepage_def.861
+%attr(-,root,root) /etc/codepages/src/codepage_def.866
+%attr(-,root,root) /etc/codepages/src/codepage_def.932
+%attr(-,root,root) /etc/codepages/src/codepage_def.936
+%attr(-,root,root) /etc/codepages/src/codepage_def.949
+%attr(-,root,root) /etc/codepages/src/codepage_def.950
+%attr(-,root,root) /usr/man/man1/smbstatus.1
+%attr(-,root,root) /usr/man/man1/smbclient.1
+%attr(-,root,root) /usr/man/man1/make_smbcodepage.1
+%attr(-,root,root) /usr/man/man1/smbrun.1
+%attr(-,root,root) /usr/man/man1/smbtar.1
+%attr(-,root,root) /usr/man/man1/testparm.1
+%attr(-,root,root) /usr/man/man1/testprns.1
+%attr(-,root,root) /usr/man/man1/nmblookup.1
+%attr(-,root,root) /usr/man/man5/smb.conf.5
+%attr(-,root,root) /usr/man/man5/lmhosts.5
+%attr(-,root,root) /usr/man/man5/smbpasswd.5
+%attr(-,root,root) /usr/man/man7/samba.7
+%attr(-,root,root) /usr/man/man8/smbd.8
+%attr(-,root,root) /usr/man/man8/nmbd.8
+%attr(-,root,root) /usr/man/man8/smbpasswd.8
+%attr(-,root,root) /usr/man/man8/swat.8
+%attr(-,root,nobody) %dir /home/samba
+%attr(-,root,root) %dir /etc/codepages
+%attr(-,root,root) %dir /etc/codepages/src
+%attr(-,root,root) %dir /var/lock/samba
+%attr(-,root,root) %dir /var/log/samba
+%attr(777,root,root) %dir /var/spool/samba
diff --git a/packaging/Caldera/smb.conf b/packaging/Caldera/smb.conf
new file mode 100644
index 0000000000..bd9a8e15bc
--- /dev/null
+++ b/packaging/Caldera/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 = /etc/printcap
+ 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 = bsd
+
+# 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 = /var/log/samba/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 =
+
+# 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
+
+# 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 =
+
+# 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/smb.init b/packaging/Caldera/smb.init
new file mode 100755
index 0000000000..828c19b069
--- /dev/null
+++ b/packaging/Caldera/smb.init
@@ -0,0 +1,48 @@
+#!/bin/sh
+#
+# description: Starts and stops the Samba smbd and nmbd daemons \
+# used to provide SMB network services.
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+[ ${NETWORKING} = "no" ] && exit 0
+
+# Check that smb.conf exists.
+[ -f /etc/smb.conf ] || exit 0
+
+# See how we were called.
+case "$1" in
+ start)
+ echo -n "Starting SMB services: "
+ smbd -D
+ nmbd -D
+ echo
+ touch /var/lock/subsys/smb
+ ;;
+ stop)
+ echo -n "Shutting down SMB services: "
+ killproc smbd
+ killproc nmbd
+ rm -f /var/lock/subsys/smb
+ echo ""
+ ;;
+ status)
+ status smbd
+ status nmbd
+ ;;
+ restart)
+ echo -n "Restarting SMB services: "
+ $0 stop
+ $0 start
+ echo "done."
+ ;;
+ *)
+ echo "Usage: smb {start|stop|restart|status}"
+ exit 1
+esac
+
diff --git a/packaging/Caldera/smbadduser b/packaging/Caldera/smbadduser
new file mode 100755
index 0000000000..2f38bf28f1
--- /dev/null
+++ b/packaging/Caldera/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/smbprint b/packaging/Caldera/smbprint
new file mode 100755
index 0000000000..ec083eede6
--- /dev/null
+++ b/packaging/Caldera/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/smbusers b/packaging/Caldera/smbusers
new file mode 100644
index 0000000000..ae3389f53f
--- /dev/null
+++ b/packaging/Caldera/smbusers
@@ -0,0 +1,3 @@
+# Unix_name = SMB_name1 SMB_name2 ...
+root = administrator admin
+nobody = guest pcguest smbguest
diff --git a/packaging/Caldera/smbw.patch b/packaging/Caldera/smbw.patch
new file mode 100644
index 0000000000..0abbfdf73f
--- /dev/null
+++ b/packaging/Caldera/smbw.patch
@@ -0,0 +1,10 @@
+--- samba-2.0.0/source/smbwrapper/smbsh.in.orig Mon Oct 5 22:37:01 1998
++++ samba-2.0.0/source/smbwrapper/smbsh.in Mon Oct 5 22:37:51 1998
+@@ -1,6 +1,6 @@
+ #! /bin/sh
+
+-SMBW_LIBDIR=${SMBW_LIBDIR-@builddir@/smbwrapper}
++SMBW_LIBDIR=${SMBW_LIBDIR-/usr/bin}
+
+ if [ ! -f ${SMBW_LIBDIR}/smbwrapper.so ]; then
+ echo You need to set LIBDIR in smbsh
diff --git a/packaging/PHT/TurboLinux/smbprint b/packaging/PHT/TurboLinux/smbprint
index 51b15706ad..ec083eede6 100755
--- a/packaging/PHT/TurboLinux/smbprint
+++ b/packaging/PHT/TurboLinux/smbprint
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/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
diff --git a/packaging/README b/packaging/README
index 1adb809ae5..371586e4cc 100644
--- a/packaging/README
+++ b/packaging/README
@@ -1,6 +1,7 @@
-Copyright (C) 1997 - Samba-Team
-Date: August 19, 1997
+Copyright (C) 1997-1998 Samba-Team
+Date: November 16, 1998
Updates: First Release - 19970819
+ 19981116
===============================================================================
Note:
@@ -9,10 +10,13 @@ This directory is a public repository for platform specific files including
build files for binary package distributions for specific operating systems
as well as for source file distribution packages for those systems.
-As such, the files contained here are intended for use only by those wishing
-to build their own distribution packages and are NOT considered suitable
-material for anyone who wants to just install Samba from the pristine source
-files contained under the ~/source directory.
+The Example directory should be used as a guide for preparation of binary
+packages for distribution via the official samba ftp sites.
+
+The files contained here are intended for use only by those wishing to build
+distribution packages and are NOT considered suitable material for anyone who
+wants to just install Samba from the pristine source files contained under
+the ~/source directory.
All contributions / modifications / additions / etc. to the packaging files
should be sent to samba-bugs@samba.anu.edu.au with the subject marked:
diff --git a/packaging/RedHat/smbprint b/packaging/RedHat/smbprint
index 51b15706ad..ec083eede6 100755
--- a/packaging/RedHat/smbprint
+++ b/packaging/RedHat/smbprint
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/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
--
cgit
From 7491c291ff93af0e7fe214e4af7abd5bb934b18a Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Mon, 16 Nov 1998 12:21:02 +0000
Subject: Added Example binary packaging instructions. (This used to be commit
4c60314b050324b356f38f648f2730cb1d39be4c)
---
packaging/Example/Instructions | 41 ++++++++++++++++++++++++
packaging/Example/PackageDate | 1 +
packaging/Example/Packager | 1 +
packaging/Example/Packaging-instructions | 16 ++++++++++
packaging/Example/package-prep | 52 +++++++++++++++++++++++++++++++
packaging/Example/samba.init | 34 ++++++++++++++++++++
packaging/Example/setup.sh | 27 ++++++++++++++++
packaging/Example/skeleton.tar | Bin 0 -> 30720 bytes
8 files changed, 172 insertions(+)
create mode 100644 packaging/Example/Instructions
create mode 100644 packaging/Example/PackageDate
create mode 100644 packaging/Example/Packager
create mode 100644 packaging/Example/Packaging-instructions
create mode 100755 packaging/Example/package-prep
create mode 100755 packaging/Example/samba.init
create mode 100755 packaging/Example/setup.sh
create mode 100644 packaging/Example/skeleton.tar
(limited to 'packaging')
diff --git a/packaging/Example/Instructions b/packaging/Example/Instructions
new file mode 100644
index 0000000000..5e432f47b9
--- /dev/null
+++ b/packaging/Example/Instructions
@@ -0,0 +1,41 @@
+Copyright (C) 1997-1998 Samba-Team
+E-mail: samba-binaries@samba.anu.edu.au
+
+Subject: Installation Instructions for SuperNewOS X.X
+--------------------------------------------------------
+
+1) cd /
+2) tar xvf [path-to-samba-package]/install.tar
+3) cd /usr/local/samba/lib
+4) vi smb.conf
+
+Now modify smb.conf to reflect your site needs.
+
+5) samba start
+
+To stop samba:
+
+ samba stop
+
+You could install samba to run from the system start-up scripts
+(recommended) by running ./setup.sh
+
+Start / Stop Samba as follows:-
+
+ samba [start | stop]
+
+
+Subject: New Users Must Read This
+-----------------------------------
+Above ALL else, read the smb.conf man pages _AND_ all text documentation.
+
+To enable SMB encrypted password support do the following:
+
+1) Put /usr/local/samba/bin in your PATH
+2) Edit /usr/local/samba/lib/smb.conf and uncomment the
+ line "encrypt passwd = yes"
+3) Execute: smbpasswd -a "username" "password"
+
+The above will create your /usr/local/samba/private/smbpasswd file
+in which will be the NT and LanMAN hashed passwords.
+
diff --git a/packaging/Example/PackageDate b/packaging/Example/PackageDate
new file mode 100644
index 0000000000..95cbb0972b
--- /dev/null
+++ b/packaging/Example/PackageDate
@@ -0,0 +1 @@
+# Month, WeekDay, Date, Year, PreparerCity, Country
diff --git a/packaging/Example/Packager b/packaging/Example/Packager
new file mode 100644
index 0000000000..f5db3f8c30
--- /dev/null
+++ b/packaging/Example/Packager
@@ -0,0 +1 @@
+Packager: John Doe
diff --git a/packaging/Example/Packaging-instructions b/packaging/Example/Packaging-instructions
new file mode 100644
index 0000000000..b598fd68b1
--- /dev/null
+++ b/packaging/Example/Packaging-instructions
@@ -0,0 +1,16 @@
+The package building files should be located in a
+directory called: samba-X.X.X
+
+Where X.X.X is the version ID.
+
+Step Directions
+==== ============================================
+1. Copy the samba distribution tarball into the packaging directory
+2. Make sure you have a installed on your system the GNU gzip/gunzip files
+3. Edit "package-prep" script as required
+4. Run "package-prep"
+
+If all goes well, you should now have a usable distribution package.
+
+Note: Update the Instructions file as required.
+
diff --git a/packaging/Example/package-prep b/packaging/Example/package-prep
new file mode 100755
index 0000000000..5e5834a6d3
--- /dev/null
+++ b/packaging/Example/package-prep
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+# Extract the skeleton directory structure into which samba will be installed.
+tar xvf skeleton.tar
+
+# Now link the skeleton directory structure into the final install tree.
+( cd /usr/local;
+ mv man man.orig;
+ mv samba samba.orig;
+ DIRNOW=`pwd1`;
+ ln -sf $NOWDIR/usr/local/man man;
+ ln -sf $NOWDIR/usr/local/samba samba; )
+
+# Unpack the master source tarball
+gunzip samba-X.X.X.tar.gz
+tar xvf samba-X.X.X.tar
+
+# Now build the binary files
+cd samba-X.X.X/source
+./configure
+make
+make install
+
+# Install into the packaging tree that full reflects the final install tree
+cd $NOWDIR/usr/local/samba
+cp -pr man ../
+rm -rf man
+cd $NOWDIR
+
+# Create the package tarball
+tar cvf install.tar usr var
+
+# Clean up original sources preserving all configured files
+# Note: This will allow installers to check build options
+cd samba-X.X.X/source/bin
+rm -f *
+cd ..
+make clean
+cd ../..
+tar cvf samba-X.X.X.tar samba-X.X.X
+rm -rf samba-X.X.X
+rm -rf usr var
+cd ..
+tar cvf samba-X.X.X-OS-Version-CPU.tar samba-X.X.X
+gzip samba-X.X.X-OS-Version-CPU.tar
+
+# We now have the distribution package, now restore our runtime system
+cd samba-X.X.X
+tar xcf install.tar
+
+# Please test operation before shipping the binary distribution package
+# to the samba-team.
diff --git a/packaging/Example/samba.init b/packaging/Example/samba.init
new file mode 100755
index 0000000000..c1d605cda0
--- /dev/null
+++ b/packaging/Example/samba.init
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+if [ ! -d /usr/bin ]; then
+ echo "The /usr file system is not mounted."
+ exit 1
+fi
+
+killproc() {
+ pid=`/bin/ps ax | grep -w $1 | sed -e 's/^ *//' -e 's/ .*//'`
+ echo "Stopping $1 now."
+ [ "$pid" != "" ] && kill -15 $pid
+ echo $pid
+}
+
+
+# Start/stop processes required for samba server
+
+case "$1" in
+
+ 'start')
+ echo "Starting Samba"
+ /usr/local/samba/sbin/smbd
+ /usr/local/samba/sbin/nmbd
+ echo "Done."
+ ;;
+ 'stop')
+ killproc smbd
+ killproc nmbd
+ ;;
+ *)
+ echo "Usage: /sbin/init.d/samba.init [ start | stop ]"
+ ;;
+esac
+exit 0
diff --git a/packaging/Example/setup.sh b/packaging/Example/setup.sh
new file mode 100755
index 0000000000..994b16d5ef
--- /dev/null
+++ b/packaging/Example/setup.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# Note: This file MUST be edited to suit the target OS environment.
+#
+
+echo "Setting up for SWAT - The Samba Web Administration Tool"
+
+echo 'swat 901/tcp' >> /etc/services
+uniq /etc/services /tmp/tempserv
+cp /tmp/tempserv /etc/services
+rm /tmp/tempserv
+echo 'swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat' >> /etc/inetd.conf
+uniq /etc/inetd.conf /tmp/tempinetd
+cp /tmp/tempinetd /etc/inetd.conf
+rm /tmp/tempinetd
+echo "Creating Symbolic Links for Start up Scripts"
+cp -f samba.init /sbin/init.d
+chown bin.bin /sbin/init.d/samba.init
+chmod 750 /sbin/init.d/samba.init
+ln -sf /sbin/init.d/samba.init /sbin/rc0.d/K01samba
+ln -sf /sbin/init.d/samba.init /sbin/rc2.d/K91samba
+ln -sf /sbin/init.d/samba.init /sbin/rc3.d/S91samba
+echo "Done. Now settting up samba command"
+ln /sbin/init.d/samba.init /sbin/samba
+echo "Done."
+echo "To start / stop samba:"
+echo " execute: samba [start | stop]
diff --git a/packaging/Example/skeleton.tar b/packaging/Example/skeleton.tar
new file mode 100644
index 0000000000..3a57413568
Binary files /dev/null and b/packaging/Example/skeleton.tar differ
--
cgit
From 933b3ac684195a56e524c4ae6964ff7f9284da14 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Mon, 16 Nov 1998 12:23:47 +0000
Subject: Removed smbwrappers from build specs and from installation specs.
(This used to be commit c444cba3bef6cdf80dd33b3b5f23ba0a34d5482a)
---
packaging/Caldera/samba2.spec.tmpl | 68 +++-----------------------------------
1 file changed, 4 insertions(+), 64 deletions(-)
(limited to 'packaging')
diff --git a/packaging/Caldera/samba2.spec.tmpl b/packaging/Caldera/samba2.spec.tmpl
index edf382b27f..4f8899ca3f 100644
--- a/packaging/Caldera/samba2.spec.tmpl
+++ b/packaging/Caldera/samba2.spec.tmpl
@@ -35,58 +35,6 @@ docs directory for implementation details.
* Mon Nov 16 1998 John H Terpstra
- Ported to Cadera OpenLinux
-* Sun Oct 25 1998 John H Terpstra
- - Added parameters to /config to ensure smb.conf, lmhosts,
- and smbusers never gets over-written.
-
-* Sat Oct 24 1998 John H Terpstra
- - removed README.smbsh file from docs area
-
-* Mon Oct 05 1998 John H Terpstra
- - Added rpcclient to binaries list
- - Added smbwrapper stuff
-
-* Fri Aug 21 1998 John H Terpstra
- - Updated for Samba version 2.0 building
-
-* Tue Jul 07 1998 Erik Troan
- - updated postun triggerscript to check $0
- - clear /etc/codepages from %preun instead of %postun
-
-* Sat Jul 04 1998 John H Terpstra
- - fixed codepage preservation during update via -Uvh
-
-* Mon Jun 08 1998 Erik Troan
- - made the %postun script a tad less agressive; no reason to remove
- the logs or lock file
- - the %postun and %preun should only exectute if this is the final
- removal
- - migrated %triggerpostun from Red Hat's samba package to work around
- packaging problems in some Red Hat samba releases
-
-* Sun Apr 26 1998 John H Terpstra
- - Tidy up for early alpha releases
- - added findsmb from SGI packaging
-
-* Thu Apr 09 1998 John H Terpstra
- - Updated spec file
- - Included new codepage.936
-
-* Sat Mar 20 1998 John H Terpstra
- - Added swat facility
-
-* Sat Jan 24 1998 John H Terpstra
- - Many optimisations (some suggested by Manoj Kasichainula
- - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
- - Compounded make line
- - Updated smb.init restart mechanism
- - Use compound mkdir -p line instead of individual calls to mkdir
- - Fixed smb.conf file path for log files
- - Fixed smb.conf file path for incoming smb print spool directory
- - Added a number of options to smb.conf file
- - Added smbadduser command (missed from all previous RPMs) - Doooh!
- - Added smbuser file and smb.conf file updates for username map
-
%prep
%setup
%patch -p1
@@ -94,8 +42,8 @@ docs directory for implementation details.
%build
cd source
-./configure --with-smbwrapper
-make all smbwrapper
+./configure
+make all
%install
rm -rf $RPM_BUILD_ROOT
@@ -113,7 +61,7 @@ mkdir -p $RPM_BUILD_ROOT/var/spool/samba
# Install standard binary files
for i in nmblookup smbclient smbpasswd smbrun smbstatus testparm testprns \
- make_smbcodepage make_printerdef rpcclient smbsh smbwrapper.so
+ make_smbcodepage make_printerdef rpcclient
do
install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin
done
@@ -240,12 +188,6 @@ if [ $1 != 0 ] ; then
mv $tmpfile services
fi
-%triggerpostun -- samba < samba-2.0.0
-if [ $0 != 0 ]; then
- /sbin/chkconfig --add smb
-fi
-
-
%files
%doc README COPYING Manifest Read-Manifest-Now
%doc WHATSNEW.txt Roadmap
@@ -255,7 +197,7 @@ fi
%attr(-,root,root) /usr/sbin/smbd
%attr(-,root,root) /usr/sbin/nmbd
%attr(-,root,root) /usr/sbin/swat
-%attr(0755,root,root) /usr/sbin/samba
+%attr(0750,root,root) /usr/sbin/samba
%attr(-,root,root) /usr/bin/addtosmbpass
%attr(-,root,root) /usr/bin/mksmbpasswd.sh
%attr(-,root,root) /usr/bin/smbclient
@@ -272,8 +214,6 @@ fi
%attr(-,root,root) /usr/bin/smbtar
%attr(-,root,root) /usr/bin/smbprint
%attr(-,root,root) /usr/bin/smbadduser
-%attr(0755,root,root) /usr/bin/smbsh
-%attr(0755,root,root) /usr/bin/smbwrapper.so
%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html
%attr(-,root,root) /usr/share/swat/help/welcome.html
%attr(-,root,root) /usr/share/swat/images/globals.gif
--
cgit
From 590432ac95c9e9bd5a0fa5b237825a5b751bc574 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Mon, 16 Nov 1998 12:25:50 +0000
Subject: Reviewed file permissions and removed other execute on samba
start/stop script. (This used to be commit
2dde295da0e387cdd5c20a0bec72f9316f4d80f2)
---
packaging/PHT/TurboLinux/samba2.spec.tmpl | 2 +-
packaging/RedHat/samba2.spec.tmpl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'packaging')
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index d7586f3cae..c090d33482 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -258,7 +258,7 @@ fi
%attr(-,root,root) /usr/sbin/smbd
%attr(-,root,root) /usr/sbin/nmbd
%attr(-,root,root) /usr/sbin/swat
-%attr(0755,root,root) /usr/sbin/samba
+%attr(0750,root,root) /usr/sbin/samba
%attr(-,root,root) /usr/bin/addtosmbpass
%attr(-,root,root) /usr/bin/mksmbpasswd.sh
%attr(-,root,root) /usr/bin/smbclient
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index d4121d7511..ac5e8b01ea 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -258,7 +258,7 @@ fi
%attr(-,root,root) /usr/sbin/smbd
%attr(-,root,root) /usr/sbin/nmbd
%attr(-,root,root) /usr/sbin/swat
-%attr(0755,root,root) /usr/sbin/samba
+%attr(0750,root,root) /usr/sbin/samba
%attr(-,root,root) /usr/bin/addtosmbpass
%attr(-,root,root) /usr/bin/mksmbpasswd.sh
%attr(-,root,root) /usr/bin/smbclient
--
cgit
From 8a22f36abdd8fb6bead1989b926694ec90080834 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Mon, 16 Nov 1998 13:31:53 +0000
Subject: Set sticky bit on /var/spool/samba. Further security review. (This
used to be commit e31c61c29eb126680c78d6d02dc11827b39a064b)
---
packaging/Caldera/samba2.spec.tmpl | 2 +-
packaging/Digital/skeleton.tar | Bin 30720 -> 30720 bytes
packaging/Example/skeleton.tar | Bin 30720 -> 30720 bytes
packaging/PHT/TurboLinux/samba2.spec.tmpl | 2 +-
packaging/RedHat/samba2.spec.tmpl | 2 +-
5 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'packaging')
diff --git a/packaging/Caldera/samba2.spec.tmpl b/packaging/Caldera/samba2.spec.tmpl
index 4f8899ca3f..bda5a56028 100644
--- a/packaging/Caldera/samba2.spec.tmpl
+++ b/packaging/Caldera/samba2.spec.tmpl
@@ -263,4 +263,4 @@ fi
%attr(-,root,root) %dir /etc/codepages/src
%attr(-,root,root) %dir /var/lock/samba
%attr(-,root,root) %dir /var/log/samba
-%attr(777,root,root) %dir /var/spool/samba
+%attr(1777,root,root) %dir /var/spool/samba
diff --git a/packaging/Digital/skeleton.tar b/packaging/Digital/skeleton.tar
index 3a57413568..92598d0c5e 100644
Binary files a/packaging/Digital/skeleton.tar and b/packaging/Digital/skeleton.tar differ
diff --git a/packaging/Example/skeleton.tar b/packaging/Example/skeleton.tar
index 3a57413568..92598d0c5e 100644
Binary files a/packaging/Example/skeleton.tar and b/packaging/Example/skeleton.tar differ
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index c090d33482..444a0e1df6 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -322,4 +322,4 @@ fi
%attr(-,root,root) %dir /etc/codepages/src
%attr(-,root,root) %dir /var/lock/samba
%attr(-,root,root) %dir /var/log/samba
-%attr(777,root,root) %dir /var/spool/samba
+%attr(1777,root,root) %dir /var/spool/samba
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index ac5e8b01ea..b00001443b 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -326,4 +326,4 @@ fi
%attr(-,root,root) %dir /etc/codepages/src
%attr(-,root,root) %dir /var/lock/samba
%attr(-,root,root) %dir /var/log/samba
-%attr(777,root,root) %dir /var/spool/samba
+%attr(1777,root,root) %dir /var/spool/samba
--
cgit
From 0b2e84243c54f86d25364a8b8ff2efeff2ac9b2d Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 16 Nov 1998 13:47:22 +0000
Subject: some fixes for IRIX 5.3 builds (This used to be commit
c2b63b90825316151f3ffc8dbae45609062c0a73)
---
packaging/SGI/mkrelease.sh | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index cfbd40ec04..4261d1ee00 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -7,13 +7,27 @@
doclean=""
SGI_ABI=-n32
CC=cc
-export SGI_ABI CC
if [ "$1" = "clean" ]; then
doclean=$1
shift
+elif [ "$1" = "5" ]; then
+ SGI_ABI=-32
+ shift
+fi
+
+# check again in case they put the args in the wrong order
+
+if [ "$1" = "clean" ]; then
+ doclean=$1
+ shift
+elif [ "$1" = "5" ]; then
+ SGI_ABI=-32
+ shift
fi
+export SGI_ABI CC
+
if [ "$doclean" = "clean" ]; then
cd ../../source
if [ -f Makefile ]; then
@@ -43,7 +57,7 @@ if [ "$doclean" = "clean" -o ! -f Makefile ]; then
chmod +x config.guess
chmod +x config.status
chmod +x config.sub
- ./configure --prefix=/usr --mandir=/usr/src/man
+ ./configure --prefix=/usr --mandir=/usr/src/man --with-smbwrapper
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat creating Makefile\n";
@@ -56,14 +70,7 @@ fi
#
echo Making binaries
-if [ "$1" = "5" ]; then
- myflags="CFLAGS=-O -g3"
- shift
-else
- myflags="CFLAGS=-O -g3"
-fi
-
-make "$myflags" $*
+make "CFLAGS=-O -g3" $*
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat building sources\n";
--
cgit
From 67d5258486da64e0b272093614d16e6e8794ee1c Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Mon, 16 Nov 1998 16:36:57 +0000
Subject: add some more comments and clean it up a little more. (This used to
be commit 73e4b91a9d152eb3d56997c9108d536d38e3c07e)
---
packaging/SGI/mkrelease.sh | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index 4261d1ee00..921476f375 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -1,13 +1,25 @@
#!/bin/sh
# This file goes through all the necessary steps to build a release package.
-# You may specify a OS major version number (4, 5, or 6) to specify which
-# OS release to build. If no version number is given it will default to 6.
+# syntax:
+# mkrelease.sh [5] [clean] [targets ....]
+#
+# You may specify 5 to build for IRIX 5.3
+#
+# You can specify clean to do a make clean before building. Make clean
+# will also run configure and generate the required Makefile.
+#
+# You can specify which targets to build. If targets are specified, the
+# specified targets will be built but inst packages will not be generated.
doclean=""
SGI_ABI=-n32
CC=cc
+if [ ! -f ../../source/Makefile ]; then
+ doclean="clean"
+fi
+
if [ "$1" = "clean" ]; then
doclean=$1
shift
@@ -50,7 +62,7 @@ if [ "$doclean" = "clean" ]; then
fi
cd ../../source
-if [ "$doclean" = "clean" -o ! -f Makefile ]; then
+if [ "$doclean" = "clean" ]; then
echo Create SGI specific Makefile
chmod +x configure
chmod +x configure.developer
@@ -79,6 +91,13 @@ fi
cd ../packaging/SGI
+#
+# Don't generate packages if targets were specified
+#
+if [ "$1" != "" ]; then
+ exit 0;
+fi
+
# generate the packages
#
echo Generating Inst Packages
--
cgit
From 15b203519a75e5e8cdca09fe6b1dc2bf377ac75e Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Wed, 18 Nov 1998 02:15:35 +0000
Subject: change to new prefix path (This used to be commit
64b2ffc679b39f1654c5dcd36276bcb9e6c553b4)
---
packaging/SGI/mkrelease.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'packaging')
diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh
index 921476f375..cfe9c1f6b8 100755
--- a/packaging/SGI/mkrelease.sh
+++ b/packaging/SGI/mkrelease.sh
@@ -69,7 +69,7 @@ if [ "$doclean" = "clean" ]; then
chmod +x config.guess
chmod +x config.status
chmod +x config.sub
- ./configure --prefix=/usr --mandir=/usr/src/man --with-smbwrapper
+ ./configure --prefix=/usr/samba --mandir=/usr/share/catman --with-smbwrapper
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat creating Makefile\n";
--
cgit
From 8b1e3580bd5b3e0846389fc0480bd3c6e0606c36 Mon Sep 17 00:00:00 2001
From: John Terpstra
Date: Wed, 18 Nov 1998 12:44:29 +0000
Subject: Updated packaging files in line with restructuring of Makefile.in
(This used to be commit 05f2d78c8ee1dc0516d9e1076e0954ee2c2cd4b2)
---
packaging/Caldera/makefile-path.patch | 113 ++++++++++-----------------
packaging/Caldera/samba2.spec.tmpl | 2 +-
packaging/PHT/TurboLinux/makefile-path.patch | 113 ++++++++++-----------------
packaging/PHT/TurboLinux/samba2.spec.tmpl | 2 +-
packaging/RedHat/makefile-path.patch | 113 ++++++++++-----------------
packaging/RedHat/samba2.spec.tmpl | 2 +-
6 files changed, 132 insertions(+), 213 deletions(-)
(limited to 'packaging')
diff --git a/packaging/Caldera/makefile-path.patch b/packaging/Caldera/makefile-path.patch
index a6988fcb75..98ab8e1997 100644
--- a/packaging/Caldera/makefile-path.patch
+++ b/packaging/Caldera/makefile-path.patch
@@ -1,70 +1,43 @@
---- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
-+++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
-***************
-*** 22,32 ****
- builddir=@builddir@
- SHELL=/bin/sh
-
-! BASEDIR=$(prefix)/samba
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/bin
-! LIBDIR = $(BASEDIR)/lib
-! VARDIR = $(BASEDIR)/var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
---- 22,32 ----
- builddir=@builddir@
- SHELL=/bin/sh
-
-! BASEDIR=/usr
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/sbin
-! LIBDIR = /etc
-! VARDIR = /var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
-***************
-*** 35,54 ****
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log.smb
-! NMBLOGFILE = $(VARDIR)/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
-! SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
- SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
-
- # This is where SWAT images and help files go
-! SWATDIR = $(BASEDIR)/swat
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/locks
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
---- 35,54 ----
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log/samba/log.smb
-! NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
-! SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
- SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
-
- # This is where SWAT images and help files go
-! SWATDIR = $(BASEDIR)/share/swat
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/lock/samba
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
+--- samba-2.0.0/source/Makefile.in.orig Wed Nov 18 09:58:38 1998
++++ samba-2.0.0/source/Makefile.in Wed Nov 18 23:32:58 1998
+@@ -24,7 +24,7 @@
+ BINDIR = @bindir@
+ SBINDIR = @sbindir@
+ LIBDIR = @libdir@
+-VARDIR = $(BASEDIR)/var
++VARDIR = /var
+ MANDIR = @mandir@
+
+ # The permissions to give the executables
+@@ -33,23 +33,23 @@
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+-SMBLOGFILE = $(VARDIR)/log.smb
+-NMBLOGFILE = $(VARDIR)/log.nmb
++SMBLOGFILE = $(VARDIR)/log/samba/log.smb
++NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+-SMB_PASSGRP_FILE = $(BASEDIR)/private/smbpassgrp
+-SMB_GROUP_FILE = $(BASEDIR)/private/smbgroup
+-SMB_ALIAS_FILE = $(BASEDIR)/private/smbalias
++SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
++SMB_PASSGRP_FILE = $(LIBDIR)/smbpassgrp
++SMB_GROUP_FILE = $(LIBDIR)/smbgroup
++SMB_ALIAS_FILE = $(LIBDIR)/smbalias
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+-SWATDIR = $(BASEDIR)/swat
++SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+-LOCKDIR = $(VARDIR)/locks
++LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
diff --git a/packaging/Caldera/samba2.spec.tmpl b/packaging/Caldera/samba2.spec.tmpl
index bda5a56028..7765c570e4 100644
--- a/packaging/Caldera/samba2.spec.tmpl
+++ b/packaging/Caldera/samba2.spec.tmpl
@@ -42,7 +42,7 @@ docs directory for implementation details.
%build
cd source
-./configure
+./configure --prefix=/usr --libdir=/etc
make all
%install
diff --git a/packaging/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch
index a6988fcb75..98ab8e1997 100644
--- a/packaging/PHT/TurboLinux/makefile-path.patch
+++ b/packaging/PHT/TurboLinux/makefile-path.patch
@@ -1,70 +1,43 @@
---- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
-+++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
-***************
-*** 22,32 ****
- builddir=@builddir@
- SHELL=/bin/sh
-
-! BASEDIR=$(prefix)/samba
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/bin
-! LIBDIR = $(BASEDIR)/lib
-! VARDIR = $(BASEDIR)/var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
---- 22,32 ----
- builddir=@builddir@
- SHELL=/bin/sh
-
-! BASEDIR=/usr
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/sbin
-! LIBDIR = /etc
-! VARDIR = /var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
-***************
-*** 35,54 ****
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log.smb
-! NMBLOGFILE = $(VARDIR)/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
-! SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
- SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
-
- # This is where SWAT images and help files go
-! SWATDIR = $(BASEDIR)/swat
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/locks
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
---- 35,54 ----
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log/samba/log.smb
-! NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
-! SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
- SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
-
- # This is where SWAT images and help files go
-! SWATDIR = $(BASEDIR)/share/swat
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/lock/samba
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
+--- samba-2.0.0/source/Makefile.in.orig Wed Nov 18 09:58:38 1998
++++ samba-2.0.0/source/Makefile.in Wed Nov 18 23:32:58 1998
+@@ -24,7 +24,7 @@
+ BINDIR = @bindir@
+ SBINDIR = @sbindir@
+ LIBDIR = @libdir@
+-VARDIR = $(BASEDIR)/var
++VARDIR = /var
+ MANDIR = @mandir@
+
+ # The permissions to give the executables
+@@ -33,23 +33,23 @@
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+-SMBLOGFILE = $(VARDIR)/log.smb
+-NMBLOGFILE = $(VARDIR)/log.nmb
++SMBLOGFILE = $(VARDIR)/log/samba/log.smb
++NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+-SMB_PASSGRP_FILE = $(BASEDIR)/private/smbpassgrp
+-SMB_GROUP_FILE = $(BASEDIR)/private/smbgroup
+-SMB_ALIAS_FILE = $(BASEDIR)/private/smbalias
++SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
++SMB_PASSGRP_FILE = $(LIBDIR)/smbpassgrp
++SMB_GROUP_FILE = $(LIBDIR)/smbgroup
++SMB_ALIAS_FILE = $(LIBDIR)/smbalias
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+-SWATDIR = $(BASEDIR)/swat
++SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+-LOCKDIR = $(VARDIR)/locks
++LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index 444a0e1df6..0d39999d37 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -97,7 +97,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
%build
cd source
-./configure --with-smbwrapper
+./configure --prefix=/usr --libdir=/etc --with-smbwrapper
make all smbwrapper
%install
diff --git a/packaging/RedHat/makefile-path.patch b/packaging/RedHat/makefile-path.patch
index a6988fcb75..98ab8e1997 100644
--- a/packaging/RedHat/makefile-path.patch
+++ b/packaging/RedHat/makefile-path.patch
@@ -1,70 +1,43 @@
---- samba-2.0.0/source/Makefile.in.orig Sat Aug 22 02:48:36 1998
-+++ samba-2.0.0/source/Makefile.in Fri Aug 21 22:19:32 1998
-***************
-*** 22,32 ****
- builddir=@builddir@
- SHELL=/bin/sh
-
-! BASEDIR=$(prefix)/samba
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/bin
-! LIBDIR = $(BASEDIR)/lib
-! VARDIR = $(BASEDIR)/var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
---- 22,32 ----
- builddir=@builddir@
- SHELL=/bin/sh
-
-! BASEDIR=/usr
- BINDIR = $(BASEDIR)/bin
-! SBINDIR = $(BASEDIR)/sbin
-! LIBDIR = /etc
-! VARDIR = /var
- MANDIR = $(BASEDIR)/man
-
- # The permissions to give the executables
-***************
-*** 35,54 ****
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log.smb
-! NMBLOGFILE = $(VARDIR)/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
-! SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
- SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
-
- # This is where SWAT images and help files go
-! SWATDIR = $(BASEDIR)/swat
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/locks
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
---- 35,54 ----
- # set these to where to find various files
- # These can be overridden by command line switches (see smbd(8))
- # or in smb.conf (see smb.conf(5))
-! SMBLOGFILE = $(VARDIR)/log/samba/log.smb
-! NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
- CONFIGFILE = $(LIBDIR)/smb.conf
- LMHOSTSFILE = $(LIBDIR)/lmhosts
- DRIVERFILE = $(LIBDIR)/printers.def
- PASSWD_PROGRAM = /bin/passwd
-! SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
- SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
-
- # This is where SWAT images and help files go
-! SWATDIR = $(BASEDIR)/share/swat
-
- # the directory where lock files go
-! LOCKDIR = $(VARDIR)/lock/samba
-
- # The directory where code page definition files go
- CODEPAGEDIR = $(LIBDIR)/codepages
+--- samba-2.0.0/source/Makefile.in.orig Wed Nov 18 09:58:38 1998
++++ samba-2.0.0/source/Makefile.in Wed Nov 18 23:32:58 1998
+@@ -24,7 +24,7 @@
+ BINDIR = @bindir@
+ SBINDIR = @sbindir@
+ LIBDIR = @libdir@
+-VARDIR = $(BASEDIR)/var
++VARDIR = /var
+ MANDIR = @mandir@
+
+ # The permissions to give the executables
+@@ -33,23 +33,23 @@
+ # set these to where to find various files
+ # These can be overridden by command line switches (see smbd(8))
+ # or in smb.conf (see smb.conf(5))
+-SMBLOGFILE = $(VARDIR)/log.smb
+-NMBLOGFILE = $(VARDIR)/log.nmb
++SMBLOGFILE = $(VARDIR)/log/samba/log.smb
++NMBLOGFILE = $(VARDIR)/log/samba/log.nmb
+ CONFIGFILE = $(LIBDIR)/smb.conf
+ LMHOSTSFILE = $(LIBDIR)/lmhosts
+ DRIVERFILE = $(LIBDIR)/printers.def
+ PASSWD_PROGRAM = /bin/passwd
+-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
+-SMB_PASSGRP_FILE = $(BASEDIR)/private/smbpassgrp
+-SMB_GROUP_FILE = $(BASEDIR)/private/smbgroup
+-SMB_ALIAS_FILE = $(BASEDIR)/private/smbalias
++SMB_PASSWD_FILE = $(LIBDIR)/smbpasswd
++SMB_PASSGRP_FILE = $(LIBDIR)/smbpassgrp
++SMB_GROUP_FILE = $(LIBDIR)/smbgroup
++SMB_ALIAS_FILE = $(LIBDIR)/smbalias
+ SMB_PASSWD_PROGRAM = $(BASEDIR)/bin/smbpasswd
+
+ # This is where SWAT images and help files go
+-SWATDIR = $(BASEDIR)/swat
++SWATDIR = $(BASEDIR)/share/swat
+
+ # the directory where lock files go
+-LOCKDIR = $(VARDIR)/locks
++LOCKDIR = $(VARDIR)/lock/samba
+
+ # The directory where code page definition files go
+ CODEPAGEDIR = $(LIBDIR)/codepages
diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl
index b00001443b..43db590578 100644
--- a/packaging/RedHat/samba2.spec.tmpl
+++ b/packaging/RedHat/samba2.spec.tmpl
@@ -97,7 +97,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM.
%build
cd source
-./configure --with-smbwrapper
+./configure --prefix=/usr --libdir=/etc --with-smbwrapper
make all smbwrapper
%install
--
cgit
From d174f2ce57279404632a35684d2dc90b76cbddab Mon Sep 17 00:00:00 2001
From: Herb Lewis
Date: Thu, 19 Nov 1998 21:30:58 +0000
Subject: smb.conf : explicitly state "printcap name=" and "security="
parameters idb.pl : change default behaviour for installation of config
files. (This used to be commit 36928da28ca84fa64cd7b0dd66cab879e307911c)
---
packaging/SGI/idb.pl | 22 +++++++++++++---------
packaging/SGI/smb.conf | 3 ++-
2 files changed, 15 insertions(+), 10 deletions(-)
(limited to 'packaging')
diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl
index fed2bacd05..08c95e2ed3 100755
--- a/packaging/SGI/idb.pl
+++ b/packaging/SGI/idb.pl
@@ -109,22 +109,22 @@ while(@bins) {
if (index($nextfile,'$')) {
if ($filename eq "smbpasswd") {
- print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base\n";
+ print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip\n";
}
elsif ($filename eq "findsmb") {
print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
}
elsif ($filename eq "swat") {
- print IDB "f 4755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base\n";
+ print IDB "f 4755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip preop(/etc/killall smbd nmbd) exitop(/usr/samba/scripts/startswat.sh) removeop(/usr/samba/scripts/removeswat.sh)\n";
}
elsif ($filename eq "sambalp") {
- print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
+ print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base nostrip\n";
}
elsif ($filename eq "smbprint") {
print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base\n";
}
else {
- print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base\n";
+ print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip\n";
}
}
}
@@ -144,7 +144,6 @@ while (@docs) {
}
}
-print IDB "f 0755 root sys usr/samba/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/lib packaging/SGI samba.sw.base\n";
if (@codepage) {
print IDB "d 0755 root sys usr/samba/lib/codepages packaging/SGI samba.sw.base\n";
@@ -153,11 +152,17 @@ if (@codepage) {
print IDB "f 0644 root sys usr/samba/lib/codepages/codepage.$nextpage packaging/SGI/codepages/codepage.$nextpage samba.sw.base\n";
}
}
-print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(update)\n";
-print IDB "f 0755 root sys usr/samba/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
+print IDB "f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base config(suggest)\n";
print IDB "d 0644 root sys usr/samba/private packaging/SGI samba.sw.base\n";
-print IDB "f 0600 root sys usr/samba/private/smbpasswd packaging/SGI/smbpasswd samba.sw.base config(update)\n";
+print IDB "f 0600 root sys usr/samba/private/smbpasswd packaging/SGI/smbpasswd samba.sw.base config(suggest)\n";
+
+print IDB "d 0755 root sys usr/samba/scripts packaging/SGI samba.src.samba\n";
+print IDB "f 0755 root sys usr/samba/scripts/inetd.sh packaging/SGI/inetd.sh samba.sw.base\n";
+print IDB "f 0755 root sys usr/samba/scripts/mkprintcap.sh packaging/SGI/mkprintcap.sh samba.sw.base\n";
+print IDB "f 0755 root sys usr/samba/scripts/removeswat.sh packaging/SGI/removeswat.sh samba.sw.base\n";
+print IDB "f 0755 root sys usr/samba/scripts/startswat.sh packaging/SGI/startswat.sh samba.sw.base\n";
+
print IDB "d 0755 root sys usr/samba/src packaging/SGI samba.src.samba\n";
@sorted = sort(@allfiles);
while (@sorted) {
@@ -180,7 +185,6 @@ while (@sorted) {
}
}
-print IDB "f 0755 root sys usr/samba/startswat.sh packaging/SGI/startswat.sh samba.sw.base\n";
print IDB "d 0755 root sys usr/samba/swat packaging/SGI/swat samba.sw.base\n";
while (@swatfiles) {
$nextfile = shift @swatfiles;
diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf
index b7cbae63d1..9a154f8f9b 100644
--- a/packaging/SGI/smb.conf
+++ b/packaging/SGI/smb.conf
@@ -22,6 +22,7 @@
; in the printcap file will not be visible to clients.
;
; printcap name = /usr/samba/printcap
+ printcap name = lpstat
;
; If you are using Impressario 1.x then you'll want to use the
; sambalp script provided with this package. It works around
@@ -59,7 +60,7 @@
lock directory = /usr/samba/var/locks
share modes = yes
-; security = user
+ security = user
; You need to test to see if this makes a difference on your system
socket options = TCP_NODELAY
--
cgit
From f120a81a727efbb6c264b90df3c7b78ab554a428 Mon Sep 17 00:00:00 2001
From: Andrew Tridgell
Date: Sat, 21 Nov 1998 13:20:31 +0000
Subject: global change from samba.anu.edu.au to samba.org (This used to be
commit 42d2509c9fab5c774fd33b9d4b5bd1ee125479c3)
---
packaging/Caldera/README | 2 +-
packaging/Caldera/samba2.spec.tmpl | 6 +++---
packaging/Digital/Instructions | 2 +-
packaging/Digital/Packager | 2 +-
packaging/Example/Instructions | 2 +-
packaging/PHT/TurboLinux/README | 2 +-
packaging/PHT/TurboLinux/samba2.spec.tmpl | 22 +++++++++++-----------
packaging/README | 2 +-
packaging/RedHat/README | 2 +-
packaging/RedHat/samba2.spec.tmpl | 22 +++++++++++-----------
packaging/SGI/relnotes.html | 10 +++++-----
11 files changed, 37 insertions(+), 37 deletions(-)
(limited to 'packaging')
diff --git a/packaging/Caldera/README b/packaging/Caldera/README
index 4ce5c89251..ec6806645c 100644
--- a/packaging/Caldera/README
+++ b/packaging/Caldera/README
@@ -1,5 +1,5 @@
Preparation Date: Mon November 16 1998
-Preparer: John H Terpstra
+Preparer: John H Terpstra
Instructions: Preparing Samba Packages for Caldera OpenLinux 1.2
==================================================================
diff --git a/packaging/Caldera/samba2.spec.tmpl b/packaging/Caldera/samba2.spec.tmpl
index 7765c570e4..62a9e63362 100644
--- a/packaging/Caldera/samba2.spec.tmpl
+++ b/packaging/Caldera/samba2.spec.tmpl
@@ -4,10 +4,10 @@ Version: PVERSION
Release: PRELEASE
Copyright: GNU GPL version 2
Group: Networking
-Source: ftp://samba.anu.edu.au/pub/samba/samba-PVERSION.tar.gz
+Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz
Patch: makefile-path.patch
Patch1: smbw.patch
-Packager: John H Terpstra [Samba-Team]
+Packager: John H Terpstra [Samba-Team]
BuildRoot: /var/tmp/samba
%description
@@ -32,7 +32,7 @@ Please read the smb.conf file and ENCRYPTION.txt in the
docs directory for implementation details.
%changelog
-* Mon Nov 16 1998 John H Terpstra
+* Mon Nov 16 1998 John H Terpstra
- Ported to Cadera OpenLinux
%prep
diff --git a/packaging/Digital/Instructions b/packaging/Digital/Instructions
index 7cc1f49fa9..f764ad350d 100644
--- a/packaging/Digital/Instructions
+++ b/packaging/Digital/Instructions
@@ -1,5 +1,5 @@
Copyright (C) 1997-1998 John H Terpstra
-E-mail: jht@samba.anu.edu.au
+E-mail: jht@samba.org
Subject: Installation Instructions for Digital Unix v4.0
--------------------------------------------------------
diff --git a/packaging/Digital/Packager b/packaging/Digital/Packager
index 4c08c2fb02..75252978dc 100644
--- a/packaging/Digital/Packager
+++ b/packaging/Digital/Packager
@@ -1,2 +1,2 @@
Date: November 14, 1998
-Packager: John H Terpstra
+Packager: John H Terpstra
diff --git a/packaging/Example/Instructions b/packaging/Example/Instructions
index 5e432f47b9..02ffa7b6a8 100644
--- a/packaging/Example/Instructions
+++ b/packaging/Example/Instructions
@@ -1,5 +1,5 @@
Copyright (C) 1997-1998 Samba-Team
-E-mail: samba-binaries@samba.anu.edu.au
+E-mail: samba-binaries@samba.org
Subject: Installation Instructions for SuperNewOS X.X
--------------------------------------------------------
diff --git a/packaging/PHT/TurboLinux/README b/packaging/PHT/TurboLinux/README
index 5ed19ee8d5..867ff01811 100644
--- a/packaging/PHT/TurboLinux/README
+++ b/packaging/PHT/TurboLinux/README
@@ -1,5 +1,5 @@
Preparation Date: October 25, 1998
-Preparer: John H Terpstra
+Preparer: John H Terpstra
Instructions: Preparing Samba Packages for TurboLinux
===============================================================
diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl
index 0d39999d37..83ba2af34b 100644
--- a/packaging/PHT/TurboLinux/samba2.spec.tmpl
+++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl
@@ -4,10 +4,10 @@ Version: PVERSION
Release: PRELEASE
Copyright: GNU GPL version 2
Group: Networking
-Source: ftp://samba.anu.edu.au/pub/samba/samba-PVERSION.tar.gz
+Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz
Patch: makefile-path.patch
Patch1: smbw.patch
-Packager: John H Terpstra [Samba-Team]
+Packager: John H Terpstra [Samba-Team]