From ed9e858c1dd37364f8c39fb56c09d7397ef8e85b Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 19 Aug 1997 09:08:23 +0000 Subject: JHT ===> Just a little bit of rearranging the deck chairs - more growth space. (This used to be commit 71ddce78f3cba986bd5ab1bffa48726b8f012d59) --- packaging/README | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packaging/README (limited to 'packaging') diff --git a/packaging/README b/packaging/README new file mode 100644 index 0000000000..5fe055277a --- /dev/null +++ b/packaging/README @@ -0,0 +1,19 @@ +Copyright (C) 1997 - John H Terpstra +Date: August 19, 1997 +Updates: First Release - 19970819 +=============================================================================== +Note: +===== +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. + +All contributions / modifications / additions / etc. to the packaging files +should be sent to samba-bugs@samba.anu.edu.au with the subject marked: + PACKAGING: [add|mod|contrib] Your subject. + -- cgit From c3453bae126c040fa1f90a77a18dfd4fd7536d4a Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 19 Aug 1997 13:48:04 +0000 Subject: JHT ===> Update only. (This used to be commit 3ede2a2b8caf8b44bf78f9b4307515dbf36b4ecc) --- packaging/README | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'packaging') diff --git a/packaging/README b/packaging/README index 5fe055277a..6fc65b79c4 100644 --- a/packaging/README +++ b/packaging/README @@ -2,6 +2,7 @@ Copyright (C) 1997 - John H Terpstra Date: August 19, 1997 Updates: First Release - 19970819 =============================================================================== + Note: ===== This directory is a public repository for platform specific files including @@ -17,3 +18,17 @@ All contributions / modifications / additions / etc. to the packaging files should be sent to samba-bugs@samba.anu.edu.au with the subject marked: PACKAGING: [add|mod|contrib] Your subject. +Should you, or anyone you know of, have package build instructions and/or files +that may be of use to the wider community of Samba users please mail the above +account with subject: PACKAGING: [avail] OS xxxxxxxxxx +where xxxxxxxxxx is the operating system platform that may be contributed. + +We will contact the person who is offering to contribute package build details +to ensure that their contribution can be included in the official Samba sources. + +In the event that anyone wishes to contribute package build information please +indicate in your response how we may access a suitable system to ensure our +ability to keep the binary distribution itself current with the released source. + +The future of cooperatively developed software such as Samba depends on the +willingness of all partners to share the fruit of their labours. -- cgit From 800a28df41e9e40368ba11a7ccc8033541cfd4e3 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 19 Aug 1997 22:15:39 +0000 Subject: JHT ===> Tidying up for public consumption. (This used to be commit d6cecaac33ef86d2f44c6fbdcd0b752a12c6c4cd) --- packaging/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/README b/packaging/README index 6fc65b79c4..1adb809ae5 100644 --- a/packaging/README +++ b/packaging/README @@ -1,5 +1,5 @@ -Copyright (C) 1997 - John H Terpstra -Date: August 19, 1997 +Copyright (C) 1997 - Samba-Team +Date: August 19, 1997 Updates: First Release - 19970819 =============================================================================== -- cgit From d6fc4eb405d83c3a54e47857758886adf417f2f6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 5 Sep 1997 02:28:41 +0000 Subject: This is really Herb adding the SGI packaging files. (This used to be commit 8fde65239d0a9462fb044670220cd3c63bd887cb) --- packaging/SGI/Makefile | 722 ++++++++++++++++++++++++++++++++++++++++ packaging/SGI/README | 38 +++ packaging/SGI/inetd.sh | 29 ++ packaging/SGI/legal_notice.html | 53 +++ packaging/SGI/mkman | 22 ++ packaging/SGI/mkprintcap.sh | 15 + packaging/SGI/mkrelease.sh | 25 ++ packaging/SGI/printcap | 5 + packaging/SGI/psfixes.sed | 4 + packaging/SGI/relnotes.html | 234 +++++++++++++ packaging/SGI/samba.config | 1 + packaging/SGI/samba.idb | 394 ++++++++++++++++++++++ packaging/SGI/samba.rc | 42 +++ packaging/SGI/samba.spec | 45 +++ packaging/SGI/sambalp | 21 ++ packaging/SGI/smb.conf | 84 +++++ packaging/SGI/smbpasswd | 1 + packaging/SGI/smbprint | 52 +++ 18 files changed, 1787 insertions(+) create mode 100644 packaging/SGI/Makefile create mode 100644 packaging/SGI/README create mode 100755 packaging/SGI/inetd.sh create mode 100644 packaging/SGI/legal_notice.html create mode 100755 packaging/SGI/mkman create mode 100755 packaging/SGI/mkprintcap.sh create mode 100755 packaging/SGI/mkrelease.sh create mode 100644 packaging/SGI/printcap create mode 100644 packaging/SGI/psfixes.sed create mode 100644 packaging/SGI/relnotes.html create mode 100644 packaging/SGI/samba.config create mode 100644 packaging/SGI/samba.idb create mode 100644 packaging/SGI/samba.rc create mode 100644 packaging/SGI/samba.spec create mode 100644 packaging/SGI/sambalp create mode 100644 packaging/SGI/smb.conf create mode 100644 packaging/SGI/smbpasswd create mode 100644 packaging/SGI/smbprint (limited to 'packaging') diff --git a/packaging/SGI/Makefile b/packaging/SGI/Makefile new file mode 100644 index 0000000000..8caa9ba212 --- /dev/null +++ b/packaging/SGI/Makefile @@ -0,0 +1,722 @@ +########################################################################### +# Makefile for Samba SMB client/server for unix +# Copyright Andrew Tridgell 1992-1996 +# Copyright John H Terpstra 1995-1997 +########################################################################### + +# The base directory for all samba files +BASEDIR = /usr/samba + +# The base manpages directory to put the man pages in +# Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist. +MANDIR = /usr/share/man + +# The directories to put things in. If you use multiple +# architectures or share the samba binaries across NFS then +# you will probably want to change this layout. +# Note: The SBINDIR is for files you do not want users to access +# 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 + +# The permissions to give the executables +INSTALLPERMS = 0755 + +# Add any optimisation or debugging flags here +# add -DSYSLOG for syslog support +# RPM_OPT_FLAGS is needed when building an RPM distribution package +# for RedHat Linux. +# FLAGS1 = $(RPM_OPT_FLAGS) +FLAGS1 = -O +LIBS1 = + +# You will need to use a ANSI C compiler. This means under SunOS 4 you can't +# use cc, instead you will have to use gcc. +# CC = gcc + +# This may help with some versions of make +SHELL = /bin/sh + +# The following can be useful for compiling on multiple architectures +# just uncommment them putting the right directory in. +# srcdir=./ +# VPATH=$(srcdir) + +# 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 + +# the directory where lock files go +LOCKDIR = $(VARDIR)/locks + +# set this to the default group you want your machine to appear in +# for browsing. This can also be set in nmbd (see nmbd(8)) +WORKGROUP = WORKGROUP + +# set this to the name of the default account, which is the one +# to use when no username or password is specified. This can be overridden +# in the runtime configuration file (see smb.conf(5)) +# NOTE: The account "nobody" may not be a good one as +# on many unixes it may not be able to print. Thus you +# might have to create a separate guest account that can print. +GUESTACCOUNT = nobody + +# where you are going to have the smbrun binary. This defaults to the +# install directory. This binary is needed for correct printing +# and magic script execution. This should be an absolute path! +# Also not that this should include the name "smbrun" on the end (the +# name of the executable) +SMBRUN = $(BINDIR)/smbrun + +# +# The following (PAM, AFS, DCE/DFS, Kerberos5, SMB) are the +# alternate choices for Samba authentication. If you are using +# the UNIX password database to authenticate users you do not +# need to uncomment any of them. If you wish to use one of these +# alternate methods then only uncomment one of them. + +# This is for PAM authentication. RedHat Linux uses PAM. +# If you use PAM, then uncomment the following lines: +# PAM_FLAGS = -DUSE_PAM +# PAM_LIBS = -ldl -lpam + +# This is for AFS authentication. If you use AFS then set AFS_BASE +# according to your system layout, and uncomment the other lines as well. +# AFS_BASE = /usr/afsws +# AFS_FLAGS = -DAFS_AUTH -I$(AFS_BASE)/include +# AFS_LIBDIR = $(AFS_BASE)/lib +# NOTE: You may need to add -laudit in the line below +# AFS_LIBS = -L$(AFS_LIBDIR) -L$(AFS_LIBDIR)/afs -lkauth -lprot -lubik \ +# -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err \ +# $(AFS_LIBDIR)/afs/util.a + +# This is for DCE/DFS enablement. Uncomment this so that smbd can +# operate as an authenticated user identity to operate on files that +# live in the DCE Distributed Filesystem. +# DCE_BASE = /opt/dcelocal +# DCE_FLAGS = -I$(DCE_BASE)/include +# DCE_LIBDIR = -L$(DCE_BASE)/lib +# DCE_LIBS = + +# This is for Kerberos 5 authentication. Contributed by Nathan Neulinger +# Univ. of Missouri - Rolla +# KRB5_BASE = /usr/local/krb5 +# KRB5_FLAGS = -DKRB5_AUTH -I$(KRB5_BASE)/include +# KRB5_LIBS = -L$(KRB5_BASE)/lib -ldes425 -lkrb5 -lcrypto -lcom_err + +# This is for SMB encrypted (lanman) passwords. +# you may wish to add -DREPLACE_GETPASS if your getpass() is limited +# to 8 chars +# DES_BASE=/usr/local/libdes +# DES_FLAGS= -I$(DES_BASE) +# DES_LIB= -L$(DES_BASE) -ldes +# PASSWD_FLAGS=-DUSE_LIBDES -DSMB_PASSWD=\"$(BINDIR)/smbpasswd\" -DSMB_PASSWD_FILE=\"$(BASEDIR)/private/smbpasswd\" + +###################################### +# VTP-Support +# +# uncomment the following two lines to enable VTP-Support +#VTP_FLAGS = -DWITH_VTP +#VTP_OBJ = vt_mode.o +###################################### + +###################################### +# WHICH AWK? awk is used for automatic prototype generation. GNU awk works +# where inferior awks don't. Sun is one manufacturer who supplies both +# a broken awk called 'awk' and a fixed one called 'nawk'. mkproto.awk will +# only work with the latter, and even that isn't as good as free GNU awk. +# +# Leave this uncommented; the OS-specific stuff will override it if required +AWK = awk +###################################### + +##################################### +# WHICH OPERATING SYSTEM? +# UNCOMMENT ONE OF THE SECTIONS BELOW +# MAKE SURE ONLY *ONE* IS UNCOMMENTED +# +# The following are additional flags that may apply +# -DNETGROUP if your machine supports yp netgroups +# -DAUTOMOUNT to ask for yp auto.home for users' home directories +# -DSHADOW_PWD if you are using shadow passwords +# -DGETPWANAM if you wish to use getpwanam() call +# -DPWDAUTH if you have and want to use the pwdauth() call +# -DUFC_CRYPT if you want the fast crypt routine +# -DALLOW_CHANGE_PASSWORD if you want users to be able to set their password +# remotely (only works on some systems) +# -DQUOTAS for quota support in disk_free(). This probably only works +# on some systems. +# -DFAST_SHARE_MODES if you want the fast shared memory instead of the +# slow description files for share mode locking. This +# requires the mmap() and fcntl() system calls. +# +# NOTE: GETPWANAM & PWDAUTH are mutually exclusive, if you +# Define one, you should NOT define the other. +##################################### + +##################################### +# for the JAPANESE EXTENSION +# select filename's code set for KANJI/KANA in UNIX, +# apply the following flag +# -DKANJI=\"\" +# 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 +# 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 + +# 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 Enhanced Security +# contributed by Udo Linauer +# 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 +# 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 = -DSGI -DHAVE_TIMEZONE +# LIBSM = -lsun + +# FOR SGI IRIX 5.x.x, use this line instead +# FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES +# LIBSM = + +# FOR SGI IRIX 6.2 using the system compiler (*NOT* gcc), use this line instead +# Contributed by David.Billinghurst@restech.cra.com.au +FLAGSM = -DSGI5 -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 +###################################################################### + +CFLAGS1 = $(FLAGS1) -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\" +CFLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" +CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" +CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" +CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) $(KRB5_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 +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 +INCLUDES = $(INCLUDES1) $(INCLUDES2) + +UTILOBJ1 = util.o system.o charset.o kanji.o fault.o smbencrypt.o charcnv.o +UTILOBJ2 = $(UTILOBJ1) md4.o loadparm.o params.o pcap.o username.o time.o +UTILOBJ = $(UTILOBJ2) interface.o replace.o +PARAMOBJ = $(UTILOBJ) ufc.o smbpass.o access.o shmem.o +SMBDOBJ1 = $(PARAMOBJ) trans2.o pipes.o message.o dir.o printing.o locking.o +SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o quotas.o uid.o +SMBDOBJ = predict.o $(SMBDOBJ1) $(SMBDOBJ2) $(VTP_OBJ) +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 +NMBDOBJ = $(UTILOBJ) $(NMBDOBJ1) $(NMBDOBJ2) $(NMBDOBJ3) +.SUFFIXES: +.SUFFIXES: .c .o .h + +.c.o: $(INCLUDES) + @echo Compiling $*.c + @$(CC) $(CFLAGS) -c $(srcdir)$*.c + +smbd: server.o $(SMBDOBJ) + @echo Linking smbd + @$(CC) $(CFLAGS) -o smbd server.o $(SMBDOBJ) $(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) + @echo Linking smbstatus + @$(CC) $(CFLAGS) -o smbstatus status.o $(PARAMOBJ) $(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) + +install: installbin installman installscripts + +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) + +# 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 + +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) + +clean: + rm -f core *.o *~ $(PROGS) $(SPROGS) + +cleandir: clean + rm -f .depend tags + +proto: + @$(SHELL) $(srcdir)checkos.sh $(FLAGSM) + $(AWK) -f mkproto.awk *.c > proto.h + +realclean: clean + diff --git a/packaging/SGI/README b/packaging/SGI/README new file mode 100644 index 0000000000..4b174b34df --- /dev/null +++ b/packaging/SGI/README @@ -0,0 +1,38 @@ +This directory contains sample files for using Samba on an IRIX +system. These were taken from a system running IRIX 6.2. The +client machines were running Win95 and connected via the Ethernet +using TCP/IP and DNS. Consult the Samba documentation for tips +on configuring Samba "properly"; this smb.conf file is very simple. +Consult the Microsoft help/documentation to understand how to +configure the networking support on the PC clients (Win95, WfW, +etc.). + +This distribution is configured so that various Samba configuration, +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 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 + +You can enable all printers on your system to be used by samba +by running the script /usr/samba/mkprintcap.sh + +This distribution automatically configures samba to run as deamons +by the script /etc/init.d/samba and the file /etc/config/samba +(used by chkconfig). If you would prefer to have samba started by +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. +The package files will be placed in ./bins + diff --git a/packaging/SGI/inetd.sh b/packaging/SGI/inetd.sh new file mode 100755 index 0000000000..8c4c6cb8d8 --- /dev/null +++ b/packaging/SGI/inetd.sh @@ -0,0 +1,29 @@ +#! /bin/sh +# +# kill any running samba processes +# +/etc/killall smbd nmbd +chkconfig samba off + +# +# add SAMBA deamons to inetd.conf +# +cp /etc/inetd.conf /etc/inetd.O +sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.O > /etc/inetd.conf +echo '#SAMBA services' >> /etc/inetd.conf +echo netbios-ssn stream tcp nowait root /usr/samba/bin/smbd smbd >> /etc/inetd.conf +echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc/inetd.conf + +# +# add SAMBA service ports to /etc/services +# +cp /etc/services /etc/services.O +sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/services.O > /etc/services +echo '#SAMBA services' >> /etc/services +echo 'netbios-ns 137/udp # SAMBA' >> /etc/services +echo 'netbios-ssn 139/tcp # SAMBA' >> /etc/services + +# +# restart inetd to start SAMBA +# +/etc/killall -HUP inetd diff --git a/packaging/SGI/legal_notice.html b/packaging/SGI/legal_notice.html new file mode 100644 index 0000000000..fdb7645628 --- /dev/null +++ b/packaging/SGI/legal_notice.html @@ -0,0 +1,53 @@ + + + +Silicon Graphics Freeware Legal Notice + + + +

Silicon Graphics Freeware Legal Notice

+
+Copyright 1995, Silicon Graphics, Inc. -- ALL RIGHTS RESERVED +

+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. + +

Product Support

+ +

+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 @@ + + + + Samba 1.9.17 Release Notes + + + + +

Samba 1.9.17 Release Notes

+ +

+


+ +

Table of Contents

+ + +
  • What is Samba?
  • + +
  • Support Policy
  • + +
  • Installation Information
  • + +
  • Silicon +Graphics Legal Notice
  • + +
  • Author's Notice(s)
  • + +
  • Documentation Information
  • +
    + +

    +


    + +

    What is Samba?

    + +

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

    Author's Notice(s):

    + +

    The author of this product is: Andrew Tridgell

    + +

    Samba is distributed freely under the GNU +public license.

    + +

    Support:

    + +

    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. +

    + +

    Installation Information

    + +

    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).
    + +

    Installation Method

    + +

    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.

    + +

    Prerequisites

    + +

    Your workstation must be running IRIX 5.3 or later in order to use this +product.

    + +

    Configuration Files

    + +

    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.

    + +
    +
    /usr/samba/lib/smb.conf
    + +
    Configuration definitions for the smbd program; the SMB server +process. The default configuration sets up password-based access to home +directories on a machine as well as open access to to all printers and +/tmp. The workgroup is set by default to "workgroup". It is highly +recommended that administrators review the content of this file when installing +Samba for the first time.
    + +
    /usr/samba/printcap
    + +
    A file that specifies the available printers on a system. It is included +as an example; administrators may want to replace it or override the reference +to it in the smb.conf file. The script /usr/samba/mkprintcap.sh +was used by inst to create a printcap file that contains all printers on +your system. You may wish to remove some printers or add a comment to each +printer name to describe its location.
    +
    + +

    Documentation Information

    + +

    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 +# +# 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. +# +# 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) +# +# lpadmin -punixprintername -v/dev/null -i/opt/samba/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 +# +# 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. +# +# clear out the unwanted parameters +shift;shift;shift;shift;shift +# now the argument list is just the files to print + +server=admin +service=hplj2 +password="" + +( +# 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/samba/bin/smbclient "\\\\$server\\$service" $password -N -P > /dev/null +exit $? + -- cgit From 83574da44b649ecc2bf163109ffbae5e21eef649 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 4 Oct 1997 02:57:14 +0000 Subject: JHT ===> Added Sun Solaris binary package building spec files contributed by Tim Towers . Note: Not yet checked. (This used to be commit 332f78bbc945c327069e9c9e29c7137c8cbd5c02) --- packaging/Solaris/pkg-specs/Packaging.script | 5 ++++ packaging/Solaris/pkg-specs/mkprototype | 31 +++++++++++++++++++++++ packaging/Solaris/pkg-specs/pkginfo | 12 +++++++++ packaging/Solaris/pkg-specs/postinstall | 37 ++++++++++++++++++++++++++++ packaging/Solaris/pkg-specs/postremove | 30 ++++++++++++++++++++++ 5 files changed, 115 insertions(+) create mode 100644 packaging/Solaris/pkg-specs/Packaging.script create mode 100644 packaging/Solaris/pkg-specs/mkprototype create mode 100644 packaging/Solaris/pkg-specs/pkginfo create mode 100644 packaging/Solaris/pkg-specs/postinstall create mode 100644 packaging/Solaris/pkg-specs/postremove (limited to 'packaging') diff --git a/packaging/Solaris/pkg-specs/Packaging.script b/packaging/Solaris/pkg-specs/Packaging.script new file mode 100644 index 0000000000..6f182c33e5 --- /dev/null +++ b/packaging/Solaris/pkg-specs/Packaging.script @@ -0,0 +1,5 @@ +#!/bin/sh +./mkprototype +pkgmk -o -d /tmp -b `pwd` -f ./prototype +cd /tmp +pkgtrans . samba.pkg samba diff --git a/packaging/Solaris/pkg-specs/mkprototype b/packaging/Solaris/pkg-specs/mkprototype new file mode 100644 index 0000000000..5ca0746bee --- /dev/null +++ b/packaging/Solaris/pkg-specs/mkprototype @@ -0,0 +1,31 @@ +#!/bin/sh +# this creates prototype files +pkgproto * > prototype +nawk 'BEGIN { print "# d directory" + print "# e a file to be edited upon installation or removal" + print "# f a standard executable or data file" + print "# i installation script or information file" + print "# l linked file" + print "# s symbolic link" + print "# v volatile file (one whose contents are expected to +change)" + print "#" } +/ pkginfo / { print "i pkginfo" ; next } +/ postinstall / { print "i postinstall" ; next } +/ postremove / { print "i postremove" ; next } +/d none usr / { print "d none usr ? ? ?" ; next } +/d none usr\/local / { print "d none usr/local ? ? ?" ; next } +/d none etc / { print "d none etc ? ? ?" ; next } +/f none etc\// { $1 = "v" } +/d none opt / { print "d none opt ? ? ?" ; next } +/d none var / { print "d none var ? ? ?" ; next } +/none prototype / { next } +/none mkprototype / { next } +/ src[ \/]/ { next } +/^[dfv]/ { $5 = "bin" + $6 = "bin" + print + next } +{ print }' prototype >/tmp/prototype.$$ +mv /tmp/prototype.$$ prototype + diff --git a/packaging/Solaris/pkg-specs/pkginfo b/packaging/Solaris/pkg-specs/pkginfo new file mode 100644 index 0000000000..ab06b3fffa --- /dev/null +++ b/packaging/Solaris/pkg-specs/pkginfo @@ -0,0 +1,12 @@ +PSTAMP=Mon Sep 29 17:26:14 BST 1997 +PKG=samba +NAME=SMB based file/printer sharing +VERSION=1.9.17p2,REV=1 +ARCH=sparc +CATEGORY=system +VENDOR=samba group +DESC=File and printer sharing for NT workstations +CLASSES=none +INTONLY=1 +HOTLINE=Please contact your local UNIX support group +BASEDIR=/ diff --git a/packaging/Solaris/pkg-specs/postinstall b/packaging/Solaris/pkg-specs/postinstall new file mode 100644 index 0000000000..0fbe9da10b --- /dev/null +++ b/packaging/Solaris/pkg-specs/postinstall @@ -0,0 +1,37 @@ +#!/bin/sh +# install samba + +nawk '/^netbios-[ns]*[ ]/ {next} +{print} +END { print "netbios-ssn 139/tcp" + print "netbios-ns 137/udp # samba service" }' \ + ${PKG_INSTALL_ROOT}/etc/inet/services > /tmp/services.$$ && \ + mv -f /tmp/services.$$ ${PKG_INSTALL_ROOT}/etc/inet/services && +\ + chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/services && \ + echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/services" + +nawk '/samba.*mbd[ ]/ { next } +{print} +END { print "# samba connections are handled by smbd and nmbd" + print "netbios-ssn stream tcp nowait root /opt/samba/bin/smbd +smbd" + print "netbios-ns dgram udp wait root /opt/samba/bin/nmbd nmbd" }' +\ + ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf > /tmp/inetd.conf.$$ && +\ + mv -f /tmp/inetd.conf.$$ ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf +&& \ + chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf && \ + echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf" + +echo "Installed samba service into ${PKG_INSTALL_ROOT:-/}" + +inetpid=`/bin/ps -ef | awk '/ \/usr\/sbin\/inetd / { print $2 } '` +if [ "X$inetpid" = "X" ]; then + echo "inetd not running" +else + echo "Restarting inetd($inetpid)" + kill -HUP $inetpid +fi + diff --git a/packaging/Solaris/pkg-specs/postremove b/packaging/Solaris/pkg-specs/postremove new file mode 100644 index 0000000000..7f7a5c1f8e --- /dev/null +++ b/packaging/Solaris/pkg-specs/postremove @@ -0,0 +1,30 @@ +#!/bin/sh +# remove samba + +nawk '/^netbios-[ns]*[ ]/ {next} +{print} ' \ + ${PKG_INSTALL_ROOT}/etc/inet/services > /tmp/services.$$ && \ + mv -f /tmp/services.$$ ${PKG_INSTALL_ROOT}/etc/inet/services && +\ + chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/services && \ + echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/services" + +nawk '/samba.*mbd[ ]/ { next } +{print} ' \ + ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf > /tmp/inetd.conf.$$ && +\ + mv -f /tmp/inetd.conf.$$ ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf +&& \ + chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf && \ + echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf" + +echo "Removed samba service from ${PKG_INSTALL_ROOT:-/}" + +inetpid=`/bin/ps -ef | awk '/ \/usr\/sbin\/inetd / { print $2 } '` +if [ "X$inetpid" = "X" ]; then + echo "inetd not running" +else + echo "Restarting inetd($inetpid)" + kill -HUP $inetpid +fi + -- cgit From 3a25722080b18de19c89c190e64de89317cabcfa Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 24 Oct 1997 18:41:08 +0000 Subject: update SGI build files to latest source (This used to be commit f492bd51a61cbe6dd4f1971491b760fc7ebd2554) --- packaging/SGI/Makefile | 109 +++++++++++++++++++++++++++++--------------- packaging/SGI/psfixes.pl | 28 ++++++++++++ packaging/SGI/psfixes.sed | 4 -- packaging/SGI/relnotes.html | 9 ++-- packaging/SGI/samba.idb | 54 ++++++++++++++++++---- packaging/SGI/samba.spec | 8 ++-- packaging/SGI/sambalp | 15 +++--- packaging/SGI/smb.conf | 8 ++-- 8 files changed, 166 insertions(+), 69 deletions(-) create mode 100755 packaging/SGI/psfixes.pl delete mode 100644 packaging/SGI/psfixes.sed (limited to 'packaging') diff --git a/packaging/SGI/Makefile b/packaging/SGI/Makefile index 8caa9ba212..09dbe87a6d 100644 --- a/packaging/SGI/Makefile +++ b/packaging/SGI/Makefile @@ -27,9 +27,6 @@ INSTALLPERMS = 0755 # Add any optimisation or debugging flags here # add -DSYSLOG for syslog support -# RPM_OPT_FLAGS is needed when building an RPM distribution package -# for RedHat Linux. -# FLAGS1 = $(RPM_OPT_FLAGS) FLAGS1 = -O LIBS1 = @@ -52,10 +49,17 @@ SMBLOGFILE = $(VARDIR)/log.smb NMBLOGFILE = $(VARDIR)/log.nmb CONFIGFILE = $(LIBDIR)/smb.conf LMHOSTSFILE = $(LIBDIR)/lmhosts +SMB_PASSWD = $(BINDIR)/smbpasswd +SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd # the directory where lock files go LOCKDIR = $(VARDIR)/locks +# The directory where code page definition files go +CODEPAGEDIR = $(LIBDIR)/codepages +# The current codepage definition list. +CODEPAGELIST= 437 850 852 932 + # set this to the default group you want your machine to appear in # for browsing. This can also be set in nmbd (see nmbd(8)) WORKGROUP = WORKGROUP @@ -101,7 +105,7 @@ SMBRUN = $(BINDIR)/smbrun # operate as an authenticated user identity to operate on files that # live in the DCE Distributed Filesystem. # DCE_BASE = /opt/dcelocal -# DCE_FLAGS = -I$(DCE_BASE)/include +# DCE_FLAGS = -DDFS_AUTH -I$(DCE_BASE)/include # DCE_LIBDIR = -L$(DCE_BASE)/lib # DCE_LIBS = @@ -111,14 +115,6 @@ SMBRUN = $(BINDIR)/smbrun # KRB5_FLAGS = -DKRB5_AUTH -I$(KRB5_BASE)/include # KRB5_LIBS = -L$(KRB5_BASE)/lib -ldes425 -lkrb5 -lcrypto -lcom_err -# This is for SMB encrypted (lanman) passwords. -# you may wish to add -DREPLACE_GETPASS if your getpass() is limited -# to 8 chars -# DES_BASE=/usr/local/libdes -# DES_FLAGS= -I$(DES_BASE) -# DES_LIB= -L$(DES_BASE) -ldes -# PASSWD_FLAGS=-DUSE_LIBDES -DSMB_PASSWD=\"$(BINDIR)/smbpasswd\" -DSMB_PASSWD_FILE=\"$(BASEDIR)/private/smbpasswd\" - ###################################### # VTP-Support # @@ -189,21 +185,24 @@ AWK = awk # LIBSM = # AWK = nawk -# Use this for Linux with shadow passwords +# 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 -# contributed by Andrew.Tridgell@anu.edu.au +# 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 +# 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: @@ -213,12 +212,22 @@ AWK = awk # FLAGSM = -O3 -m486 -DLINUX -DSHADOW_PWD -DQUOTAS -DFAST_SHARE_MODES # LIBSM = -lshadow -# Use this for Linux with quota and glibc2 +# 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 @@ -291,9 +300,9 @@ AWK = awk # LIBSM = -# This is for OSF1 (Alpha) V2.0 Enhanced Security +# This is for OSF1 (Alpha) V2.0/V4.0 Enhanced Security # contributed by Udo Linauer -# FLAGSM = -DOSF1 -DOSF1_ENH_SEC +# FLAGSM = -DOSF1 -DOSF1_ENH_SEC -DFAST_SHARE_MODES # LIBSM = -lsecurity @@ -365,16 +374,18 @@ AWK = awk # This is for SGI. # contributed by lpc@solomon.technet.sg (Michael Chua) # FOR SGI IRIX 4.x.x, use the following line -# FLAGSM = -DSGI -DHAVE_TIMEZONE +# 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 = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES +FLAGSM = -DSGI6 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES LIBSM = FLAGS1 = -O -n32 -g3 @@ -601,16 +612,17 @@ FLAGS1 = -O -n32 -g3 # 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)\" +CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" -CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) $(KRB5_FLAGS) +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 +PROGS1 = smbclient testparm testprns smbrun smbstatus smbpasswd make_smbcodepage PROGS = $(PROGS1) nmblookup SCRIPTS = smbtar addtosmbpass @@ -622,20 +634,25 @@ CHECK : @echo "Using LIBS = $(LIBS)" INCLUDES1 = version.h local.h includes.h smb.h -INCLUDES2 = trans2.h +INCLUDES2 = trans2.h ubi_dLinkList.h INCLUDES = $(INCLUDES1) $(INCLUDES2) -UTILOBJ1 = util.o system.o charset.o kanji.o fault.o smbencrypt.o charcnv.o +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 +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 locking.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 -SMBDOBJ = predict.o $(SMBDOBJ1) $(SMBDOBJ2) $(VTP_OBJ) +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 +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 @@ -643,9 +660,9 @@ NMBDOBJ = $(UTILOBJ) $(NMBDOBJ1) $(NMBDOBJ2) $(NMBDOBJ3) @echo Compiling $*.c @$(CC) $(CFLAGS) -c $(srcdir)$*.c -smbd: server.o $(SMBDOBJ) +smbd: server.o $(SMBDOBJ) $(LOCKOBJ) @echo Linking smbd - @$(CC) $(CFLAGS) -o smbd server.o $(SMBDOBJ) $(LIBS) $(AFS_LIBS) + @$(CC) $(CFLAGS) -o smbd server.o $(SMBDOBJ) $(LOCKOBJ) $(LIBS) $(AFS_LIBS) smbrun: smbrun.o @echo Linking smbrun @@ -663,9 +680,9 @@ 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) +smbstatus: status.o $(PARAMOBJ) $(LOCKOBJ) @echo Linking smbstatus - @$(CC) $(CFLAGS) -o smbstatus status.o $(PARAMOBJ) $(LIBS) + @$(CC) $(CFLAGS) -o smbstatus status.o $(PARAMOBJ) $(LOCKOBJ) $(LIBS) testparm: testparm.o $(PARAMOBJ) @echo Linking testparm @@ -679,7 +696,19 @@ smbpasswd: smbpasswd.o getsmbpass.o $(PARAMOBJ) @echo Linking smbpasswd @$(CC) $(CFLAGS) -o smbpasswd smbpasswd.o getsmbpass.o $(PARAMOBJ) $(LIBS) -install: installbin installman installscripts +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) @@ -688,6 +717,9 @@ installbin: all 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) @@ -696,7 +728,7 @@ revert: installman: @$(SHELL) $(srcdir)installman.sh $(MANDIR) $(srcdir) -uninstall: uninstallman uninstallbin uninstallscripts +uninstall: uninstallman uninstallbin uninstallscripts uninstallcp uninstallman: @$(SHELL) $(srcdir)uninstallman.sh $(MANDIR) $(srcdir) @@ -708,6 +740,9 @@ uninstallbin: uninstallscripts: @$(SHELL) $(srcdir)uninstallscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS) +uninstallcp: + @$(SHELL) $(srcdir)uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST) + clean: rm -f core *.o *~ $(PROGS) $(SPROGS) @@ -716,7 +751,7 @@ cleandir: clean proto: @$(SHELL) $(srcdir)checkos.sh $(FLAGSM) - $(AWK) -f mkproto.awk *.c > proto.h + $(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/psfixes.pl b/packaging/SGI/psfixes.pl new file mode 100755 index 0000000000..c64b67c8d4 --- /dev/null +++ b/packaging/SGI/psfixes.pl @@ -0,0 +1,28 @@ +#!/usr/bin/perl + +$found_vm = 0; + +while (<>) { + if (not $found_vm) { + if (not /^%/) { + if (/^%%Title:/) { + s/. $/ /; + print; + } + else { + if (/^\/VM?/) { + print "/VM? { pop } bind def \n"; + $found_vm = 1; + } + else { + print; + } + } + } + } + else { + if (/def /) { + $found_vm = 0; + } + } +} diff --git a/packaging/SGI/psfixes.sed b/packaging/SGI/psfixes.sed deleted file mode 100644 index cf5ce88914..0000000000 --- a/packaging/SGI/psfixes.sed +++ /dev/null @@ -1,4 +0,0 @@ -/^%/,/ /d -/^%%Title:/s/. $/ / -/^\/VM?/,/ VM?/c\ -/VM? { pop } def diff --git a/packaging/SGI/relnotes.html b/packaging/SGI/relnotes.html index 71140420fe..eea4cefd0b 100644 --- a/packaging/SGI/relnotes.html +++ b/packaging/SGI/relnotes.html @@ -1,12 +1,11 @@ - Samba 1.9.17 Release Notes - + Samba Release Notes -

    Samba 1.9.17 Release Notes

    +

    Samba Release Notes


    @@ -130,7 +129,7 @@ commercial support for a fee. samba.man.manpages(default) -Samba 1.9.17's online manual pages (preformatted). +Samba's online manual pages (preformatted). @@ -149,7 +148,7 @@ commercial support for a fee. samba.src.samba -The Samba 1.9.17 software distribution from which this product was +The Samba software distribution from which this product was built (including the packaging/SGI directory which will allow this distribution to be rebuilt). diff --git a/packaging/SGI/samba.idb b/packaging/SGI/samba.idb index dbf9f3b10f..358f3499ca 100644 --- a/packaging/SGI/samba.idb +++ b/packaging/SGI/samba.idb @@ -12,7 +12,7 @@ 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 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 @@ -36,7 +36,7 @@ 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/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 @@ -97,7 +97,6 @@ f 0644 root sys usr/samba/docs/nameservresp.doc source/nameservresp.doc samba.ma 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 @@ -116,8 +115,10 @@ f 0644 root sys usr/samba/lib/smb.conf packaging/SGI/smb.conf samba.sw.base conf 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 @@ -134,8 +135,9 @@ 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/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 @@ -156,6 +158,7 @@ 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 @@ -179,9 +182,9 @@ f 0644 root sys usr/samba/src/docs/faq/sambafaq.html docs/faq/sambafaq.html samb 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.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 @@ -215,6 +218,7 @@ f 0644 root sys usr/samba/src/examples/printing/smbprint.sysv examples/printing/ 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 @@ -244,7 +248,7 @@ f 0755 root sys usr/samba/src/packaging/SGI/mkman packaging/SGI/mkman samba.src. 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/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 @@ -254,9 +258,16 @@ f 0644 root sys usr/samba/src/packaging/SGI/sambalp packaging/SGI/sambalp 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/makeldirp.sh packaging/redhat/makeldirs.sh 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 @@ -265,6 +276,7 @@ f 0644 root sys usr/samba/src/packaging/redhat/samba.pamd packaging/redhat/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 @@ -272,6 +284,7 @@ f 0644 root sys usr/samba/src/source/Makefile.OS2 source/Makefile.OS2 samba.src. 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 @@ -279,14 +292,22 @@ 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 @@ -297,9 +318,12 @@ 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/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 @@ -338,10 +362,15 @@ 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 @@ -352,11 +381,15 @@ 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 @@ -364,9 +397,12 @@ f 0644 root sys usr/samba/src/source/testprns.c source/testprns.c samba.src.samb 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 @@ -375,6 +411,8 @@ 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 diff --git a/packaging/SGI/samba.spec b/packaging/SGI/samba.spec index 1940e93e93..62941a2711 100644 --- a/packaging/SGI/samba.spec +++ b/packaging/SGI/samba.spec @@ -1,8 +1,8 @@ product samba - id "Samba version 1.9.17" + id "Samba version 1.9.18alpha3" image sw id "Samba Execution Environment" - version 0109170006 + version 0109180003 order 0 subsys base default id "Samba Execution Environment" @@ -13,7 +13,7 @@ product samba endimage image man id "Samba Online Documentation" - version 0109170006 + version 0109180003 order 1 subsys manpages default id "Samba Man Page" @@ -34,7 +34,7 @@ product samba endimage image src id "Samba Source Code" - version 0109170006 + version 0109180003 order 2 subsys samba id "Samba Source Code" diff --git a/packaging/SGI/sambalp b/packaging/SGI/sambalp index d7c6be2a2d..cb95ef089f 100644 --- a/packaging/SGI/sambalp +++ b/packaging/SGI/sambalp @@ -7,15 +7,14 @@ # 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 +# the perl script fixes 3 different bugs. +# 1. remove the JCL statements added by some HP printer drivers to the +# beginning of the postscript output. +# 2. Fix 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. +# removed. +# 3. 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" +/usr/samba/bin/psfixes.pl $2 | /usr/bin/lp -c -d$1 -t"$3 on $4" rm $2 diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf index 178231d2cd..b484cc918b 100644 --- a/packaging/SGI/smb.conf +++ b/packaging/SGI/smb.conf @@ -20,18 +20,20 @@ ; printcap name = /usr/samba/printcap ; -; If you are using Impressario then you'll want to use the +; If you are using Impressario 1.x 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 +; under Impressario because of a bug in Impressario 1.x. 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 +; 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 browseable = yes -- cgit From 86f4709cdc52e7b4ce69817a1f89dd515fec9226 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 28 Oct 1997 19:18:52 +0000 Subject: tired of updating Makefile - use perl script to generate it now (This used to be commit ce65e1f4cc91db533c26c3ccdba6d4dd3286d22b) --- packaging/SGI/mkrelease.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'packaging') diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index 03644b2f7c..052a4d8ddb 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -8,6 +8,7 @@ echo Making manual pages # build the sources # echo Making binaries +./makefile.pl ../../source/Makefile > Makefile cd ../../source # make -f ../packaging/SGI/Makefile clean make -f ../packaging/SGI/Makefile all -- cgit From f0da0c5858723cf9235fcaf7a78d0436ec84a4eb Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 28 Oct 1997 19:20:07 +0000 Subject: removing Makefile and adding perl script to generate it form source tree (This used to be commit eb95385f65bb36528649e205f617a03dc8db2d97) --- packaging/SGI/Makefile | 757 ---------------------------------------------- packaging/SGI/makefile.pl | 24 ++ 2 files changed, 24 insertions(+), 757 deletions(-) delete mode 100644 packaging/SGI/Makefile create mode 100755 packaging/SGI/makefile.pl (limited to 'packaging') diff --git a/packaging/SGI/Makefile b/packaging/SGI/Makefile deleted file mode 100644 index 09dbe87a6d..0000000000 --- a/packaging/SGI/Makefile +++ /dev/null @@ -1,757 +0,0 @@ -########################################################################### -# Makefile for Samba SMB client/server for unix -# Copyright Andrew Tridgell 1992-1996 -# Copyright John H Terpstra 1995-1997 -########################################################################### - -# The base directory for all samba files -BASEDIR = /usr/samba - -# The base manpages directory to put the man pages in -# Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist. -MANDIR = /usr/share/man - -# The directories to put things in. If you use multiple -# architectures or share the samba binaries across NFS then -# you will probably want to change this layout. -# Note: The SBINDIR is for files you do not want users to access -# 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 - -# The permissions to give the executables -INSTALLPERMS = 0755 - -# Add any optimisation or debugging flags here -# add -DSYSLOG for syslog support -FLAGS1 = -O -LIBS1 = - -# You will need to use a ANSI C compiler. This means under SunOS 4 you can't -# use cc, instead you will have to use gcc. -# CC = gcc - -# This may help with some versions of make -SHELL = /bin/sh - -# The following can be useful for compiling on multiple architectures -# just uncommment them putting the right directory in. -# srcdir=./ -# VPATH=$(srcdir) - -# 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 -SMB_PASSWD = $(BINDIR)/smbpasswd -SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd - -# the directory where lock files go -LOCKDIR = $(VARDIR)/locks - -# The directory where code page definition files go -CODEPAGEDIR = $(LIBDIR)/codepages -# The current codepage definition list. -CODEPAGELIST= 437 850 852 932 - -# set this to the default group you want your machine to appear in -# for browsing. This can also be set in nmbd (see nmbd(8)) -WORKGROUP = WORKGROUP - -# set this to the name of the default account, which is the one -# to use when no username or password is specified. This can be overridden -# in the runtime configuration file (see smb.conf(5)) -# NOTE: The account "nobody" may not be a good one as -# on many unixes it may not be able to print. Thus you -# might have to create a separate guest account that can print. -GUESTACCOUNT = nobody - -# where you are going to have the smbrun binary. This defaults to the -# install directory. This binary is needed for correct printing -# and magic script execution. This should be an absolute path! -# Also not that this should include the name "smbrun" on the end (the -# name of the executable) -SMBRUN = $(BINDIR)/smbrun - -# -# The following (PAM, AFS, DCE/DFS, Kerberos5, SMB) are the -# alternate choices for Samba authentication. If you are using -# the UNIX password database to authenticate users you do not -# need to uncomment any of them. If you wish to use one of these -# alternate methods then only uncomment one of them. - -# This is for PAM authentication. RedHat Linux uses PAM. -# If you use PAM, then uncomment the following lines: -# PAM_FLAGS = -DUSE_PAM -# PAM_LIBS = -ldl -lpam - -# This is for AFS authentication. If you use AFS then set AFS_BASE -# according to your system layout, and uncomment the other lines as well. -# AFS_BASE = /usr/afsws -# AFS_FLAGS = -DAFS_AUTH -I$(AFS_BASE)/include -# AFS_LIBDIR = $(AFS_BASE)/lib -# NOTE: You may need to add -laudit in the line below -# AFS_LIBS = -L$(AFS_LIBDIR) -L$(AFS_LIBDIR)/afs -lkauth -lprot -lubik \ -# -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err \ -# $(AFS_LIBDIR)/afs/util.a - -# This is for DCE/DFS enablement. Uncomment this so that smbd can -# operate as an authenticated user identity to operate on files that -# live in the DCE Distributed Filesystem. -# DCE_BASE = /opt/dcelocal -# DCE_FLAGS = -DDFS_AUTH -I$(DCE_BASE)/include -# DCE_LIBDIR = -L$(DCE_BASE)/lib -# DCE_LIBS = - -# This is for Kerberos 5 authentication. Contributed by Nathan Neulinger -# Univ. of Missouri - Rolla -# KRB5_BASE = /usr/local/krb5 -# KRB5_FLAGS = -DKRB5_AUTH -I$(KRB5_BASE)/include -# KRB5_LIBS = -L$(KRB5_BASE)/lib -ldes425 -lkrb5 -lcrypto -lcom_err - -###################################### -# VTP-Support -# -# uncomment the following two lines to enable VTP-Support -#VTP_FLAGS = -DWITH_VTP -#VTP_OBJ = vt_mode.o -###################################### - -###################################### -# WHICH AWK? awk is used for automatic prototype generation. GNU awk works -# where inferior awks don't. Sun is one manufacturer who supplies both -# a broken awk called 'awk' and a fixed one called 'nawk'. mkproto.awk will -# only work with the latter, and even that isn't as good as free GNU awk. -# -# Leave this uncommented; the OS-specific stuff will override it if required -AWK = awk -###################################### - -##################################### -# WHICH OPERATING SYSTEM? -# UNCOMMENT ONE OF THE SECTIONS BELOW -# MAKE SURE ONLY *ONE* IS UNCOMMENTED -# -# The following are additional flags that may apply -# -DNETGROUP if your machine supports yp netgroups -# -DAUTOMOUNT to ask for yp auto.home for users' home directories -# -DSHADOW_PWD if you are using shadow passwords -# -DGETPWANAM if you wish to use getpwanam() call -# -DPWDAUTH if you have and want to use the pwdauth() call -# -DUFC_CRYPT if you want the fast crypt routine -# -DALLOW_CHANGE_PASSWORD if you want users to be able to set their password -# remotely (only works on some systems) -# -DQUOTAS for quota support in disk_free(). This probably only works -# on some systems. -# -DFAST_SHARE_MODES if you want the fast shared memory instead of the -# slow description files for share mode locking. This -# requires the mmap() and fcntl() system calls. -# -# NOTE: GETPWANAM & PWDAUTH are mutually exclusive, if you -# Define one, you should NOT define the other. -##################################### - -##################################### -# for the JAPANESE EXTENSION -# select filename's code set for KANJI/KANA in UNIX, -# apply the following flag -# -DKANJI=\"\" -# 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] Requires: pam >= 0.64 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba @@ -38,25 +38,25 @@ 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 +* 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 +* Sat Oct 24 1998 John H Terpstra - removed README.smbsh file from docs area -* Mon Oct 05 1998 John H Terpstra +* Mon Oct 05 1998 John H Terpstra - Added rpcclient to binaries list - Added smbwrapper stuff -* Fri Aug 21 1998 John H Terpstra +* 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 +* Sat Jul 04 1998 John H Terpstra - fixed codepage preservation during update via -Uvh * Mon Jun 08 1998 Erik Troan @@ -67,18 +67,18 @@ enabled. Red Hat Linux has built in support for quotas in PAM. - 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 +* 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 +* Thu Apr 09 1998 John H Terpstra - Updated spec file - Included new codepage.936 -* Sat Mar 20 1998 John H Terpstra +* Sat Mar 20 1998 John H Terpstra - Added swat facility -* Sat Jan 24 1998 John H Terpstra +* 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 diff --git a/packaging/README b/packaging/README index 371586e4cc..8175ef9fd4 100644 --- a/packaging/README +++ b/packaging/README @@ -19,7 +19,7 @@ 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: +should be sent to samba-bugs@samba.org with the subject marked: PACKAGING: [add|mod|contrib] Your subject. Should you, or anyone you know of, have package build instructions and/or files diff --git a/packaging/RedHat/README b/packaging/RedHat/README index 3b85f5e0a7..210248fa35 100644 --- a/packaging/RedHat/README +++ b/packaging/RedHat/README @@ -1,5 +1,5 @@ Preparation Date: Fri Aug 21, 1998 -Preparer: John H Terpstra +Preparer: John H Terpstra Instructions: Preparing Samba Packages for Red Hat Linux 5.X =============================================================== diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 43db590578..ab7276815e 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/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] Requires: pam >= 0.64 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba @@ -38,25 +38,25 @@ 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 +* 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 +* Sat Oct 24 1998 John H Terpstra - removed README.smbsh file from docs area -* Mon Oct 05 1998 John H Terpstra +* Mon Oct 05 1998 John H Terpstra - Added rpcclient to binaries list - Added smbwrapper stuff -* Fri Aug 21 1998 John H Terpstra +* 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 +* Sat Jul 04 1998 John H Terpstra - fixed codepage preservation during update via -Uvh * Mon Jun 08 1998 Erik Troan @@ -67,18 +67,18 @@ enabled. Red Hat Linux has built in support for quotas in PAM. - 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 +* 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 +* Thu Apr 09 1998 John H Terpstra - Updated spec file - Included new codepage.936 -* Sat Mar 20 1998 John H Terpstra +* Sat Mar 20 1998 John H Terpstra - Added swat facility -* Sat Jan 24 1998 John H Terpstra +* 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 diff --git a/packaging/SGI/relnotes.html b/packaging/SGI/relnotes.html index 7477d28c27..afcf579677 100644 --- a/packaging/SGI/relnotes.html +++ b/packaging/SGI/relnotes.html @@ -110,7 +110,7 @@ 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.

    @@ -206,14 +206,14 @@ 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 +to listproc@samba.org with a body of "subscribe samba Your Name"

    -

    To send mail to everyone on the list mail to samba@samba.anu.edu.au. +

    To send mail to everyone on the list mail to samba@samba.org.

    There is also an announcement mailing list where new versions are announced. -To subscribe send mail to listproc@samba.anu.edu.au +To subscribe send mail to listproc@samba.org with a body of "subscribe samba-announce Your Name". All announcements also go to the samba list.

    @@ -224,7 +224,7 @@ 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/. +http://samba.org/pub/samba/. It is maintained by Paul Blackman (thanks Paul!). You can contact him at ictinus@lake.canberra.edu.au.

    -- cgit From 73106d9baeb325d1d89d0242d0045695a71acf4d Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 25 Nov 1998 18:11:42 +0000 Subject: added file from 2.0 branch (This used to be commit 8ec972ba6c274076b46081502acef256a70d1a38) --- packaging/SGI/removeswat.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 packaging/SGI/removeswat.sh (limited to 'packaging') diff --git a/packaging/SGI/removeswat.sh b/packaging/SGI/removeswat.sh new file mode 100755 index 0000000000..6834b25665 --- /dev/null +++ b/packaging/SGI/removeswat.sh @@ -0,0 +1,17 @@ +#! /bin/sh +# +# remove SWAT deamon from inetd.conf +# +cp /etc/inetd.conf /etc/inetd.O +sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf + +# +# remove SWAT service port from /etc/services +# +cp /etc/services /etc/services.O +sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services + +# +# restart inetd to reread config files +# +/etc/killall -HUP inetd -- cgit From 3e219742a288868ea76cc648d8b6e0fffcda2305 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Fri, 4 Dec 1998 00:13:12 +0000 Subject: Updated packaging files from 2.0.0 branch - NOTE: Not yet operative. I will update these when 2.0.0beta3 has shipped. (This used to be commit a6d3601cc687b59afb346502488a2e74f2f737a9) --- packaging/Caldera/makefile-path.patch | 47 +++++++++++----------------- packaging/Caldera/samba2.spec.tmpl | 20 ++++++++++-- packaging/PHT/TurboLinux/makefile-path.patch | 47 +++++++++++----------------- packaging/PHT/TurboLinux/samba2.spec.tmpl | 22 +++++++++++-- packaging/RedHat/makefile-path.patch | 47 +++++++++++----------------- packaging/RedHat/samba2.spec.tmpl | 22 +++++++++++-- 6 files changed, 113 insertions(+), 92 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/makefile-path.patch b/packaging/Caldera/makefile-path.patch index 98ab8e1997..37cf817d0d 100644 --- a/packaging/Caldera/makefile-path.patch +++ b/packaging/Caldera/makefile-path.patch @@ -1,43 +1,34 @@ ---- 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 @@ +--- samba-2.0.0/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 ++++ samba-2.0.0/source/Makefile.in Wed Dec 2 17:11:33 1998 +@@ -25,9 +25,9 @@ BINDIR = @bindir@ - SBINDIR = @sbindir@ + # we don't use sbindir because we want full compatibility with + # the previous releases of Samba +-SBINDIR = @bindir@ ++SBINDIR = @sbindir@ LIBDIR = @libdir@ --VARDIR = $(BASEDIR)/var -+VARDIR = /var +-VARDIR = @localstatedir@ ++VARDIR = /var/log/samba 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 +@@ -43,16 +43,16 @@ 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 smbpasswd et al go +-PRIVATEDIR = @privatedir@ ++PRIVATEDIR = $(LIBDIR) + + SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd + SMB_PASSGRP_FILE = $(PRIVATEDIR)/smbpassgrp # This is where SWAT images and help files go --SWATDIR = $(BASEDIR)/swat -+SWATDIR = $(BASEDIR)/share/swat +-SWATDIR = @swatdir@ ++SWATDIR = /usr/share/swat # the directory where lock files go -LOCKDIR = $(VARDIR)/locks -+LOCKDIR = $(VARDIR)/lock/samba ++LOCKDIR = /var/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 62a9e63362..84fe3dcd3b 100644 --- a/packaging/Caldera/samba2.spec.tmpl +++ b/packaging/Caldera/samba2.spec.tmpl @@ -89,7 +89,7 @@ install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src done # Install SWAT helper files -for i in swat/help/*.html +for i in swat/help/*.html docs/htmldocs/*.html do install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help done @@ -214,8 +214,24 @@ fi %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/smb.conf.5.html %attr(-,root,root) /usr/share/swat/help/welcome.html +%attr(-,root,root) /usr/share/swat/help/DOMAIN_MEMBER.html +%attr(-,root,root) /usr/share/swat/help/lmhosts.5.html +%attr(-,root,root) /usr/share/swat/help/make_smbcodepage.1.html +%attr(-,root,root) /usr/share/swat/help/nmbd.8.html +%attr(-,root,root) /usr/share/swat/help/nmblookup.1.html +%attr(-,root,root) /usr/share/swat/help/samba.7.html +%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html +%attr(-,root,root) /usr/share/swat/help/smbclient.1.html +%attr(-,root,root) /usr/share/swat/help/smbd.8.html +%attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html +%attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html +%attr(-,root,root) /usr/share/swat/help/smbrun.1.html +%attr(-,root,root) /usr/share/swat/help/smbstatus.1.html +%attr(-,root,root) /usr/share/swat/help/smbtar.1.html +%attr(-,root,root) /usr/share/swat/help/swat.8.html +%attr(-,root,root) /usr/share/swat/help/testparm.1.html +%attr(-,root,root) /usr/share/swat/help/testprns.1.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 diff --git a/packaging/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch index 98ab8e1997..37cf817d0d 100644 --- a/packaging/PHT/TurboLinux/makefile-path.patch +++ b/packaging/PHT/TurboLinux/makefile-path.patch @@ -1,43 +1,34 @@ ---- 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 @@ +--- samba-2.0.0/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 ++++ samba-2.0.0/source/Makefile.in Wed Dec 2 17:11:33 1998 +@@ -25,9 +25,9 @@ BINDIR = @bindir@ - SBINDIR = @sbindir@ + # we don't use sbindir because we want full compatibility with + # the previous releases of Samba +-SBINDIR = @bindir@ ++SBINDIR = @sbindir@ LIBDIR = @libdir@ --VARDIR = $(BASEDIR)/var -+VARDIR = /var +-VARDIR = @localstatedir@ ++VARDIR = /var/log/samba 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 +@@ -43,16 +43,16 @@ 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 smbpasswd et al go +-PRIVATEDIR = @privatedir@ ++PRIVATEDIR = $(LIBDIR) + + SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd + SMB_PASSGRP_FILE = $(PRIVATEDIR)/smbpassgrp # This is where SWAT images and help files go --SWATDIR = $(BASEDIR)/swat -+SWATDIR = $(BASEDIR)/share/swat +-SWATDIR = @swatdir@ ++SWATDIR = /usr/share/swat # the directory where lock files go -LOCKDIR = $(VARDIR)/locks -+LOCKDIR = $(VARDIR)/lock/samba ++LOCKDIR = /var/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 83ba2af34b..fdbb4a0312 100644 --- a/packaging/PHT/TurboLinux/samba2.spec.tmpl +++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl @@ -75,7 +75,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM. - Updated spec file - Included new codepage.936 -* Sat Mar 20 1998 John H Terpstra +* Sat Mar 20 1998 John H Terpstra - Added swat facility * Sat Jan 24 1998 John H Terpstra @@ -144,7 +144,7 @@ install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src done # Install SWAT helper files -for i in swat/help/*.html +for i in swat/help/*.html docs/htmldocs/*.html do install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help done @@ -277,8 +277,24 @@ 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/smb.conf.5.html %attr(-,root,root) /usr/share/swat/help/welcome.html +%attr(-,root,root) /usr/share/swat/help/DOMAIN_MEMBER.html +%attr(-,root,root) /usr/share/swat/help/lmhosts.5.html +%attr(-,root,root) /usr/share/swat/help/make_smbcodepage.1.html +%attr(-,root,root) /usr/share/swat/help/nmbd.8.html +%attr(-,root,root) /usr/share/swat/help/nmblookup.1.html +%attr(-,root,root) /usr/share/swat/help/samba.7.html +%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html +%attr(-,root,root) /usr/share/swat/help/smbclient.1.html +%attr(-,root,root) /usr/share/swat/help/smbd.8.html +%attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html +%attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html +%attr(-,root,root) /usr/share/swat/help/smbrun.1.html +%attr(-,root,root) /usr/share/swat/help/smbstatus.1.html +%attr(-,root,root) /usr/share/swat/help/smbtar.1.html +%attr(-,root,root) /usr/share/swat/help/swat.8.html +%attr(-,root,root) /usr/share/swat/help/testparm.1.html +%attr(-,root,root) /usr/share/swat/help/testprns.1.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 diff --git a/packaging/RedHat/makefile-path.patch b/packaging/RedHat/makefile-path.patch index 98ab8e1997..37cf817d0d 100644 --- a/packaging/RedHat/makefile-path.patch +++ b/packaging/RedHat/makefile-path.patch @@ -1,43 +1,34 @@ ---- 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 @@ +--- samba-2.0.0/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 ++++ samba-2.0.0/source/Makefile.in Wed Dec 2 17:11:33 1998 +@@ -25,9 +25,9 @@ BINDIR = @bindir@ - SBINDIR = @sbindir@ + # we don't use sbindir because we want full compatibility with + # the previous releases of Samba +-SBINDIR = @bindir@ ++SBINDIR = @sbindir@ LIBDIR = @libdir@ --VARDIR = $(BASEDIR)/var -+VARDIR = /var +-VARDIR = @localstatedir@ ++VARDIR = /var/log/samba 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 +@@ -43,16 +43,16 @@ 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 smbpasswd et al go +-PRIVATEDIR = @privatedir@ ++PRIVATEDIR = $(LIBDIR) + + SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd + SMB_PASSGRP_FILE = $(PRIVATEDIR)/smbpassgrp # This is where SWAT images and help files go --SWATDIR = $(BASEDIR)/swat -+SWATDIR = $(BASEDIR)/share/swat +-SWATDIR = @swatdir@ ++SWATDIR = /usr/share/swat # the directory where lock files go -LOCKDIR = $(VARDIR)/locks -+LOCKDIR = $(VARDIR)/lock/samba ++LOCKDIR = /var/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 ab7276815e..c7d665c672 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -75,7 +75,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM. - Updated spec file - Included new codepage.936 -* Sat Mar 20 1998 John H Terpstra +* Sat Mar 20 1998 John H Terpstra - Added swat facility * Sat Jan 24 1998 John H Terpstra @@ -144,7 +144,7 @@ install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src done # Install SWAT helper files -for i in swat/help/*.html +for i in swat/help/*.html docs/htmldocs/*.html do install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help done @@ -277,8 +277,24 @@ 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/smb.conf.5.html %attr(-,root,root) /usr/share/swat/help/welcome.html +%attr(-,root,root) /usr/share/swat/help/DOMAIN_MEMBER.html +%attr(-,root,root) /usr/share/swat/help/lmhosts.5.html +%attr(-,root,root) /usr/share/swat/help/make_smbcodepage.1.html +%attr(-,root,root) /usr/share/swat/help/nmbd.8.html +%attr(-,root,root) /usr/share/swat/help/nmblookup.1.html +%attr(-,root,root) /usr/share/swat/help/samba.7.html +%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html +%attr(-,root,root) /usr/share/swat/help/smbclient.1.html +%attr(-,root,root) /usr/share/swat/help/smbd.8.html +%attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html +%attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html +%attr(-,root,root) /usr/share/swat/help/smbrun.1.html +%attr(-,root,root) /usr/share/swat/help/smbstatus.1.html +%attr(-,root,root) /usr/share/swat/help/smbtar.1.html +%attr(-,root,root) /usr/share/swat/help/swat.8.html +%attr(-,root,root) /usr/share/swat/help/testparm.1.html +%attr(-,root,root) /usr/share/swat/help/testprns.1.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 -- cgit From e12592e19f95c1b9c2a67103a511dff6379794f6 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 7 Dec 1998 20:27:01 +0000 Subject: sync with 2.0 tree (This used to be commit 44d962b73634c3e43973b35c1f02aaff6edc5981) --- packaging/SGI/idb.pl | 3 ++- packaging/SGI/inst.msg | 31 +++++++++++++++++++++++++++++++ packaging/SGI/samba.rc | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100755 packaging/SGI/inst.msg (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 08c95e2ed3..cc44627273 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -115,7 +115,7 @@ while(@bins) { 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 nostrip preop(/etc/killall smbd nmbd) exitop(/usr/samba/scripts/startswat.sh) removeop(/usr/samba/scripts/removeswat.sh)\n"; + print IDB "f 4755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n"; } elsif ($filename eq "sambalp") { print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base nostrip\n"; @@ -159,6 +159,7 @@ print IDB "f 0600 root sys usr/samba/private/smbpasswd packaging/SGI/smbpasswd s 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/inst.msg packaging/SGI/inst.msg samba.sw.base exitop(\"chroot \$rbase /usr/samba/scripts/inst.msg\")\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"; diff --git a/packaging/SGI/inst.msg b/packaging/SGI/inst.msg new file mode 100755 index 0000000000..c613a09d01 --- /dev/null +++ b/packaging/SGI/inst.msg @@ -0,0 +1,31 @@ +#! /bin/sh + +echo +echo +echo Samba for IRIX has been installed on your system. +echo +echo Your /etc/services and /etc/inetd.conf files have +echo been modified to automatically start the +echo Samba Web Administration Tool \(SWAT\) when you +echo connect with a web browser to +echo +echo http://`hostname`:901 +echo +echo The original versions of /etc/services and +echo /etc/inetd.conf were saved echo with a .O extension. +echo +echo If you do not wish SWAT to be enabled you may +echo run the script /usr/samba/scripts/removeswat.sh +echo which will remove the entries from /etc/services +echo and /etc/inetd.conf +echo +echo Please review your configuration settings by +echo connecting to SWAT or editing the file +echo /usr/samba/lib/smb.conf and then starting +echo the smbd and nmbd daemons to complete the +echo installation. You may start the daemons from +echo the SWAT "Status" page or by executing the +echo following command as root. +echo +echo /etc/init.d/samba start +echo diff --git a/packaging/SGI/samba.rc b/packaging/SGI/samba.rc index 121b3400a3..bc0f90ee77 100644 --- a/packaging/SGI/samba.rc +++ b/packaging/SGI/samba.rc @@ -35,6 +35,7 @@ case $1 in 'stop') $ECHO "Stopping Samba Servers." $KILLALL -15 smbd nmbd + exit 0 ;; *) echo "usage: /etc/init.d/samba {start|stop}" -- cgit From e566f0eae085012350ec8fa97b4cbd2ed63643b5 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 19 Dec 1998 03:29:03 +0000 Subject: Updated makefile-path info contributed on the samba-technical mailing list. (This used to be commit bd3770235dd417d06e47d1ba16bcedc8a94e9ff9) --- packaging/Caldera/makefile-path.patch | 48 +++++++++++++++++----------- packaging/PHT/TurboLinux/makefile-path.patch | 48 +++++++++++++++++----------- packaging/RedHat/makefile-path.patch | 48 +++++++++++++++++----------- 3 files changed, 87 insertions(+), 57 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/makefile-path.patch b/packaging/Caldera/makefile-path.patch index 37cf817d0d..5fddb7cbfb 100644 --- a/packaging/Caldera/makefile-path.patch +++ b/packaging/Caldera/makefile-path.patch @@ -1,34 +1,44 @@ ---- samba-2.0.0/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 -+++ samba-2.0.0/source/Makefile.in Wed Dec 2 17:11:33 1998 -@@ -25,9 +25,9 @@ - BINDIR = @bindir@ - # we don't use sbindir because we want full compatibility with +diff -uNr samba-PVERSION/source/Makefile.in samba-kgc/source/Makefile.in +--- samba-PVERSION/source/Makefile.in Wed Dec 2 14:35:18 1998 ++++ samba-kgc/source/Makefile.in Wed Dec 2 15:06:02 1998 +@@ -27,7 +27,7 @@ # the previous releases of Samba --SBINDIR = @bindir@ -+SBINDIR = @sbindir@ + SBINDIR = @bindir@ LIBDIR = @libdir@ --VARDIR = @localstatedir@ -+VARDIR = /var/log/samba +-VARDIR = $(BASEDIR)/var ++VARDIR = /var MANDIR = @mandir@ # The permissions to give the executables -@@ -43,16 +43,16 @@ +@@ -36,23 +36,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 - # This is where smbpasswd et al go --PRIVATEDIR = @privatedir@ -+PRIVATEDIR = $(LIBDIR) - - SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd - SMB_PASSGRP_FILE = $(PRIVATEDIR)/smbpassgrp +-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 = $(BINDIR)/smbpasswd # This is where SWAT images and help files go --SWATDIR = @swatdir@ -+SWATDIR = /usr/share/swat +-SWATDIR = $(BASEDIR)/swat ++SWATDIR = $(BASEDIR)/share/swat # the directory where lock files go -LOCKDIR = $(VARDIR)/locks -+LOCKDIR = /var/lock/samba ++LOCKDIR = $(VARDIR)/lock/samba # The directory where code page definition files go CODEPAGEDIR = $(LIBDIR)/codepages diff --git a/packaging/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch index 37cf817d0d..5fddb7cbfb 100644 --- a/packaging/PHT/TurboLinux/makefile-path.patch +++ b/packaging/PHT/TurboLinux/makefile-path.patch @@ -1,34 +1,44 @@ ---- samba-2.0.0/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 -+++ samba-2.0.0/source/Makefile.in Wed Dec 2 17:11:33 1998 -@@ -25,9 +25,9 @@ - BINDIR = @bindir@ - # we don't use sbindir because we want full compatibility with +diff -uNr samba-PVERSION/source/Makefile.in samba-kgc/source/Makefile.in +--- samba-PVERSION/source/Makefile.in Wed Dec 2 14:35:18 1998 ++++ samba-kgc/source/Makefile.in Wed Dec 2 15:06:02 1998 +@@ -27,7 +27,7 @@ # the previous releases of Samba --SBINDIR = @bindir@ -+SBINDIR = @sbindir@ + SBINDIR = @bindir@ LIBDIR = @libdir@ --VARDIR = @localstatedir@ -+VARDIR = /var/log/samba +-VARDIR = $(BASEDIR)/var ++VARDIR = /var MANDIR = @mandir@ # The permissions to give the executables -@@ -43,16 +43,16 @@ +@@ -36,23 +36,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 - # This is where smbpasswd et al go --PRIVATEDIR = @privatedir@ -+PRIVATEDIR = $(LIBDIR) - - SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd - SMB_PASSGRP_FILE = $(PRIVATEDIR)/smbpassgrp +-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 = $(BINDIR)/smbpasswd # This is where SWAT images and help files go --SWATDIR = @swatdir@ -+SWATDIR = /usr/share/swat +-SWATDIR = $(BASEDIR)/swat ++SWATDIR = $(BASEDIR)/share/swat # the directory where lock files go -LOCKDIR = $(VARDIR)/locks -+LOCKDIR = /var/lock/samba ++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 37cf817d0d..5fddb7cbfb 100644 --- a/packaging/RedHat/makefile-path.patch +++ b/packaging/RedHat/makefile-path.patch @@ -1,34 +1,44 @@ ---- samba-2.0.0/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 -+++ samba-2.0.0/source/Makefile.in Wed Dec 2 17:11:33 1998 -@@ -25,9 +25,9 @@ - BINDIR = @bindir@ - # we don't use sbindir because we want full compatibility with +diff -uNr samba-PVERSION/source/Makefile.in samba-kgc/source/Makefile.in +--- samba-PVERSION/source/Makefile.in Wed Dec 2 14:35:18 1998 ++++ samba-kgc/source/Makefile.in Wed Dec 2 15:06:02 1998 +@@ -27,7 +27,7 @@ # the previous releases of Samba --SBINDIR = @bindir@ -+SBINDIR = @sbindir@ + SBINDIR = @bindir@ LIBDIR = @libdir@ --VARDIR = @localstatedir@ -+VARDIR = /var/log/samba +-VARDIR = $(BASEDIR)/var ++VARDIR = /var MANDIR = @mandir@ # The permissions to give the executables -@@ -43,16 +43,16 @@ +@@ -36,23 +36,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 - # This is where smbpasswd et al go --PRIVATEDIR = @privatedir@ -+PRIVATEDIR = $(LIBDIR) - - SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd - SMB_PASSGRP_FILE = $(PRIVATEDIR)/smbpassgrp +-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 = $(BINDIR)/smbpasswd # This is where SWAT images and help files go --SWATDIR = @swatdir@ -+SWATDIR = /usr/share/swat +-SWATDIR = $(BASEDIR)/swat ++SWATDIR = $(BASEDIR)/share/swat # the directory where lock files go -LOCKDIR = $(VARDIR)/locks -+LOCKDIR = /var/lock/samba ++LOCKDIR = $(VARDIR)/lock/samba # The directory where code page definition files go CODEPAGEDIR = $(LIBDIR)/codepages -- cgit From 475e2c1a353c903bffc073f821bb544031af4bc8 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Mon, 21 Dec 1998 10:12:27 +0000 Subject: Changing to PHT standard SPEC settings. (This used to be commit bf2b97f5905419cdfe43b0f0f1f3b7b85881711a) --- packaging/PHT/TurboLinux/samba2.spec.tmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl index fdbb4a0312..b775008a4e 100644 --- a/packaging/PHT/TurboLinux/samba2.spec.tmpl +++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl @@ -7,7 +7,6 @@ Group: Networking Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz Patch: makefile-path.patch Patch1: smbw.patch -Packager: John H Terpstra [Samba-Team] Requires: pam >= 0.64 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba @@ -97,7 +96,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM. %build cd source -./configure --prefix=/usr --libdir=/etc --with-smbwrapper +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-smbwrapper make all smbwrapper %install -- cgit From 13ab117535764f7279521ef97d994238e2796143 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 27 Dec 1998 22:31:50 +0000 Subject: Modified packaging-prep script to remove use of "rm -f *". (This used to be commit 1d9540bfc00381cd86f47e5673d902352e9f4b55) --- packaging/Digital/package-prep | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'packaging') diff --git a/packaging/Digital/package-prep b/packaging/Digital/package-prep index 77bacd0472..a1d3827553 100755 --- a/packaging/Digital/package-prep +++ b/packaging/Digital/package-prep @@ -16,9 +16,8 @@ cp -pr man ../ rm -rf man cd $NOWDIR tar cvf install.tar usr var -cd samba-2.0.0/source/bin -rm -f * -cd .. +cd samba-2.0.0/source +rm -f ../source/bin/* make clean cd ../.. tar cvf samba-2.0.0.tar samba-2.0.0 -- cgit From a433966aa6d136e5cbe93fa09a8aee86e7280851 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 17 Oct 1999 17:40:49 +0000 Subject: Bringing samba-2.1.x samba2.spec.tmpl file into line with samba-2.0.x release tree. (This used to be commit 62593d39a5ba9f590989a4e40f7200d4af55b73d) --- packaging/PHT/TurboLinux/samba2.spec.tmpl | 137 +++++++++++++++++++++++------- 1 file changed, 104 insertions(+), 33 deletions(-) (limited to 'packaging') diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl index b775008a4e..37c7f5c2ab 100644 --- a/packaging/PHT/TurboLinux/samba2.spec.tmpl +++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl @@ -7,10 +7,22 @@ Group: Networking Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz Patch: makefile-path.patch Patch1: smbw.patch -Requires: pam >= 0.64 +Requires: pam >= 0.64 kernel >= 2.2.1 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba +%package debugtools +Version: PVERSION +Release: PRELEASE +Group: Networking +Summary: Programs to debug Samba and to test SMB client integrity + +%package -n smbfs +Version: PVERSION +Release: PRELEASE +Group: Utilities/File +Summary: Programs to mount SMB shares. + %description Samba provides an SMB server which can be used to provide network services to SMB (sometimes called "Lan Manager") @@ -29,17 +41,41 @@ 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. +enabled. PHT TurboLinux has built in support for quotas in PAM. + +%description -n smbfs +This package includes the tools necessary to mount filesystems from +SMB servers. + +%description debugtools +This package contains programs that can be used to crash test any SMB +server. Please use it with care. If you do not need it then do NOT +install. %changelog +* Sun Oct 16 1999 John H Terspstra +- changed mount.smb to link to smbmount + +* Sun May 09 1999 John H Terpstra +- Added smbtorture et al. + +* Wed Mar 10 1999 Scott Stone +- This package now builds smbfs stuff +- Added xinetd autosetup in the post install section +- (todo: add remove of xinetd stuff in postuninstall section) + +* Sun Feb 28 1999 Jeremy Allison + - Removed smbrun binary and tidied up some loose ends + * Sun Oct 25 1998 John H Terpstra - Added modifier to /config specifier so that smb.conf, - lmhosts and smbusers never get lost + lmhosts and smbusers never get lost * Sat Oct 24 1998 John H Terpstra - removed README.smbsh file from docs area @@ -60,7 +96,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM. * Mon Jun 08 1998 Erik Troan - made the %postun script a tad less agressive; no reason to remove - the logs or lock file + 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 @@ -74,7 +110,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM. - Updated spec file - Included new codepage.936 -* Sat Mar 20 1998 John H Terpstra +* Sat Mar 20 1998 John H Terpstra - Added swat facility * Sat Jan 24 1998 John H Terpstra @@ -96,12 +132,13 @@ enabled. Red Hat Linux has built in support for quotas in PAM. %build cd source -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-smbwrapper -make all smbwrapper +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-smbwrapper --with-automount --with-quotas --with-smbmount --with-pam +make all smbwrapper smbtorture rpctorture smbfilter debug2html + %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/sbin 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} @@ -114,24 +151,26 @@ 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 \ +for i in nmblookup smbclient smbpasswd 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 +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 +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html rpctorture smbtorture smbfilter do install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin done +# Now link smbmount to mount.smb +ln $RPM_BUILD_ROOT/usr/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb # 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 +for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1 smbsh.1 do install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/man/man1 done @@ -166,15 +205,20 @@ 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 -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 +install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT/usr/man/man8 +install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT/usr/man/man8 +install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT/usr/man/man8 +# The mount.smb script has been obsoleted. +# install -m644 packaging/PHT/TurboLinux/mount.smb $RPM_BUILD_ROOT/sbin +install -m644 packaging/PHT/TurboLinux/smb.conf $RPM_BUILD_ROOT/etc/smb.conf +install -m644 packaging/PHT/TurboLinux/smbusers $RPM_BUILD_ROOT/etc/smbusers +install -m755 packaging/PHT/TurboLinux/smbprint $RPM_BUILD_ROOT/usr/bin +install -m755 packaging/PHT/TurboLinux/findsmb $RPM_BUILD_ROOT/usr/bin +install -m755 packaging/PHT/TurboLinux/smbadduser $RPM_BUILD_ROOT/usr/bin +install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb +install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT/usr/sbin/samba +install -m644 packaging/PHT/TurboLinux/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba +install -m644 packaging/PHT/TurboLinux/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts %clean @@ -191,13 +235,19 @@ 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 + 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 || : + echo 'swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf + killall -1 inetd || : +fi + +# Now create the xinetd.conf file from our inetd.conf file, back up orig first. +if [ -f /etc/xinetd.conf ]; then + mv /etc/xinetd.conf /etc/xinetd.conf.presamba + /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf fi %preun @@ -205,24 +255,22 @@ if [ $1 = 0 ] ; then /sbin/chkconfig --del smb for n in /etc/codepages/*; do - if [ $n != /etc/codepages/src ]; then - rm -rf $n - fi + 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 + rm -f /var/lock/samba/browse.dat fi if [ -e /var/lock/samba/wins.dat ]; then - rm -f /var/lock/samba/wins.dat + 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 [ $1 = 0 ] ; then if [ -x /etc/pam.d/samba ]; then rm -f /etc/pam.d/samba fi @@ -240,6 +288,10 @@ if [ $1 != 0 ] ; then mv $tmpfile inetd.conf sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile mv $tmpfile services + + # Recreate xinetd.conf file from /etc/inetd.conf + mv /etc/xinetd.conf /etc/xinetd.conf.samba + /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf fi %triggerpostun -- samba < samba-2.0.0 @@ -264,7 +316,6 @@ fi %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 @@ -289,6 +340,7 @@ fi %attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html %attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html %attr(-,root,root) /usr/share/swat/help/smbrun.1.html +%attr(-,root,root) /usr/share/swat/help/smbsh.1.html %attr(-,root,root) /usr/share/swat/help/smbstatus.1.html %attr(-,root,root) /usr/share/swat/help/smbtar.1.html %attr(-,root,root) /usr/share/swat/help/swat.8.html @@ -321,9 +373,11 @@ fi %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/nmblookup.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/smbsh.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 @@ -331,6 +385,7 @@ fi %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/swat.8 %attr(-,root,root) /usr/man/man8/smbpasswd.8 %attr(-,root,nobody) %dir /home/samba %attr(-,root,root) %dir /etc/codepages @@ -338,3 +393,19 @@ fi %attr(-,root,root) %dir /var/lock/samba %attr(-,root,root) %dir /var/log/samba %attr(1777,root,root) %dir /var/spool/samba + +%files -n smbfs +%attr(-,root,root) /usr/sbin/smbmount +%attr(-,root,root) /usr/sbin/smbumount +%attr(-,root,root) /usr/sbin/smbmnt +%attr(-,root,root) /sbin/mount.smb +%attr(-,root,root) /usr/man/man8/smbmnt.8 +%attr(-,root,root) /usr/man/man8/smbmount.8 +%attr(-,root,root) /usr/man/man8/smbumount.8 + +%files debugtools +%attr(-,root,root) /usr/sbin/smbtorture +%attr(-,root,root) /usr/sbin/rpctorture +%attr(-,root,root) /usr/sbin/smbfilter +%attr(-,root,root) /usr/sbin/debug2html + -- cgit From 431d0dca732108c817e4f3fecfb4c28641383642 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 30 Oct 1999 02:33:12 +0000 Subject: Updating build specs for TurboLinux 6.0 and later (This used to be commit 6e3b8a62b95c3dd7b6938ae45f4df8f573c5125d) --- packaging/PHT/TurboLinux/makerpms.sh.tmpl | 12 ++-- packaging/PHT/TurboLinux/samba2.spec.tmpl | 96 ++++++++++++++++++------------- 2 files changed, 62 insertions(+), 46 deletions(-) (limited to 'packaging') diff --git a/packaging/PHT/TurboLinux/makerpms.sh.tmpl b/packaging/PHT/TurboLinux/makerpms.sh.tmpl index 3b364c74a7..c389bf1a68 100644 --- a/packaging/PHT/TurboLinux/makerpms.sh.tmpl +++ b/packaging/PHT/TurboLinux/makerpms.sh.tmpl @@ -1,14 +1,14 @@ #!/bin/sh -# Copyright (C) John H Terpstra 1998 +# Copyright (C) 1998 John H Terpstra, 1999 K Spoon # -RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'` -SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'` -SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'` +SPECDIR=/usr/src/turbo/SPECS +SRCDIR=/usr/src/turbo/SOURCES +USERID=`id -u` +GRPID=`id -g` +( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/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 -chown -R root.root samba-PVERSION cd $SPECDIR rpm -ba -v samba2.spec diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl index 37c7f5c2ab..ea246364db 100644 --- a/packaging/PHT/TurboLinux/samba2.spec.tmpl +++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl @@ -7,10 +7,11 @@ Group: Networking Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz Patch: makefile-path.patch Patch1: smbw.patch -Requires: pam >= 0.64 kernel >= 2.2.1 +Requires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba + %package debugtools Version: PVERSION Release: PRELEASE @@ -59,8 +60,18 @@ server. Please use it with care. If you do not need it then do NOT install. %changelog +* Fri Oct 29 1999 Kelley Spoon +- get rid of the rc?.d directories +- -j flags for make command to (hopefully) speed up on + SMP systems +- discoverd that John had already made the changes I + was going to do... +- Wait! He forgot to move the man pages into /usr/share! + Cool... I get to do something substantial. + * Sun Oct 16 1999 John H Terspstra - changed mount.smb to link to smbmount +- removed smbwrappers as it is broken with glibc-2.1.x * Sun May 09 1999 John H Terpstra - Added smbtorture et al. @@ -132,8 +143,10 @@ install. %build cd source -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-smbwrapper --with-automount --with-quotas --with-smbmount --with-pam -make all smbwrapper smbtorture rpctorture smbfilter debug2html +NUMCPU=`grep processor /proc/cpuinfo | wc -l` +# CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-smbwrapper --with-automount --with-quotas --with-smbmount --with-pam +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-smbmount --with-pam +make -j${NUMCPU} all smbtorture rpctorture smbfilter debug2html # smbwrapper %install @@ -141,18 +154,19 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/sbin 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/etc/rc.d/init.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/usr/share/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 +# At a later date add smbsh and smbwrapper.so back into line below for i in nmblookup smbclient smbpasswd 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 @@ -170,9 +184,10 @@ done ln $RPM_BUILD_ROOT/usr/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb # 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 smbsh.1 +# At a later date add back to line below: smbsh.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/manpages/$i $RPM_BUILD_ROOT/usr/man/man1 +install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/share/man/man1 done # Install codepage source files @@ -197,17 +212,17 @@ 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/smbpasswd.8 $RPM_BUILD_ROOT/usr/man/man8 -install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT/usr/man/man8 -install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT/usr/man/man8 -install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT/usr/man/man8 -install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT/usr/man/man8 +install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT/usr/share/man/man5 +install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT/usr/share/man/man5 +install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT/usr/share/man/man5 +install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT/usr/share/man/man7 +install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT/usr/share/man/man8 +install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT/usr/share/man/man8 +install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT/usr/share/man/man8 +install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT/usr/share/man/man8 +install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT/usr/share/man/man8 +install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT/usr/share/man/man8 +install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT/usr/share/man/man8 # The mount.smb script has been obsoleted. # install -m644 packaging/PHT/TurboLinux/mount.smb $RPM_BUILD_ROOT/sbin install -m644 packaging/PHT/TurboLinux/smb.conf $RPM_BUILD_ROOT/etc/smb.conf @@ -226,6 +241,7 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add smb +/sbin/chkconfig smb off # Build codepage load files for i in 437 737 850 852 861 866 932 936 949 950 @@ -325,8 +341,8 @@ 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(0755,root,root) /usr/bin/smbsh +# %attr(0755,root,root) /usr/bin/smbwrapper.so %attr(-,root,root) /usr/share/swat/help/welcome.html %attr(-,root,root) /usr/share/swat/help/DOMAIN_MEMBER.html %attr(-,root,root) /usr/share/swat/help/lmhosts.5.html @@ -340,7 +356,7 @@ fi %attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html %attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html %attr(-,root,root) /usr/share/swat/help/smbrun.1.html -%attr(-,root,root) /usr/share/swat/help/smbsh.1.html +# %attr(-,root,root) /usr/share/swat/help/smbsh.1.html %attr(-,root,root) /usr/share/swat/help/smbstatus.1.html %attr(-,root,root) /usr/share/swat/help/smbtar.1.html %attr(-,root,root) /usr/share/swat/help/swat.8.html @@ -372,21 +388,21 @@ fi %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/nmblookup.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/smbsh.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/swat.8 -%attr(-,root,root) /usr/man/man8/smbpasswd.8 +%attr(-,root,root) /usr/share/man/man1/smbstatus.1 +%attr(-,root,root) /usr/share/man/man1/nmblookup.1 +%attr(-,root,root) /usr/share/man/man1/smbclient.1 +%attr(-,root,root) /usr/share/man/man1/make_smbcodepage.1 +%attr(-,root,root) /usr/share/man/man1/smbrun.1 +# %attr(-,root,root) /usr/share/man/man1/smbsh.1 +%attr(-,root,root) /usr/share/man/man1/smbtar.1 +%attr(-,root,root) /usr/share/man/man1/testparm.1 +%attr(-,root,root) /usr/share/man/man1/testprns.1 +%attr(-,root,root) /usr/share/man/man5/smb.conf.5 +%attr(-,root,root) /usr/share/man/man7/samba.7 +%attr(-,root,root) /usr/share/man/man8/smbd.8 +%attr(-,root,root) /usr/share/man/man8/nmbd.8 +%attr(-,root,root) /usr/share/man/man8/swat.8 +%attr(-,root,root) /usr/share/man/man8/smbpasswd.8 %attr(-,root,nobody) %dir /home/samba %attr(-,root,root) %dir /etc/codepages %attr(-,root,root) %dir /etc/codepages/src @@ -399,9 +415,9 @@ fi %attr(-,root,root) /usr/sbin/smbumount %attr(-,root,root) /usr/sbin/smbmnt %attr(-,root,root) /sbin/mount.smb -%attr(-,root,root) /usr/man/man8/smbmnt.8 -%attr(-,root,root) /usr/man/man8/smbmount.8 -%attr(-,root,root) /usr/man/man8/smbumount.8 +%attr(-,root,root) /usr/share/man/man8/smbmnt.8 +%attr(-,root,root) /usr/share/man/man8/smbmount.8 +%attr(-,root,root) /usr/share/man/man8/smbumount.8 %files debugtools %attr(-,root,root) /usr/sbin/smbtorture -- cgit From 3db52feb1f3b2c07ce0b06ad4a7099fa6efe3fc7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Dec 1999 13:27:58 +0000 Subject: first pass at updating head branch to be to be the same as the SAMBA_2_0 branch (This used to be commit 453a822a76780063dff23526c35408866d0c0154) --- packaging/Digital/package-prep | 16 +- packaging/Digital/samba.init | 4 +- packaging/Example/package-prep | 7 +- packaging/PHT/TurboLinux/makefile-path.patch | 50 ++---- packaging/PHT/TurboLinux/smb.conf | 2 +- packaging/RedHat/makefile-path.patch | 50 ++---- packaging/RedHat/makerpms.sh.tmpl | 43 ++++- packaging/RedHat/samba.log | 4 +- packaging/RedHat/samba2.spec.tmpl | 232 +++++++++++++++------------ packaging/RedHat/smb.conf | 2 +- packaging/SGI/idb.pl | 15 +- packaging/SGI/inst.msg | 2 +- packaging/SGI/mkman | 5 +- packaging/SGI/mkrelease.sh | 10 +- packaging/SGI/sambalp | 11 +- packaging/SGI/smb.conf | 10 ++ packaging/Solaris/pkg-specs/pkginfo | 10 +- packaging/SuSE/5.2/samba.spec | 3 - 18 files changed, 251 insertions(+), 225 deletions(-) (limited to 'packaging') diff --git a/packaging/Digital/package-prep b/packaging/Digital/package-prep index a1d3827553..2daee8b69e 100755 --- a/packaging/Digital/package-prep +++ b/packaging/Digital/package-prep @@ -1,10 +1,10 @@ tar xvf skeleton.tar +NOWDIR=`pwd`; ( 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; ) + if [ -x man ]; then mv man man.orig; fi + if [ -x samba ]; then mv samba samba.orig; fi + 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 @@ -24,7 +24,7 @@ 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 +find samba-2.0.0 -print | cpio -o > samba-2.0.0-OSF1-v4.0-beta5.cpio +gzip samba-2.0.0-OSF1-v4.0-beta5.cpio cd samba-2.0.0 -tar xcf install.tar +tar xvf install.tar diff --git a/packaging/Digital/samba.init b/packaging/Digital/samba.init index c1d605cda0..6a74244089 100755 --- a/packaging/Digital/samba.init +++ b/packaging/Digital/samba.init @@ -19,8 +19,8 @@ case "$1" in 'start') echo "Starting Samba" - /usr/local/samba/sbin/smbd - /usr/local/samba/sbin/nmbd + /usr/local/samba/bin/smbd + /usr/local/samba/bin/nmbd echo "Done." ;; 'stop') diff --git a/packaging/Example/package-prep b/packaging/Example/package-prep index 5e5834a6d3..e8f5089a86 100755 --- a/packaging/Example/package-prep +++ b/packaging/Example/package-prep @@ -7,7 +7,7 @@ tar xvf skeleton.tar ( cd /usr/local; mv man man.orig; mv samba samba.orig; - DIRNOW=`pwd1`; + NOWDIR=`pwd`; ln -sf $NOWDIR/usr/local/man man; ln -sf $NOWDIR/usr/local/samba samba; ) @@ -32,9 +32,8 @@ 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 .. +cd samba-X.X.X/source +rm -f ../source/bin/* make clean cd ../.. tar cvf samba-X.X.X.tar samba-X.X.X diff --git a/packaging/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch index 5fddb7cbfb..88d5222e09 100644 --- a/packaging/PHT/TurboLinux/makefile-path.patch +++ b/packaging/PHT/TurboLinux/makefile-path.patch @@ -1,44 +1,12 @@ -diff -uNr samba-PVERSION/source/Makefile.in samba-kgc/source/Makefile.in ---- samba-PVERSION/source/Makefile.in Wed Dec 2 14:35:18 1998 -+++ samba-kgc/source/Makefile.in Wed Dec 2 15:06:02 1998 -@@ -27,7 +27,7 @@ +--- samba-2.0.1/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 ++++ samba-2.0.1/source/Makefile.in Wed Dec 2 17:11:33 1998 +@@ -25,9 +25,9 @@ + BINDIR = @bindir@ + # we don't use sbindir because we want full compatibility with # the previous releases of Samba - SBINDIR = @bindir@ +-SBINDIR = @bindir@ ++SBINDIR = @sbindir@ LIBDIR = @libdir@ --VARDIR = $(BASEDIR)/var -+VARDIR = /var +-VARDIR = @localstatedir@ ++VARDIR = /var/log/samba MANDIR = @mandir@ - - # The permissions to give the executables -@@ -36,23 +36,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 = $(BINDIR)/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/smb.conf b/packaging/PHT/TurboLinux/smb.conf index bd9a8e15bc..e07d15c93e 100644 --- a/packaging/PHT/TurboLinux/smb.conf +++ b/packaging/PHT/TurboLinux/smb.conf @@ -85,7 +85,7 @@ # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details - socket options = TCP_NODELAY + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them diff --git a/packaging/RedHat/makefile-path.patch b/packaging/RedHat/makefile-path.patch index 5fddb7cbfb..88d5222e09 100644 --- a/packaging/RedHat/makefile-path.patch +++ b/packaging/RedHat/makefile-path.patch @@ -1,44 +1,12 @@ -diff -uNr samba-PVERSION/source/Makefile.in samba-kgc/source/Makefile.in ---- samba-PVERSION/source/Makefile.in Wed Dec 2 14:35:18 1998 -+++ samba-kgc/source/Makefile.in Wed Dec 2 15:06:02 1998 -@@ -27,7 +27,7 @@ +--- samba-2.0.1/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 ++++ samba-2.0.1/source/Makefile.in Wed Dec 2 17:11:33 1998 +@@ -25,9 +25,9 @@ + BINDIR = @bindir@ + # we don't use sbindir because we want full compatibility with # the previous releases of Samba - SBINDIR = @bindir@ +-SBINDIR = @bindir@ ++SBINDIR = @sbindir@ LIBDIR = @libdir@ --VARDIR = $(BASEDIR)/var -+VARDIR = /var +-VARDIR = @localstatedir@ ++VARDIR = /var/log/samba MANDIR = @mandir@ - - # The permissions to give the executables -@@ -36,23 +36,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 = $(BINDIR)/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 index fa69370dff..1767176a1f 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -1,14 +1,47 @@ #!/bin/sh # Copyright (C) John H Terpstra 1998 +# Updated for RPM 3 by Jochen Wiedmann, joe@ispsoft.de # -RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'` -SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'` -SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'` +USERID=`id -u` +GRPID=`id -g` +rpm3var () { + echo "rpm3var start $1" >>/tmp/log + var=`rpm --showrc \ + | awk "/-[0-9]+[:=][[:blank:]]+$1[[:blank:]]/ {print \\$3}"` + echo "var=$var" >>/tmp/log + while test -n "`echo $var | egrep '%{[_a-zA-Z]+}'`"; do + v=`echo $var | sed 's/.*%{\([_a-zA-Z]\+\)}.*/\1/'` + echo "Loop: v=$v" >>/tmp/log + w="`rpm3var $v`" + var=`echo $var | sed "s,%{\\([_a-zA-Z]\\+\\)},$w,g"` + echo "Loop: var=$var" >>/tmp/log + done + echo "rpm3var stop $1 $var" >>/tmp/log + echo $var +} + +case `rpm --version | awk '{print $3}'` in + 2.*) + RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'` + SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'` + SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'` + ;; + 3.*) + RPMDIR=`rpm3var _rpmdir` + SPECDIR=`rpm3var _specdir` + SRCDIR=`rpm3var _sourcedir` + ;; + *) + echo "Unknown RPM version: `rpm --version`" + exit 1 + ;; +esac + +( cd ../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/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 -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 index c5f2a5b45b..c8ab3852e2 100644 --- a/packaging/RedHat/samba.log +++ b/packaging/RedHat/samba.log @@ -1,11 +1,11 @@ /var/log/samba/log.nmb { postrotate /usr/bin/killall -HUP nmbd - endrotate + endscript } /var/log/samba/log.smb { postrotate /usr/bin/killall -HUP smbd - endrotate + endscript } diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index c7d665c672..92ea52527b 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -11,6 +11,7 @@ Packager: John H Terpstra [Samba-Team] Requires: pam >= 0.64 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba +Prefix: /usr %description Samba provides an SMB server which can be used to provide @@ -38,6 +39,25 @@ for Shadow passwords. Do NOT recompile with the SHADOW_PWD option enabled. Red Hat Linux has built in support for quotas in PAM. %changelog +* Sat Nov 29 1999 Matthew Vanecek + - Added a Prefix and changed "/usr" to "%{prefix}" + +* Sat Nov 11 1999 Tridge + - changed from mount.smb to mount.smbfs + +* Sat Oct 9 1999 Tridge + - removed smbwrapper + - added smbmnt and smbmount + +* Sun Apr 25 1999 John H Terpstra + - added smbsh.1 man page + +* Fri Mar 26 1999 Andrew Tridgell + - added --with-pam as pam is no longer used by default + +* Sat Jan 27 1999 Jeremy Allison + - Removed smbrun binary and tidied up some loose ends + * Sun Oct 25 1998 John H Terpstra - Added parameters to /config to ensure smb.conf, lmhosts, and smbusers never gets over-written. @@ -75,7 +95,7 @@ enabled. Red Hat Linux has built in support for quotas in PAM. - Updated spec file - Included new codepage.936 -* Sat Mar 20 1998 John H Terpstra +* Sat Mar 20 1998 John H Terpstra - Added swat facility * Sat Jan 24 1998 John H Terpstra @@ -97,8 +117,8 @@ enabled. Red Hat Linux has built in support for quotas in PAM. %build cd source -./configure --prefix=/usr --libdir=/etc --with-smbwrapper -make all smbwrapper +./configure --prefix=%{prefix} --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=%{prefix}/share/swat --with-smbmount --with-automount --with-quotas --with-pam +make all %install rm -rf $RPM_BUILD_ROOT @@ -107,34 +127,38 @@ 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%{prefix}/{bin,sbin} +mkdir -p $RPM_BUILD_ROOT/sbin +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include} +mkdir -p $RPM_BUILD_ROOT%{prefix}/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 +for i in nmblookup smbclient smbspool smbpasswd smbstatus testparm testprns \ + make_smbcodepage make_printerdef rpcclient do -install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin +install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done for i in addtosmbpass mksmbpasswd.sh smbtar do -install -m755 source/script/$i $RPM_BUILD_ROOT/usr/bin +install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat +for i in smbd nmbd swat smbmount smbmnt smbumount do -install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin +install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done +# we need a symlink for mount to recognise the smb filesystem type +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs + # 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 +install -m644 docs/manpages/$i $RPM_BUILD_ROOT%{prefix}/man/man1 done # Install codepage source files @@ -146,34 +170,37 @@ done # Install SWAT helper files for i in swat/help/*.html docs/htmldocs/*.html do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help done for i in swat/images/*.gif do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images done for i in swat/include/*.html do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include +install -m644 $i $RPM_BUILD_ROOT%{prefix}/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 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat +install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT%{prefix}/man/man5 +install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT%{prefix}/man/man5 +install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT%{prefix}/man/man5 +install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT%{prefix}/man/man7 +install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT%{prefix}/man/man8 +install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT%{prefix}/man/man8 +install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT%{prefix}/man/man8 +install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT%{prefix}/man/man8 +install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT%{prefix}/man/man8 +install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT%{prefix}/man/man8 +install -m644 docs/manpages/smbspool.8 $RPM_BUILD_ROOT%{prefix}/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/smbprint $RPM_BUILD_ROOT%{prefix}/bin +install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT%{prefix}/bin +install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb -install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/usr/sbin/samba +install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{prefix}/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 @@ -187,7 +214,7 @@ rm -rf $RPM_BUILD_ROOT # 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 +%{prefix}/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 @@ -197,7 +224,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 + echo 'swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf killall -1 inetd || : fi @@ -221,9 +248,7 @@ fi %postun # Only delete remnants of samba if this is the final deletion. -if [ $1 != 0 ] ; then - exit 0 - +if [ $1 = 0 ] ; then if [ -x /etc/pam.d/samba ]; then rm -f /etc/pam.d/samba fi @@ -255,56 +280,60 @@ fi %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(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 -%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/welcome.html -%attr(-,root,root) /usr/share/swat/help/DOMAIN_MEMBER.html -%attr(-,root,root) /usr/share/swat/help/lmhosts.5.html -%attr(-,root,root) /usr/share/swat/help/make_smbcodepage.1.html -%attr(-,root,root) /usr/share/swat/help/nmbd.8.html -%attr(-,root,root) /usr/share/swat/help/nmblookup.1.html -%attr(-,root,root) /usr/share/swat/help/samba.7.html -%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html -%attr(-,root,root) /usr/share/swat/help/smbclient.1.html -%attr(-,root,root) /usr/share/swat/help/smbd.8.html -%attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html -%attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html -%attr(-,root,root) /usr/share/swat/help/smbrun.1.html -%attr(-,root,root) /usr/share/swat/help/smbstatus.1.html -%attr(-,root,root) /usr/share/swat/help/smbtar.1.html -%attr(-,root,root) /usr/share/swat/help/swat.8.html -%attr(-,root,root) /usr/share/swat/help/testparm.1.html -%attr(-,root,root) /usr/share/swat/help/testprns.1.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) %{prefix}/sbin/smbd +%attr(-,root,root) %{prefix}/sbin/nmbd +%attr(-,root,root) %{prefix}/sbin/swat +%attr(-,root,root) %{prefix}/sbin/smbmnt +%attr(-,root,root) %{prefix}/sbin/smbmount +%attr(-,root,root) %{prefix}/sbin/smbumount +%attr(-,root,root) /sbin/mount.smbfs +%attr(0750,root,root) %{prefix}/sbin/samba +%attr(-,root,root) %{prefix}/bin/addtosmbpass +%attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh +%attr(-,root,root) %{prefix}/bin/smbclient +%attr(-,root,root) %{prefix}/bin/smbspool +%attr(-,root,root) %{prefix}/bin/rpcclient +%attr(-,root,root) %{prefix}/bin/testparm +%attr(-,root,root) %{prefix}/bin/testprns +%attr(-,root,root) %{prefix}/bin/findsmb +%attr(-,root,root) %{prefix}/bin/smbstatus +%attr(-,root,root) %{prefix}/bin/nmblookup +%attr(-,root,root) %{prefix}/bin/make_smbcodepage +%attr(-,root,root) %{prefix}/bin/make_printerdef +%attr(-,root,root) %{prefix}/bin/smbpasswd +%attr(-,root,root) %{prefix}/bin/smbtar +%attr(-,root,root) %{prefix}/bin/smbprint +%attr(-,root,root) %{prefix}/bin/smbadduser +%attr(-,root,root) %{prefix}/share/swat/help/welcome.html +%attr(-,root,root) %{prefix}/share/swat/help/DOMAIN_MEMBER.html +%attr(-,root,root) %{prefix}/share/swat/help/NT_Security.html +%attr(-,root,root) %{prefix}/share/swat/help/lmhosts.5.html +%attr(-,root,root) %{prefix}/share/swat/help/make_smbcodepage.1.html +%attr(-,root,root) %{prefix}/share/swat/help/nmbd.8.html +%attr(-,root,root) %{prefix}/share/swat/help/nmblookup.1.html +%attr(-,root,root) %{prefix}/share/swat/help/samba.7.html +%attr(-,root,root) %{prefix}/share/swat/help/smb.conf.5.html +%attr(-,root,root) %{prefix}/share/swat/help/smbclient.1.html +%attr(-,root,root) %{prefix}/share/swat/help/smbspool.8.html +%attr(-,root,root) %{prefix}/share/swat/help/smbd.8.html +%attr(-,root,root) %{prefix}/share/swat/help/smbpasswd.5.html +%attr(-,root,root) %{prefix}/share/swat/help/smbpasswd.8.html +%attr(-,root,root) %{prefix}/share/swat/help/smbrun.1.html +%attr(-,root,root) %{prefix}/share/swat/help/smbstatus.1.html +%attr(-,root,root) %{prefix}/share/swat/help/smbtar.1.html +%attr(-,root,root) %{prefix}/share/swat/help/swat.8.html +%attr(-,root,root) %{prefix}/share/swat/help/testparm.1.html +%attr(-,root,root) %{prefix}/share/swat/help/testprns.1.html +%attr(-,root,root) %{prefix}/share/swat/images/globals.gif +%attr(-,root,root) %{prefix}/share/swat/images/home.gif +%attr(-,root,root) %{prefix}/share/swat/images/passwd.gif +%attr(-,root,root) %{prefix}/share/swat/images/printers.gif +%attr(-,root,root) %{prefix}/share/swat/images/shares.gif +%attr(-,root,root) %{prefix}/share/swat/images/samba.gif +%attr(-,root,root) %{prefix}/share/swat/images/status.gif +%attr(-,root,root) %{prefix}/share/swat/images/viewconfig.gif +%attr(-,root,root) %{prefix}/share/swat/include/header.html +%attr(-,root,root) %{prefix}/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 @@ -321,22 +350,25 @@ fi %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,root) %{prefix}/man/man1/smbstatus.1 +%attr(-,root,root) %{prefix}/man/man1/smbclient.1 +%attr(-,root,root) %{prefix}/man/man1/make_smbcodepage.1 +%attr(-,root,root) %{prefix}/man/man1/smbrun.1 +%attr(-,root,root) %{prefix}/man/man1/smbtar.1 +%attr(-,root,root) %{prefix}/man/man1/testparm.1 +%attr(-,root,root) %{prefix}/man/man1/testprns.1 +%attr(-,root,root) %{prefix}/man/man1/nmblookup.1 +%attr(-,root,root) %{prefix}/man/man5/smb.conf.5 +%attr(-,root,root) %{prefix}/man/man5/lmhosts.5 +%attr(-,root,root) %{prefix}/man/man5/smbpasswd.5 +%attr(-,root,root) %{prefix}/man/man7/samba.7 +%attr(-,root,root) %{prefix}/man/man8/smbd.8 +%attr(-,root,root) %{prefix}/man/man8/nmbd.8 +%attr(-,root,root) %{prefix}/man/man8/smbpasswd.8 +%attr(-,root,root) %{prefix}/man/man8/swat.8 +%attr(-,root,root) %{prefix}/man/man8/smbmnt.8 +%attr(-,root,root) %{prefix}/man/man8/smbmount.8 +%attr(-,root,root) %{prefix}/man/man8/smbspool.8 %attr(-,root,nobody) %dir /home/samba %attr(-,root,root) %dir /etc/codepages %attr(-,root,root) %dir /etc/codepages/src diff --git a/packaging/RedHat/smb.conf b/packaging/RedHat/smb.conf index bd9a8e15bc..e07d15c93e 100644 --- a/packaging/RedHat/smb.conf +++ b/packaging/RedHat/smb.conf @@ -85,7 +85,7 @@ # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details - socket options = TCP_NODELAY + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index cc44627273..a7f3c574a7 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -8,6 +8,15 @@ $curdir = $ENV{"PWD"}; # 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 () { + chop; + next if /cvs\.log/; + $ignores{$_}++; +} +close IGNORES; + +# We don't want the files listed in .cvsignore in the source/include tree +open(IGNORES,"../../source/include/.cvsignore") || die "Unable to open include/.cvsignore file\n"; while () { chop; $ignores{$_}++; @@ -32,6 +41,7 @@ if (@sprogs) { } if (@progs) { @progs[0] =~ s/^.*\=//; + @progs[0] =~ s/\$\(\S+\)\s//g; @progs = split(' ',@progs[0]); } if (@mprogs) { @@ -48,6 +58,7 @@ if (@progs2) { } if (@scripts) { @scripts[0] =~ s/^.*\=//; + @scripts[0] =~ s/\$\(srcdir\)\///g; @scripts = split(' ',@scripts[0]); } if (@codepage) { @@ -177,7 +188,7 @@ while (@sorted) { print IDB "d 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n"; } else { - if (grep((/\.sh$/ | /\.pl$/ | /mkman$/),$nextfile)) { + if (grep((/\.sh$/ | /configure$/ | /configure\.developer/ | /config\.guess/ | /config\.sub/ | /\.pl$/ | /mkman$/),$nextfile)) { print IDB "f 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n"; } else { @@ -210,7 +221,7 @@ while (@catman) { $nextfile = shift @catman; ($file = $nextfile) =~ s/^packaging\/SGI\/catman\///; ($dirnum = $file) =~ s/^[\D]*//; - $dirnum =~ s/\.Z//; + $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; diff --git a/packaging/SGI/inst.msg b/packaging/SGI/inst.msg index c613a09d01..248e990c4a 100755 --- a/packaging/SGI/inst.msg +++ b/packaging/SGI/inst.msg @@ -2,7 +2,7 @@ echo echo -echo Samba for IRIX has been installed on your system. +echo Samba has been installed on your system. echo echo Your /etc/services and /etc/inetd.conf files have echo been modified to automatically start the diff --git a/packaging/SGI/mkman b/packaging/SGI/mkman index 4de437d0ad..a39ed9fdd0 100755 --- a/packaging/SGI/mkman +++ b/packaging/SGI/mkman @@ -9,7 +9,10 @@ FILES="*.?" cd ../../docs/manpages for FILE in $FILES ; do + if [ "$FILE" = "smbmnt.8" ]; then continue; fi; + if [ "$FILE" = "smbmount.8" -o "$FILE" = "smbumount.8" ]; then continue; fi; + if [ "$FILE" = "smbrun.1" ]; then continue; fi; neqn $FILE | tbl | nroff -man > ../../packaging/SGI/catman/`basename $FILE` - compress -f ../../packaging/SGI/catman/`basename $FILE` + pack -f ../../packaging/SGI/catman/`basename $FILE` done cd ../../packaging/SGI diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index cfe9c1f6b8..19aa642aad 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -14,6 +14,7 @@ doclean="" SGI_ABI=-n32 +ISA=-mips3 CC=cc if [ ! -f ../../source/Makefile ]; then @@ -25,6 +26,7 @@ if [ "$1" = "clean" ]; then shift elif [ "$1" = "5" ]; then SGI_ABI=-32 + ISA="" shift fi @@ -35,10 +37,11 @@ if [ "$1" = "clean" ]; then shift elif [ "$1" = "5" ]; then SGI_ABI=-32 + ISA="" shift fi -export SGI_ABI CC +export SGI_ABI ISA CC if [ "$doclean" = "clean" ]; then cd ../../source @@ -64,11 +67,6 @@ fi cd ../../source if [ "$doclean" = "clean" ]; 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/samba --mandir=/usr/share/catman --with-smbwrapper errstat=$? if [ $errstat -ne 0 ]; then diff --git a/packaging/SGI/sambalp b/packaging/SGI/sambalp index fd0cef8f93..61e62215c9 100644 --- a/packaging/SGI/sambalp +++ b/packaging/SGI/sambalp @@ -146,5 +146,12 @@ if ($PSFIX) { # are we running a "psfix"? system("$lpcommand $file"); } -# Remove the file only if it lives in /usr/tmp, /tmp, or /var/tmp. -unlink($file) if $file =~ m=^(/(usr|var))?/tmp=; +if ($file =~ m(^/)) { + # $file is a fully specified path + # Remove the file only if it lives in a directory ending in /tmp. + unlink($file) if ($file =~ m(/tmp/[^/]+$)); +} else { + # $file is NOT a fully specified path + # Remove the file only if current directory ends in /tmp. + unlink($file) if (`pwd` =~ m(/tmp$)); +} diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf index 9a154f8f9b..68187ee288 100644 --- a/packaging/SGI/smb.conf +++ b/packaging/SGI/smb.conf @@ -76,6 +76,16 @@ preserve case = yes short preserve case = yes +; These are the settings required for IRIX password sync + passwd program = /usr/bin/passwd %u + passwd chat = *ew*password:* %n\n *e-enter*new*password:* %n\n + +; Uncomment the following if you wish to use encrypted passwords. +; encrypt passwords = yes + +; Uncomment the following if you wish to sync unix and smbpasswd +; unix password sync = yes + [homes] comment = Home Directories browseable = no diff --git a/packaging/Solaris/pkg-specs/pkginfo b/packaging/Solaris/pkg-specs/pkginfo index ab06b3fffa..d195f177e9 100644 --- a/packaging/Solaris/pkg-specs/pkginfo +++ b/packaging/Solaris/pkg-specs/pkginfo @@ -1,12 +1,12 @@ -PSTAMP=Mon Sep 29 17:26:14 BST 1997 PKG=samba NAME=SMB based file/printer sharing -VERSION=1.9.17p2,REV=1 ARCH=sparc +VERSION=2.0.6 CATEGORY=system -VENDOR=samba group +VENDOR=Samba Group DESC=File and printer sharing for NT workstations +HOTLINE=Please contact your local UNIX support group +EMAIL=samba@samba.org CLASSES=none +BASEDIR=/usr/local INTONLY=1 -HOTLINE=Please contact your local UNIX support group -BASEDIR=/ diff --git a/packaging/SuSE/5.2/samba.spec b/packaging/SuSE/5.2/samba.spec index 637af1781e..5f20875c9e 100644 --- a/packaging/SuSE/5.2/samba.spec +++ b/packaging/SuSE/5.2/samba.spec @@ -67,7 +67,6 @@ fi /usr/bin/smbclient /usr/bin/smbmount /usr/bin/smbpasswd -/usr/bin/smbrun /usr/bin/smbstatus /usr/bin/smbtar /usr/bin/smbumount @@ -109,8 +108,6 @@ 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. -- cgit From 32a965e09ce4befe971855e11e1fb5ceb51a9ed1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Dec 1999 13:35:20 +0000 Subject: 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files that were in the head branch but weren't in SAMBA_2_0 (This used to be commit d7b208786590b5a28618590172b8d523627dda09) --- packaging/Caldera/README | 11 - packaging/Caldera/findsmb | 141 ------------- packaging/Caldera/makefile-path.patch | 44 ---- packaging/Caldera/makerpms.sh.tmpl | 14 -- packaging/Caldera/samba.log | 11 - packaging/Caldera/samba.pamd | 2 - packaging/Caldera/samba2.spec.tmpl | 282 -------------------------- 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/Solaris/pkg-specs/Packaging.script | 5 - packaging/Solaris/pkg-specs/mkprototype | 31 --- packaging/Solaris/pkg-specs/postinstall | 37 ---- packaging/Solaris/pkg-specs/postremove | 30 --- 17 files changed, 1110 deletions(-) delete mode 100644 packaging/Caldera/README delete mode 100644 packaging/Caldera/findsmb delete mode 100644 packaging/Caldera/makefile-path.patch delete mode 100644 packaging/Caldera/makerpms.sh.tmpl delete mode 100644 packaging/Caldera/samba.log delete mode 100644 packaging/Caldera/samba.pamd delete mode 100644 packaging/Caldera/samba2.spec.tmpl delete mode 100644 packaging/Caldera/smb.conf delete mode 100755 packaging/Caldera/smb.init delete mode 100755 packaging/Caldera/smbadduser delete mode 100755 packaging/Caldera/smbprint delete mode 100644 packaging/Caldera/smbusers delete mode 100644 packaging/Caldera/smbw.patch delete mode 100644 packaging/Solaris/pkg-specs/Packaging.script delete mode 100644 packaging/Solaris/pkg-specs/mkprototype delete mode 100644 packaging/Solaris/pkg-specs/postinstall delete mode 100644 packaging/Solaris/pkg-specs/postremove (limited to 'packaging') diff --git a/packaging/Caldera/README b/packaging/Caldera/README deleted file mode 100644 index ec6806645c..0000000000 --- a/packaging/Caldera/README +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index 986c248177..0000000000 --- a/packaging/Caldera/findsmb +++ /dev/null @@ -1,141 +0,0 @@ -#!/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 deleted file mode 100644 index 5fddb7cbfb..0000000000 --- a/packaging/Caldera/makefile-path.patch +++ /dev/null @@ -1,44 +0,0 @@ -diff -uNr samba-PVERSION/source/Makefile.in samba-kgc/source/Makefile.in ---- samba-PVERSION/source/Makefile.in Wed Dec 2 14:35:18 1998 -+++ samba-kgc/source/Makefile.in Wed Dec 2 15:06:02 1998 -@@ -27,7 +27,7 @@ - # the previous releases of Samba - SBINDIR = @bindir@ - LIBDIR = @libdir@ --VARDIR = $(BASEDIR)/var -+VARDIR = /var - MANDIR = @mandir@ - - # The permissions to give the executables -@@ -36,23 +36,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 = $(BINDIR)/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/makerpms.sh.tmpl b/packaging/Caldera/makerpms.sh.tmpl deleted file mode 100644 index fa69370dff..0000000000 --- a/packaging/Caldera/makerpms.sh.tmpl +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 deleted file mode 100644 index c5f2a5b45b..0000000000 --- a/packaging/Caldera/samba.log +++ /dev/null @@ -1,11 +0,0 @@ -/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 deleted file mode 100644 index f38e70184a..0000000000 --- a/packaging/Caldera/samba.pamd +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index 84fe3dcd3b..0000000000 --- a/packaging/Caldera/samba2.spec.tmpl +++ /dev/null @@ -1,282 +0,0 @@ -Summary: Samba SMB client and server -Name: samba -Version: PVERSION -Release: PRELEASE -Copyright: GNU GPL version 2 -Group: Networking -Source: ftp://samba.org/pub/samba/samba-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 - -%prep -%setup -%patch -p1 -%patch1 -p1 - -%build -cd source -./configure --prefix=/usr --libdir=/etc -make all - -%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 -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 docs/htmldocs/*.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 - -%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(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 -%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(-,root,root) /usr/share/swat/help/welcome.html -%attr(-,root,root) /usr/share/swat/help/DOMAIN_MEMBER.html -%attr(-,root,root) /usr/share/swat/help/lmhosts.5.html -%attr(-,root,root) /usr/share/swat/help/make_smbcodepage.1.html -%attr(-,root,root) /usr/share/swat/help/nmbd.8.html -%attr(-,root,root) /usr/share/swat/help/nmblookup.1.html -%attr(-,root,root) /usr/share/swat/help/samba.7.html -%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html -%attr(-,root,root) /usr/share/swat/help/smbclient.1.html -%attr(-,root,root) /usr/share/swat/help/smbd.8.html -%attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html -%attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html -%attr(-,root,root) /usr/share/swat/help/smbrun.1.html -%attr(-,root,root) /usr/share/swat/help/smbstatus.1.html -%attr(-,root,root) /usr/share/swat/help/smbtar.1.html -%attr(-,root,root) /usr/share/swat/help/swat.8.html -%attr(-,root,root) /usr/share/swat/help/testparm.1.html -%attr(-,root,root) /usr/share/swat/help/testprns.1.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(1777,root,root) %dir /var/spool/samba diff --git a/packaging/Caldera/smb.conf b/packaging/Caldera/smb.conf deleted file mode 100644 index bd9a8e15bc..0000000000 --- a/packaging/Caldera/smb.conf +++ /dev/null @@ -1,291 +0,0 @@ -# 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 deleted file mode 100755 index 828c19b069..0000000000 --- a/packaging/Caldera/smb.init +++ /dev/null @@ -1,48 +0,0 @@ -#!/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 deleted file mode 100755 index 2f38bf28f1..0000000000 --- a/packaging/Caldera/smbadduser +++ /dev/null @@ -1,73 +0,0 @@ -#!/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 deleted file mode 100755 index ec083eede6..0000000000 --- a/packaging/Caldera/smbprint +++ /dev/null @@ -1,77 +0,0 @@ -#!/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 deleted file mode 100644 index ae3389f53f..0000000000 --- a/packaging/Caldera/smbusers +++ /dev/null @@ -1,3 +0,0 @@ -# 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 deleted file mode 100644 index 0abbfdf73f..0000000000 --- a/packaging/Caldera/smbw.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- 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/Solaris/pkg-specs/Packaging.script b/packaging/Solaris/pkg-specs/Packaging.script deleted file mode 100644 index 6f182c33e5..0000000000 --- a/packaging/Solaris/pkg-specs/Packaging.script +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -./mkprototype -pkgmk -o -d /tmp -b `pwd` -f ./prototype -cd /tmp -pkgtrans . samba.pkg samba diff --git a/packaging/Solaris/pkg-specs/mkprototype b/packaging/Solaris/pkg-specs/mkprototype deleted file mode 100644 index 5ca0746bee..0000000000 --- a/packaging/Solaris/pkg-specs/mkprototype +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# this creates prototype files -pkgproto * > prototype -nawk 'BEGIN { print "# d directory" - print "# e a file to be edited upon installation or removal" - print "# f a standard executable or data file" - print "# i installation script or information file" - print "# l linked file" - print "# s symbolic link" - print "# v volatile file (one whose contents are expected to -change)" - print "#" } -/ pkginfo / { print "i pkginfo" ; next } -/ postinstall / { print "i postinstall" ; next } -/ postremove / { print "i postremove" ; next } -/d none usr / { print "d none usr ? ? ?" ; next } -/d none usr\/local / { print "d none usr/local ? ? ?" ; next } -/d none etc / { print "d none etc ? ? ?" ; next } -/f none etc\// { $1 = "v" } -/d none opt / { print "d none opt ? ? ?" ; next } -/d none var / { print "d none var ? ? ?" ; next } -/none prototype / { next } -/none mkprototype / { next } -/ src[ \/]/ { next } -/^[dfv]/ { $5 = "bin" - $6 = "bin" - print - next } -{ print }' prototype >/tmp/prototype.$$ -mv /tmp/prototype.$$ prototype - diff --git a/packaging/Solaris/pkg-specs/postinstall b/packaging/Solaris/pkg-specs/postinstall deleted file mode 100644 index 0fbe9da10b..0000000000 --- a/packaging/Solaris/pkg-specs/postinstall +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# install samba - -nawk '/^netbios-[ns]*[ ]/ {next} -{print} -END { print "netbios-ssn 139/tcp" - print "netbios-ns 137/udp # samba service" }' \ - ${PKG_INSTALL_ROOT}/etc/inet/services > /tmp/services.$$ && \ - mv -f /tmp/services.$$ ${PKG_INSTALL_ROOT}/etc/inet/services && -\ - chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/services && \ - echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/services" - -nawk '/samba.*mbd[ ]/ { next } -{print} -END { print "# samba connections are handled by smbd and nmbd" - print "netbios-ssn stream tcp nowait root /opt/samba/bin/smbd -smbd" - print "netbios-ns dgram udp wait root /opt/samba/bin/nmbd nmbd" }' -\ - ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf > /tmp/inetd.conf.$$ && -\ - mv -f /tmp/inetd.conf.$$ ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf -&& \ - chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf && \ - echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf" - -echo "Installed samba service into ${PKG_INSTALL_ROOT:-/}" - -inetpid=`/bin/ps -ef | awk '/ \/usr\/sbin\/inetd / { print $2 } '` -if [ "X$inetpid" = "X" ]; then - echo "inetd not running" -else - echo "Restarting inetd($inetpid)" - kill -HUP $inetpid -fi - diff --git a/packaging/Solaris/pkg-specs/postremove b/packaging/Solaris/pkg-specs/postremove deleted file mode 100644 index 7f7a5c1f8e..0000000000 --- a/packaging/Solaris/pkg-specs/postremove +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# remove samba - -nawk '/^netbios-[ns]*[ ]/ {next} -{print} ' \ - ${PKG_INSTALL_ROOT}/etc/inet/services > /tmp/services.$$ && \ - mv -f /tmp/services.$$ ${PKG_INSTALL_ROOT}/etc/inet/services && -\ - chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/services && \ - echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/services" - -nawk '/samba.*mbd[ ]/ { next } -{print} ' \ - ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf > /tmp/inetd.conf.$$ && -\ - mv -f /tmp/inetd.conf.$$ ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf -&& \ - chmod 644 ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf && \ - echo "Updated ${PKG_INSTALL_ROOT}/etc/inet/inetd.conf" - -echo "Removed samba service from ${PKG_INSTALL_ROOT:-/}" - -inetpid=`/bin/ps -ef | awk '/ \/usr\/sbin\/inetd / { print $2 } '` -if [ "X$inetpid" = "X" ]; then - echo "inetd not running" -else - echo "Restarting inetd($inetpid)" - kill -HUP $inetpid -fi - -- cgit From 4f4826427443ca246d30f2408617e86031458a5f Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 17 Jan 2000 23:16:23 +0000 Subject: test for pre- version numbers (This used to be commit c1f25dbf996de50f486a165b314119e9f4ae0419) --- packaging/SGI/spec.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packaging') diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl index 3bd643eef6..4541eb04ec 100755 --- a/packaging/SGI/spec.pl +++ b/packaging/SGI/spec.pl @@ -22,6 +22,10 @@ elsif (/-HEAD/) { $_ =~ s/-HEAD/.01/; $_ .= '.99'; } +elsif (/pre-/) { + $_ =~ s/pre-//; + $_ .= '.00'; +} elsif (/p/) { $_ =~ s/p/./; $_ .= '.00'; -- cgit From 5b9130fc32f48e59c5d9c155bd865fce11a586a0 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Thu, 16 Mar 2000 06:40:07 +0000 Subject: use proper parameter names instead of alias names clear lppause and lpresume commands since they don't exist on IRIX change spool directory (This used to be commit f6404f0b55dc0d098c1ad951d84093d3e763b28e) --- packaging/SGI/smb.conf | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf index 68187ee288..5172949cfc 100644 --- a/packaging/SGI/smb.conf +++ b/packaging/SGI/smb.conf @@ -42,6 +42,11 @@ 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 +; clear the default lppause and lpresume commands since these are not +; supported in IRIX + lppause command = + lpresume command = + load printers = yes guest account = nobody browseable = yes @@ -89,7 +94,7 @@ [homes] comment = Home Directories browseable = no - writable = yes + writeable = yes ; To allow Win95 clients to automatically load printer drivers, uncomment ; the following section (and the lines in the printers section below). @@ -99,24 +104,24 @@ ; ;[printer$] ; comment = printer driver directory -; path=/usr/samba/printer -; public=yes -; writable=no -; browseable=yes +; path = /usr/samba/printer +; guest ok = yes +; writeable = no +; browseable = no [printers] comment = All Printers - path = /usr/tmp + path = /var/spool/samba browseable = no printable = yes - public = yes - writable = no + guest ok = yes + writeable = 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$ +; printer driver location = \\%L\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 @@ -129,5 +134,5 @@ [tmp] comment = Temporary file space path = /usr/tmp - read only = no - public = yes + writeable = yes + guest ok = yes -- cgit From 1362d33a2390208792315887746b2dfbcf1c9205 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Thu, 16 Mar 2000 06:44:27 +0000 Subject: use parameters to minimize changes in samba for irix release version (This used to be commit 2b0d05d81c485707e3e6727a38d5782ec6d9ce7e) --- packaging/SGI/idb.pl | 173 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 103 insertions(+), 70 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index a7f3c574a7..00843777ca 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -1,13 +1,23 @@ #!/usr/bin/perl require "pwd.pl" || die "Required pwd.pl not found"; -# This perl script automatically generates the samba.idb file +# This perl script automatically generates the idb file + +$PKG = 'samba'; +$SRCDIR = '../..'; +$SRCPFX = '.'; &initpwd; $curdir = $ENV{"PWD"}; +if ($PKG eq "samba_irix") { + open(BOOKS,"IDB.books") || die "Unable to open IDB.books file\n"; + @books = sort idbsort ; + close BOOKS; +} + # We don't want the files listed in .cvsignore in the source tree -open(IGNORES,"../../source/.cvsignore") || die "Unable to open .cvsignore file\n"; +open(IGNORES,"$SRCDIR/source/.cvsignore") || die "Unable to open .cvsignore file\n"; while () { chop; next if /cvs\.log/; @@ -16,7 +26,7 @@ while () { close IGNORES; # We don't want the files listed in .cvsignore in the source/include tree -open(IGNORES,"../../source/include/.cvsignore") || die "Unable to open include/.cvsignore file\n"; +open(IGNORES,"$SRCDIR/source/include/.cvsignore") || die "Unable to open include/.cvsignore file\n"; while () { chop; $ignores{$_}++; @@ -24,7 +34,7 @@ while () { close IGNORES; # get the names of all the binary files to be installed -open(MAKEFILE,"../../source/Makefile") || die "Unable to open Makefile\n"; +open(MAKEFILE,"$SRCDIR/source/Makefile") || die "Unable to open Makefile\n"; @makefile = ; @sprogs = grep(/^SPROGS /,@makefile); @progs1 = grep(/^PROGS1 /,@makefile); @@ -32,7 +42,7 @@ open(MAKEFILE,"../../source/Makefile") || die "Unable to open Makefile\n"; @mprogs = grep(/^MPROGS /,@makefile); @progs = grep(/^PROGS /,@makefile); @scripts = grep(/^SCRIPTS /,@makefile); -@codepage = grep(/^CODEPAGELIST/,@makefile); +@codepagelist = grep(/^CODEPAGELIST/,@makefile); close MAKEFILE; if (@sprogs) { @@ -61,27 +71,29 @@ if (@scripts) { @scripts[0] =~ s/\$\(srcdir\)\///g; @scripts = split(' ',@scripts[0]); } -if (@codepage) { - @codepage[0] =~ s/^.*\=//; - 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]"); - chdir $curdir; - @codepage = sort split(' ',@codepage[0]); -} + +# we need to create codepages for the package +@codepagelist[0] =~ s/^.*\=//; +chdir "$SRCDIR/source"; +system("chmod +x ./script/installcp.sh"); +system("./script/installcp.sh . . ../packaging/SGI/codepages ./bin @codepagelist[0]"); +chdir $curdir; +opendir(DIR,"$SRCDIR/packaging/SGI/codepages") || die "Can't open codepages directory"; +@codepage = sort readdir(DIR); +closedir(DIR); + # install the swat files -chdir '../../source'; +chdir "$SRCDIR/source"; system("chmod +x ./script/installswat.sh"); system("./script/installswat.sh ../packaging/SGI/swat ./"); -system("cp ../swat/README ../packaging/SGI/swat"); +system("cp -f ../swat/README ../packaging/SGI/swat"); chdir $curdir; # add my local files to the list of binaries to install @bins = sort byfilename (@sprogs,@progs,@progs1,@progs2,@mprogs,@scripts,("/findsmb","/sambalp","/smbprint")); # get a complete list of all files in the tree -chdir '../../'; +chdir "$SRCDIR/"; &dodir('.'); chdir $curdir; @@ -97,50 +109,58 @@ chdir $curdir; # release @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"; +open(IDB,"> $curdir/$PKG.idb") || die "Unable to open $PKG.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"; -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"; +print IDB "f 0644 root sys etc/config/samba $SRCPFX/packaging/SGI/samba.config $PKG.sw.base config(update)\n"; +print IDB "f 0755 root sys etc/init.d/samba $SRCPFX/packaging/SGI/samba.rc $PKG.sw.base\n"; +print IDB "l 0000 root sys etc/rc0.d/K39samba $SRCPFX/packaging/SGI $PKG.sw.base symval(../init.d/samba)\n"; +print IDB "l 0000 root sys etc/rc2.d/S81samba $SRCPFX/packaging/SGI $PKG.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"; +if ($PKG eq "samba_irix") { + print IDB "d 0755 root sys usr/relnotes/samba_irix $SRCPFX/packaging/SGI $PKG.man.relnotes\n"; + print IDB "f 0644 root sys usr/relnotes/samba_irix/TC build/TC $PKG.man.relnotes\n"; + print IDB "f 0644 root sys usr/relnotes/samba_irix/ch1.z build/ch1.z $PKG.man.relnotes\n"; + print IDB "f 0644 root sys usr/relnotes/samba_irix/ch2.z build/ch2.z $PKG.man.relnotes\n"; +} +else { + @copyfile = grep (/^COPY/,@allfiles); + print IDB "d 0755 root sys usr/relnotes/samba $SRCPFX/packaging/SGI $PKG.man.relnotes\n"; + print IDB "f 0644 root sys usr/relnotes/samba/@copyfile[0] $SRCPFX/@copyfile[0] $PKG.man.relnotes\n"; + print IDB "f 0644 root sys usr/relnotes/samba/legal_notice.html $SRCPFX/packaging/SGI/legal_notice.html $PKG.man.relnotes\n"; + print IDB "f 0644 root sys usr/relnotes/samba/samba-relnotes.html $SRCPFX/packaging/SGI/relnotes.html $PKG.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 $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "f 0444 root sys usr/samba/README $SRCPFX/packaging/SGI/README $PKG.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 $SRCPFX/packaging/SGI $PKG.sw.base\n"; while(@bins) { $nextfile = shift @bins; ($filename = $nextfile) =~ s/^.*\///;; if (index($nextfile,'$')) { if ($filename eq "smbpasswd") { - print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip\n"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.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"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n"; } elsif ($filename eq "swat") { - print IDB "f 4755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n"; + print IDB "f 4755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n"; } elsif ($filename eq "sambalp") { - print IDB "f 0755 root sys usr/samba/bin/$filename packaging/SGI/$filename samba.sw.base nostrip\n"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.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"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n"; } else { - print IDB "f 0755 root sys usr/samba/bin/$filename source/$nextfile samba.sw.base nostrip\n"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip\n"; } } } -print IDB "d 0755 root sys usr/samba/docs docs samba.man.doc\n"; +print IDB "d 0755 root sys usr/samba/docs $SRCPFX/docs $PKG.man.doc\n"; while (@docs) { $nextfile = shift @docs; next if ($nextfile eq "CVS"); @@ -148,34 +168,32 @@ while (@docs) { if (grep(/\/$/,$nextfile)) { $file =~ s/\/$//; $nextfile =~ s/\/$//; - print IDB "d 0755 root sys usr/samba/docs/$file $nextfile samba.man.doc\n"; + print IDB "d 0755 root sys usr/samba/docs/$file $SRCPFX/$nextfile $PKG.man.doc\n"; } else { - print IDB "f 0644 root sys usr/samba/docs/$file $nextfile samba.man.doc\n"; + print IDB "f 0644 root sys usr/samba/docs/$file $SRCPFX/$nextfile $PKG.man.doc\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) { - $nextpage = shift @codepage; - print IDB "f 0644 root sys usr/samba/lib/codepages/codepage.$nextpage packaging/SGI/codepages/codepage.$nextpage samba.sw.base\n"; - } +print IDB "d 0755 root sys usr/samba/lib $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 root sys usr/samba/lib/codepages $SRCPFX/packaging/SGI $PKG.sw.base\n"; +while (@codepage) { + $nextpage = shift @codepage; + print IDB "f 0644 root sys usr/samba/lib/codepages/$nextpage $SRCPFX/packaging/SGI/codepages/$nextpage $PKG.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 "f 0644 root sys usr/samba/lib/smb.conf $SRCPFX/packaging/SGI/smb.conf $PKG.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(suggest)\n"; +print IDB "d 0644 root sys usr/samba/private $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "f 0600 root sys usr/samba/private/smbpasswd $SRCPFX/packaging/SGI/smbpasswd $PKG.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/inst.msg packaging/SGI/inst.msg samba.sw.base exitop(\"chroot \$rbase /usr/samba/scripts/inst.msg\")\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/scripts $SRCPFX/packaging/SGI $PKG.src.samba\n"; +print IDB "f 0755 root sys usr/samba/scripts/inetd.sh $SRCPFX/packaging/SGI/inetd.sh $PKG.sw.base\n"; +print IDB "f 0755 root sys usr/samba/scripts/inst.msg $SRCPFX/packaging/SGI/inst.msg $PKG.sw.base exitop(\"chroot \$rbase /usr/samba/scripts/inst.msg\")\n"; +print IDB "f 0755 root sys usr/samba/scripts/mkprintcap.sh $SRCPFX/packaging/SGI/mkprintcap.sh $PKG.sw.base\n"; +print IDB "f 0755 root sys usr/samba/scripts/removeswat.sh $SRCPFX/packaging/SGI/removeswat.sh $PKG.sw.base\n"; +print IDB "f 0755 root sys usr/samba/scripts/startswat.sh $SRCPFX/packaging/SGI/startswat.sh $PKG.sw.base\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 $SRCPFX/packaging/SGI $PKG.src.samba\n"; @sorted = sort(@allfiles); while (@sorted) { $nextfile = shift @sorted; @@ -185,37 +203,44 @@ while (@sorted) { 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"; + print IDB "d 0755 root sys usr/samba/src/$nextfile $SRCPFX/$nextfile $PKG.src.samba\n"; } else { if (grep((/\.sh$/ | /configure$/ | /configure\.developer/ | /config\.guess/ | /config\.sub/ | /\.pl$/ | /mkman$/),$nextfile)) { - print IDB "f 0755 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n"; + print IDB "f 0755 root sys usr/samba/src/$nextfile $SRCPFX/$nextfile $PKG.src.samba\n"; } else { - print IDB "f 0644 root sys usr/samba/src/$nextfile $nextfile samba.src.samba\n"; + print IDB "f 0644 root sys usr/samba/src/$nextfile $SRCPFX/$nextfile $PKG.src.samba\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 $SRCPFX/packaging/SGI/swat $PKG.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"; + print IDB "d 0755 root sys usr/samba/swat/$file $SRCPFX/packaging/SGI/swat/$file $PKG.sw.base\n"; } else { - print IDB "f 0444 root sys usr/samba/swat/$file packaging/SGI/swat/$file samba.sw.base\n"; + print IDB "f 0444 root sys usr/samba/swat/$file $SRCPFX/packaging/SGI/swat/$file $PKG.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/samba/var $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 root sys usr/samba/var/locks $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "f 0644 root sys usr/samba/var/locks/STATUS..LCK $SRCPFX/packaging/SGI/STATUS..LCK $PKG.sw.base\n"; + +if ($PKG eq "samba_irix") { + while(@books) { + $nextfile = shift @books; + print IDB $nextfile; + } +} -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 $SRCPFX/packaging/SGI $PKG.man.manpages\n"; $olddirnum = "0"; while (@catman) { $nextfile = shift @catman; @@ -223,14 +248,15 @@ while (@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"; + print IDB "d 0755 root sys usr/share/catman/u_man/cat$dirnum $SRCPFX/packaging/SGI $PKG.man.manpages\n"; $olddirnum = $dirnum; } - print IDB "f 0664 root sys usr/share/catman/u_man/cat$dirnum/$file $nextfile samba.man.manpages\n"; + print IDB "f 0664 root sys usr/share/catman/u_man/cat$dirnum/$file $SRCPFX/$nextfile $PKG.man.manpages\n"; } +print IDB "d 01777 nobody nobody var/spool/samba $SRCPFX/packaging/SGI $PKG.sw.base\n"; close IDB; -print "\n\nsamba.idb file has been created\n"; +print "\n\n$PKG.idb file has been created\n"; sub dodir { local($dir, $nlink) = @_; @@ -238,7 +264,7 @@ sub dodir { ($dev,$ino,$mode,$nlink) = stat('.') unless $nlink; - opendir(DIR,'.') || die "Can't open $dir"; + opendir(DIR,'.') || die "Can't open current directory"; local(@filenames) = sort readdir(DIR); closedir(DIR); @@ -291,3 +317,10 @@ sub bydirnum { $dir1 <=> $dir2; } } + +sub idbsort { + ($f0,$f1,$f2,$f3) = split(/ /,$a,4); + ($f0,$f1,$f2,$f4) = split(/ /,$b,4); + $f3 cmp $f4; +} + -- cgit From ee42e492cef366b77c3c6fcf26e440105e89ffc8 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 3 May 2000 01:07:33 +0000 Subject: merge 2.0 changes (This used to be commit 7b3afe300b1ef54f7daa0f2dce6fd8c256e04b37) --- packaging/SGI/idb.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 00843777ca..78c355c36d 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -85,7 +85,7 @@ closedir(DIR); # install the swat files chdir "$SRCDIR/source"; system("chmod +x ./script/installswat.sh"); -system("./script/installswat.sh ../packaging/SGI/swat ./"); +system("./script/installswat.sh ../packaging/SGI/swat ./ ../packaging/SGI/swat/using_samba"); system("cp -f ../swat/README ../packaging/SGI/swat"); chdir $curdir; @@ -100,6 +100,7 @@ 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); +@docs = grep(!/htmldocs\/using_samba/, @docs); @swatfiles = sort grep(/^packaging\/SGI\/swat/, @allfiles); @catman = sort grep(/^packaging\/SGI\/catman/ & !/\/$/, @allfiles); @@ -140,22 +141,22 @@ while(@bins) { if (index($nextfile,'$')) { if ($filename eq "smbpasswd") { - print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip\n"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; } elsif ($filename eq "findsmb") { print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n"; } elsif ($filename eq "swat") { - print IDB "f 4755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n"; + print IDB "f 4755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base preop(\"chroot \$rbase /etc/init.d/samba stop\") exitop(\"chroot \$rbase /usr/samba/scripts/startswat.sh\") removeop(\"chroot \$rbase /sbin/cp /etc/inetd.conf /etc/inetd.conf.O ; chroot \$rbase /sbin/sed -e '/^swat/D' -e '/^#SWAT/D' /etc/inetd.conf.O >/etc/inetd.conf; /etc/killall -HUP inetd || true\")\n"; } elsif ($filename eq "sambalp") { - print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base nostrip\n"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base \n"; } elsif ($filename eq "smbprint") { print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n"; } else { - print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base nostrip\n"; + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; } } } -- cgit From 7de6b0474bc6b279d6bf45ae63f04fc2066f85f8 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 3 May 2000 22:29:54 +0000 Subject: unicode code pages are detected as compiler intermediate file so set to nostrip (This used to be commit 5e7bc9c3e705cfaa12bd0071a873c79e2097a5a0) --- 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 78c355c36d..38fd8bf899 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -180,7 +180,7 @@ print IDB "d 0755 root sys usr/samba/lib $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 root sys usr/samba/lib/codepages $SRCPFX/packaging/SGI $PKG.sw.base\n"; while (@codepage) { $nextpage = shift @codepage; - print IDB "f 0644 root sys usr/samba/lib/codepages/$nextpage $SRCPFX/packaging/SGI/codepages/$nextpage $PKG.sw.base\n"; + print IDB "f 0644 root sys usr/samba/lib/codepages/$nextpage $SRCPFX/packaging/SGI/codepages/$nextpage $PKG.sw.base nostrip \n"; } print IDB "f 0644 root sys usr/samba/lib/smb.conf $SRCPFX/packaging/SGI/smb.conf $PKG.sw.base config(suggest)\n"; -- cgit From 3f9fe644416e6943bd1aac4029afd0e80cff6005 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 5 May 2000 14:31:36 +0000 Subject: add new release notes chapter to samba for irix package (This used to be commit e2de1cf2221f56a5ee3537664d211cdcdfe74785) --- packaging/SGI/idb.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 38fd8bf899..4d472dc070 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -122,6 +122,7 @@ if ($PKG eq "samba_irix") { print IDB "f 0644 root sys usr/relnotes/samba_irix/TC build/TC $PKG.man.relnotes\n"; print IDB "f 0644 root sys usr/relnotes/samba_irix/ch1.z build/ch1.z $PKG.man.relnotes\n"; print IDB "f 0644 root sys usr/relnotes/samba_irix/ch2.z build/ch2.z $PKG.man.relnotes\n"; + print IDB "f 0644 root sys usr/relnotes/samba_irix/ch3.z build/ch3.z $PKG.man.relnotes\n"; } else { @copyfile = grep (/^COPY/,@allfiles); -- cgit From 5dbd30002acaa971a84b6d917f9dc06d7f118836 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 30 Jul 2000 06:33:30 +0000 Subject: Adding files provided by Klaus Singvogel of Caldera (This used to be commit ab6d01bdccf3106c00563173bfb3e3b3d7c3a64c) --- packaging/Caldera/OpenLinux/convertsmbpasswd.perl | 15 ++ packaging/Caldera/OpenLinux/findsmb | 141 ++++++++++ packaging/Caldera/OpenLinux/make_smbpasswd.perl | 13 + packaging/Caldera/OpenLinux/samba.daemon | 6 + packaging/Caldera/OpenLinux/samba.init | 62 +++++ packaging/Caldera/OpenLinux/samba.logrotate | 12 + packaging/Caldera/OpenLinux/samba.pam | 7 + packaging/Caldera/OpenLinux/smb.conf.sample | 312 ++++++++++++++++++++++ packaging/Caldera/OpenLinux/smbadduser.perl | 146 ++++++++++ packaging/Caldera/OpenLinux/smbprint | 77 ++++++ packaging/Caldera/OpenLinux/smbusers | 3 + packaging/Caldera/OpenLinux/updatesmbpasswd.perl | 10 + 12 files changed, 804 insertions(+) create mode 100755 packaging/Caldera/OpenLinux/convertsmbpasswd.perl create mode 100755 packaging/Caldera/OpenLinux/findsmb create mode 100755 packaging/Caldera/OpenLinux/make_smbpasswd.perl create mode 100644 packaging/Caldera/OpenLinux/samba.daemon create mode 100755 packaging/Caldera/OpenLinux/samba.init create mode 100644 packaging/Caldera/OpenLinux/samba.logrotate create mode 100644 packaging/Caldera/OpenLinux/samba.pam create mode 100644 packaging/Caldera/OpenLinux/smb.conf.sample create mode 100755 packaging/Caldera/OpenLinux/smbadduser.perl create mode 100755 packaging/Caldera/OpenLinux/smbprint create mode 100644 packaging/Caldera/OpenLinux/smbusers create mode 100755 packaging/Caldera/OpenLinux/updatesmbpasswd.perl (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/convertsmbpasswd.perl b/packaging/Caldera/OpenLinux/convertsmbpasswd.perl new file mode 100755 index 0000000000..6b83886cd4 --- /dev/null +++ b/packaging/Caldera/OpenLinux/convertsmbpasswd.perl @@ -0,0 +1,15 @@ +#!/usr/bin/perl -w +# +# Convert a Samba 1.9.18 smbpasswd file format into +# a Samba 2.0 smbpasswd file format. +# Read from stdin and write to stdout for simplicity. +# Set the last change time to the time of conversion. +while ( <> ) { + @V = split(/:/); + if ( ! /^\#/ ) { + $V[6] = $V[4] . "\n"; + $V[5] = sprintf( "LCT-%X", time()); + $V[4] = "[U ]"; + } + print( join( ':', @V)); +} diff --git a/packaging/Caldera/OpenLinux/findsmb b/packaging/Caldera/OpenLinux/findsmb new file mode 100755 index 0000000000..986c248177 --- /dev/null +++ b/packaging/Caldera/OpenLinux/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/OpenLinux/make_smbpasswd.perl b/packaging/Caldera/OpenLinux/make_smbpasswd.perl new file mode 100755 index 0000000000..2666c19666 --- /dev/null +++ b/packaging/Caldera/OpenLinux/make_smbpasswd.perl @@ -0,0 +1,13 @@ +#!/usr/bin/perl +$X= "X" x 32; +$U="[U ]"; +$L="LCT-00000000"; +print("#\n# SMB password file.\n#\n"); + +while ( <> ) { + next unless (/^[A-Za-z0-9_]/); + chop; + @V = split(/:/); + printf( "%s:%s:%s:%s:%s:%s:%s\n", $V[0], $V[2], $X, $X, $U, $L, $V[4]); +} + diff --git a/packaging/Caldera/OpenLinux/samba.daemon b/packaging/Caldera/OpenLinux/samba.daemon new file mode 100644 index 0000000000..96683702f5 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba.daemon @@ -0,0 +1,6 @@ +IDENT=samba +DESCRIPTIVE="SMB server processes (samba)" +CONFIGURED="no" +ONBOOT="no" +OPTIONS_SMB="-D" +OPTIONS_NMB="-D" diff --git a/packaging/Caldera/OpenLinux/samba.init b/packaging/Caldera/OpenLinux/samba.init new file mode 100755 index 0000000000..1b830a1da3 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba.init @@ -0,0 +1,62 @@ +#!/bin/sh +# +# description: Starts and stops the Samba smbd and nmbd daemons +# used to provide SMB network services. + +NAME_S=smbd +DAEMON_S=/usr/sbin/$NAME_S +NAME_N=nmbd +DAEMON_N=/usr/sbin/$NAME_N + +# Source function library. +. /etc/rc.d/init.d/functions + +# Source networking configuration. +. /etc/sysconfig/network + +# See how we were called. +case "$1" in + start) + [ -e $SVIlock ] && exit 1 + [ ${NETWORKING} = "no" ] && exit 2 + [ -x $DAEMON_S -a -x $DAEMON_N ] || exit 2 + + #[ "$CONFIGURED" != "no" -a "$CONFIGURED" != "false" ] || { + SVIemptyConfig /etc/samba.d/smb.conf && { + echo "$DESCRIPTIVE: not configured! Skipped..." + exit 2 + } + + echo -n "Starting $IDENT: " + ssd -S -n $NAME_S -x $DAEMON_S -- $OPTIONS_SMB + ssd -S -n $NAME_N -x $DAEMON_N -- $OPTIONS_NMB + + echo "." + touch $SVIlock + ;; + + stop) + [ -e $SVIlock ] || exit 0 + + echo -n "Stopping $IDENT: " + ssd -K -p /var/lock/samba.d/$NAME_N.pid -n $NAME_N #-x $DAEMON_N + ssd -K -p /var/lock/samba.d/$NAME_S.pid -n $NAME_S #-x $DAEMON_S + + echo "." + rm -f $SVIlock + ;; + + restart) + echo -n "Restarting $IDENT: " + $0 stop + $0 start + exit $? + ;; + + *) + echo "Usage: $SVIscript {start|restart|stop}" + exit 1 + ;; +esac + +exit 0 diff --git a/packaging/Caldera/OpenLinux/samba.logrotate b/packaging/Caldera/OpenLinux/samba.logrotate new file mode 100644 index 0000000000..46611f83d8 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba.logrotate @@ -0,0 +1,12 @@ +/var/log/samba.d/nmbd { + postrotate + /usr/bin/killall -HUP nmbd + endscript +} + +/var/log/samba.d/smbd { + postrotate + /usr/bin/killall -HUP smbd + endscript +} + diff --git a/packaging/Caldera/OpenLinux/samba.pam b/packaging/Caldera/OpenLinux/samba.pam new file mode 100644 index 0000000000..4588db1735 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba.pam @@ -0,0 +1,7 @@ +#%PAM-1.0 +#[For version 1.0 syntax, the above header is optional] +# +# The PAM configuration file for the `samba' service +# +auth required /lib/security/pam_pwdb.so shadow nullok +account required /lib/security/pam_pwdb.so diff --git a/packaging/Caldera/OpenLinux/smb.conf.sample b/packaging/Caldera/OpenLinux/smb.conf.sample new file mode 100644 index 0000000000..a00803ca18 --- /dev/null +++ b/packaging/Caldera/OpenLinux/smb.conf.sample @@ -0,0 +1,312 @@ +# 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 = WORKGROUP + +# server string is the equivalent of the NT Description field + server string = Samba Server on Caldera OpenLinux + +# 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 + load printers = yes + +# you may wish to override the location of the printcap file +; printcap name = /etc/printcap + +# It should not be necessary to specify the print system type unless +# it is non-standard. Currently supported print systems include: +# bsd, sysv, plp, lprng, aix, hpux, qnx + printing = lprng + +# 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.d/smb.%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/samba.d/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/samba.d/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/samba.d/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 +; this gives access to a 'Public' sub-directory in each user's home... +; (it is named 'public' as it is intended to be used by other sharing +; technologies (like NetWare, appletalk) too and may get disclosed due +; to weak protocols! -- hmm, are there less secure protocols than NFS? :) + path = %H/Public + valid users = %S + only user = yes + browseable = no + writable = yes + create mask = 0750 + +# Un-comment the following and create the netlogon directory for Domain Logons +; [netlogon] +; comment = Samba Network Logon Service +; path = /home/samba/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/samba/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 + create mask = 0700 + +# A publicly accessible directory, but read only, except for people in +# the "users" group +;[public] +; comment = Public Stuff +; path = /home/public +; browseable = yes +; public = yes +; writable = yes +; printable = no +# access may be controlled by these options +; read list = user1, user2, @group +; valid users = user1, user3 +; write list = @users + +# Other examples. +# +# This one is useful for people to share files, BUT +# access to '/tmp' or '/var/tmp' should *not* be given lightly, +# as this can (still) pose a security threat! +# Better use a dedicate sub-directory to /(var/)tmp or something +# like a [public] share! +[tmp] + comment = Temporary file space + path = /tmp + browseable = yes + read only = yes + public = no + printable = no + +# 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/OpenLinux/smbadduser.perl b/packaging/Caldera/OpenLinux/smbadduser.perl new file mode 100755 index 0000000000..61bec2320d --- /dev/null +++ b/packaging/Caldera/OpenLinux/smbadduser.perl @@ -0,0 +1,146 @@ +#!/usr/bin/perl -w +# +# smbadduser - Written by Mike Zakharoff +# perl-rewrite by Raymund Will +# + +$smbpasswd = "/etc/samba.d/smbpasswd"; +$user_map = "/etc/samba.d/smbusers"; +# +# Set to site specific passwd command +# +$passwd = "cat /etc/passwd |"; +#$passwd = "niscat passwd.org_dir |"; +if ( -e "/var/run/ypbind.pid" ) { + $passwd = "(cat /etc/passwd; ypcat passwd ) |"; +} + +$line = "-" x 58; +if ($#ARGV < 0) { + print < ) { + next unless (/^[A-Za-z0-9_]+:/); + @t = split(/:/); + $U{$t[0]} = join( ":", ($t[0], $t[2], $X, $X, $t[4], $t[5], $t[6])); + } + close( IN); +} +# get all smb passwords (later skip already existent) +%S = (); +$Cs = ""; +if ( -r $smbpasswd ) { + open( IN, $smbpasswd) || die( "ERROR: open($smbpasswd): $!\n"); + while ( ) { + if ( /^\#/ ) { + $Cs .= $_; next; + } elsif ( ! /^([A-Za-z0-9_]+):/ ) { + chop; print STDERR "ERROR: $_: invalid smbpasswd entry!\n"; next; + } + $S{$1} = $_; + } + close( IN); +} +# get all map entries +%M = (); +$Cm = ""; +if ( -r $user_map ) { + open( IN, $user_map) || die( "ERROR: open($user_map): $!\n"); + while ( ) { + if ( /^\#/ ) { + $Cm .= $_; next; + } elsif ( ! /^([A-Za-z0-9_]+)\s*=\s*(\S.+\S)\s*/ ) { + chop; print STDERR "ERROR: $_: invalid user-map entry!\n"; next; + } + $M{$1} = $2; + } + close( IN); +} +# check parameter syntax +%N = (); +{ + foreach ( @ARGV ) { + my ( $u, $s, @R) = split(/:/); + if ( $#R >= 0 ) { + print STDERR "ERROR: $_: Must use unixid[:ntid] SKIPPING...\n"; + next; + } + $s = $u unless ( defined( $s) ); + if ( ! exists( $U{$u}) ) { + print STDERR "ERROR: $u: Not in passwd database SKIPPING...\n"; + next; + } + if ( exists( $S{$u}) ) { + print STDERR "ERROR: $u: Already in smbpasswd database SKIPPING...\n"; + next; + } + print "Adding: $u to $smbpasswd\n"; + $S{$u} = $U{$u}; + if ( $u ne $s ) { + if ( exists( $M{$u}) ) { + if ( $M{$u} !~ /\b$s\b/ ) { + print "Adding: $s to $u in $user_map\n"; + $M{$u} .= " $s"; + } + } else { + print "Mapping: $s to $u in $user_map\n"; + $M{$u} = $s; + } + } + $N{$u} = $s; + } +} +# rewrite $smbpasswd +{ + open( OUT, "> $smbpasswd.new") || die( "ERROR: open($smbpasswd.new): $!\n"); + $Cs = "#\n# SMB password file.\n#\n" unless ( $Cs ); + print OUT $Cs; + foreach ( sort( keys( %S)) ) { + print OUT $S{$_}; + } + close( OUT); + rename( $smbpasswd, $smbpasswd . "-"); + rename( $smbpasswd . ".new", $smbpasswd) || die; +} +# rewrite $user_map +{ + open( OUT, "> $user_map.new") || die( "ERROR: open($user_map.new): $!\n"); + $Cm = "# Unix_name = SMB_name1 SMB_name2 ...\n" unless ( $Cm ); + print OUT $Cm; + foreach ( sort( keys( %M)) ) { + print OUT "$_ = $M{$_}\n"; + } + close( OUT); + rename( $user_map, $user_map . "-"); + rename( $user_map . ".new", $user_map) || die; +} +# call 'smbpasswd' for each new +{ + foreach ( sort( keys( %N)) ) { + print $line . "\n"; + print "ENTER password for $_\n"; + system( "smbpasswd $_"); + } +} + diff --git a/packaging/Caldera/OpenLinux/smbprint b/packaging/Caldera/OpenLinux/smbprint new file mode 100755 index 0000000000..5d66aa1377 --- /dev/null +++ b/packaging/Caldera/OpenLinux/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 save 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 2>&1 diff --git a/packaging/Caldera/OpenLinux/smbusers b/packaging/Caldera/OpenLinux/smbusers new file mode 100644 index 0000000000..ae3389f53f --- /dev/null +++ b/packaging/Caldera/OpenLinux/smbusers @@ -0,0 +1,3 @@ +# Unix_name = SMB_name1 SMB_name2 ... +root = administrator admin +nobody = guest pcguest smbguest diff --git a/packaging/Caldera/OpenLinux/updatesmbpasswd.perl b/packaging/Caldera/OpenLinux/updatesmbpasswd.perl new file mode 100755 index 0000000000..60f572b490 --- /dev/null +++ b/packaging/Caldera/OpenLinux/updatesmbpasswd.perl @@ -0,0 +1,10 @@ +#!/usr/bin/perl -w +while ( <> ) { + print; + @V = split(/:/); + $_ = $V[3]; + if ( $V[0] !~ /^\#/ && !(/^[0-9A-F]{32}$/ || /^X{32}$/ || /^\*{32}$/) ) { + $V[3] = "X" x 32; + } + print( join( ':', @V)); +} -- cgit From 8a2a1ff6280d072cb83fd8268866703a962b288c Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 30 Jul 2000 06:37:46 +0000 Subject: Updating for Samba-3. (This used to be commit 183d55b2ae38305f68ca677f6d413a54bd122394) --- packaging/PHT/TurboLinux/samba2.spec.tmpl | 176 ++++++++++++++++++------------ 1 file changed, 108 insertions(+), 68 deletions(-) (limited to 'packaging') diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl index ea246364db..257159b759 100644 --- a/packaging/PHT/TurboLinux/samba2.spec.tmpl +++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl @@ -7,6 +7,7 @@ Group: Networking Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz Patch: makefile-path.patch Patch1: smbw.patch +Patch2: nss_makefile.patch Requires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba @@ -34,7 +35,7 @@ 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 +Samba-2 features an mostly 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 @@ -48,7 +49,7 @@ 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. PHT TurboLinux has built in support for quotas in PAM. +enabled. TurboLinux has built in support for quotas in PAM. %description -n smbfs This package includes the tools necessary to mount filesystems from @@ -60,6 +61,28 @@ server. Please use it with care. If you do not need it then do NOT install. %changelog +* Mon Jul 17 2000 John H Terpstra +- Start of Samba-3 packaging + +* Mon May 29 2000 John H Terpstra +- moved linkage of libnss_wins.so.2 to %post +- added removal step to %postun + +* Fri Apr 14 2000 John H Terpstra +- Added unicode pages + +* Sat Apr 08 2000 John H Terpsta +- Added nsswitch stuff +- Fixed some typos +- Changed hard link for smbmount to symlink + +* Sun Apr 02 2000 John H Terpstra +- Updated for samba-2.0.7 +- Added codepages 775 1251 +- Added configure options "--with-profile --with-utmp + --with-netatalk --with-sambabook=/usr/share/swat/using_samba" +- added using_samba book + * Fri Oct 29 1999 Kelley Spoon - get rid of the rc?.d directories - -j flags for make command to (hopefully) speed up on @@ -140,13 +163,14 @@ install. %setup %patch -p1 %patch1 -p1 +#%patch2 -p2 %build cd source NUMCPU=`grep processor /proc/cpuinfo | wc -l` -# CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-smbwrapper --with-automount --with-quotas --with-smbmount --with-pam -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-smbmount --with-pam -make -j${NUMCPU} all smbtorture rpctorture smbfilter debug2html # smbwrapper +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-smbmount --with-pam --with-profile --with-utmp --with-netatalk --with-sambabook=/usr/share/swat/using_samba +#make -j${NUMCPU} all smbtorture rpctorture smbfilter debug2html nsswitch/libnss_wins.so +make -j${NUMCPU} all smbtorture smbfilter debug2html nsswitch/libnss_wins.so masktest locktest locktest2 smbwrapper nsswitch/libnss_wins.so bin/smbw_sample %install @@ -155,8 +179,10 @@ mkdir -p $RPM_BUILD_ROOT/sbin 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 +mkdir -p $RPM_BUILD_ROOT/lib mkdir -p $RPM_BUILD_ROOT/home/samba mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin} +mkdir -p $RPM_BUILD_ROOT/usr/share/swat/using_samba/{gifs,figs} mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help,include} mkdir -p $RPM_BUILD_ROOT/usr/share/man/{man1,man5,man7,man8} mkdir -p $RPM_BUILD_ROOT/var/lock/samba @@ -166,7 +192,8 @@ mkdir -p $RPM_BUILD_ROOT/var/spool/samba # Install standard binary files # At a later date add smbsh and smbwrapper.so back into line below for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ - make_smbcodepage make_printerdef rpcclient + make_smbcodepage make_unicodemap make_printerdef \ + smbfilter smbsh smbspool smbw_sample smbwrapper.so do install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin done @@ -176,28 +203,46 @@ install -m755 source/script/$i $RPM_BUILD_ROOT/usr/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount smbmnt debug2html rpctorture smbtorture smbfilter +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html smbtorture masktest \ + locktest locktest2 do install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin done -# Now link smbmount to mount.smb -ln $RPM_BUILD_ROOT/usr/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb # Install level 1 man pages -# At a later date add back to line below: smbsh.1 -for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 make_smbcodepage.1 nmblookup.1 +for i in smbclient.1 smbrun.1 smbstatus.1 smbtar.1 testparm.1 testprns.1 \ + make_smbcodepage.1 make_unicodemap.1 nmblookup.1 wbinfo.1 do install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/share/man/man1 done +# Install level 8 man pages +for i in nmbd.8 smbd.8 smbmnt.8 smbmount.8 smbpasswd.8 smbspool.8 \ + smbumount.8 swat.8 winbindd.8 +do +install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/share/man/man8 +done + # Install codepage source files -for i in 437 737 850 852 861 866 932 936 949 950 +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 do install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/etc/codepages/src +done + +# Install the nsswitch library extension file +install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib # Install SWAT helper files -for i in swat/help/*.html docs/htmldocs/*.html +for i in swat/help/*.html +do +cat $i | sed 's/@BOOKDIR@//' > $RPM_BUILD_ROOT/usr/share/$i +chmod 644 $RPM_BUILD_ROOT/usr/share/$i +done +for i in docs/htmldocs/*.html do install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help done @@ -210,21 +255,26 @@ do install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include done +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/gifs +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/share/man/man5 install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT/usr/share/man/man5 install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT/usr/share/man/man5 install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT/usr/share/man/man7 -install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT/usr/share/man/man8 -install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT/usr/share/man/man8 -install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT/usr/share/man/man8 -install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT/usr/share/man/man8 -install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT/usr/share/man/man8 -install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT/usr/share/man/man8 -install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT/usr/share/man/man8 -# The mount.smb script has been obsoleted. -# install -m644 packaging/PHT/TurboLinux/mount.smb $RPM_BUILD_ROOT/sbin install -m644 packaging/PHT/TurboLinux/smb.conf $RPM_BUILD_ROOT/etc/smb.conf install -m644 packaging/PHT/TurboLinux/smbusers $RPM_BUILD_ROOT/etc/smbusers install -m755 packaging/PHT/TurboLinux/smbprint $RPM_BUILD_ROOT/usr/bin @@ -243,11 +293,21 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig --add smb /sbin/chkconfig smb off +# Link smbmount to /sbin/mount.smb +if [ ! -f /sbin/mount.smb ]; then + ln -s /usr/sbin/smbmount /sbin/mount.smb +fi + # Build codepage load files -for i in 437 737 850 852 861 866 932 936 949 950 +cd /etc +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 do /usr/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +/usr/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$i +done # Add swat entry to /etc/services if not already there if !( grep ^[:space:]*swat /etc/services > /dev/null ) then @@ -256,7 +316,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 + echo '#swat stream tcp nowait.400 root /usr/sbin/swat swat' >> /etc/inetd.conf killall -1 inetd || : fi @@ -265,6 +325,8 @@ if [ -f /etc/xinetd.conf ]; then mv /etc/xinetd.conf /etc/xinetd.conf.presamba /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf fi +# Make link for wins resolver +ln -s /lib/libnss_wins.so /lib/libnss_wins.so.2 %preun if [ $1 = 0 ] ; then @@ -309,6 +371,10 @@ if [ $1 = 0 ] ; then mv /etc/xinetd.conf /etc/xinetd.conf.samba /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf fi +if [ -f /sbin/mount.smb ]; then + rm -f /sbin/mount.smb +fi +rm -f /lib/libnss_wins.so.2 %triggerpostun -- samba < samba-2.0.0 if [ $0 != 0 ]; then @@ -329,71 +395,44 @@ fi %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/rpcclient %attr(-,root,root) /usr/bin/testparm %attr(-,root,root) /usr/bin/testprns %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_unicodemap %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/welcome.html -%attr(-,root,root) /usr/share/swat/help/DOMAIN_MEMBER.html -%attr(-,root,root) /usr/share/swat/help/lmhosts.5.html -%attr(-,root,root) /usr/share/swat/help/make_smbcodepage.1.html -%attr(-,root,root) /usr/share/swat/help/nmbd.8.html -%attr(-,root,root) /usr/share/swat/help/nmblookup.1.html -%attr(-,root,root) /usr/share/swat/help/samba.7.html -%attr(-,root,root) /usr/share/swat/help/smb.conf.5.html -%attr(-,root,root) /usr/share/swat/help/smbclient.1.html -%attr(-,root,root) /usr/share/swat/help/smbd.8.html -%attr(-,root,root) /usr/share/swat/help/smbpasswd.5.html -%attr(-,root,root) /usr/share/swat/help/smbpasswd.8.html -%attr(-,root,root) /usr/share/swat/help/smbrun.1.html -# %attr(-,root,root) /usr/share/swat/help/smbsh.1.html -%attr(-,root,root) /usr/share/swat/help/smbstatus.1.html -%attr(-,root,root) /usr/share/swat/help/smbtar.1.html -%attr(-,root,root) /usr/share/swat/help/swat.8.html -%attr(-,root,root) /usr/share/swat/help/testparm.1.html -%attr(-,root,root) /usr/share/swat/help/testprns.1.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/bin/smbfilter +%attr(-,root,root) /usr/bin/smbspool +%attr(0755,root,root) /usr/bin/smbsh +%attr(0755,root,root) /usr/bin/smbwrapper.so +%attr(755,root,root) /lib/libnss_wins.so +%attr(-,root,root) /usr/share/swat/help/* +%attr(-,root,root) /usr/share/swat/images/* %attr(-,root,root) /usr/share/swat/include/header.html %attr(-,root,root) /usr/share/swat/include/footer.html +%attr(-,root,root) /usr/share/swat/using_samba/* %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) /etc/codepages/src/codepage_def.* +%attr(-,root,root) /etc/codepages/src/CP* %attr(-,root,root) /usr/share/man/man1/smbstatus.1 %attr(-,root,root) /usr/share/man/man1/nmblookup.1 %attr(-,root,root) /usr/share/man/man1/smbclient.1 %attr(-,root,root) /usr/share/man/man1/make_smbcodepage.1 +%attr(-,root,root) /usr/share/man/man1/make_unicodemap.1 %attr(-,root,root) /usr/share/man/man1/smbrun.1 -# %attr(-,root,root) /usr/share/man/man1/smbsh.1 +%attr(-,root,root) /usr/share/man/man1/smbsh.1 %attr(-,root,root) /usr/share/man/man1/smbtar.1 %attr(-,root,root) /usr/share/man/man1/testparm.1 %attr(-,root,root) /usr/share/man/man1/testprns.1 @@ -414,14 +453,15 @@ fi %attr(-,root,root) /usr/sbin/smbmount %attr(-,root,root) /usr/sbin/smbumount %attr(-,root,root) /usr/sbin/smbmnt -%attr(-,root,root) /sbin/mount.smb %attr(-,root,root) /usr/share/man/man8/smbmnt.8 %attr(-,root,root) /usr/share/man/man8/smbmount.8 %attr(-,root,root) /usr/share/man/man8/smbumount.8 %files debugtools %attr(-,root,root) /usr/sbin/smbtorture -%attr(-,root,root) /usr/sbin/rpctorture %attr(-,root,root) /usr/sbin/smbfilter %attr(-,root,root) /usr/sbin/debug2html - +%attr(-,root,root) /usr/sbin/locktest +%attr(-,root,root) /usr/sbin/locktest2 +%attr(-,root,root) /usr/sbin/masktest +%attr(-,root,root) /usr/sbin/smbw_sample -- cgit From 48b47496cc0c0692e5549c0b5126165a23d7611b Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Fri, 4 Aug 2000 20:53:28 +0000 Subject: Adding build system files for Caldera OpenLinux. (This used to be commit 8de3786f5ad473aab90bb3fbf7e6ca2714f91751) --- .../OpenLinux/samba-3.0.0.pre-install.patch | 12 + packaging/Caldera/OpenLinux/samba3.spec.tmpl | 299 +++++++++++++++++++++ 2 files changed, 311 insertions(+) create mode 100644 packaging/Caldera/OpenLinux/samba-3.0.0.pre-install.patch create mode 100644 packaging/Caldera/OpenLinux/samba3.spec.tmpl (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba-3.0.0.pre-install.patch b/packaging/Caldera/OpenLinux/samba-3.0.0.pre-install.patch new file mode 100644 index 0000000000..f6571a2763 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba-3.0.0.pre-install.patch @@ -0,0 +1,12 @@ +--- samba/source/script/installbin.sh.orig Mon Dec 13 14:27:43 1999 ++++ samba/source/script/installbin.sh Fri Jun 16 15:06:13 2000 +@@ -34,7 +34,8 @@ + + # this is a special case, mount needs this in a specific location + if [ $p2 = smbmount ]; then +- ln -sf $BINDIR/$p2 /sbin/mount.smbfs ++ cp -p $BINDIR/$p2 /sbin/mount.smbfs ++ ln -s /sbin/mount.smbfs $BINDIR/$p2 + fi + done + diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl new file mode 100644 index 0000000000..e3cd9524d4 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -0,0 +1,299 @@ +%define Version PVERSION +%define date PRELEASE +%define Vendor Caldera +%define Dist OpenLinux +%define EtcSamba /etc/samba.d + +Name : samba +Version : %{Version} +Release : %{date} +Group : Server/Network + +Summary : Samba SMB client and server. + +Copyright : Andrew Tridgell, John H Terpstra; GPL +Packager : Klaus Singvogel +Icon : Caldera-daemon.gif +URL : http://samba.org/samba + +Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 + + +BuildRoot : /tmp/%{Name}-%{Version} + +Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}%{date}.tar.gz +#Patch0: %{Name}-%{Version}-smbmount.patch +Patch1: %{Name}-%{Version}-install.patch +#Patch2: %{Name}-%{Version}-smbconf.patch + + +%Package doc +Group : Server/Network + +Summary : Documentation on SAMBA. + + +%Package -n smbfs +Group : System/Network + +Summary : Mount and unmount commands for SMB filesystems (smbfs). + + +%Package -n swat +Group : Administration/Network +Requires : setup >= 2.0-2, tcp_wrappers + +Summary : Samba Web Administration Tool. + + +%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: Caldera OpenLinux uses PAM which has integrated support +for Shadow passwords. Do NOT recompile with the SHADOW_PWD option +enabled. Caldera OpenLinux has(?) built-in support for quotas in PAM. + + +%Description doc +Documentation on SAMBA. + + +%Description -n smbfs +Smbmount and smbumount are an interface to the SMB filesystem. Smbfs is +a filesystem which understands the SMB protocol. This is the protocol +Windows for Workgroups, Windows NT or Lan Manager use to talk to each +other. It was inspired by samba, the program by Andrew Tridgell that +turns any unix site into a file server for DOS or Windows clients. See +http://samba.org/samba for this interesting program suite and lots of +more information on SMB and NetBIOS over TCP/IP. There you also find +explanation for conceps like NetBIOS name or share. + + +%Description -n swat +swat allows a Samba administrator to configure the complex smb.conf +file via a Web browser. In addition, a swat configuration page has +help links to all the configurable options in the smb.conf file +allowing an administrator to easily look up the effects of any change. + + +%Prep +%setup -n samba +#%%patch0 -p1 +%patch1 -p1 +#%patch2 -p1 + +# instead of patch (to help configuration) ... ;^) +%{fixUP} -vbT source/Makefile.in -e ' + s:we don.t use sbindir because we want:if you want : + + s:(the previous releases of Samba):$1, please use: + + s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + + s:/log\.(\S+):/log/samba.d/${1}d: + + s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: + + s:^(LIBS\s*=):AUTH_$1: + + s:((SMBD|SWAT|RPCCLIENT|SMBPASSWD)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: +' + +for i in {cvs.,change-}log; do [ ! -f ../$i ] || mv ../$i source; done + +mv swat/help/welcome.html docs +%{fixUP} -vT docs -e ' + s:/usr/local/samba/bin/(smb(client|run)):/usr/bin/$1:g + + s:/usr/local/samba/bin/((s|n)mbd|swat):/usr/sbin/$1:g + + s:/usr/local/samba/var/locks:/var/lock/samba.d: + + s:/usr/local/samba/(var|lib)/log:/var/log/samba.d/smb: + + s:/usr/local/samba/swat:/usr/share/samba/swat:g + + s:/usr/local/samba/lib:%{EtcSamba}:g; +' +mv docs/welcome.html swat/help +for i in docs/*/smb.conf.5*; do + %{fixUP} -vT $i -e ' + s:users\.map:smbusers:g + + s:SAMBA_INSTALL_DIRECTORY/lib:%{EtcSamba}: + + s:None \(set in compile\)\.:(see above).: + + s:/usr/local/:/usr/:g; + ' +done +%{fixUP} -vT docs/textdocs/Faxing.txt -e ' + s:/usr/local/etc/:/etc/: + + s:/usr/local/:/usr/:; +' +%{fixUP} -vT docs/textdocs/ENCRYPTION.txt -e ' + s:/usr/local/samba/private:%{EtcSamba}:g + + s:mksmbpasswd.sh:mksmbpasswd:g + + s:the Samba source directory:/usr/bin:; +' +# End of DirtyHack(TM) + + +%Build +cd source +autoreconf + +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ + --prefix='$(DESTDIR)/usr' \ + --localstatedir='$(DESTDIR)/var' \ + --libdir='$(DESTDIR)%{EtcSamba}' \ + --with-privatedir='$(LIBDIR)' \ + --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ + --with-swatdir='$(DESTDIR)/usr/share/swat' \ + --with-smbmount --with-pam --without-smbwrapper \ + --with-utmp + +make all + + +%Install +%{mkDESTDIR} +VVS=packaging/%{Vendor}/%{Dist} + +mkdir -p $DESTDIR/etc/{{rc.d/init,logrotate,pam}.d,sysconfig/daemons} +mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} +mkdir -p $DESTDIR/usr/{share,swat} +mkdir -p $DESTDIR/home/samba $DESTDIR%{EtcSamba}/codepages/src $DESTDIR/sbin + +make -C source install + +strip $DESTDIR/usr/bin/smb{mount,mnt,umount} +mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin + +#cp -p source/codepages/codepage_def.??? $DESTDIR%{EtcSamba}/codepages/src + +cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba +ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin + +cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample +#cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf +cp -p $VVS/smbusers $DESTDIR%{EtcSamba} +cp -p $VVS/smbprint $DESTDIR/usr/bin +cp -p $VVS/smbadduser.perl $DESTDIR/usr/sbin/smbadduser +cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/sbin/make_smbpasswd +cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/sbin/convertsmbpasswd +cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/sbin/updatesmbpasswd +cp -p $VVS/findsmb $DESTDIR/usr/sbin +cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba +cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba +cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba + +for f in testparm testprns; do + ln -s $f $DESTDIR/usr/bin/smb$f + ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 +done +ln -s make_smbcodepage $DESTDIR/usr/sbin/mksmbcodepage +ln -s make_smbpasswd $DESTDIR/usr/sbin/mksmbpasswd +ln -sf convert_smbpasswd $DESTDIR/usr/sbin/convertsmbpasswd + +cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts + 127.0.0.1 localhost +EoH + + +DOCD="$DESTDIR/%{_defaultdocdir}/samba-%{Version}"; mkdir -p $DOCD +ln -sf ../Copyrights/GPL-2.0 $DOCD/COPYING +cp -p README Manifest Read-Manifest-Now WHATSNEW.txt Roadmap $DOCD +cp -a docs examples $DOCD + +mv $DOCD/docs/htmldocs/wfw_slip.htm $DOCD/docs/wfw_slip.html + +rm -rf $DOCD/docs/{htmldocs,manpages,yodldocs} +rm -rf $DOCD/examples/{svr4-startup,printing} + +cp -p swat/README $DOCD/README.swat + +%{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;' + +%{fixManPages} + +%{mkLists} -c samba +cat << 'EOF' | %{mkLists} -d samba +^/(etc|var|home) config-IGNORED +swat swat +/usr/doc/samba-[^/]+/$ base +/doc/samba- doc +@default@ +EOF +cat << 'EOF' | %{mkLists} -f -a samba +^/etc config-IGNORED +/doc/samba-[^/]+/(COPYING|README$) base +/doc/samba- doc +smb(mount|mnt|umount) smbfs +mount.smbfs smbfs +swat swat +@default@ +EOF + + +%Clean +%{rmDESTDIR} + + +%Post +lisa --SysV-init install samba S91 3:4:5 K09 0:1:2:6 + + +%Post -n swat +lisa --inetd install swat stream tcp nowait.400 root /usr/sbin/tcpd swat +perl -pi -e '$s=1 if /^swat/; + print "swat:ALL EXCEPT 127.0.0.1\n" if eof && ! $s' /etc/hosts.deny + + +%PostUn +lisa --SysV-init remove samba $1 +# We want to remove the browse.dat and wins.dat files so they can not +# interfer with a new version of samba! +rm -f /var/lock/samba/{browse,wins}.dat + + +%PostUn -n swat +lisa --inetd disable swat $1 +[ -x /usr/sbin/swat ]||perl -ni -e '/^swat\s*\:/||print' /etc/hosts.deny + + +%Files -f files-samba-base +%defattr(-,root,root) +%config %attr(755,root,root) /etc/rc.d/init.d/samba +%config %attr(644,root,root) /etc/sysconfig/daemons/samba +%config %attr(644,root,root) /etc/pam.d/samba +%config %attr(644,root,root) /etc/logrotate.d/samba +%config %attr(-,root,root) %{EtcSamba} +%config %attr(755,root,root) /home/samba + +%dir %attr(755,root,root) /var/lock/samba.d +%dir %attr(755,root,root) /var/log/samba.d +%dir %attr(1777,root,root) /var/spool/samba +#%dir %attr(775,root,nobody) /home/samba + + +%Files doc -f files-samba-doc +%defattr(-,root,root) + + +%Files -n smbfs -f files-samba-smbfs +%defattr(-,root,root) + + +%Files -n swat -f files-samba-swat +%defattr(-,root,root) + + +%ChangeLog +* Mon Jan 01 1997 ... +$Id: samba3.spec.tmpl,v 1.1 2000/08/04 20:53:28 jht Exp $ + -- cgit From 754f021fc73646887550da5a9813115229c779a8 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Fri, 4 Aug 2000 21:03:10 +0000 Subject: Adding build file. (This used to be commit b87c47cc8638a1930e55a45a126a778b188ce688) --- packaging/Caldera/OpenLinux/makerpms.sh.tmpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packaging/Caldera/OpenLinux/makerpms.sh.tmpl (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl new file mode 100644 index 0000000000..8f7b06235b --- /dev/null +++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl @@ -0,0 +1,14 @@ +#!/bin/sh +# Copyright (C) 1998 John H Terpstra, 2000 Klaus Singvogel +# +SPECDIR=/usr/src/OpenLinux/SPECS +SRCDIR=/usr/src/OpenLinux/SOURCES +USERID=`id -u` +GRPID=`id -g` + +( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba ) +( cd ../../../.. ; tar czvf ${SRCDIR}/samba.tar.gz samba-PVERSIONPRELEASE ) +cp -a *.spec $SPECDIR +cp -a *.patch smb.* samba.* make* find* convert* updates* $SRCDIR +cd $SPECDIR +rpm -ba -v samba3.spec -- cgit From 02e3b4a802ed01df91620f441091cf8894f43ff7 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 15 Aug 2000 23:36:05 +0000 Subject: fixed error in [public] spotted by Ron Alexander changed to read only = yes jerry (This used to be commit e17753c532ab6d5ae628c6e6f6d5b810638cb314) --- packaging/RedHat/smb.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/RedHat/smb.conf b/packaging/RedHat/smb.conf index e07d15c93e..b3d2bc839a 100644 --- a/packaging/RedHat/smb.conf +++ b/packaging/RedHat/smb.conf @@ -224,8 +224,7 @@ ; comment = Public Stuff ; path = /home/samba ; public = yes -; writable = yes -; printable = no +; read only = yes ; write list = @staff # Other examples. -- cgit From a705af14be1f7aa65e2752f299808fbc6c01cd85 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 16 Aug 2000 03:34:58 +0000 Subject: fixed typo. jerry (This used to be commit f00a330b3e7900bc325802b2a252a392a16a8b2a) --- packaging/RedHat/smb.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/RedHat/smb.conf b/packaging/RedHat/smb.conf index b3d2bc839a..2f28677897 100644 --- a/packaging/RedHat/smb.conf +++ b/packaging/RedHat/smb.conf @@ -9,7 +9,7 @@ # 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. +# to check that you have not made any basic syntactic errors. # #======================= Global Settings ===================================== [global] -- cgit From 79b73e62ee23bc28a169ec4cee1740ba688e972d Mon Sep 17 00:00:00 2001 From: David O'Neill Date: Fri, 5 Jan 2001 17:59:31 +0000 Subject: Sync up packaging updates that didn't make it to HEAD. (This used to be commit c6f7358535eb96112e055d60d39c1595601d3056) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 61 +++-- packaging/PHT/TurboLinux/samba2.spec.tmpl | 321 +++++++++++++++------------ packaging/RedHat/samba2.spec.tmpl | 168 ++++++++------ packaging/SGI/STATUS..LCK | 0 packaging/SGI/idb.pl | 3 +- packaging/SGI/inetd.sh | 12 +- packaging/SGI/inst.msg | 2 +- packaging/SGI/removeswat.sh | 12 +- packaging/SGI/startswat.sh | 12 +- 9 files changed, 358 insertions(+), 233 deletions(-) delete mode 100644 packaging/SGI/STATUS..LCK (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index e3cd9524d4..ab4e48649b 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -9,12 +9,12 @@ Version : %{Version} Release : %{date} Group : Server/Network -Summary : Samba SMB client and server. +Summary : Samba SMB client and server. -Copyright : Andrew Tridgell, John H Terpstra; GPL -Packager : Klaus Singvogel -Icon : Caldera-daemon.gif -URL : http://samba.org/samba +Copyright : Andrew Tridgell, John H Terpstra; GPL Version 2 +Packager : Klaus Singvogel +Icon : Caldera-daemon.gif +URL : http://samba.org/samba Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 @@ -30,7 +30,7 @@ Patch1: %{Name}-%{Version}-install.patch %Package doc Group : Server/Network -Summary : Documentation on SAMBA. +Summary : Documentation on SAMBA. %Package -n smbfs @@ -41,12 +41,9 @@ Summary : Mount and unmount commands for SMB filesystems (smbfs). %Package -n swat Group : Administration/Network -Requires : setup >= 2.0-2, tcp_wrappers +Requires : setup >= 2.0-2, tcp_wrappers -Summary : Samba Web Administration Tool. - - -%Description +Summary : Samba Web Administration Tool. 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, @@ -56,27 +53,37 @@ 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. +Samba-2.2 features working NT Domain Control capability and +includes the SWAT (Samba Web Administration Tool) that +allows samba's smb.conf file to be remotely managed using your +favourite web browser. For the time being this is being +enabled on TCP port 901 via inetd. + +Users are advised to use Samba-2.2 as a Windows NT4 +Domain Controller only on networks that do NOT have a Windows +NT Domain Controller. This release does NOT as yet have +Backup Domain control ability. Please refer to the WHATSNEW.txt document for fixup information. This binary release includes encrypted password support. + Please read the smb.conf file and ENCRYPTION.txt in the docs directory for implementation details. -NOTE: Caldera OpenLinux uses PAM which has integrated support -for Shadow passwords. Do NOT recompile with the SHADOW_PWD option -enabled. Caldera OpenLinux has(?) built-in support for quotas in PAM. +%Description +NOTE: Caldera OpenLinux uses PAM which has integrated support +for Shadow passwordsand for quotas. Do NOT recompile with the +SHADOW_PWD option enabled. %Description doc Documentation on SAMBA. %Description -n smbfs +This package includes the tools necessary to mount filesystems from +SMB servers. + Smbmount and smbumount are an interface to the SMB filesystem. Smbfs is a filesystem which understands the SMB protocol. This is the protocol Windows for Workgroups, Windows NT or Lan Manager use to talk to each @@ -155,9 +162,11 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ --with-swatdir='$(DESTDIR)/usr/share/swat' \ --with-smbmount --with-pam --without-smbwrapper \ - --with-utmp + --with-utmp --with-quotas --with-vfs --with-msdfs \ + --with-profile --with-syslog --with-utmp --with-netatalk \ + --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba -make all +make all nsswitch/libnss_wins.so %Install @@ -166,7 +175,7 @@ VVS=packaging/%{Vendor}/%{Dist} mkdir -p $DESTDIR/etc/{{rc.d/init,logrotate,pam}.d,sysconfig/daemons} mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} -mkdir -p $DESTDIR/usr/{share,swat} +mkdir -p $DESTDIR/usr/{share,swat/using_samba} mkdir -p $DESTDIR/home/samba $DESTDIR%{EtcSamba}/codepages/src $DESTDIR/sbin make -C source install @@ -176,6 +185,13 @@ mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin #cp -p source/codepages/codepage_def.??? $DESTDIR%{EtcSamba}/codepages/src +# Install the nsswitch library extension file +cp -p source/nsswitch/libnss_wins.so $DESTDIR/lib +# Make link for wins resolver +cd $DESTDIR/lib +ln -s libnss_wins.so libnss_wins.so.2 +cd $RPM_BUILD_DIR + cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin @@ -295,5 +311,4 @@ lisa --inetd disable swat $1 %ChangeLog * Mon Jan 01 1997 ... -$Id: samba3.spec.tmpl,v 1.1 2000/08/04 20:53:28 jht Exp $ diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl index 257159b759..668dddb0f6 100644 --- a/packaging/PHT/TurboLinux/samba2.spec.tmpl +++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl @@ -7,11 +7,10 @@ Group: Networking Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz Patch: makefile-path.patch Patch1: smbw.patch -Patch2: nss_makefile.patch Requires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba - +Prefix: /usr %package debugtools Version: PVERSION @@ -35,11 +34,16 @@ in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol. -Samba-2 features an mostly 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. +Samba-2.2 features working NT Domain Control capability and +includes the SWAT (Samba Web Administration Tool) that +allows samba's smb.conf file to be remotely managed using your +favourite web browser. For the time being this is being +enabled on TCP port 901 via inetd. + +Users are advised to use Samba-2.2 as a Windows NT4 +Domain Controller only on networks that do NOT have a Windows +NT Domain Controller. This release does NOT as yet have +Backup Domain control ability. Please refer to the WHATSNEW.txt document for fixup information. This binary release includes encrypted password support. @@ -48,21 +52,38 @@ 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. TurboLinux has built in support for quotas in PAM. +for Shadow passwords and quotas. Do NOT recompile with the +SHADOW_PWD option enabled. + %description -n smbfs This package includes the tools necessary to mount filesystems from SMB servers. +Smbmount and smbumount are an interface to the SMB filesystem. Smbfs is +a filesystem which understands the SMB protocol. This is the protocol +Windows for Workgroups, Windows NT or Lan Manager use to talk to each +other. It was inspired by samba, the program by Andrew Tridgell that +turns any unix site into a file server for DOS or Windows clients. See +http://samba.org/samba for this interesting program suite and lots of +more information on SMB and NetBIOS over TCP/IP. There you also find +explanation for conceps like NetBIOS name or share. + %description debugtools This package contains programs that can be used to crash test any SMB server. Please use it with care. If you do not need it then do NOT install. %changelog -* Mon Jul 17 2000 John H Terpstra -- Start of Samba-3 packaging +* Sat Nov 04 2000 John H Terpstra +- Put Symlink for libnss_wins.so back into main install section + +* Fri Nov 3 2000 Uros Prestor +- ported to IA-64 + +* Mon Oct 09 2000 John H Terpstra +- Started move to Samba-2.2.0 +- Added nsswitch wins support * Mon May 29 2000 John H Terpstra - moved linkage of libnss_wins.so.2 to %post @@ -149,28 +170,53 @@ install. * 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 + - 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 -#%patch2 -p2 + %build cd source + +%ifarch ia64 +libtoolize --copy --force # get it to recognize IA-64 +autoconf +autoheader +EXTRA="-D_LARGEFILE64_SOURCE" +%endif + NUMCPU=`grep processor /proc/cpuinfo | wc -l` -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=/usr/share/swat --with-automount --with-quotas --with-smbmount --with-pam --with-profile --with-utmp --with-netatalk --with-sambabook=/usr/share/swat/using_samba -#make -j${NUMCPU} all smbtorture rpctorture smbfilter debug2html nsswitch/libnss_wins.so -make -j${NUMCPU} all smbtorture smbfilter debug2html nsswitch/libnss_wins.so masktest locktest locktest2 smbwrapper nsswitch/libnss_wins.so bin/smbw_sample +CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ + --prefix=%{prefix} \ + --libdir=/etc \ + --with-lockdir=/var/lock/samba \ + --with-privatedir=/etc \ + --with-swatdir=%{prefix}/share/swat \ + --with-quotas \ + --with-smbmount \ + --with-pam \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=%{prefix}/share/swat/using_samba +make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so +make -j${NUMCPU} smbtorture debug2html locktest2 +make -j${NUMCPU} masktest bin/smbspool +#make -j${NUMCPU} rpctorture locktest smbwrapper bin/wbinfo %install @@ -181,46 +227,39 @@ mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d} mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d mkdir -p $RPM_BUILD_ROOT/lib mkdir -p $RPM_BUILD_ROOT/home/samba -mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin} -mkdir -p $RPM_BUILD_ROOT/usr/share/swat/using_samba/{gifs,figs} -mkdir -p $RPM_BUILD_ROOT/usr/share/swat/{images,help,include} -mkdir -p $RPM_BUILD_ROOT/usr/share/man/{man1,man5,man7,man8} +mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{gifs,figs} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/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 -# At a later date add smbsh and smbwrapper.so back into line below for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ - make_smbcodepage make_unicodemap make_printerdef \ - smbfilter smbsh smbspool smbw_sample smbwrapper.so + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool +# smbsh smbwrapper.so do -install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/bin +install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done for i in addtosmbpass mksmbpasswd.sh smbtar do -install -m755 source/script/$i $RPM_BUILD_ROOT/usr/bin +install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount smbmnt debug2html smbtorture masktest \ - locktest locktest2 +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html \ + smbtorture smbfilter locktest2 masktest +# wbinfo 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 make_unicodemap.1 nmblookup.1 wbinfo.1 -do -install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/share/man/man1 -done -# Install level 8 man pages -for i in nmbd.8 smbd.8 smbmnt.8 smbmount.8 smbpasswd.8 smbspool.8 \ - smbumount.8 swat.8 winbindd.8 +# Install level 1 man pages +for i in *.1 do -install -m644 docs/manpages/$i $RPM_BUILD_ROOT/usr/share/man/man8 +install -m644 docs/manpages/$i $RPM_BUILD_ROOT%{prefix}/share/man/man1 done # Install codepage source files @@ -235,57 +274,65 @@ done # Install the nsswitch library extension file install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib +# Make link for wins resolver +( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) # Install SWAT helper files -for i in swat/help/*.html -do -cat $i | sed 's/@BOOKDIR@//' > $RPM_BUILD_ROOT/usr/share/$i -chmod 644 $RPM_BUILD_ROOT/usr/share/$i -done -for i in docs/htmldocs/*.html +for i in swat/help/*.html docs/htmldocs/*.html do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/help +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help done for i in swat/images/*.gif do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/images +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images done for i in swat/include/*.html do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/include +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include done # This is the O'Reily Samba Book - on-line for i in docs/htmldocs/using_samba/*.html do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba done for i in docs/htmldocs/using_samba/figs/*.gif do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/figs +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/figs done for i in docs/htmldocs/using_samba/gifs/*.gif do -install -m644 $i $RPM_BUILD_ROOT/usr/share/swat/using_samba/gifs +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/gifs 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/share/man/man5 -install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT/usr/share/man/man5 -install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT/usr/share/man/man5 -install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT/usr/share/man/man7 +install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat +install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 +install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 +install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 +install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT%{prefix}/share/man/man7 +install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 packaging/PHT/TurboLinux/smb.conf $RPM_BUILD_ROOT/etc/smb.conf install -m644 packaging/PHT/TurboLinux/smbusers $RPM_BUILD_ROOT/etc/smbusers -install -m755 packaging/PHT/TurboLinux/smbprint $RPM_BUILD_ROOT/usr/bin -install -m755 packaging/PHT/TurboLinux/findsmb $RPM_BUILD_ROOT/usr/bin -install -m755 packaging/PHT/TurboLinux/smbadduser $RPM_BUILD_ROOT/usr/bin +install -m755 packaging/PHT/TurboLinux/smbprint $RPM_BUILD_ROOT%{prefix}/bin +install -m755 packaging/PHT/TurboLinux/findsmb $RPM_BUILD_ROOT%{prefix}/bin +install -m755 packaging/PHT/TurboLinux/smbadduser $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb -install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT/usr/sbin/samba +install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba install -m644 packaging/PHT/TurboLinux/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba install -m644 packaging/PHT/TurboLinux/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts +# Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs + %clean rm -rf $RPM_BUILD_ROOT @@ -293,20 +340,15 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig --add smb /sbin/chkconfig smb off -# Link smbmount to /sbin/mount.smb -if [ ! -f /sbin/mount.smb ]; then - ln -s /usr/sbin/smbmount /sbin/mount.smb -fi - # Build codepage load files cd /etc for i in 437 737 775 850 852 861 866 932 936 949 950 1251 do -/usr/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i +%{prefix}/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i done for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R do -/usr/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$i +%{prefix}/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$i done # Add swat entry to /etc/services if not already there @@ -316,7 +358,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 + echo '#swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf killall -1 inetd || : fi @@ -325,8 +367,7 @@ if [ -f /etc/xinetd.conf ]; then mv /etc/xinetd.conf /etc/xinetd.conf.presamba /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf fi -# Make link for wins resolver -ln -s /lib/libnss_wins.so /lib/libnss_wins.so.2 + %preun if [ $1 = 0 ] ; then @@ -364,6 +405,8 @@ if [ $1 = 0 ] ; then tmpfile=/etc/tmp.$$ sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile mv $tmpfile inetd.conf + sed -e '/#swat.*$/d' /etc/inetd.conf > $tmpfile + mv $tmpfile inetd.conf sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile mv $tmpfile services @@ -371,10 +414,7 @@ if [ $1 = 0 ] ; then mv /etc/xinetd.conf /etc/xinetd.conf.samba /usr/sbin/itox --daemon_dir /usr/sbin < /etc/inetd.conf > /etc/xinetd.conf fi -if [ -f /sbin/mount.smb ]; then - rm -f /sbin/mount.smb -fi -rm -f /lib/libnss_wins.so.2 + %triggerpostun -- samba < samba-2.0.0 if [ $0 != 0 ]; then @@ -388,36 +428,35 @@ fi %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(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 -#%attr(-,root,root) /usr/bin/rpcclient -%attr(-,root,root) /usr/bin/testparm -%attr(-,root,root) /usr/bin/testprns -%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_unicodemap -%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/bin/smbfilter -%attr(-,root,root) /usr/bin/smbspool -%attr(0755,root,root) /usr/bin/smbsh -%attr(0755,root,root) /usr/bin/smbwrapper.so -%attr(755,root,root) /lib/libnss_wins.so -%attr(-,root,root) /usr/share/swat/help/* -%attr(-,root,root) /usr/share/swat/images/* -%attr(-,root,root) /usr/share/swat/include/header.html -%attr(-,root,root) /usr/share/swat/include/footer.html -%attr(-,root,root) /usr/share/swat/using_samba/* +%attr(-,root,root) %{prefix}/sbin/smbd +%attr(-,root,root) %{prefix}/sbin/nmbd +%attr(-,root,root) %{prefix}/sbin/swat +%attr(0750,root,root) %{prefix}/sbin/samba +%attr(-,root,root) %{prefix}/bin/addtosmbpass +%attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh +%attr(-,root,root) %{prefix}/bin/smbclient +%attr(-,root,root) %{prefix}/bin/rpcclient +%attr(-,root,root) %{prefix}/bin/testparm +%attr(-,root,root) %{prefix}/bin/testprns +%attr(-,root,root) %{prefix}/bin/findsmb +%attr(-,root,root) %{prefix}/bin/smbstatus +%attr(-,root,root) %{prefix}/bin/nmblookup +%attr(-,root,root) %{prefix}/bin/make_smbcodepage +%attr(-,root,root) %{prefix}/bin/make_unicodemap +%attr(-,root,root) %{prefix}/bin/make_printerdef +%attr(-,root,root) %{prefix}/bin/smbpasswd +%attr(-,root,root) %{prefix}/bin/smbtar +%attr(-,root,root) %{prefix}/bin/smbprint +%attr(-,root,root) %{prefix}/bin/smbspool +%attr(-,root,root) %{prefix}/bin/smbadduser +# %attr(0755,root,root) %{prefix}/bin/smbsh +# %attr(0755,root,root) %{prefix}/bin/smbwrapper.so +%attr(755,root,root) /lib/libnss_wins.s* +%attr(-,root,root) %{prefix}/share/swat/help/* +%attr(-,root,root) %{prefix}/share/swat/images/* +%attr(-,root,root) %{prefix}/share/swat/include/header.html +%attr(-,root,root) %{prefix}/share/swat/include/footer.html +%attr(-,root,root) %{prefix}/share/swat/using_samba/* %attr(-,root,root) %config(noreplace) /etc/lmhosts %attr(-,root,root) %config(noreplace) /etc/smb.conf %attr(-,root,root) %config(noreplace) /etc/smbusers @@ -426,22 +465,24 @@ fi %attr(-,root,root) /etc/pam.d/samba %attr(-,root,root) /etc/codepages/src/codepage_def.* %attr(-,root,root) /etc/codepages/src/CP* -%attr(-,root,root) /usr/share/man/man1/smbstatus.1 -%attr(-,root,root) /usr/share/man/man1/nmblookup.1 -%attr(-,root,root) /usr/share/man/man1/smbclient.1 -%attr(-,root,root) /usr/share/man/man1/make_smbcodepage.1 -%attr(-,root,root) /usr/share/man/man1/make_unicodemap.1 -%attr(-,root,root) /usr/share/man/man1/smbrun.1 -%attr(-,root,root) /usr/share/man/man1/smbsh.1 -%attr(-,root,root) /usr/share/man/man1/smbtar.1 -%attr(-,root,root) /usr/share/man/man1/testparm.1 -%attr(-,root,root) /usr/share/man/man1/testprns.1 -%attr(-,root,root) /usr/share/man/man5/smb.conf.5 -%attr(-,root,root) /usr/share/man/man7/samba.7 -%attr(-,root,root) /usr/share/man/man8/smbd.8 -%attr(-,root,root) /usr/share/man/man8/nmbd.8 -%attr(-,root,root) /usr/share/man/man8/swat.8 -%attr(-,root,root) /usr/share/man/man8/smbpasswd.8 +# %attr(-,root,root) %{prefix}/share/man/man1/smbsh.1 +%attr(-,root,root) %{prefix}/share/man/man1/make_smbcodepage.1 +%attr(-,root,root) %{prefix}/share/man/man1/make_unicodemap.1 +%attr(-,root,root) %{prefix}/share/man/man1/nmblookup.1 +%attr(-,root,root) %{prefix}/share/man/man1/smbclient.1 +%attr(-,root,root) %{prefix}/share/man/man1/smbrun.1 +%attr(-,root,root) %{prefix}/share/man/man1/smbstatus.1 +%attr(-,root,root) %{prefix}/share/man/man1/smbtar.1 +%attr(-,root,root) %{prefix}/share/man/man1/testparm.1 +%attr(-,root,root) %{prefix}/share/man/man1/testprns.1 +%attr(-,root,root) %{prefix}/share/man/man5/lmhosts.5 +%attr(-,root,root) %{prefix}/share/man/man5/smb.conf.5 +%attr(-,root,root) %{prefix}/share/man/man5/smbpasswd.5 +%attr(-,root,root) %{prefix}/share/man/man7/samba.7 +%attr(-,root,root) %{prefix}/share/man/man8/nmbd.8 +%attr(-,root,root) %{prefix}/share/man/man8/smbd.8 +%attr(-,root,root) %{prefix}/share/man/man8/smbpasswd.8 +%attr(-,root,root) %{prefix}/share/man/man8/swat.8 %attr(-,root,nobody) %dir /home/samba %attr(-,root,root) %dir /etc/codepages %attr(-,root,root) %dir /etc/codepages/src @@ -450,18 +491,20 @@ fi %attr(1777,root,root) %dir /var/spool/samba %files -n smbfs -%attr(-,root,root) /usr/sbin/smbmount -%attr(-,root,root) /usr/sbin/smbumount -%attr(-,root,root) /usr/sbin/smbmnt -%attr(-,root,root) /usr/share/man/man8/smbmnt.8 -%attr(-,root,root) /usr/share/man/man8/smbmount.8 -%attr(-,root,root) /usr/share/man/man8/smbumount.8 +%attr(-,root,root) %{prefix}/sbin/smbmount +%attr(-,root,root) %{prefix}/sbin/smbumount +%attr(-,root,root) %{prefix}/sbin/smbmnt +%attr(-,root,root) /sbin/mount.smb +%attr(-,root,root) /sbin/mount.smbfs +%attr(-,root,root) %{prefix}/share/man/man8/smbmnt.8 +%attr(-,root,root) %{prefix}/share/man/man8/smbmount.8 +%attr(-,root,root) %{prefix}/share/man/man8/smbumount.8 %files debugtools -%attr(-,root,root) /usr/sbin/smbtorture -%attr(-,root,root) /usr/sbin/smbfilter -%attr(-,root,root) /usr/sbin/debug2html -%attr(-,root,root) /usr/sbin/locktest -%attr(-,root,root) /usr/sbin/locktest2 -%attr(-,root,root) /usr/sbin/masktest -%attr(-,root,root) /usr/sbin/smbw_sample +%attr(-,root,root) %{prefix}/sbin/smbtorture +#%attr(-,root,root) %{prefix}/sbin/rpctorture +%attr(-,root,root) %{prefix}/sbin/smbfilter +%attr(-,root,root) %{prefix}/sbin/debug2html +%attr(-,root,root) %{prefix}/sbin/locktest2 +#%attr(-,root,root) %{prefix}/sbin/wbinfo +%attr(-,root,root) %{prefix}/sbin/masktest diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 92ea52527b..73ca951336 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -8,7 +8,7 @@ Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz Patch: makefile-path.patch Patch1: smbw.patch Packager: John H Terpstra [Samba-Team] -Requires: pam >= 0.64 +Requires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba Prefix: /usr @@ -23,22 +23,33 @@ 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. +Samba-2.2 features working NT Domain Control capability and +includes the SWAT (Samba Web Administration Tool) that +allows samba's smb.conf file to be remotely managed using your +favourite web browser. For the time being this is being +enabled on TCP port 901 via inetd. + +Users are advised to use Samba-2.2 as a Windows NT4 +Domain Controller only on networks that do NOT have a Windows +NT Domain Controller. This release does NOT as yet have +Backup Domain control ability. Please refer to the WHATSNEW.txt document for fixup information. This binary release includes encrypted password support. + Please read the smb.conf file and ENCRYPTION.txt in the docs directory for implementation details. -NOTE: Red Hat Linux 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. +NOTE: Red Hat Linux uses PAM which has integrated support +for Shadow passwords and quotas. Do NOT recompile with the +SHADOW_PWD option enabled %changelog +* Sun Nov 12 2000 John H Terpstra + - Updated for Samba-2.2 releases + - Added libnss_wins.so stuff + - Added compile-time options + * Sat Nov 29 1999 Matthew Vanecek - Added a Prefix and changed "/usr" to "%{prefix}" @@ -117,8 +128,35 @@ enabled. Red Hat Linux has built in support for quotas in PAM. %build cd source -./configure --prefix=%{prefix} --libdir=/etc --with-lockdir=/var/lock/samba --with-privatedir=/etc --with-swatdir=%{prefix}/share/swat --with-smbmount --with-automount --with-quotas --with-pam -make all + +%ifarch ia64 +libtoolize --copy --force # get it to recognize IA-64 +autoconf +autoheader +EXTRA="-D_LARGEFILE64_SOURCE" +%endif +NUMCPU=`grep processor /proc/cpuinfo | wc -l` +CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ + --prefix=%{prefix}\ + --libdir=/etc \ + --with-lockdir=/var/lock/samba \ + --with-privatedir=/etc \ + --with-swatdir=%{prefix}/share/swat \ + --with-quotas \ + --with-smbmount \ + --with-pam \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=%{prefix}/share/swat/using_samba +make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so +make -j${NUMCPU} smbtorture debug2html locktest2 +make -j${NUMCPU} masktest bin/smbspool +#make -j${NUMCPU} rpctorture locktest smbwrapper bin/wbinfo + %install rm -rf $RPM_BUILD_ROOT @@ -136,8 +174,9 @@ 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 smbspool smbpasswd smbstatus testparm testprns \ - make_smbcodepage make_printerdef rpcclient +for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool +# smbsh smbwrapper.so do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done @@ -147,13 +186,16 @@ install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbmnt smbumount +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html \ + smbtorture smbfilter locktest2 masktest +# wbinfo do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done -# we need a symlink for mount to recognise the smb filesystem type +# we need a symlink for mount to recognise the smb and smbfs filesystem types ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb # 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 @@ -162,10 +204,19 @@ install -m644 docs/manpages/$i $RPM_BUILD_ROOT%{prefix}/man/man1 done # Install codepage source files -for i in 437 737 850 852 861 866 932 936 949 950 +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 do install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/etc/codepages/src +done + +# Install the nsswitch library extension file +install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib +# Make link for wins resolver +( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) # Install SWAT helper files for i in swat/help/*.html docs/htmldocs/*.html @@ -179,6 +230,18 @@ done for i in swat/include/*.html do install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include +done# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +install -m644 $i $RPM_BUILD_ROOT%{prefix/share/swat/using_samba/gifs done # Install the miscellany @@ -212,10 +275,14 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig --add smb # Build codepage load files -for i in 437 737 850 852 861 866 932 936 949 950 +for i in 437 737 850 852 861 866 932 936 949 950 1251 do %{prefix}/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +%{prefix/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$i +done # Add swat entry to /etc/services if not already there if !( grep ^[:space:]*swat /etc/services > /dev/null ) then @@ -268,6 +335,13 @@ if [ $1 = 0 ] ; then mv $tmpfile services fi +if [ -f /sbin/mount.smb ]; then + rm -f /sbin/mount.smb +fi +if [ -f /sbin/mount.smbfs ]; then + rm -f /sbin/mount.smbfs +fi + %triggerpostun -- samba < samba-2.0.0 if [ $0 != 0 ]; then /sbin/chkconfig --add smb @@ -287,6 +361,7 @@ fi %attr(-,root,root) %{prefix}/sbin/smbmount %attr(-,root,root) %{prefix}/sbin/smbumount %attr(-,root,root) /sbin/mount.smbfs +%attr(-,root,root) /sbin/mount.smb %attr(0750,root,root) %{prefix}/sbin/samba %attr(-,root,root) %{prefix}/bin/addtosmbpass %attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh @@ -299,76 +374,45 @@ fi %attr(-,root,root) %{prefix}/bin/smbstatus %attr(-,root,root) %{prefix}/bin/nmblookup %attr(-,root,root) %{prefix}/bin/make_smbcodepage +%attr(-,root,root) %{prefix}/bin/make_unicodemap %attr(-,root,root) %{prefix}/bin/make_printerdef %attr(-,root,root) %{prefix}/bin/smbpasswd %attr(-,root,root) %{prefix}/bin/smbtar %attr(-,root,root) %{prefix}/bin/smbprint %attr(-,root,root) %{prefix}/bin/smbadduser -%attr(-,root,root) %{prefix}/share/swat/help/welcome.html -%attr(-,root,root) %{prefix}/share/swat/help/DOMAIN_MEMBER.html -%attr(-,root,root) %{prefix}/share/swat/help/NT_Security.html -%attr(-,root,root) %{prefix}/share/swat/help/lmhosts.5.html -%attr(-,root,root) %{prefix}/share/swat/help/make_smbcodepage.1.html -%attr(-,root,root) %{prefix}/share/swat/help/nmbd.8.html -%attr(-,root,root) %{prefix}/share/swat/help/nmblookup.1.html -%attr(-,root,root) %{prefix}/share/swat/help/samba.7.html -%attr(-,root,root) %{prefix}/share/swat/help/smb.conf.5.html -%attr(-,root,root) %{prefix}/share/swat/help/smbclient.1.html -%attr(-,root,root) %{prefix}/share/swat/help/smbspool.8.html -%attr(-,root,root) %{prefix}/share/swat/help/smbd.8.html -%attr(-,root,root) %{prefix}/share/swat/help/smbpasswd.5.html -%attr(-,root,root) %{prefix}/share/swat/help/smbpasswd.8.html -%attr(-,root,root) %{prefix}/share/swat/help/smbrun.1.html -%attr(-,root,root) %{prefix}/share/swat/help/smbstatus.1.html -%attr(-,root,root) %{prefix}/share/swat/help/smbtar.1.html -%attr(-,root,root) %{prefix}/share/swat/help/swat.8.html -%attr(-,root,root) %{prefix}/share/swat/help/testparm.1.html -%attr(-,root,root) %{prefix}/share/swat/help/testprns.1.html -%attr(-,root,root) %{prefix}/share/swat/images/globals.gif -%attr(-,root,root) %{prefix}/share/swat/images/home.gif -%attr(-,root,root) %{prefix}/share/swat/images/passwd.gif -%attr(-,root,root) %{prefix}/share/swat/images/printers.gif -%attr(-,root,root) %{prefix}/share/swat/images/shares.gif -%attr(-,root,root) %{prefix}/share/swat/images/samba.gif -%attr(-,root,root) %{prefix}/share/swat/images/status.gif -%attr(-,root,root) %{prefix}/share/swat/images/viewconfig.gif +%attr(755,root,root) /lib/libnss_wins.s* +%attr(-,root,root) %{prefix}/share/swat/help/* +%attr(-,root,root) %{prefix}/share/swat/images/* %attr(-,root,root) %{prefix}/share/swat/include/header.html %attr(-,root,root) %{prefix}/share/swat/include/footer.html +%attr(-,root,root) %{prefix}/share/swat/using_samba/* %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) %{prefix}/man/man1/smbstatus.1 -%attr(-,root,root) %{prefix}/man/man1/smbclient.1 +%attr(-,root,root) /etc/codepages/src/codepage_def.* %attr(-,root,root) %{prefix}/man/man1/make_smbcodepage.1 +%attr(-,root,root) %{prefix}/man/man1/make_unicodemap.1 +%attr(-,root,root) %{prefix}/man/man1/nmblookup.1 +%attr(-,root,root) %{prefix}/man/man1/smbclient.1 %attr(-,root,root) %{prefix}/man/man1/smbrun.1 +%attr(-,root,root) %{prefix}/man/man1/smbstatus.1 %attr(-,root,root) %{prefix}/man/man1/smbtar.1 %attr(-,root,root) %{prefix}/man/man1/testparm.1 %attr(-,root,root) %{prefix}/man/man1/testprns.1 -%attr(-,root,root) %{prefix}/man/man1/nmblookup.1 -%attr(-,root,root) %{prefix}/man/man5/smb.conf.5 %attr(-,root,root) %{prefix}/man/man5/lmhosts.5 +%attr(-,root,root) %{prefix}/man/man5/smb.conf.5 %attr(-,root,root) %{prefix}/man/man5/smbpasswd.5 %attr(-,root,root) %{prefix}/man/man7/samba.7 -%attr(-,root,root) %{prefix}/man/man8/smbd.8 %attr(-,root,root) %{prefix}/man/man8/nmbd.8 -%attr(-,root,root) %{prefix}/man/man8/smbpasswd.8 -%attr(-,root,root) %{prefix}/man/man8/swat.8 +%attr(-,root,root) %{prefix}/man/man8/smbd.8 %attr(-,root,root) %{prefix}/man/man8/smbmnt.8 %attr(-,root,root) %{prefix}/man/man8/smbmount.8 +%attr(-,root,root) %{prefix}/man/man8/smbpasswd.8 %attr(-,root,root) %{prefix}/man/man8/smbspool.8 +%attr(-,root,root) %{prefix}/man/man8/swat.8 %attr(-,root,nobody) %dir /home/samba %attr(-,root,root) %dir /etc/codepages %attr(-,root,root) %dir /etc/codepages/src diff --git a/packaging/SGI/STATUS..LCK b/packaging/SGI/STATUS..LCK deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 4d472dc070..82a49ee31a 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -208,7 +208,7 @@ while (@sorted) { print IDB "d 0755 root sys usr/samba/src/$nextfile $SRCPFX/$nextfile $PKG.src.samba\n"; } else { - if (grep((/\.sh$/ | /configure$/ | /configure\.developer/ | /config\.guess/ | /config\.sub/ | /\.pl$/ | /mkman$/),$nextfile)) { + if (grep((/\.sh$/ | /configure$/ | /configure\.developer/ | /config\.guess/ | /config\.sub/ | /\.pl$/ | /mkman$/ | /pcp\/Install/ | /pcp\/Remove/),$nextfile)) { print IDB "f 0755 root sys usr/samba/src/$nextfile $SRCPFX/$nextfile $PKG.src.samba\n"; } else { @@ -233,7 +233,6 @@ while (@swatfiles) { print IDB "d 0755 root sys usr/samba/var $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 root sys usr/samba/var/locks $SRCPFX/packaging/SGI $PKG.sw.base\n"; -print IDB "f 0644 root sys usr/samba/var/locks/STATUS..LCK $SRCPFX/packaging/SGI/STATUS..LCK $PKG.sw.base\n"; if ($PKG eq "samba_irix") { while(@books) { diff --git a/packaging/SGI/inetd.sh b/packaging/SGI/inetd.sh index 8c4c6cb8d8..1d403978ae 100755 --- a/packaging/SGI/inetd.sh +++ b/packaging/SGI/inetd.sh @@ -8,8 +8,12 @@ chkconfig samba off # # add SAMBA deamons to inetd.conf # -cp /etc/inetd.conf /etc/inetd.O -sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.O > /etc/inetd.conf +cp /etc/inetd.conf /etc/inetd.conf.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi + +sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.conf.O > /etc/inetd.conf echo '#SAMBA services' >> /etc/inetd.conf echo netbios-ssn stream tcp nowait root /usr/samba/bin/smbd smbd >> /etc/inetd.conf echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc/inetd.conf @@ -18,6 +22,10 @@ echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc # add SAMBA service ports to /etc/services # cp /etc/services /etc/services.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi + sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/services.O > /etc/services echo '#SAMBA services' >> /etc/services echo 'netbios-ns 137/udp # SAMBA' >> /etc/services diff --git a/packaging/SGI/inst.msg b/packaging/SGI/inst.msg index 248e990c4a..4d8bab389c 100755 --- a/packaging/SGI/inst.msg +++ b/packaging/SGI/inst.msg @@ -12,7 +12,7 @@ echo echo http://`hostname`:901 echo echo The original versions of /etc/services and -echo /etc/inetd.conf were saved echo with a .O extension. +echo /etc/inetd.conf were saved with a .O extension. echo echo If you do not wish SWAT to be enabled you may echo run the script /usr/samba/scripts/removeswat.sh diff --git a/packaging/SGI/removeswat.sh b/packaging/SGI/removeswat.sh index 6834b25665..7a4745345b 100755 --- a/packaging/SGI/removeswat.sh +++ b/packaging/SGI/removeswat.sh @@ -2,13 +2,21 @@ # # remove SWAT deamon from inetd.conf # -cp /etc/inetd.conf /etc/inetd.O -sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf +cp /etc/inetd.conf /etc/inetd.conf.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi + +sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.conf.O > /etc/inetd.conf # # remove SWAT service port from /etc/services # cp /etc/services /etc/services.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi + sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services # diff --git a/packaging/SGI/startswat.sh b/packaging/SGI/startswat.sh index c2fc9fb467..2a0333020f 100755 --- a/packaging/SGI/startswat.sh +++ b/packaging/SGI/startswat.sh @@ -2,8 +2,12 @@ # # 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 +cp /etc/inetd.conf /etc/inetd.conf.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi + +sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.conf.O > /etc/inetd.conf echo '#SWAT services' >> /etc/inetd.conf echo swat stream tcp nowait root /usr/samba/bin/swat swat >> /etc/inetd.conf @@ -11,6 +15,10 @@ echo swat stream tcp nowait root /usr/samba/bin/swat swat >> /etc/inetd.con # add SWAT service port to /etc/services # cp /etc/services /etc/services.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi + sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services echo '#SWAT services' >> /etc/services echo 'swat 901/tcp # SWAT' >> /etc/services -- cgit From 441f61d6bc9c2a11f712add8b08a579bdb4057aa Mon Sep 17 00:00:00 2001 From: David O'Neill Date: Fri, 5 Jan 2001 18:05:52 +0000 Subject: Add SuSE 7.1 packaging (from SAMBA_2_2). (This used to be commit 69f28a868a7e78b8b93bbf7dcf21bf6fd813c12d) --- packaging/SuSE/7.1/samba-2.2.0-alpha0.dif | 224 ++++++++++++++++++ packaging/SuSE/7.1/samba.pamd | 3 + packaging/SuSE/7.1/samba.spec | 381 ++++++++++++++++++++++++++++++ 3 files changed, 608 insertions(+) create mode 100644 packaging/SuSE/7.1/samba-2.2.0-alpha0.dif create mode 100644 packaging/SuSE/7.1/samba.pamd create mode 100644 packaging/SuSE/7.1/samba.spec (limited to 'packaging') diff --git a/packaging/SuSE/7.1/samba-2.2.0-alpha0.dif b/packaging/SuSE/7.1/samba-2.2.0-alpha0.dif new file mode 100644 index 0000000000..75bfdf18c6 --- /dev/null +++ b/packaging/SuSE/7.1/samba-2.2.0-alpha0.dif @@ -0,0 +1,224 @@ +--- lmhosts ++++ lmhosts 2000/08/28 07:32:33 +@@ -0,0 +1,8 @@ ++# This file provides the same function that the ++# lmhosts file does for Windows. ++# It provides another way to map netbios names to ip addresses. ++# See the section on 'name resolve order' in the manual page to ++# smb.conf for more information. ++ ++# Sample entry: ++# 192.168.1.1 samba +--- mount.smbfs ++++ mount.smbfs 2000/08/28 07:32:55 +@@ -0,0 +1,14 @@ ++#!/bin/sh ++# ++# Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. All rights reserved. ++# ++# Author: Carsten Hoeger ++# ++# /sbin/mount.smbfs ++# ++# I'm called by the mount-command and smbmount want's to get ++# called by me, so lets do it. ++# ++# P.S.: This is a very very raw solution and I don't know, if this ++# is intentionally. ++smbmount "$@" +--- rc ++++ rc 2000/08/28 07:32:33 +@@ -0,0 +1,53 @@ ++#! /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 ++ ++# Determine the base and follow a runlevel link name. ++base=${0##*/} ++link=${base#*[SK][0-9][0-9]} ++ ++# Force execution if not called by a runlevel directory. ++test $link = $base && START_SMB=yes ++test "$START_SMB" = "yes" || exit 0 ++ ++# The echo return value for success (defined in /etc/rc.config). ++return=$rc_done ++case "$1" in ++ start) ++ echo -n "Starting SMB services:" ++ startproc /usr/sbin/nmbd -D || return=$rc_failed ++ startproc /usr/sbin/smbd -D || return=$rc_failed ++ echo -e "$return" ++ ;; ++ stop) ++ echo -n "Shutting down SMB services:" ++ killproc -TERM /usr/sbin/nmbd || return=$rc_failed ++ killproc -TERM /usr/sbin/smbd || return=$rc_failed ++ echo -e "$return" ++ ;; ++ restart|reload) ++ echo -n "Reloading SMB services:" ++ killproc -HUP /usr/sbin/nmbd || return=$rc_failed ++ killproc -HUP /usr/sbin/smbd || return=$rc_failed ++ echo -e "$return" ++ ;; ++ status) ++ echo -n "Checking for service smb: " ++ checkproc /usr/sbin/nmbd && echo -n "OK " || echo -n "No process " ++ checkproc /usr/sbin/smbd && echo "OK " || echo "No process" ++ ;; ++ *) ++ echo "Usage: $0 {start|stop|restart|reload|status}" ++ exit 1 ++esac ++ ++# Inform the caller not only verbosely and set an exit status. ++test "$return" = "$rc_done" || exit 1 ++exit 0 +--- rc.config.samba ++++ rc.config.samba 2000/08/28 07:32:33 +@@ -0,0 +1,5 @@ ++# ++# start samba? ("yes" or "no") ++# Windows 95 / NT - File- and Printservices ++# ++START_SMB="no" +--- smb.conf ++++ smb.conf 2000/08/28 07:32:33 +@@ -0,0 +1,80 @@ ++; ++; /etc/smb.conf ++; ++; Copyright (c) 1999 SuSE GmbH Nuernberg, Germany. ++; ++[global] ++ workgroup = arbeitsgruppe ++ guest account = nobody ++ keep alive = 30 ++ os level = 2 ++ kernel oplocks = false ++ security = user ++ ++; Uncomment the following, if you want to use an existing ++; NT-Server to authenticate users, but don't forget that ++; you also have to create them locally!!! ++; security = server ++; password server = 192.168.1.10 ++; encrypt passwords = yes ++ ++ printing = bsd ++ printcap name = /etc/printcap ++ load printers = yes ++ ++ socket options = TCP_NODELAY ++ ++ map to guest = Bad User ++ ++; Uncomment this, if you want to integrate your server ++; into an existing net e.g. with NT-WS to prevent nettraffic ++; local master = no ++ ++; 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 ++ ++; Do you wan't samba to act as a logon-server for ++; your windows 95/98 clients, so uncomment the ++; following: ++; logon script =%U.bat ++; domain logons = yes ++; domain master = yes ++; [netlogon] ++; path = /netlogon ++ ++ ++[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 = /cdrom ++; read only = yes ++; locking = no ++ ++[printers] ++ comment = All Printers ++ browseable = no ++ printable = yes ++ public = no ++ read only = yes ++ create mode = 0700 ++ directory = /tmp +--- smbfs ++++ smbfs 2000/08/28 07:32:33 +@@ -0,0 +1,40 @@ ++#! /bin/bash ++# Copyright (c) 1996 SuSE GmbH Nuernberg, Germany. All rights reserved. ++# ++# Author: Thomas Fehr , 1999 ++# ++# /sbin/init.d/smbfs ++# ++ ++smbfs=no ++if [ `cat /proc/mounts | grep " smbfs " | wc -l` -gt 0 ] ++then ++ smbfs=yes ++fi ++ ++return=$rc_done ++case "$1" in ++ start|reload) ++ ;; ++ stop) ++ if [ "$smbfs" = "yes" ] ++ then ++ echo -n "Remove SMB File System" ++ # ++ # Unmount in background because during long timeouts ++ # ++ umount -at smbfs & ++ sleep 2 ++ echo -e "$return" ++ fi ++ ;; ++ restart) ++ $0 stop && $0 start || return=$rc_failed ++ ;; ++ status) ++ ;; ++ *) ++ echo "Usage: $0 {start|stop|status|reload|restart}" ++ exit 1 ++esac ++exit 0 +--- smbpasswd ++++ smbpasswd 2000/08/28 07:32:33 +@@ -0,0 +1,3 @@ ++# Sample smbpasswd file. ++# To use this, set 'encrypt passwords = yes' in the [global]-section ++# of /etc/smb.conf diff --git a/packaging/SuSE/7.1/samba.pamd b/packaging/SuSE/7.1/samba.pamd new file mode 100644 index 0000000000..d9e7088bea --- /dev/null +++ b/packaging/SuSE/7.1/samba.pamd @@ -0,0 +1,3 @@ +#%PAM-1.0 +auth required /lib/security/pam_unix.so +account required /lib/security/pam_unix.so diff --git a/packaging/SuSE/7.1/samba.spec b/packaging/SuSE/7.1/samba.spec new file mode 100644 index 0000000000..60d8099edb --- /dev/null +++ b/packaging/SuSE/7.1/samba.spec @@ -0,0 +1,381 @@ +# +# spec file for package samba (Version 2.0.7) +# +# Copyright (c) 2000 SuSE GmbH Nuernberg, Germany. +# +# please send bugfixes or comments to feedback@suse.de. +# + +# neededforbuild automake openldap +# usedforbuild aaa_base aaa_dir autoconf automake base bash bindutil binutils bison bzip compress cpio cracklib devs diff ext2fs file fileutil find flex gawk gcc gdbm gettext gpm gppshare groff gzip kbd less libc libtool libz lx_suse make mktemp modules ncurses net_tool netcfg nkita nkitb nssv1 openldap pam patch perl pgp ps rcs rpm sendmail sh_utils shadow shlibs strace syslogd sysvinit texinfo textutil timezone unzip util vim xdevel xf86 xshared + +Vendor: SuSE GmbH, Nuernberg, Germany +Distribution: SuSE Linux 7.1a (i386) +Name: samba +Release: 0 +Packager: feedback@suse.de + +Copyright: 1992-95 Andrew Tridgell, Karl Auer, Jeremy Allison +Group: Networking/Daemons +Url: http://www.samba.org +Provides: samba smbfs +Requires: smbclnt +Autoreqprov: on +Version: 2.2 +Summary: An SMB file server for Unix +Source: samba-2.2.0-alpha0.tar.gz +Source1: samba.pamd +Patch: samba-2.2.0-alpha0.dif +%package -n smbclnt +Summary: Samba client utilities +Autoreqprov: on +Group: Networking +%prep +%setup -n samba-2.2.0-alpha0 +%patch + +%build +cd source +%{?suse_update_config:%{suse_update_config -f}} +LIBS=-lnsl \ +./configure --prefix=/usr --libdir=/etc \ + --with-privatedir=/etc --localstatedir=/var/log \ + --with-smbmount --with-pam \ + --mandir=%{_mandir} \ + --with-swatdir=/usr/lib/samba/swat \ + --with-sambabook=/usr/lib/samba/swat/using_samba +cd .. +make LOCKDIR=/var/lock/samba SBINDIR=/usr/sbin \ + CODEPAGEDIR=/usr/lib/samba/codepages -C source + +%install +mkdir -p /usr/lib/samba +make install LOCKDIR=/var/lock/samba SBINDIR=/usr/sbin \ + CODEPAGEDIR=/usr/lib/samba/codepages -C source +# cleanup docs +rm -rf docs/*.[0-9] +chmod 644 `find docs examples -type f` +chmod 755 `find docs examples -type d` +#utility scripts +mkdir -p /usr/lib/samba/scripts +cp -a source/script/* /usr/lib/samba/scripts +# configuration files +install -m 644 smb.conf /etc/smb.conf +install -m 644 lmhosts /etc/lmhosts +install -m 600 smbpasswd -o root -g root /etc/smbpasswd +install -d 755 /etc/pam.d +install -m 644 $RPM_SOURCE_DIR/samba.pamd /etc/pam.d/samba +install -m 755 mount.smbfs /sbin/mount.smbfs +# start script +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 +ln -sf ../../sbin/init.d/smb /usr/sbin/rcsmb +install smbfs /sbin/init.d/smbfs +ln -sf ../smbfs /sbin/init.d/rc2.d/S21smbfs +ln -sf ../smbfs /sbin/init.d/rc2.d/K19smbfs +ln -sf ../smbfs /sbin/init.d/rc3.d/S21smbfs +ln -sf ../smbfs /sbin/init.d/rc3.d/K19smbfs +ln -sf ../../sbin/init.d/smbfs /usr/sbin/rcsmbfs +# rc.config fragment +mkdir -p /var/adm/fillup-templates +cp rc.config.samba /var/adm/fillup-templates +%{?suse_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 +if grep -q '^[#[:space:]]*swat' etc/inetd.conf ; then + echo /etc/inetd.conf is up to date +else + echo updating inetd.conf + cat >> etc/inetd.conf << EOF +# swat is the Samba Web Administration Tool +swat stream tcp nowait.400 root /usr/sbin/swat swat +EOF +fi +if grep -q '^swat' etc/services ; then + echo /etc/services is up to date +else + echo updating services + cat >> etc/services << EOF +swat 901/tcp # swat is the Samba Web Administration Tool +EOF +fi +mkdir -p var/adm/notify/messages +cat << EOF > var/adm/notify/messages/samba-notify +Achtung! +======== +Die Syntax des smbmount Kommandos hat sich geaendert! +smbmount kann nicht mehr direkt aufgerufen werden. Es wird von einem +Shellscript /sbin/mount.smbfs aufgerufen, welches wiederum von mount +aufgerufen wird. +Hier ein Beispielaufruf: +mount -t smbfs -o username=uname,password=passwd //smbserv/share /destination +***************************************************************************** +Attention! +========== +The syntax of smbmount has changed! +smbmount can not be called direct anymore. It will be called by a shell +script /sbin/mount.smbfs, which will be called by mount. +A sample call to smbfs: +mount -t smbfs -o username=uname,password=passwd //smbserv/share /destination +EOF + +%files +%config(noreplace) /etc/smb.conf +%config(noreplace) /etc/lmhosts +%config(noreplace) /etc/smbpasswd +%config /etc/pam.d/samba +/usr/lib/samba +/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/convert_smbpasswd +/usr/bin/make_printerdef +/usr/bin/make_smbcodepage +/usr/bin/make_unicodemap +/usr/bin/smbpasswd +/usr/bin/smbstatus +/usr/bin/testparm +/usr/bin/testprns +%doc docs/* examples +%doc %{_mandir}/man1/make_smbcodepage.1.gz +%doc %{_mandir}/man1/make_unicodemap.1.gz +%doc %{_mandir}/man1/smbrun.1.gz +%doc %{_mandir}/man1/smbsh.1.gz +%doc %{_mandir}/man1/smbstatus.1.gz +%doc %{_mandir}/man1/testparm.1.gz +%doc %{_mandir}/man1/testprns.1.gz +%doc %{_mandir}/man5/lmhosts.5.gz +%doc %{_mandir}/man5/smb.conf.5.gz +%doc %{_mandir}/man5/smbpasswd.5.gz +%doc %{_mandir}/man7/samba.7.gz +%doc %{_mandir}/man8/nmbd.8.gz +%doc %{_mandir}/man8/smbd.8.gz +%doc %{_mandir}/man8/smbpasswd.8.gz +%doc %{_mandir}/man8/swat.8.gz +/usr/sbin/nmbd +/usr/sbin/rcsmb +/usr/sbin/smbd +/usr/sbin/swat +/var/adm/fillup-templates/rc.config.samba + +%files -n smbclnt +/sbin/init.d/rc2.d/K19smbfs +/sbin/init.d/rc2.d/S21smbfs +/sbin/init.d/rc3.d/K19smbfs +/sbin/init.d/rc3.d/S21smbfs +%config /sbin/init.d/smbfs +/usr/sbin/rcsmbfs +/sbin/mount.smbfs +/usr/bin/nmblookup +/usr/bin/rpcclient +/usr/bin/smbclient +/usr/bin/smbmnt +/usr/bin/smbmount +/usr/bin/smbumount +/usr/bin/smbspool +/usr/bin/smbtar +%doc %{_mandir}/man1/nmblookup.1.gz +%doc %{_mandir}/man1/smbclient.1.gz +%doc %{_mandir}/man1/smbtar.1.gz +%doc %{_mandir}/man8/smbmnt.8.gz +%doc %{_mandir}/man8/smbmount.8.gz +%doc %{_mandir}/man8/smbspool.8.gz +%doc %{_mandir}/man8/smbumount.8.gz + +%description +Samba is a suite of programs which work together to allow clients to +access Unix filespace and printers via the SMB protocol (Server Message +Block). +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 . + +Authors: +-------- + Andrew Tridgell + Karl Auer + Jeremy Allison + +SuSE series: n + + +%description -n smbclnt +This package contains all programs, that are needed to act as a samba +client. This includes also smbmount, of course. + +Authors: +-------- + Andrew Tridgell + Karl Auer + Jeremy Allison + +SuSE series: n + + +%changelog -n samba +* Mon Aug 28 2000 - choeger@suse.de +- changed $* to "$@" in mount.smbfs to make it also + possible to mount shares with spaces +* Mon Jul 31 2000 - choeger@suse.de +- improvement for rcsmb +- fix for spec-file to compile with NIS netgroups +* Thu Jul 20 2000 - choeger@suse.de +- added smbfs initscript that has been removed + by an error +* Tue Jul 11 2000 - choeger@suse.de +- split package into client and server parts + client package name: smbclnt +* Wed Apr 26 2000 - choeger@suse.de +- new version, 2.0.7 +* Thu Apr 06 2000 - ro@suse.de +- removed pam,cracklib from neededforbuild: build handles this +* Wed Apr 05 2000 - bk@suse.de +- s390 team added config.{sub,guess} update macro for s390 +* Mon Mar 27 2000 - choeger@suse.de +- fixed bug in specfile + the multilined configure call missed a "" :-( +* Thu Mar 09 2000 - choeger@suse.de +- fixed typo in specfile +* Wed Mar 01 2000 - choeger@suse.de +- added %{_mandir} +* Tue Feb 08 2000 - choeger@suse.de +- removed /sbin/init.d/smbfs because it is no longer needed +* Mon Jan 03 2000 - choeger@suse.de +- bugfix for ipc.c + to make roaming profiles work again. +* Tue Nov 30 1999 - choeger@suse.de +- changed kernel oplocks = off to + kernel oplocks = false +* Tue Nov 16 1999 - choeger@suse.de +- added kernel oplocks = off in smb.conf +* Fri Nov 12 1999 - choeger@suse.de +- new version, 2.0.6 +* Fri Nov 05 1999 - choeger@suse.de +- Fix for the smbmount lost-connection problem + _seems_ to work... +* Fri Oct 29 1999 - choeger@suse.de +- removed comment sign in /etc/inetd.conf for swat +* Mon Sep 13 1999 - bs@suse.de +- ran old prepare_spec on spec file to switch to new prepare_spec. +* Tue Aug 10 1999 - fehr@suse.de +- set execute permissions for mksmbpasswd.sh and changesmbpasswd.sh +* Thu Jul 29 1999 - fehr@suse.de +- fixed typo in /sbin/init.d/smbfs +* Thu Jul 22 1999 - fehr@suse.de +- changed to new version 2.0.5a +* Wed Jul 21 1999 - fehr@suse.de +- changed to new version 2.0.5 +* Tue Jul 20 1999 - fehr@suse.de +- install /sbin/init.d/smbfs +- changed to new version 2.0.5pre4 +* Mon Jul 19 1999 - fehr@suse.de +- add /sbin/init.d/smbfs +- changed to new version 2.0.5pre3 +* Fri Jul 02 1999 - fehr@suse.de +- removed "umount -a -t smbfs" from start sscript +* Tue Jun 22 1999 - kukuk@suse.de +- 2.0.4b changed default values, enable PAM again +* Fri Jun 18 1999 - kukuk@suse.de +- changed to new version 2.0.4b +* Mon Jun 14 1999 - kukuk@suse.de +- Enable PAM, add samba.pamd +* Mon May 03 1999 - fehr@suse.de +- add umount -a -t smbfs to shutdown sequence of samba +* Thu Mar 11 1999 - ro@suse.de +- smbmount: define NR_OPEN to 1024 if undefined (GLIBC-2.1) +* Wed Mar 10 1999 - choeger@suse.de +- some enhancements for smb.conf +* Wed Mar 10 1999 - choeger@suse.de +- new version 2.0.3 and smbmount now seems to work +* Tue Mar 09 1999 - ro@suse.de +- use samba-2.0.2 for STABLE +- use smbfs-2.1 with kernel 2.2.2 +* Sun Feb 28 1999 - ro@suse.de +- for glibc-2.1 strncat uses strcat for one subcase, so don't + redefine strcat to "ERROR" for glibc-2.1 +* Mon Feb 15 1999 - fehr@suse.de +- fix for umount problem from Volker +* Tue Feb 09 1999 - fehr@suse.de +- changed to version 2.0.2 of samba +* Fri Jan 15 1999 - bs@suse.de +- replaced /sbin/init.d/smb with newer style version (again) +* Fri Jan 15 1999 - fehr@suse.de +- switched to new version 2.0.0 +* Wed Jan 13 1999 - bs@suse.de +- fixed entry in inetd.conf +* Wed Jan 13 1999 - bs@suse.de +- replaced /sbin/init.d/smb with newer style version +* Mon Jan 11 1999 - vl@suse.de +- make 2.0.0beta5 package of samba +* Mon Aug 24 1998 - vl@suse.de +- changed to version 1.9.18p10 +* Mon Jun 29 1998 - vl@suse.de +- changed to version 1.9.18p8 +* Mon Apr 20 1998 - vl@suse.de +- changed to version 1.9.18p4 +* Thu Feb 19 1998 - vl@suse.de +- changed to version 1.9.18p3 +* Tue Feb 03 1998 - vl@suse.de +- changed to version 1.9.18p2 +- fixed some problems in spec-file, some files were missing :-( +- fixed smbfs-2.0.2/Makefile.Linux +* Tue Jan 13 1998 - vl@suse.de +- changed to version 1.9.18p1 +* Fri Jan 09 1998 - vl@suse.de +- changed to version 1.9.18 +* Tue Dec 02 1997 - bs@suse.de +- disable samba by default in /etc/rc.config +* Mon Oct 06 1997 - fehr@suse.de +- package prepared for automatic building +* Mon Sep 29 1997 - fehr@suse.de +- updated to version 1.9.17p2 due to security hole. +* Wed Jul 16 1997 - fehr@suse.de +- add fillup-template for rc.config and install it in doinst.sh +* Fri Jun 27 1997 - bs@suse.de +- update to smbfs-2.0.2, due to security hole. +* Tue Jun 17 1997 - fehr@suse.de +- changed init-skript to recognize entry START_SMB of rc.config +* Mon Jun 02 1997 - vl@suse.de +- update to version 1.9.16p11 +- Starting Samba from /sbin/init.d, not from inetd.conf +* Sun Feb 02 1997 - vl@suse.de +- update to version 1.9.16p10 +- Adapted /etc/smb.conf.sample to 4.4.1 manual +* Thu Jan 02 1997 - florian@suse.de +- update to version 1.9.16p9 +- configuration file is now /etc/smb.conf +- smbd and nmbd are now in /usr/sbin +- added start-script /sbin/init.d/smb and entry in /etc/rc.config +* Thu Jan 02 1997 - florian@suse.de +- Update auf neue Version 1.9.16p6. -- cgit From 362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e Mon Sep 17 00:00:00 2001 From: Shirish Kalele Date: Wed, 11 Apr 2001 02:28:38 +0000 Subject: Adding Solaris packaging files to HEAD. (This used to be commit 3ac5f6b59ee30d12bfec0cc36cf00b9e9798a453) --- packaging/Solaris/README | 18 +++++ packaging/Solaris/copyright | 1 + packaging/Solaris/i.swat | 44 ++++++++++++ packaging/Solaris/inetd.conf.master | 1 + packaging/Solaris/makepkg.sh | 122 ++++++++++++++++++++++++++++++++++ packaging/Solaris/pkginfo.master | 12 ++++ packaging/Solaris/preremove | 12 ++++ packaging/Solaris/prototype.master | 84 +++++++++++++++++++++++ packaging/Solaris/r.swat | 16 +++++ packaging/Solaris/request | 17 +++++ packaging/Solaris/samba.server.master | 48 +++++++++++++ packaging/Solaris/services | 1 + 12 files changed, 376 insertions(+) create mode 100644 packaging/Solaris/README create mode 100644 packaging/Solaris/copyright create mode 100644 packaging/Solaris/i.swat create mode 100644 packaging/Solaris/inetd.conf.master create mode 100755 packaging/Solaris/makepkg.sh create mode 100644 packaging/Solaris/pkginfo.master create mode 100644 packaging/Solaris/preremove create mode 100644 packaging/Solaris/prototype.master create mode 100644 packaging/Solaris/r.swat create mode 100644 packaging/Solaris/request create mode 100755 packaging/Solaris/samba.server.master create mode 100644 packaging/Solaris/services (limited to 'packaging') diff --git a/packaging/Solaris/README b/packaging/Solaris/README new file mode 100644 index 0000000000..b918cf9173 --- /dev/null +++ b/packaging/Solaris/README @@ -0,0 +1,18 @@ + +INSTRUCTIONS: Preparing Samba packages for Solaris + +To produce a package: + +* Build the binaries (by running ./configure; make; in the source directory) +* Type sh makepkg.sh + +The package will be created in the /tmp directory. + +By default, the package will be built to install samba in /usr/local +To change the default, modify the INSTALL_BASE variable in makepkg.sh +This is after you have configured samba with a --prefix option of the +alternate samba location and then created the binaries. + +Shirish Kalele +Date: 2000.01.12 + diff --git a/packaging/Solaris/copyright b/packaging/Solaris/copyright new file mode 100644 index 0000000000..1792668d17 --- /dev/null +++ b/packaging/Solaris/copyright @@ -0,0 +1 @@ +Copyright (C) 2001 Samba Team diff --git a/packaging/Solaris/i.swat b/packaging/Solaris/i.swat new file mode 100644 index 0000000000..047f0e1720 --- /dev/null +++ b/packaging/Solaris/i.swat @@ -0,0 +1,44 @@ +while read src dest +do + sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2 + cat $src >>/tmp/$$swat || exit 2 + + # Use cp;rm instead of mv because $dest might be a symlink + cp -f /tmp/$$swat $dest || exit 2 + rm -f /tmp/$$swat +done + +if [ "$1" = ENDOFCLASS ] +then + + # If local install, restart inetd + if [ -z "${PKG_INSTALL_ROOT}" ] + then + TARGET=`hostname` + kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'` + else + TARGET="" + fi + + cat <&2 + exit 1 + fi + + for p in $CODEPAGELIST; do + $DISTR_BASE/source/bin/make_smbcodepage c $p $DISTR_BASE/source/codepages/codepage_def.$p $DISTR_BASE/source/codepages/codepage.$p + echo f none samba/lib/codepages/codepage.$p=source/codepages/codepage.$p 0644 root other + done + + # Add the binaries, docs and SWAT files + + echo "#\n# Binaries \n#" + cd $DISTR_BASE/source/bin + for binfile in * + do + if [ -f $binfile ]; then + echo f none samba/bin/$binfile=source/bin/$binfile 0755 root other + fi + done + echo "#\n# HTML documentation \n#" + echo d none samba/docs/htmldocs 0755 root other + cd $DISTR_BASE/docs/htmldocs + for htmldoc in * + do + if [ -f $htmldoc ]; then + echo f none samba/docs/htmldocs/$htmldoc=docs/htmldocs/$htmldoc 0644 root other + fi + done + echo "#\n# Text Docs \n#" + echo d none samba/docs/textdocs 0755 root other + cd $DISTR_BASE/docs/textdocs + for textdoc in * + do + if [ -f $textdoc ]; then + echo f none samba/docs/textdocs/$textdoc=docs/textdocs/$textdoc 0644 root other + fi + done + echo "#\n# SWAT \n#" + cd $DISTR_BASE + list=`find swat -type d` + for i in $list + do + echo "d none samba/$i 0755 root other" + done + list=`find swat -type f` + for i in $list + do + echo "f none samba/$i=$i 0644 root other" + done + echo "#\n# HTML documentation for SWAT\n#" + cd $DISTR_BASE/docs/htmldocs + for htmldoc in * + do + if [ -f $htmldoc ]; then + echo f none samba/swat/help/$htmldoc=docs/htmldocs/$htmldoc 0644 root other + fi + done + +} + +if [ $# = 0 ] +then + # Try to guess the distribution base.. + CURR_DIR=`pwd` + DISTR_BASE=`echo $CURR_DIR | sed 's|\(.*\)/packaging.*|\1|'` + echo "Assuming Samba distribution is rooted at $DISTR_BASE.." +else + DISTR_BASE=$1 +fi + +# +if [ ! -d $DISTR_BASE ]; then + echo "Source build directory $DISTR_BASE does not exist." + exit 1 +fi + +# Set up the prototype file from prototype.master +if [ -f prototype ]; then + rm prototype +fi + +# Setup version from version.h +VERSION=`sed 's/#define VERSION \"\(.*\)\"$/\1/' ../../source/include/version.h` +sed -e "s|__VERSION__|$VERSION|" -e "s|__ARCH__|`uname -p`|" -e "s|__BASEDIR__|$INSTALL_BASE|g" pkginfo.master >pkginfo + +sed -e "s|__BASEDIR__|$INSTALL_BASE|g" inetd.conf.master >inetd.conf +sed -e "s|__BASEDIR__|$INSTALL_BASE|g" samba.server.master >samba.server + +cp prototype.master prototype + +# Add the dynamic part to the prototype file +(add_dynamic_entries >> prototype) + +# Create the package +pkgmk -o -d /tmp -b $DISTR_BASE -f prototype +if [ $? = 0 ] +then + pkgtrans /tmp samba.pkg samba +fi +echo The samba package is in /tmp +rm -f prototype diff --git a/packaging/Solaris/pkginfo.master b/packaging/Solaris/pkginfo.master new file mode 100644 index 0000000000..33e7cdb471 --- /dev/null +++ b/packaging/Solaris/pkginfo.master @@ -0,0 +1,12 @@ +PKG=samba +NAME=SMB based file/printer sharing +ARCH=__ARCH__ +VERSION=__VERSION__ +CATEGORY=system +VENDOR=Samba Team +DESC=File and printer sharing for Windows workstations +HOTLINE=Please contact your local UNIX support group +EMAIL=samba@samba.org +CLASSES=none +BASEDIR=__BASEDIR__ +INTONLY=1 diff --git a/packaging/Solaris/preremove b/packaging/Solaris/preremove new file mode 100644 index 0000000000..28e8d75c29 --- /dev/null +++ b/packaging/Solaris/preremove @@ -0,0 +1,12 @@ +#!/bin/sh + +# If this is a local deinstall, stop samba +if [ -z "$PKG_INSTALL_ROOT" ] +then + SMBD=`ps -e -o pid,comm | grep smbd | awk '{print $1}'` + NMBD=`ps -e -o pid,comm | grep nmbd | awk '{print $1}'` + [ ! -z "$SMBD" ] && kill $SMBD + [ ! -z "$NMBD" ] && kill $NMBD + sleep 2 +fi + diff --git a/packaging/Solaris/prototype.master b/packaging/Solaris/prototype.master new file mode 100644 index 0000000000..c63a9d1a42 --- /dev/null +++ b/packaging/Solaris/prototype.master @@ -0,0 +1,84 @@ +# +# The static master prototype file for the Samba package. +# For files that can't be dynamically added to the prototype file at +# package build time +# +# Information files. +# +i pkginfo=./pkginfo +i copyright=./copyright +i request=./request +i preremove=./preremove +i i.swat=./i.swat +i r.swat=./r.swat +# +# Stuff that goes into the system areas of the filesystem. +# +d initscript /etc ? ? ? +d initscript /etc/init.d ? ? ? +f initscript /etc/init.d/samba.server=packaging/Solaris/samba.server 0744 root sys +d initscript /etc/rc3.d ? ? ? +s initscript /etc/rc3.d/S99samba.server=../init.d/samba.server +# +# Stuff to set up SWAT +# +e swat /etc/services=packaging/Solaris/services ? ? ? +e swat /etc/inetd.conf=packaging/Solaris/inetd.conf ? ? ? +# +# Create the samba subtree. (Usually /usr/local/samba ) +# +d none samba 0755 root other +d none samba/var 0755 root other +d none samba/bin 0755 root other +d none samba/lib 0755 root other +d none samba/docs 0755 root other +# +# Scripts +# +f none samba/bin/smbtar=source/script/smbtar 0755 root other +f none samba/bin/addtosmbpass=source/script/addtosmbpass 0755 root other +f none samba/bin/convert_smbpasswd=source/script/convert_smbpasswd 0755 root other +f none samba/bin/mksmbpasswd.sh=source/script/mksmbpasswd.sh 0755 root other +# +# man pages +# +d none /usr ? ? ? +d none /usr/share ? ? ? +d none /usr/share/man ? ? ? +d none /usr/share/man/man1 ? ? ? +d none /usr/share/man/man5 ? ? ? +d none /usr/share/man/man7 ? ? ? +d none /usr/share/man/man8 ? ? ? +f none /usr/share/man/man1/make_smbcodepage.1=docs/manpages/make_smbcodepage.1 0644 root other +f none /usr/share/man/man1/nmblookup.1=docs/manpages/nmblookup.1 0644 root other +f none /usr/share/man/man1/smbclient.1=docs/manpages/smbclient.1 0644 root other +f none /usr/share/man/man1/smbrun.1=docs/manpages/smbrun.1 0644 root other +f none /usr/share/man/man1/smbsh.1=docs/manpages/smbsh.1 0644 root other +f none /usr/share/man/man1/smbstatus.1=docs/manpages/smbstatus.1 0644 root other +f none /usr/share/man/man1/smbtar.1=docs/manpages/smbtar.1 0644 root other +f none /usr/share/man/man1/testparm.1=docs/manpages/testparm.1 0644 root other +f none /usr/share/man/man1/testprns.1=docs/manpages/testprns.1 0644 root other +f none /usr/share/man/man5/lmhosts.5=docs/manpages/lmhosts.5 0644 root other +f none /usr/share/man/man5/smb.conf.5=docs/manpages/smb.conf.5 0644 root other +f none /usr/share/man/man5/smbpasswd.5=docs/manpages/smbpasswd.5 0644 root other +f none /usr/share/man/man7/samba.7=docs/manpages/samba.7 0644 root other +f none /usr/share/man/man8/nmbd.8=docs/manpages/nmbd.8 0644 root other +f none /usr/share/man/man8/smbd.8=docs/manpages/smbd.8 0644 root other +f none /usr/share/man/man8/smbmnt.8=docs/manpages/smbmnt.8 0644 root other +f none /usr/share/man/man8/smbmount.8=docs/manpages/smbmount.8 0644 root other +f none /usr/share/man/man8/smbpasswd.8=docs/manpages/smbpasswd.8 0644 root other +f none /usr/share/man/man8/smbumount.8=docs/manpages/smbumount.8 0644 root other +f none /usr/share/man/man8/swat.8=docs/manpages/swat.8 0644 root other +f none /usr/share/man/man8/smbspool.8=docs/manpages/smbspool.8 0644 root other +# +# Stuff that goes into lib +# +f none samba/lib/smb.conf.example=examples/smb.conf.default 0644 root other +d none samba/lib/regeditscripts 0755 root other +f none samba/lib/regeditscripts/NT4_PlainPassword.reg=docs/NT4_PlainPassword.reg 0444 root other +f none samba/lib/regeditscripts/Win95_PlainPassword.reg=docs/Win95_PlainPassword.reg 0444 root other +f none samba/lib/regeditscripts/Win98_PlainPassword.reg=docs/Win98_PlainPassword.reg 0444 root other +f none samba/lib/regeditscripts/Win2000_PlainPassword.reg=docs/Win2000_PlainPassword.reg 0444 root other +# +# Static part of prototype file ends. +# diff --git a/packaging/Solaris/r.swat b/packaging/Solaris/r.swat new file mode 100644 index 0000000000..11c776646d --- /dev/null +++ b/packaging/Solaris/r.swat @@ -0,0 +1,16 @@ +while read dest +do + sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2 + # Use cp;rm; instead of mv because $dest might be a symlink + cp -f /tmp/$$swat $dest || exit 2 + rm -f /tmp/$$swat +done + +if [ "$1" = ENDOFCLASS ] +then + if [ -z "$PKG_INSTALL_ROOT" ] + then + kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'` + fi +fi + diff --git a/packaging/Solaris/request b/packaging/Solaris/request new file mode 100644 index 0000000000..59cdd0ab22 --- /dev/null +++ b/packaging/Solaris/request @@ -0,0 +1,17 @@ +trap 'exit 3' 15 + +VALSTR=/usr/sadm/bin/valstr + +resp=`ckyorn -d y -p "Do you wish to have Samba start whenever the system boots up? (default:y) " -Q` +$VALSTR -r "^[yY]" $resp +[ $? -eq 0 ] && CLASSES="$CLASSES initscript" + +resp=`ckyorn -d y -p "Do you wish to set up the Samba Web Admin Tool (SWAT)? (default:y) " -Q` +$VALSTR -r "^[yY]" $resp +[ $? -eq 0 ] && CLASSES="$CLASSES swat" + +cat >$1 < Date: Fri, 13 Apr 2001 18:18:25 +0000 Subject: Adding the "Using Samba" book to the packaging in HEAD. (This used to be commit 4f06373bc450b27692619ae877d29767ad160297) --- packaging/Solaris/makepkg.sh | 44 ++++++++++++++++++++++++++++++++------ packaging/Solaris/prototype.master | 4 ++++ 2 files changed, 42 insertions(+), 6 deletions(-) (limited to 'packaging') diff --git a/packaging/Solaris/makepkg.sh b/packaging/Solaris/makepkg.sh index a2521179fa..ea15eafbc3 100755 --- a/packaging/Solaris/makepkg.sh +++ b/packaging/Solaris/makepkg.sh @@ -28,6 +28,20 @@ add_dynamic_entries() echo f none samba/lib/codepages/codepage.$p=source/codepages/codepage.$p 0644 root other done + # Create unicode maps + if [ ! -f $DISTR_BASE/source/bin/make_unicodemap ]; then + echo "Missing $DISTR_BASE/source/bin/make_unicodemap. Aborting." >&2 + exit 1 + fi + + # Pull in all the unicode map files from source/codepages/CP*.TXT + list=`find $DISTR_BASE/source/codepages -name "CP*.TXT" | sed 's|^.*CP\(.*\)\.TXT|\1|'` + for umap in $list + do + $DISTR_BASE/source/bin/make_unicodemap $umap $DISTR_BASE/source/codepages/CP$umap.TXT $DISTR_BASE/source/codepages/unicode_map.$umap + echo f none samba/lib/codepages/unicode_map.$umap=source/codepages/unicode_map.$umap 0644 root other + done + # Add the binaries, docs and SWAT files echo "#\n# Binaries \n#" @@ -39,14 +53,26 @@ add_dynamic_entries() fi done echo "#\n# HTML documentation \n#" - echo d none samba/docs/htmldocs 0755 root other - cd $DISTR_BASE/docs/htmldocs - for htmldoc in * + cd $DISTR_BASE + list=`find docs/htmldocs -type d | grep -v "/CVS$"` + for docdir in $list + do + if [ -d $docdir ]; then + echo d none samba/$docdir 0755 root other + fi + done + + list=`find docs/htmldocs -type f | grep -v /CVS/` + for htmldoc in $list do if [ -f $htmldoc ]; then - echo f none samba/docs/htmldocs/$htmldoc=docs/htmldocs/$htmldoc 0644 root other + echo f none samba/$htmldoc=$htmldoc 0644 root other fi done + + # Create a symbolic link to the Samba book in docs/ for beginners + echo 's none samba/docs/samba_book=htmldocs/using_samba' + echo "#\n# Text Docs \n#" echo d none samba/docs/textdocs 0755 root other cd $DISTR_BASE/docs/textdocs @@ -58,12 +84,12 @@ add_dynamic_entries() done echo "#\n# SWAT \n#" cd $DISTR_BASE - list=`find swat -type d` + list=`find swat -type d | grep -v "/CVS$"` for i in $list do echo "d none samba/$i 0755 root other" done - list=`find swat -type f` + list=`find swat -type f | grep -v /CVS/` for i in $list do echo "f none samba/$i=$i 0644 root other" @@ -77,6 +103,12 @@ add_dynamic_entries() fi done + echo "#\n# Using Samba Book files for SWAT\n#" + cd $DISTR_BASE/docs/htmldocs + +# set up a symbolic link instead of duplicating the book tree + echo 's none samba/swat/using_samba=../docs/htmldocs/using_samba' + } if [ $# = 0 ] diff --git a/packaging/Solaris/prototype.master b/packaging/Solaris/prototype.master index c63a9d1a42..8f98104cdd 100644 --- a/packaging/Solaris/prototype.master +++ b/packaging/Solaris/prototype.master @@ -9,6 +9,7 @@ i pkginfo=./pkginfo i copyright=./copyright i request=./request i preremove=./preremove +i postinstall=./postinstall i i.swat=./i.swat i r.swat=./r.swat # @@ -80,5 +81,8 @@ f none samba/lib/regeditscripts/Win95_PlainPassword.reg=docs/Win95_PlainPassword f none samba/lib/regeditscripts/Win98_PlainPassword.reg=docs/Win98_PlainPassword.reg 0444 root other f none samba/lib/regeditscripts/Win2000_PlainPassword.reg=docs/Win2000_PlainPassword.reg 0444 root other # +# Random files +f none samba/docs/Samba-HOWTO-Collection.pdf=docs/Samba-HOWTO-Collection.pdf 0644 root other +# # Static part of prototype file ends. # -- cgit From 344787a4b7cb915cc4c442a425eaeb3ed6eddaa6 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Thu, 19 Apr 2001 19:37:47 +0000 Subject: don't make extra copy of README file (This used to be commit fbd05be7238cd5055fef0d63491f5891f0fc6b30) --- packaging/SGI/idb.pl | 1 - 1 file changed, 1 deletion(-) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 82a49ee31a..cdbddcb590 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -133,7 +133,6 @@ else { } print IDB "d 0755 root sys usr/samba $SRCPFX/packaging/SGI $PKG.sw.base\n"; -print IDB "f 0444 root sys usr/samba/README $SRCPFX/packaging/SGI/README $PKG.sw.base\n"; print IDB "d 0755 root sys usr/samba/bin $SRCPFX/packaging/SGI $PKG.sw.base\n"; while(@bins) { -- cgit From 25ea54ef9c45e4c13d00500b1f51108483686a8a Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 24 Apr 2001 05:08:50 +0000 Subject: added Mandrake support from 2.2 (This used to be commit 9f8cb4906f98403d4a8f2577197720d72bdf6b4f) --- packaging/Mandrake/README | 11 ++ packaging/Mandrake/findsmb | 141 ++++++++++++++++ packaging/Mandrake/makerpms.sh.tmpl | 15 ++ packaging/Mandrake/samba.log | 15 ++ packaging/Mandrake/samba.pamd | 5 + packaging/Mandrake/samba.xinetd | 15 ++ packaging/Mandrake/samba2.spec.tmpl | 303 ++++++++++++++++++++++++++++++++++ packaging/Mandrake/smb.conf | 315 ++++++++++++++++++++++++++++++++++++ packaging/Mandrake/smb.init | 93 +++++++++++ packaging/Mandrake/smbprint | 77 +++++++++ packaging/Mandrake/smbusers | 3 + 11 files changed, 993 insertions(+) create mode 100644 packaging/Mandrake/README create mode 100755 packaging/Mandrake/findsmb create mode 100644 packaging/Mandrake/makerpms.sh.tmpl create mode 100644 packaging/Mandrake/samba.log create mode 100644 packaging/Mandrake/samba.pamd create mode 100644 packaging/Mandrake/samba.xinetd create mode 100644 packaging/Mandrake/samba2.spec.tmpl create mode 100644 packaging/Mandrake/smb.conf create mode 100755 packaging/Mandrake/smb.init create mode 100755 packaging/Mandrake/smbprint create mode 100644 packaging/Mandrake/smbusers (limited to 'packaging') diff --git a/packaging/Mandrake/README b/packaging/Mandrake/README new file mode 100644 index 0000000000..1c5bb30edc --- /dev/null +++ b/packaging/Mandrake/README @@ -0,0 +1,11 @@ +Preparation Date: Sat Apr 14 2001 +Preparer: John H Terpstra + +Instructions: Preparing Samba Packages for Mandrake Linux 7.2 +=============================================================== + +We provide support only for current versions of Mandrake Linux. + +To produce the RPMS simply type: + sh makerpms.sh + diff --git a/packaging/Mandrake/findsmb b/packaging/Mandrake/findsmb new file mode 100755 index 0000000000..986c248177 --- /dev/null +++ b/packaging/Mandrake/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/Mandrake/makerpms.sh.tmpl b/packaging/Mandrake/makerpms.sh.tmpl new file mode 100644 index 0000000000..3b13bcab64 --- /dev/null +++ b/packaging/Mandrake/makerpms.sh.tmpl @@ -0,0 +1,15 @@ +#!/bin/sh +# Copyright (C) 1998 John H Terpstra, 1999 K Spoon +# +SPECDIR=/usr/src/RPM/SPECS +SRCDIR=/usr/src/RPM/SOURCES +USERID=`id -u` +GRPID=`id -g` +VERSION='PVERSION' + +( cd ../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-$VERSION ) +( cd ../../.. ; tar --exclude-dir=CVS czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-$VERSION ) +cp -a *.spec $SPECDIR +cp -a *.patch smb.* samba.log $SRCDIR +cd $SPECDIR +rpm -ba -v samba2.spec diff --git a/packaging/Mandrake/samba.log b/packaging/Mandrake/samba.log new file mode 100644 index 0000000000..4e8b44b60e --- /dev/null +++ b/packaging/Mandrake/samba.log @@ -0,0 +1,15 @@ +/var/log/samba/log.nmb { + notifempty + missingok + postrotate + /usr/bin/killall -HUP nmbd + endscript +} + +/var/log/samba/log.smb { + notifempty + missingok + postrotate + /usr/bin/killall -HUP smbd + endscript +} diff --git a/packaging/Mandrake/samba.pamd b/packaging/Mandrake/samba.pamd new file mode 100644 index 0000000000..30912de172 --- /dev/null +++ b/packaging/Mandrake/samba.pamd @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth required /lib/security/pam_nologin.so +auth required /lib/security/pam_stack.so service=system-auth +account required /lib/security/pam_stack.so service=system-auth +session required /lib/security/pam_stack.so service=system-auth diff --git a/packaging/Mandrake/samba.xinetd b/packaging/Mandrake/samba.xinetd new file mode 100644 index 0000000000..a6dea1f740 --- /dev/null +++ b/packaging/Mandrake/samba.xinetd @@ -0,0 +1,15 @@ +# default: on +# description: SWAT is the Samba Web Admin Tool. Use swat \ +# to configure your Samba server. To use SWAT, \ +# connect to port 901 with your favorite web browser. +service swat +{ + port = 901 + socket_type = stream + wait = no + only_from = localhost + user = root + server = /usr/sbin/swat + log_on_failure += USERID + disable = no +} diff --git a/packaging/Mandrake/samba2.spec.tmpl b/packaging/Mandrake/samba2.spec.tmpl new file mode 100644 index 0000000000..750b88e392 --- /dev/null +++ b/packaging/Mandrake/samba2.spec.tmpl @@ -0,0 +1,303 @@ +Summary: Samba SMB client and server +Name: samba +Version: PVERSION +Release: PRELEASE +Copyright: GNU GPL version 2 +Group: Networking +Source: ftp://samba.org/pub/samba/samba-%{version}.tar.gz +Packager: John H Terpstra [Samba-Team] +Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 +Prereq: chkconfig fileutils +BuildRoot: /var/tmp/samba +Prefix: /usr + +%description +Samba provides an SMB server which can be used to provide +network services to SMB (sometimes called "Lan Manager") +clients, including various versions of MS Windows, OS/2, +and other Linux machines. Samba also provides some SMB +clients, which complement the built-in SMB filesystem +in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols +and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) +protocol. + +Samba-2.2 features working NT Domain Control capability and +includes the SWAT (Samba Web Administration Tool) that +allows samba's smb.conf file to be remotely managed using your +favourite web browser. For the time being this is being +enabled on TCP port 901 via inetd. + +Users are advised to use Samba-2.2 as a Windows NT4 +Domain Controller only on networks that do NOT have a Windows +NT Domain Controller. This release does NOT as yet have +Backup Domain control ability. + +Please refer to the WHATSNEW.txt document for fixup information. +This binary release includes encrypted password support. + +Please read the smb.conf file and ENCRYPTION.txt in the +docs directory for implementation details. + +%changelog +* Mon Apr 23 2001 Gerald (Jerry) Carter + - Added a few bug fixes to release the first Mandrake RPMS + +* Sat Apr 14 2001 John H Terpstra + - Added official samba-team support for Mandrakesoft + - We get a lot of requests for this! + +%prep +%setup + +%build +cd source + +%ifarch ia64 +libtoolize --copy --force # get it to recognize IA-64 +autoconf +autoheader +EXTRA="-D_LARGEFILE64_SOURCE" +%endif + +NUMCPU=`grep processor /proc/cpuinfo | wc -l` + +CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ + --prefix=%{prefix} \ + --with-fhs \ + --libdir=/etc \ + --localstatedir=/var \ + --with-configdir=/etc \ + --with-lockdir=/var/lock/samba \ + --with-swatdir=%{prefix}/share/swat \ + --with-quotas \ + --with-smbmount \ + --with-pam \ + --with-syslog \ + --with-utmp \ + --with-netatalk \ + --with-sambabook=%{prefix}/share/swat/using_samba + +make -j${NUMCPU} proto +make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so debug2html + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,samba,xinetd.d,codepages/src} +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +mkdir -p $RPM_BUILD_ROOT/lib +mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin} +mkdir -p $RPM_BUILD_ROOT/home/samba +mkdir -p $RPM_BUILD_ROOT/sbin +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{figs,gifs} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/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 smbstatus testparm testprns \ + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool +do +install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin +done +for i in smbtar +do +install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin +done + +# Install secure binary files +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html \ + smbfilter +do +install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin +done + +# we need a symlink for mount to recognise the smb and smbfs filesystem types +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb + +# Install level 1 man pages +for i in *.1 +do +install -m644 docs/manpages/$i $RPM_BUILD_ROOT%{prefix}/share/man/man1 +done + +# Install codepage source files +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do +install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src +done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/etc/codepages/src +done + +# Install the nsswitch library extenstion file +install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib +# Make link for wins resolver +( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) + +# Install SWAT helper files +for i in swat/help/*.html docs/htmldocs/*.html +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help +done +for i in swat/images/*.gif +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images +done +for i in swat/include/*.html +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include +done + +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/gifs +done + +# Install the miscellany +install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat +install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 +install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 +install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 +install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT%{prefix}/share/man/man7 +install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat +install -m644 packaging/Mandrake/smb.con* $RPM_BUILD_ROOT/etc/ +install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/smbusers +install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT%{prefix}/bin +install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT%{prefix}/bin +install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb +install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba +install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba +install -m644 packaging/Mandrake/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba +install -m644 packaging/Mandrake/samba.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/swat +echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts + +# Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb +ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add smb +/sbin/chkconfig smb off + +# Build codepage load files +cd /etc +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do +%{prefix}/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i +done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +%{prefix}/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$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 [ -f /etc/inetd.conf ]; then + if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then + echo '#swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf + killall -1 inetd || : + fi +fi + +%preun +if [ $1 = 0 ] ; then + /sbin/chkconfig --del smb + + # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba! + if [ -e /var/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 + 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.$$ + if [ -f /etc/inetd.conf ]; then + sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile + mv $tmpfile inetd.conf + fi + 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) %{prefix}/sbin/* +%attr(-,root,root) /sbin/* +%attr(-,root,root) %{prefix}/bin/* +%attr(755,root,root) /lib/* +%attr(-,root,root) %{prefix}/share/swat/help/* +%attr(-,root,root) %{prefix}/share/swat/images/* +%attr(-,root,root) %{prefix}/share/swat/include/* +%attr(-,root,root) %{prefix}/share/swat/using_samba/* +%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) %config(noreplace) /etc/pam.d/samba +%attr(-,root,root) %{prefix}/share/man/man1/* +%attr(-,root,root) %{prefix}/share/man/man5/* +%attr(-,root,root) %{prefix}/share/man/man7/* +%attr(-,root,root) %{prefix}/share/man/man8/* +%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(1777,root,root) %dir /var/spool/samba + + + diff --git a/packaging/Mandrake/smb.conf b/packaging/Mandrake/smb.conf new file mode 100644 index 0000000000..db0528d8aa --- /dev/null +++ b/packaging/Mandrake/smb.conf @@ -0,0 +1,315 @@ +# 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 made any basic syntactic errors. +# +#======================= Global Settings ===================================== +[global] + +# workgroup = NT-Domain-Name or Workgroup-Name + workgroup = MDKGROUP + +# server string is the equivalent of the NT Description field + server string = Samba Server %v + +# 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. + +# Enabling internationalization: +# you can match a Windows code page with a UNIX character set. +# Windows: 437 (US), 737 (GREEK), 850 (Latin1 - Western European), +# 852 (Eastern Eu.), 861 (Icelandic), 932 (Cyrillic - Russian), +# 936 (Japanese - Shift-JIS), 936 (Simpl. Chinese), 949 (Korean Hangul), +# 950 (Trad. Chin.). +# UNIX: ISO8859-1 (Western European), ISO8859-2 (Eastern Eu.), +# ISO8859-5 (Russian Cyrillic), KOI8-R (Alt-Russ. Cyril.) +# This is an example for french users: +; client code page = 850 +; character set = ISO8859-1 + + +# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK +# (as cups is now used in linux-mandrake 7.2 by default) +# if you want to automatically load your printer list rather +# than setting them up individually then you'll need this + printcap name = lpstat + load printers = yes + +# It should not be necessary to spell out the print system type unless +# yours is non-standard. Currently supported print systems include: +# bsd, sysv, plp, lprng, aix, hpux, qnx, cups + printing = cups + + +# 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 SO_RCVBUF=8192 SO_SNDBUF=8192 + +# Configure Samba to use multiple interfaces +# If you have multiple network interfaces then you must list them +# here. See the man page for details. +; interfaces = 192.168.12.2/24 192.168.13.2/24 + +# Configure remote browse list synchronisation here +# request announcement to, or browse list sync from: +# a specific host or from / to a whole subnet (see below) +; remote browse sync = 192.168.3.25 192.168.5.255 +# Cause this host to announce itself to local subnets here +; remote announce = 192.168.1.255 192.168.2.44 + +# Browser Control Options: +# set local master to no if you don't want Samba to become a master +# browser on your network. Otherwise the normal election rules apply +; local master = no + +# OS Level determines the precedence of this server in master browser +# elections. The default value should be reasonable +; os level = 33 + +# Domain Master specifies Samba to be the Domain Master Browser. This +# allows Samba to collate browse lists between subnets. Don't use this +# if you already have a Windows NT domain controller doing this job +; domain master = yes + +# Preferred Master causes Samba to force a local browser election on startup +# and gives it a slightly higher chance of winning the election +; preferred master = yes + +# 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/samba/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/samba/profiles +; browseable = no +; guest ok = yes + + +# NOTE: If you have a CUPS print system there is no need to +# specifically define each individual printer. +# You must configure the samba printers with the appropriate Windows +# drivers on your Windows clients. On the Samba server no filtering is +# done. If you wish that the server provides the driver and the clients +# send PostScript ("Generic PostScript Printer" under Windows), you have +# to swap the 'print command' line below with the commented one. +[printers] + comment = All Printers + path = /var/spool/samba + browseable = yes +# to allow user 'guest account' to print. + guest ok = yes + writable = no + printable = yes + create mode = 0700 +# ===================================== +# print command: see above for details. +# ===================================== + print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers. +; print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients). + lpq command = lpstat -o %p + lprm command = cancel %p-%j + +# 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 +; public = yes +; writable = 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/Mandrake/smb.init b/packaging/Mandrake/smb.init new file mode 100755 index 0000000000..31b2deee57 --- /dev/null +++ b/packaging/Mandrake/smb.init @@ -0,0 +1,93 @@ +#!/bin/sh +# +# chkconfig: - 91 35 +# description: Starts and stops the Samba smbd and nmbd daemons \ +# used to provide SMB network services. + +# Source function library. +if [ -f /etc/init.d/functions ] ; then + . /etc/init.d/functions +elif [ -f /etc/rc.d/init.d/functions ] ; then + . /etc/rc.d/init.d/functions +else + exit 0 +fi + +# 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 + +RETVAL=0 + + +start() { + echo -n "Starting SMB services: " + daemon smbd -D + RETVAL=$? + echo + echo -n "Starting NMB services: " + daemon nmbd -D + RETVAL2=$? + echo + [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && touch /var/lock/subsys/smb || \ + RETVAL=1 + return $RETVAL +} +stop() { + echo -n "Shutting down SMB services: " + killproc smbd + RETVAL=$? + echo + echo -n "Shutting down NMB services: " + killproc nmbd + RETVAL2=$? + [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb + echo "" + return $RETVAL +} +restart() { + stop + start +} +reload() { + echo -n "Reloading smb.conf file: " + killproc smbd -HUP + RETVAL=$? + echo + return $RETVAL +} +mdkstatus() { + status smbd + status nmbd +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + restart + ;; + reload) + reload + ;; + status) + mdkstatus + ;; + condrestart) + [ -f /var/lock/subsys/smb ] && restart || : + ;; + *) + echo "Usage: $0 {start|stop|restart|status|condrestart}" + exit 1 +esac + +exit $? diff --git a/packaging/Mandrake/smbprint b/packaging/Mandrake/smbprint new file mode 100755 index 0000000000..0d07c9c783 --- /dev/null +++ b/packaging/Mandrake/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/Mandrake/smbusers b/packaging/Mandrake/smbusers new file mode 100644 index 0000000000..ae3389f53f --- /dev/null +++ b/packaging/Mandrake/smbusers @@ -0,0 +1,3 @@ +# Unix_name = SMB_name1 SMB_name2 ... +root = administrator admin +nobody = guest pcguest smbguest -- cgit From b7b452625c3cf5f961cc8e53c02775b2b195c02c Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 28 Apr 2001 21:34:43 +0000 Subject: Adding developer mode option. (This used to be commit 6473085645cc0ecfcb982f6e40bfde606424dc7b) --- packaging/Caldera/OpenLinux/makerpms.sh.tmpl | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl index 8f7b06235b..fda8545df7 100644 --- a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl +++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl @@ -1,14 +1,25 @@ #!/bin/sh # Copyright (C) 1998 John H Terpstra, 2000 Klaus Singvogel # -SPECDIR=/usr/src/OpenLinux/SPECS -SRCDIR=/usr/src/OpenLinux/SOURCES +SPECDIR=${SPECDIR:-/usr/src/OpenLinux/SPECS} +SRCDIR=${SRCDIR:-/usr/src/OpenLinux/SOURCES} USERID=`id -u` GRPID=`id -g` -( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba ) -( cd ../../../.. ; tar czvf ${SRCDIR}/samba.tar.gz samba-PVERSIONPRELEASE ) -cp -a *.spec $SPECDIR -cp -a *.patch smb.* samba.* make* find* convert* updates* $SRCDIR +if ( z$1 == "zdevel" ) then + ( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba; mv samba samba-PVERSION ) + ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERIONS; mv samba-PVERSION samba ) +else + ( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-PVERSION ) + ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION ) +done + +cp -a *.spec *.spec-lsb $SPECDIR +for src in *.patch; do + trg=`echo $src | sed 's;xxxxxx;PVERSION;'` + cp -a $src $SRCDIR/$trg +done cd $SPECDIR -rpm -ba -v samba3.spec +mv samba2.spec samba2.spec-nonlsb +ln samba2.spec-lsb samba2.spec +rpm -ba -v samba2.spec -- cgit From 62ce28e8d5f414d1728ec9e592f13dbccec10bad Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 1 Jun 2001 11:56:08 +0000 Subject: sync with SAMBA_2_2 (This used to be commit 81b3af71d5c9ccd20d7e7303becc35bff30c39b4) --- packaging/Mandrake/empty.patch | 0 packaging/Mandrake/makerpms.sh.tmpl | 5 +- packaging/Mandrake/samba.log | 4 +- packaging/Mandrake/samba2.spec.tmpl | 165 ++++++++++---------- packaging/Mandrake/smb.conf | 13 +- packaging/Mandrake/smb.init | 2 +- packaging/README.UnixWare | 6 + packaging/RedHat/makerpms.sh.tmpl | 47 +++--- packaging/RedHat/samba.log | 4 +- packaging/RedHat/samba.pamd | 6 +- packaging/RedHat/samba.pamd.stack | 6 + packaging/RedHat/samba.xinetd | 15 ++ packaging/RedHat/samba2.spec.tmpl | 302 ++++++++++++++++++++---------------- packaging/RedHat/smb.conf | 6 +- packaging/RedHat/smb.init | 2 +- 15 files changed, 317 insertions(+), 266 deletions(-) create mode 100644 packaging/Mandrake/empty.patch create mode 100644 packaging/README.UnixWare create mode 100644 packaging/RedHat/samba.pamd.stack create mode 100644 packaging/RedHat/samba.xinetd (limited to 'packaging') diff --git a/packaging/Mandrake/empty.patch b/packaging/Mandrake/empty.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packaging/Mandrake/makerpms.sh.tmpl b/packaging/Mandrake/makerpms.sh.tmpl index 3b13bcab64..c4ad9c6b58 100644 --- a/packaging/Mandrake/makerpms.sh.tmpl +++ b/packaging/Mandrake/makerpms.sh.tmpl @@ -7,8 +7,9 @@ USERID=`id -u` GRPID=`id -g` VERSION='PVERSION' -( cd ../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-$VERSION ) -( cd ../../.. ; tar --exclude-dir=CVS czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-$VERSION ) +( cd ../../.. ; mv samba samba-$VERSION; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-$VERSION ) +( cd ../../.. ; tar --exclude=CVS -czvf ${SRCDIR}/samba-$VERSION.tar.gz samba-$VERSION ) +( cd ../../.. ; mv samba-$VERSION samba ) cp -a *.spec $SPECDIR cp -a *.patch smb.* samba.log $SRCDIR cd $SPECDIR diff --git a/packaging/Mandrake/samba.log b/packaging/Mandrake/samba.log index 4e8b44b60e..7dc1667baf 100644 --- a/packaging/Mandrake/samba.log +++ b/packaging/Mandrake/samba.log @@ -1,4 +1,4 @@ -/var/log/samba/log.nmb { +/var/log/samba/log.nmbd { notifempty missingok postrotate @@ -6,7 +6,7 @@ endscript } -/var/log/samba/log.smb { +/var/log/samba/log.smbd { notifempty missingok postrotate diff --git a/packaging/Mandrake/samba2.spec.tmpl b/packaging/Mandrake/samba2.spec.tmpl index 750b88e392..5bc92535f8 100644 --- a/packaging/Mandrake/samba2.spec.tmpl +++ b/packaging/Mandrake/samba2.spec.tmpl @@ -5,7 +5,7 @@ Release: PRELEASE Copyright: GNU GPL version 2 Group: Networking Source: ftp://samba.org/pub/samba/samba-%{version}.tar.gz -Packager: John H Terpstra [Samba-Team] +Packager: Gerald (Jerry) Carter [Samba-Team] Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba @@ -39,6 +39,12 @@ Please read the smb.conf file and ENCRYPTION.txt in the docs directory for implementation details. %changelog +* Mon May 21 2001 Gerald (Jerry) Carter + - removed docs/htmldocs and docs/manpages from /usr/share/docs + These het installed in /usr/share/swat already + - Fix for codepages and src not getting installed in the RPM + - Fixed minor typos + * Mon Apr 23 2001 Gerald (Jerry) Carter - Added a few bug fixes to release the first Mandrake RPMS @@ -62,20 +68,22 @@ EXTRA="-D_LARGEFILE64_SOURCE" NUMCPU=`grep processor /proc/cpuinfo | wc -l` CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ - --prefix=%{prefix} \ + --prefix=%{prefix} \ --with-fhs \ - --libdir=/etc \ + --libdir=/etc/samba \ --localstatedir=/var \ - --with-configdir=/etc \ - --with-lockdir=/var/lock/samba \ - --with-swatdir=%{prefix}/share/swat \ - --with-quotas \ - --with-smbmount \ - --with-pam \ - --with-syslog \ - --with-utmp \ - --with-netatalk \ - --with-sambabook=%{prefix}/share/swat/using_samba + --with-codepagedir=%{prefix}/share/samba/codepages \ + --with-configdir=/etc/samba \ + --with-lockdir=/var/lock/samba \ + --with-swatdir=%{prefix}/share/swat \ + --with-quotas \ + --with-smbmount \ + --with-pam \ + --with-pam_smbpass \ + --with-syslog \ + --with-utmp \ + --with-netatalk \ + --with-sambabook=%{prefix}/share/swat/using_samba make -j${NUMCPU} proto make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so debug2html @@ -83,13 +91,15 @@ make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so debug2html %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,samba,xinetd.d,codepages/src} +mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,samba,xinetd.d} +mkdir -p $RPM_BUILD_ROOT/etc/samba/security mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d -mkdir -p $RPM_BUILD_ROOT/lib +mkdir -p $RPM_BUILD_ROOT/lib/security mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin} mkdir -p $RPM_BUILD_ROOT/home/samba mkdir -p $RPM_BUILD_ROOT/sbin mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/samba/codepages/src mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{figs,gifs} mkdir -p $RPM_BUILD_ROOT%{prefix}/share/man/{man1,man5,man7,man8} mkdir -p $RPM_BUILD_ROOT/var/lock/samba @@ -98,40 +108,32 @@ mkdir -p $RPM_BUILD_ROOT/var/spool/samba # Install standard binary files for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ - make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \ + smbmount smbumount smbmnt do -install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin + install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done -for i in smbtar +for i in smbtar do -install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin + install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount smbmnt debug2html \ - smbfilter +for i in smbd nmbd swat debug2html smbfilter do -install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin + install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done # we need a symlink for mount to recognise the smb and smbfs filesystem types -ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs -ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb +ln -sf %{prefix}/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs +ln -sf %{prefix}/bin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb -# Install level 1 man pages -for i in *.1 -do -install -m644 docs/manpages/$i $RPM_BUILD_ROOT%{prefix}/share/man/man1 -done - # Install codepage source files -for i in 437 737 775 850 852 861 866 932 936 949 950 1251 -do -install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src +for i in 437 737 775 850 852 861 866 932 936 949 950 1251; do + install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT%{prefix}/share/samba/codepages/src done -for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R -do -install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/etc/codepages/src +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R; do + install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT%{prefix}/share/samba/codepages/src done # Install the nsswitch library extenstion file @@ -139,40 +141,43 @@ install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib # Make link for wins resolver ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) +# PAM Authentication file +install -m755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security + # Install SWAT helper files -for i in swat/help/*.html docs/htmldocs/*.html -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help +for i in swat/help/*.html docs/htmldocs/*.html; do + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help done -for i in swat/images/*.gif -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images +for i in swat/images/*.gif; do + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images done -for i in swat/include/*.html -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include +for i in swat/include/*.html; do + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include done # This is the O'Reily Samba Book - on-line -for i in docs/htmldocs/using_samba/*.html -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba +for i in docs/htmldocs/using_samba/*.html; do + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba done -for i in docs/htmldocs/using_samba/figs/*.gif -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/figs +for i in docs/htmldocs/using_samba/figs/*.gif; do + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/figs done -for i in docs/htmldocs/using_samba/gifs/*.gif -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/gifs +for i in docs/htmldocs/using_samba/gifs/*.gif; do + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/gifs done # Install the miscellany install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat +# Install level 1 man pages +for i in *.1; do + install -m644 docs/manpages/$i $RPM_BUILD_ROOT%{prefix}/share/man/man1 +done install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT%{prefix}/share/man/man5 + install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT%{prefix}/share/man/man7 + install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 @@ -180,9 +185,12 @@ install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 +install -m644 docs/manpages/smbspool.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 + install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat -install -m644 packaging/Mandrake/smb.con* $RPM_BUILD_ROOT/etc/ -install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/smbusers + +install -m644 packaging/Mandrake/smb.con* $RPM_BUILD_ROOT/etc/samba/ +install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb @@ -190,11 +198,14 @@ install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba install -m644 packaging/Mandrake/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba install -m644 packaging/Mandrake/samba.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/swat -echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/lmhosts +echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/samba/lmhosts + +## +## remove these directories so they don't get installed twice +## +/bin/rm -rf docs/htmldocs +/bin/rm -rf docs/manpages -# Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs -ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb -ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs %clean rm -rf $RPM_BUILD_ROOT @@ -204,14 +215,14 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig smb off # Build codepage load files -cd /etc +cd %{prefix}/share/samba/codepages for i in 437 737 775 850 852 861 866 932 936 949 950 1251 do -%{prefix}/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i +%{prefix}/bin/make_smbcodepage c $i %{prefix}/share/samba/codepages/src/codepage_def.$i %{prefix}/share/samba/codepages/codepage.$i done for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R do -%{prefix}/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$i +%{prefix}/bin/make_unicodemap $i %{prefix}/share/samba/codepages/src/CP$i.TXT %{prefix}/share/samba/codepages/unicode_map.$i done # Add swat entry to /etc/services if not already there @@ -219,25 +230,14 @@ if !( grep ^[:space:]*swat /etc/services > /dev/null ) then echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services fi -# Add swat entry to /etc/inetd.conf if needed -if [ -f /etc/inetd.conf ]; then - if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then - echo '#swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf - killall -1 inetd || : - fi -fi - %preun if [ $1 = 0 ] ; then /sbin/chkconfig --del smb - # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba! + # We want to remove the browse.dat file 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 @@ -256,10 +256,6 @@ if [ $1 = 0 ] ; then # Remove swat entries from /etc/inetd.conf and /etc/services cd /etc tmpfile=/etc/tmp.$$ - if [ -f /etc/inetd.conf ]; then - sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile - mv $tmpfile inetd.conf - fi sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile mv $tmpfile services fi @@ -283,9 +279,9 @@ fi %attr(-,root,root) %{prefix}/share/swat/images/* %attr(-,root,root) %{prefix}/share/swat/include/* %attr(-,root,root) %{prefix}/share/swat/using_samba/* -%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) %config(noreplace) /etc/samba/lmhosts +%attr(-,root,root) %config(noreplace) /etc/samba/smb.conf +%attr(-,root,root) %config(noreplace) /etc/samba/smbusers %attr(-,root,root) /etc/rc.d/init.d/smb %attr(-,root,root) /etc/logrotate.d/samba %attr(-,root,root) %config(noreplace) /etc/pam.d/samba @@ -293,8 +289,9 @@ fi %attr(-,root,root) %{prefix}/share/man/man5/* %attr(-,root,root) %{prefix}/share/man/man7/* %attr(-,root,root) %{prefix}/share/man/man8/* -%attr(-,root,root) %dir /etc/codepages/* -%attr(-,root,root) %dir /etc/codepages/src/* +%attr(-,root,root) %dir /etc/samba/ +%attr(-,root,root) %dir /usr/share/samba/codepages/* +%attr(-,root,root) %dir /usr/share/samba/codepages/src/* %attr(-,root,root) %dir /var/lock/samba %attr(-,root,root) %dir /var/log/samba %attr(1777,root,root) %dir /var/spool/samba diff --git a/packaging/Mandrake/smb.conf b/packaging/Mandrake/smb.conf index db0528d8aa..a14e90ec16 100644 --- a/packaging/Mandrake/smb.conf +++ b/packaging/Mandrake/smb.conf @@ -79,7 +79,7 @@ # 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 +; smb passwd file = /etc/samba/private/smbpasswd # The following are needed to allow password changing from Windows to # update the Linux sytsem password also. @@ -198,16 +198,21 @@ # Un-comment the following and create the netlogon directory for Domain Logons ; [netlogon] ; comment = Network Logon Service -; path = /home/samba/netlogon +; path = /var/lib/samba/netlogon ; guest ok = yes ; writable = no ; share modes = no +#Uncomment the following 2 lines if you would like your login scripts to +#be created dynamically by ntlogon (check that you have it in the correct +#locationn (the default of the ntlogon rpm available in contribs) +;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon +;root postexec = rm -f /var/lib/samba/netlogon/%U.bat # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory ;[Profiles] -; path = /home/samba/profiles +; path = /var/lib/samba/profiles ; browseable = no ; guest ok = yes @@ -222,7 +227,7 @@ [printers] comment = All Printers path = /var/spool/samba - browseable = yes + browseable = no # to allow user 'guest account' to print. guest ok = yes writable = no diff --git a/packaging/Mandrake/smb.init b/packaging/Mandrake/smb.init index 31b2deee57..8855f04efb 100755 --- a/packaging/Mandrake/smb.init +++ b/packaging/Mandrake/smb.init @@ -20,7 +20,7 @@ fi [ ${NETWORKING} = "no" ] && exit 0 # Check that smb.conf exists. -[ -f /etc/smb.conf ] || exit 0 +[ -f /etc/samba/smb.conf ] || exit 0 RETVAL=0 diff --git a/packaging/README.UnixWare b/packaging/README.UnixWare new file mode 100644 index 0000000000..a4b08954ec --- /dev/null +++ b/packaging/README.UnixWare @@ -0,0 +1,6 @@ +Date: January 9, 2001 +Maintainer: John H Terpstra +Subject: UnixWare Packaging Files +Modifications: Initial release 20010109 + +Note: The packaging build files for UnixWare are located under ~samba/packaging/Caldera/UnixWare. diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index 1767176a1f..44b89a45ec 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -1,36 +1,25 @@ #!/bin/sh # Copyright (C) John H Terpstra 1998 # Updated for RPM 3 by Jochen Wiedmann, joe@ispsoft.de -# +# Changed for a generic tar file rebuild by abartlet@pcug.org.au USERID=`id -u` GRPID=`id -g` +VERSION='PVERSION' -rpm3var () { - echo "rpm3var start $1" >>/tmp/log - var=`rpm --showrc \ - | awk "/-[0-9]+[:=][[:blank:]]+$1[[:blank:]]/ {print \\$3}"` - echo "var=$var" >>/tmp/log - while test -n "`echo $var | egrep '%{[_a-zA-Z]+}'`"; do - v=`echo $var | sed 's/.*%{\([_a-zA-Z]\+\)}.*/\1/'` - echo "Loop: v=$v" >>/tmp/log - w="`rpm3var $v`" - var=`echo $var | sed "s,%{\\([_a-zA-Z]\\+\\)},$w,g"` - echo "Loop: var=$var" >>/tmp/log - done - echo "rpm3var stop $1 $var" >>/tmp/log - echo $var -} +rm -f ../../samba2.*.spec case `rpm --version | awk '{print $3}'` in 2.*) - RPMDIR=`rpm --showrc | awk '/^rpmdir/ { print $3}'` - SPECDIR=`rpm --showrc | awk '/^specdir/ { print $3}'` - SRCDIR=`rpm --showrc | awk '/^sourcedir/ { print $3}'` + sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba2.rpm2.spec + cp samba2.rpm2.spec ../../ ;; 3.*) - RPMDIR=`rpm3var _rpmdir` - SPECDIR=`rpm3var _specdir` - SRCDIR=`rpm3var _sourcedir` + sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba2.rpm3.spec + cp samba2.rpm3.spec ../../ + ;; + 4.*) + sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2.spec > samba2.rpm4.spec + cp samba2.rpm4.spec ../../ ;; *) echo "Unknown RPM version: `rpm --version`" @@ -38,10 +27,12 @@ case `rpm --version | awk '{print $3}'` in ;; esac -( cd ../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-PVERSION ) -( cd ../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION ) +( cd ../../source; if [ -f Makefile ]; then make distclean; fi ) +( cd ../../.. ; chown -R ${USERID}.${GRPID} samba-${VERSION} ) +( cd ../../.. ; tar --exclude=CVS -czvf samba-${VERSION}.tar.gz samba-${VERSION}/samba2.*.spec samba-${VERSION} ) + +rpm -ta -v ../../../samba-${VERSION}.tar.gz + + + -cp -a *.spec $SPECDIR -cp -a *.patch smb.* samba.log $SRCDIR -cd $SPECDIR -rpm -ba -v samba2.spec diff --git a/packaging/RedHat/samba.log b/packaging/RedHat/samba.log index c8ab3852e2..4b244099c4 100644 --- a/packaging/RedHat/samba.log +++ b/packaging/RedHat/samba.log @@ -1,10 +1,10 @@ -/var/log/samba/log.nmb { +/var/log/samba/log.nmbd { postrotate /usr/bin/killall -HUP nmbd endscript } -/var/log/samba/log.smb { +/var/log/samba/log.smbd { postrotate /usr/bin/killall -HUP smbd endscript diff --git a/packaging/RedHat/samba.pamd b/packaging/RedHat/samba.pamd index f38e70184a..1b4a93fb19 100644 --- a/packaging/RedHat/samba.pamd +++ b/packaging/RedHat/samba.pamd @@ -1,2 +1,4 @@ -auth required /lib/security/pam_pwdb.so nullok shadow -account required /lib/security/pam_pwdb.so +auth required /lib/security/pam_pwdb.so nullok shadow +account required /lib/security/pam_pwdb.so +session required /lib/security/pam_pwdb.so +password required /lib/security/pam_pwdb.so diff --git a/packaging/RedHat/samba.pamd.stack b/packaging/RedHat/samba.pamd.stack new file mode 100644 index 0000000000..6a948f92cb --- /dev/null +++ b/packaging/RedHat/samba.pamd.stack @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth required pam_nologin.so +auth required pam_stack.so service=system-auth +account required pam_stack.so service=system-auth +session required pam_stack.so service=system-auth +password required pam_stack.so service=system-auth diff --git a/packaging/RedHat/samba.xinetd b/packaging/RedHat/samba.xinetd new file mode 100644 index 0000000000..8c38b35421 --- /dev/null +++ b/packaging/RedHat/samba.xinetd @@ -0,0 +1,15 @@ +# default: off +# description: SWAT is the Samba Web Admin Tool. Use swat \ +# to configure your Samba server. To use SWAT, \ +# connect to port 901 with your favorite web browser. +service swat +{ + port = 901 + socket_type = stream + wait = no + only_from = localhost + user = root + server = /usr/sbin/swat + log_on_failure += USERID + disable = yes +} diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 73ca951336..44a8fe998e 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -4,11 +4,9 @@ Version: PVERSION Release: PRELEASE Copyright: GNU GPL version 2 Group: Networking -Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz -Patch: makefile-path.patch -Patch1: smbw.patch +Source: ftp://samba.org/pub/samba/samba-%{version}.tar.gz Packager: John H Terpstra [Samba-Team] -Requires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2 +Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba Prefix: /usr @@ -45,6 +43,22 @@ for Shadow passwords and quotas. Do NOT recompile with the SHADOW_PWD option enabled %changelog +* Sat Mar 31 2001 Andrew Bartlett + - Changed prefix/share/man for _mandir/share/man + - Changed this for a sed macro MANDIR_MACRO + - This allows us to build both RH7 (RPM4) + and older versions from same specfile. + - Made makerpms.sh use the rpm -ta command rather + than attempting to devine the correct location to + put the file. Also removes some /tmp symlink games. + - Allows build on RPM4 + - Increased PAM requirements to allow us to use + system-auth (this pam is in 6.x errata at least) + +* Tue Mar 27 2001 John H Terpstra + - Fixed typos introduced by Sum Wun. + - Build for Red Hat 7.x + * Sun Nov 12 2000 John H Terpstra - Updated for Samba-2.2 releases - Added libnss_wins.so stuff @@ -118,77 +132,73 @@ SHADOW_PWD option enabled - 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 %ifarch ia64 libtoolize --copy --force # get it to recognize IA-64 -autoconf autoheader +autoconf EXTRA="-D_LARGEFILE64_SOURCE" %endif NUMCPU=`grep processor /proc/cpuinfo | wc -l` CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ - --prefix=%{prefix}\ - --libdir=/etc \ - --with-lockdir=/var/lock/samba \ - --with-privatedir=/etc \ - --with-swatdir=%{prefix}/share/swat \ + --prefix=%{prefix} \ + --localstatedir=/var \ + --with-configdir=/etc/samba \ + --with-privatedir=/etc/samba \ + --with-codepagedir=/etc/codepages \ + --with-fhs \ --with-quotas \ --with-smbmount \ --with-pam \ - --with-profile \ --with-syslog \ --with-utmp \ - --with-vfs \ - --with-msdfs \ --with-netatalk \ - --with-sambabook=%{prefix}/share/swat/using_samba -make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so -make -j${NUMCPU} smbtorture debug2html locktest2 -make -j${NUMCPU} masktest bin/smbspool -#make -j${NUMCPU} rpctorture locktest smbwrapper bin/wbinfo + --with-sambabook=%{prefix}/share/swat/using_samba \ + --with-swatdir=%{prefix}/share/swat +make -j${NUMCPU} proto +make -j${NUMCPU} all nsswitch/libnss_wins.so +make -j${NUMCPU} debug2html +make -j${NUMCPU} bin/smbspool %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/sbin +mkdir -p $RPM_BUILD_ROOT/etc/samba mkdir -p $RPM_BUILD_ROOT/etc/codepages/src -mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d} -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/etc/{logrotate.d,pam.d,samba} +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin} -mkdir -p $RPM_BUILD_ROOT/sbin -mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include} -mkdir -p $RPM_BUILD_ROOT%{prefix}/man/{man1,man5,man7,man8} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include,using_samba} +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{figs,gifs} +mkdir -p $RPM_BUILD_ROOTMANDIR_MACRO mkdir -p $RPM_BUILD_ROOT/var/lock/samba mkdir -p $RPM_BUILD_ROOT/var/log/samba mkdir -p $RPM_BUILD_ROOT/var/spool/samba +mkdir -p $RPM_BUILD_ROOT/lib # Install standard binary files for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ - make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool -# smbsh smbwrapper.so + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \ + smbcacls smbcontrol do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done -for i in addtosmbpass mksmbpasswd.sh smbtar +for i in mksmbpasswd.sh smbtar do install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount smbmnt debug2html \ - smbtorture smbfilter locktest2 masktest -# wbinfo +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done @@ -197,23 +207,25 @@ done ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb -# 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%{prefix}/man/man1 -done +# This allows us to get away without duplicating code that +# sombody else can maintain for us. +cd source +make LIBDIR=$RPM_BUILD_ROOT/etc/samba \ + BINDIR=$RPM_BUILD_ROOT%{prefix}/bin \ + MANDIR=$RPM_BUILD_ROOTMANDIR_MACRO \ + CODEPAGEDIR=$RPM_BUILD_ROOT/etc/codepages \ + SWATDIR=$RPM_BUILD_ROOT/usr/share/swat \ + SAMBABOOK=$RPM_BUILD_ROOT/usr/share/swat/using_samba \ + installman installcp installswat +cd .. # Install codepage source files -for i in 437 737 775 850 852 861 866 932 936 949 950 1251 -do -install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src -done -for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +for i in source/codepages/codepage_def.* source/codepages/*.TXT do -install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/etc/codepages/src +install -m644 $i $RPM_BUILD_ROOT/etc/codepages/src done -# Install the nsswitch library extension file +# Install the nsswitch library extenstion file install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib # Make link for wins resolver ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) @@ -230,80 +242,92 @@ done for i in swat/include/*.html do install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include -done# This is the O'Reily Samba Book - on-line -for i in docs/htmldocs/using_samba/*.html -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba -done -for i in docs/htmldocs/using_samba/figs/*.gif -do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/figs -done -for i in docs/htmldocs/using_samba/gifs/*.gif -do -install -m644 $i $RPM_BUILD_ROOT%{prefix/share/swat/using_samba/gifs done # Install the miscellany install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat -install -m644 docs/manpages/smb.conf.5 $RPM_BUILD_ROOT%{prefix}/man/man5 -install -m644 docs/manpages/lmhosts.5 $RPM_BUILD_ROOT%{prefix}/man/man5 -install -m644 docs/manpages/smbpasswd.5 $RPM_BUILD_ROOT%{prefix}/man/man5 -install -m644 docs/manpages/samba.7 $RPM_BUILD_ROOT%{prefix}/man/man7 -install -m644 docs/manpages/smbd.8 $RPM_BUILD_ROOT%{prefix}/man/man8 -install -m644 docs/manpages/nmbd.8 $RPM_BUILD_ROOT%{prefix}/man/man8 -install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT%{prefix}/man/man8 -install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT%{prefix}/man/man8 -install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT%{prefix}/man/man8 -install -m644 docs/manpages/smbpasswd.8 $RPM_BUILD_ROOT%{prefix}/man/man8 -install -m644 docs/manpages/smbspool.8 $RPM_BUILD_ROOT%{prefix}/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%{prefix}/bin install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT%{prefix}/bin -install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba -install -m644 packaging/RedHat/samba.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 +install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf +install -m644 packaging/RedHat/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers +install -m644 packaging/RedHat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba +install -m644 packaging/RedHat/samba.pamd.stack $RPM_BUILD_ROOT/etc/samba/samba.stack +install -m644 packaging/RedHat/samba.xinetd $RPM_BUILD_ROOT/etc/samba/samba.xinetd +echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/samba/lmhosts %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add smb +/sbin/chkconfig smb off -# Build codepage load files -for i in 437 737 850 852 861 866 932 936 949 950 1251 -do -%{prefix}/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i -done -for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R -do -%{prefix/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$i -done +echo "Looking for old /etc/smb.conf..." +if [ -f /etc/smb.conf ]; then + echo "Moving old /etc/smb.conf to /etc/samba/smb.conf" + mv /etc/smb.conf /etc/samba/smb.conf +fi + +echo "Looking for old /etc/smbusers..." +if [ -f /etc/smbusers ]; then + echo "Moving old /etc/smbusers to /etc/samba/smbusers" + mv /etc/smbusers /etc/samba/smbusers +fi -# Add swat entry to /etc/services if not already there +echo "Looking for old /etc/lmhosts..." +if [ -f /etc/lmhosts ]; then + echo "Moving old /etc/lmhosts to /etc/samba/lmhosts" + mv /etc/lmhosts /etc/samba/lmhosts +fi + +echo "Looking for old /etc/MACHINE.SID..." +if [ -f /etc/MACHINE.SID ]; then + echo "Moving old /etc/MACHINE.SID to /etc/samba/MACHINE.SID" + mv /etc/MACHINE.SID /etc/samba/MACHINE.SID +fi + +echo "Looking for old /etc/smbpasswd..." +if [ -f /etc/smbpasswd ]; then + echo "Moving old /etc/smbpasswd to /etc/samba/smbpasswd" + mv /etc/smbpasswd /etc/samba/smbpasswd +fi + +# Add swat entry to /etc/services if not already there. if !( grep ^[:space:]*swat /etc/services > /dev/null ) then echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services fi -# Add swat entry to /etc/inetd.conf if needed -if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then - echo 'swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf -killall -1 inetd || : +# Add swat entry to /etc/inetd.conf if needed. +if [ -f /etc/inetd.conf ]; then + if !( grep ^[:space:]*swat /etc/inetd.conf > /dev/null ) then + echo 'swat stream tcp nowait.400 root %{prefix}/sbin/swat swat' >> /etc/inetd.conf + killall -1 inetd || : + fi +fi + +# Add swat entry to xinetd.d if needed. +if [ -d $RPM_BUILD_ROOT/etc/xinetd.d ]; then + mv /etc/samba/samba.xinetd /etc/xinetd.d/swat +else + rm -f /etc/samba/samba.xinetd +fi + +# Install the correct version of the samba pam file, depending on pam version. +if [ -f /lib/security/pam_stack.so ]; then + echo "Installing stack version of /etc/pam.d/samba..." + mv /etc/samba/samba.stack /etc/pam.d/samba +else + echo "Installing non-stack version of /etc/pam.d/samba..." + rm -f /etc/samba/samba.stack fi %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 @@ -311,6 +335,28 @@ if [ $1 = 0 ] ; then if [ -e /var/lock/samba/wins.dat ]; then rm -f /var/lock/samba/wins.dat fi + + # Remove the transient tdb files. + if [ -e /var/lock/samba/brlock.tdb ]; then + rm -f /var/lock/samba/brlock.tdb + fi + + if [ -e /var/lock/samba/unexpected.tdb ]; then + rm -f /var/lock/samba/unexpected.tdb + fi + + if [ -e /var/lock/samba/connections.tdb ]; then + rm -f /var/lock/samba/connections.tdb + fi + + if [ -e /var/lock/samba/locking.tdb ]; then + rm -f /var/lock/samba/locking.tdb + fi + + if [ -e /var/lock/samba/messages.tdb ]; then + rm -f /var/lock/samba/messages.tdb + fi + fi %postun @@ -322,24 +368,25 @@ if [ $1 = 0 ] ; then 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 + if [ -f /etc/inetd.conf ]; then + # preserve inetd.conf permissions. + cp -p /etc/inetd.conf $tmpfile + sed -e '/^[:space:]*swat.*$/d' /etc/inetd.conf > $tmpfile + mv $tmpfile inetd.conf + fi + # preserve services permissions. + cp -p /etc/services $tmpfile sed -e '/^[:space:]*swat.*$/d' /etc/services > $tmpfile - mv $tmpfile services -fi + mv $tmpfile /etc/services -if [ -f /sbin/mount.smb ]; then - rm -f /sbin/mount.smb -fi -if [ -f /sbin/mount.smbfs ]; then - rm -f /sbin/mount.smbfs + # Remove swat entry from /etc/xinetd.d + if [ -f /etc/xinetd.d/swat ]; then + rm -r /etc/xinetd.d/swat + fi fi %triggerpostun -- samba < samba-2.0.0 @@ -347,7 +394,6 @@ if [ $0 != 0 ]; then /sbin/chkconfig --add smb fi - %files %doc README COPYING Manifest Read-Manifest-Now %doc WHATSNEW.txt Roadmap @@ -362,8 +408,6 @@ fi %attr(-,root,root) %{prefix}/sbin/smbumount %attr(-,root,root) /sbin/mount.smbfs %attr(-,root,root) /sbin/mount.smb -%attr(0750,root,root) %{prefix}/sbin/samba -%attr(-,root,root) %{prefix}/bin/addtosmbpass %attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh %attr(-,root,root) %{prefix}/bin/smbclient %attr(-,root,root) %{prefix}/bin/smbspool @@ -379,43 +423,27 @@ fi %attr(-,root,root) %{prefix}/bin/smbpasswd %attr(-,root,root) %{prefix}/bin/smbtar %attr(-,root,root) %{prefix}/bin/smbprint -%attr(-,root,root) %{prefix}/bin/smbadduser +%attr(-,root,root) %{prefix}/bin/smbcontrol +%attr(-,root,root) %{prefix}/bin/smbcacls %attr(755,root,root) /lib/libnss_wins.s* %attr(-,root,root) %{prefix}/share/swat/help/* %attr(-,root,root) %{prefix}/share/swat/images/* %attr(-,root,root) %{prefix}/share/swat/include/header.html %attr(-,root,root) %{prefix}/share/swat/include/footer.html %attr(-,root,root) %{prefix}/share/swat/using_samba/* -%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) %config(noreplace) /etc/samba/lmhosts +%attr(-,root,root) %config(noreplace) /etc/samba/smb.conf +%attr(-,root,root) %config(noreplace) /etc/samba/smbusers +%attr(-,root,root) /etc/samba/samba.stack +%attr(-,root,root) /etc/samba/samba.xinetd %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.* -%attr(-,root,root) %{prefix}/man/man1/make_smbcodepage.1 -%attr(-,root,root) %{prefix}/man/man1/make_unicodemap.1 -%attr(-,root,root) %{prefix}/man/man1/nmblookup.1 -%attr(-,root,root) %{prefix}/man/man1/smbclient.1 -%attr(-,root,root) %{prefix}/man/man1/smbrun.1 -%attr(-,root,root) %{prefix}/man/man1/smbstatus.1 -%attr(-,root,root) %{prefix}/man/man1/smbtar.1 -%attr(-,root,root) %{prefix}/man/man1/testparm.1 -%attr(-,root,root) %{prefix}/man/man1/testprns.1 -%attr(-,root,root) %{prefix}/man/man5/lmhosts.5 -%attr(-,root,root) %{prefix}/man/man5/smb.conf.5 -%attr(-,root,root) %{prefix}/man/man5/smbpasswd.5 -%attr(-,root,root) %{prefix}/man/man7/samba.7 -%attr(-,root,root) %{prefix}/man/man8/nmbd.8 -%attr(-,root,root) %{prefix}/man/man8/smbd.8 -%attr(-,root,root) %{prefix}/man/man8/smbmnt.8 -%attr(-,root,root) %{prefix}/man/man8/smbmount.8 -%attr(-,root,root) %{prefix}/man/man8/smbpasswd.8 -%attr(-,root,root) %{prefix}/man/man8/smbspool.8 -%attr(-,root,root) %{prefix}/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) %config(noreplace) /etc/pam.d/samba +%attr(-,root,root) MANDIR_MACRO/man1/* +%attr(-,root,root) MANDIR_MACRO/man5/* +%attr(-,root,root) MANDIR_MACRO/man7/* +%attr(-,root,root) MANDIR_MACRO/man8/* +%attr(-,root,root) %dir /etc/codepages/* +%attr(755,root,root) %dir /var/lock/samba %attr(-,root,root) %dir /var/log/samba %attr(1777,root,root) %dir /var/spool/samba diff --git a/packaging/RedHat/smb.conf b/packaging/RedHat/smb.conf index 2f28677897..71ff946388 100644 --- a/packaging/RedHat/smb.conf +++ b/packaging/RedHat/smb.conf @@ -63,7 +63,7 @@ # 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 +; smb passwd file = /etc/samba/smbpasswd # The following are needed to allow password changing from Windows to # update the Linux sytsem password also. @@ -76,12 +76,12 @@ ; 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 +; username map = /etc/samba/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 +; include = /etc/samba/smb.conf.%m # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details diff --git a/packaging/RedHat/smb.init b/packaging/RedHat/smb.init index 6529977d23..260439281a 100755 --- a/packaging/RedHat/smb.init +++ b/packaging/RedHat/smb.init @@ -14,7 +14,7 @@ [ ${NETWORKING} = "no" ] && exit 0 # Check that smb.conf exists. -[ -f /etc/smb.conf ] || exit 0 +[ -f /etc/samba/smb.conf ] || exit 0 # See how we were called. case "$1" in -- cgit From c0ee3984b5968a94f604fdf625739f84b9116349 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 1 Jun 2001 12:05:47 +0000 Subject: beginning of merge with SAMBA_2_2 (This used to be commit 3daa174cba4b53f57dfb963e7facb60667113b48) --- packaging/Caldera/OpenLinux/README.Public | 9 +++++++++ packaging/Caldera/OpenLinux/README.home | 15 +++++++++++++++ packaging/Caldera/OpenLinux/README.profiles | 10 ++++++++++ packaging/Caldera/OpenLinux/convertsmbpasswd.perl | 15 --------------- packaging/Caldera/OpenLinux/make_smbpasswd.perl | 13 ------------- 5 files changed, 34 insertions(+), 28 deletions(-) create mode 100644 packaging/Caldera/OpenLinux/README.Public create mode 100644 packaging/Caldera/OpenLinux/README.home create mode 100644 packaging/Caldera/OpenLinux/README.profiles delete mode 100755 packaging/Caldera/OpenLinux/convertsmbpasswd.perl delete mode 100755 packaging/Caldera/OpenLinux/make_smbpasswd.perl (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/README.Public b/packaging/Caldera/OpenLinux/README.Public new file mode 100644 index 0000000000..00f41f3738 --- /dev/null +++ b/packaging/Caldera/OpenLinux/README.Public @@ -0,0 +1,9 @@ +This directory is exported to any windows computer, if the daemon +"SMB server processes (samba)" is started and the distributed +configuration is used. So be careful about any data you put into +this directory. + +The default configuration restricts the access rights to read only +access. + +2000-03-13, Klaus Singvogel, Caldera (Deutschland) GmbH. diff --git a/packaging/Caldera/OpenLinux/README.home b/packaging/Caldera/OpenLinux/README.home new file mode 100644 index 0000000000..5a893eb0e1 --- /dev/null +++ b/packaging/Caldera/OpenLinux/README.home @@ -0,0 +1,15 @@ +This directory $HOME/Samba is exported to any windows computer, if +the daemon "SMB server processes (samba)" is started and the distributed +configuration is used. So be careful about the data you put into this +directory. + +Note: Only the user of this account can connect to this share. The +shares name is equal to the users Linux account, e.g. +\\your_linuxmachine\\your_linuxaccount + +If you want to have the files public accessible use the public browseable +share instead. It's currently /srv/samba/Public, but have a look at file +/etc/samba.d/smb.conf to get the latest name. + + +2000-03-13, Klaus Singvogel, Caldera (Deutschland) GmbH. diff --git a/packaging/Caldera/OpenLinux/README.profiles b/packaging/Caldera/OpenLinux/README.profiles new file mode 100644 index 0000000000..b629e10966 --- /dev/null +++ b/packaging/Caldera/OpenLinux/README.profiles @@ -0,0 +1,10 @@ +This directory is used to store the roaming Profiles of your Windows +users. For more information install the package samba-doc and read the +file /usr/share/doc/packages/samba-2.0.7/docs/textdocs/DOMAIN.txt + +The default configuration sets the access rights to read/write for +anyone. If you see a problem in this, disable the Profiles support in +your samba configuration: either edit file /etc/samba.d/smb.conf or +use swat (http://localhost:901/). + +2000-03-13, Klaus Singvogel, Caldera (Deutschland) GmbH. diff --git a/packaging/Caldera/OpenLinux/convertsmbpasswd.perl b/packaging/Caldera/OpenLinux/convertsmbpasswd.perl deleted file mode 100755 index 6b83886cd4..0000000000 --- a/packaging/Caldera/OpenLinux/convertsmbpasswd.perl +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/perl -w -# -# Convert a Samba 1.9.18 smbpasswd file format into -# a Samba 2.0 smbpasswd file format. -# Read from stdin and write to stdout for simplicity. -# Set the last change time to the time of conversion. -while ( <> ) { - @V = split(/:/); - if ( ! /^\#/ ) { - $V[6] = $V[4] . "\n"; - $V[5] = sprintf( "LCT-%X", time()); - $V[4] = "[U ]"; - } - print( join( ':', @V)); -} diff --git a/packaging/Caldera/OpenLinux/make_smbpasswd.perl b/packaging/Caldera/OpenLinux/make_smbpasswd.perl deleted file mode 100755 index 2666c19666..0000000000 --- a/packaging/Caldera/OpenLinux/make_smbpasswd.perl +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/perl -$X= "X" x 32; -$U="[U ]"; -$L="LCT-00000000"; -print("#\n# SMB password file.\n#\n"); - -while ( <> ) { - next unless (/^[A-Za-z0-9_]/); - chop; - @V = split(/:/); - printf( "%s:%s:%s:%s:%s:%s:%s\n", $V[0], $V[2], $X, $X, $U, $L, $V[4]); -} - -- cgit From 0e40dbf86bd60f7eb057a27f56cded4f689c6747 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 1 Jun 2001 12:24:11 +0000 Subject: sync with SAMBA_2_2 (This used to be commit 720ec55c175bd9df5832085066d1e68b2684a8a2) --- packaging/Caldera/OpenServer/Clean | 22 + packaging/Caldera/OpenServer/Compile | 48 + packaging/Caldera/OpenServer/Configure | 73 + packaging/Caldera/OpenServer/Install | 156 ++ packaging/Caldera/OpenServer/Makevol | 10 + packaging/Caldera/OpenServer/Package | 13 + packaging/Caldera/OpenServer/README | 44 + packaging/Caldera/OpenServer/findsmb | 141 ++ packaging/Caldera/OpenServer/pkg/Clean | 3 + packaging/Caldera/OpenServer/pkg/Install | 1 + packaging/Caldera/OpenServer/pkg/MakeSSO | 25 + packaging/Caldera/OpenServer/pkg/Packem | 15 + packaging/Caldera/OpenServer/pkg/Remove | 16 + packaging/Caldera/OpenServer/pkg/cdmt.config | 34 + packaging/Caldera/OpenServer/pkg/cntl/ccs | 108 ++ packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt | 25 + packaging/Caldera/OpenServer/pkg/input/Samba.pkg | 1905 ++++++++++++++++++++ packaging/Caldera/OpenServer/pkg/input/Samba.prd | 6 + packaging/Caldera/OpenServer/samba-2.2-osr5.patch | 29 + packaging/Caldera/OpenServer/smb.conf | 291 +++ packaging/Caldera/OpenServer/smb.init | 76 + packaging/Caldera/OpenServer/smbadduser | 73 + packaging/Caldera/OpenServer/smbprint | 77 + packaging/Caldera/OpenServer/smbusers | 3 + packaging/Caldera/UnixWare/Clean | 22 + packaging/Caldera/UnixWare/Compile | 52 + packaging/Caldera/UnixWare/Configure | 67 + packaging/Caldera/UnixWare/Install | 146 ++ packaging/Caldera/UnixWare/Makepkg | 10 + packaging/Caldera/UnixWare/Package | 40 + packaging/Caldera/UnixWare/README | 54 + packaging/Caldera/UnixWare/findsmb | 141 ++ packaging/Caldera/UnixWare/pkg/admin | 1 + packaging/Caldera/UnixWare/pkg/pkginfo | 10 + packaging/Caldera/UnixWare/pkg/postinstall | 56 + packaging/Caldera/UnixWare/pkg/postremove | 30 + packaging/Caldera/UnixWare/pkg/prototype | 310 ++++ .../Caldera/UnixWare/samba-2.2-uw7-prototype.patch | 11 + packaging/Caldera/UnixWare/samba-2.2-uw7.patch | 200 ++ packaging/Caldera/UnixWare/smb.conf | 291 +++ packaging/Caldera/UnixWare/smb.init | 76 + packaging/Caldera/UnixWare/smbadduser | 73 + packaging/Caldera/UnixWare/smbprint | 77 + packaging/Caldera/UnixWare/smbusers | 3 + 44 files changed, 4864 insertions(+) create mode 100755 packaging/Caldera/OpenServer/Clean create mode 100755 packaging/Caldera/OpenServer/Compile create mode 100755 packaging/Caldera/OpenServer/Configure create mode 100755 packaging/Caldera/OpenServer/Install create mode 100755 packaging/Caldera/OpenServer/Makevol create mode 100755 packaging/Caldera/OpenServer/Package create mode 100644 packaging/Caldera/OpenServer/README create mode 100755 packaging/Caldera/OpenServer/findsmb create mode 100755 packaging/Caldera/OpenServer/pkg/Clean create mode 100755 packaging/Caldera/OpenServer/pkg/Install create mode 100755 packaging/Caldera/OpenServer/pkg/MakeSSO create mode 100755 packaging/Caldera/OpenServer/pkg/Packem create mode 100755 packaging/Caldera/OpenServer/pkg/Remove create mode 100644 packaging/Caldera/OpenServer/pkg/cdmt.config create mode 100755 packaging/Caldera/OpenServer/pkg/cntl/ccs create mode 100644 packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt create mode 100644 packaging/Caldera/OpenServer/pkg/input/Samba.pkg create mode 100644 packaging/Caldera/OpenServer/pkg/input/Samba.prd create mode 100644 packaging/Caldera/OpenServer/samba-2.2-osr5.patch create mode 100644 packaging/Caldera/OpenServer/smb.conf create mode 100755 packaging/Caldera/OpenServer/smb.init create mode 100755 packaging/Caldera/OpenServer/smbadduser create mode 100755 packaging/Caldera/OpenServer/smbprint create mode 100644 packaging/Caldera/OpenServer/smbusers create mode 100755 packaging/Caldera/UnixWare/Clean create mode 100755 packaging/Caldera/UnixWare/Compile create mode 100755 packaging/Caldera/UnixWare/Configure create mode 100755 packaging/Caldera/UnixWare/Install create mode 100755 packaging/Caldera/UnixWare/Makepkg create mode 100755 packaging/Caldera/UnixWare/Package create mode 100644 packaging/Caldera/UnixWare/README create mode 100755 packaging/Caldera/UnixWare/findsmb create mode 100644 packaging/Caldera/UnixWare/pkg/admin create mode 100644 packaging/Caldera/UnixWare/pkg/pkginfo create mode 100755 packaging/Caldera/UnixWare/pkg/postinstall create mode 100755 packaging/Caldera/UnixWare/pkg/postremove create mode 100644 packaging/Caldera/UnixWare/pkg/prototype create mode 100644 packaging/Caldera/UnixWare/samba-2.2-uw7-prototype.patch create mode 100644 packaging/Caldera/UnixWare/samba-2.2-uw7.patch create mode 100644 packaging/Caldera/UnixWare/smb.conf create mode 100755 packaging/Caldera/UnixWare/smb.init create mode 100755 packaging/Caldera/UnixWare/smbadduser create mode 100755 packaging/Caldera/UnixWare/smbprint create mode 100644 packaging/Caldera/UnixWare/smbusers (limited to 'packaging') diff --git a/packaging/Caldera/OpenServer/Clean b/packaging/Caldera/OpenServer/Clean new file mode 100755 index 0000000000..fe4eed2527 --- /dev/null +++ b/packaging/Caldera/OpenServer/Clean @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Cleanup after having configured, compiled, installed and packaged. +# Careful - running this script attempts to restore this hierarchy to +# freshly unpacked source +# +# Invoke as "./Clean -n" to get this script to tell you what it would do +# without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +[ -d dist ] && $V rm -rf dist +[ -f ../../../source/Makefile ] && { + $V cd ../../../source + $V rm -f bin/locktest bin/masktest bin/smbsh bin/debug2html \ + bin/locktest2 bin/smbfilter bin/smbtorture + $V make clean + $V make distclean + $V rm -f mout* +} diff --git a/packaging/Caldera/OpenServer/Compile b/packaging/Caldera/OpenServer/Compile new file mode 100755 index 0000000000..cba414ec74 --- /dev/null +++ b/packaging/Caldera/OpenServer/Compile @@ -0,0 +1,48 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="gcc -I/usr/local/include -L/usr/local/lib" +CFLAGS="-O3 -I/usr/local/include -L/usr/local/lib" +CXX="g++" +CXXFLAGS="-O3 -I/usr/local/include/stl -I/usr/local/include -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" +else + export CC CXX RANLIB MAKE CFLAGS CXXFLAGS +fi + +if [ "$V" = "echo" ] +then + echo "cd ../../../source" + echo "rm -f mout-1 mout-2 mout-3 mout-4" + echo "make all 2>&1 | tee mout-1" + echo "make smbfilter smbtorture debug2html 2>&1 | tee mout-2" + echo "make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3" + echo "make masktest locktest locktest2 2>&1 | tee mout-3" +else + cd ../../../source + rm -f mout-1 mout-2 mout-3 mout-4 + make all 2>&1 | tee mout-1 + make smbfilter smbtorture debug2html 2>&1 | tee mout-2 + make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3 + make masktest locktest locktest2 2>&1 | tee mout-3 +fi +# +# Not building : +# nsswitch - no +# rpctorture - improper use of client_info struct, dunno diff --git a/packaging/Caldera/OpenServer/Configure b/packaging/Caldera/OpenServer/Configure new file mode 100755 index 0000000000..65a4f1186f --- /dev/null +++ b/packaging/Caldera/OpenServer/Configure @@ -0,0 +1,73 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="gcc -I/usr/local/include -L/usr/local/lib" +CFLAGS="-O3 -I/usr/local/include -L/usr/local/lib" +CXX="g++" +CXXFLAGS="-O3 -I/usr/local/include/stl -I/usr/local/include -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +PREFIX=/usr/local/samba +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" + echo "PREFIX=$PREFIX" +else + export CC CXX RANLIB MAKE CFLAGS CXXFLAGS PREFIX +fi + +cd ../../../source +[ -f mout-config ] && { + if [ "$V" = "echo" ] + then + echo "mv mout-config mout-config$$" + else + mv mout-config mout-config$$ + fi +} +if [ "$V" = "echo" ] +then + echo "./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config" +else + ./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config +fi + +cat >> include/config.h < /tmp/nouser$$ +cp /tmp/nouser$$ include/local.h +rm -f /tmp/nouser$$ diff --git a/packaging/Caldera/OpenServer/Install b/packaging/Caldera/OpenServer/Install new file mode 100755 index 0000000000..ab27b6f67f --- /dev/null +++ b/packaging/Caldera/OpenServer/Install @@ -0,0 +1,156 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +# Make sure we pick up the install binary from /usr/local/bin +# rather than /etc/install +PATH=/usr/local/bin:$PATH +export PATH + +PREFIX=/usr/local/samba +HERE=`pwd` +PKGDIR=packaging/Caldera/OpenServer + +BUILD_ROOT=${HERE}/dist +BLDFIX=${BUILD_ROOT}/${PREFIX} +$V rm -rf $BUILD_ROOT +$V mkdir -p $BUILD_ROOT/etc/init.d +$V mkdir -p ${BLDFIX}/bin +$V mkdir -p ${BLDFIX}/sbin +$V mkdir -p ${BLDFIX}/swat/using_samba/gifs +$V mkdir -p ${BLDFIX}/swat/using_samba/figs +$V mkdir -p ${BLDFIX}/swat/images +$V mkdir -p ${BLDFIX}/swat/help +$V mkdir -p ${BLDFIX}/swat/include +$V mkdir -p ${BLDFIX}/man/man.1 +$V mkdir -p ${BLDFIX}/man/man.5 +$V mkdir -p ${BLDFIX}/man/man.7 +$V mkdir -p ${BLDFIX}/man/man.8 +$V mkdir -p ${BLDFIX}/var/locks +$V mkdir -p ${BLDFIX}/lib/codepages/src + +# Copy into the dist tree the custom data files +for i in Clean Install MakeSSO Packem Remove cdmt.config +do + $V cp pkg/$i ${BUILD_ROOT} +done +for i in cntl input +do + $V rm -rf ${BUILD_ROOT}/$i + $V cp -r pkg/$i ${BUILD_ROOT}/$i +done + +cd ../../.. + +# Install standard binary files +for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \ + smbsh +do +$V install -m755 -s source/bin/$i ${BLDFIX}/bin +done +for i in mksmbpasswd.sh smbtar +do +$V install -m755 source/script/$i ${BLDFIX}/bin +done + +# Install secure binary files +for i in smbd nmbd swat debug2html smbtorture smbfilter locktest2 masktest +do +$V install -m755 -s source/bin/$i ${BLDFIX}/sbin +done + + +# Install level 1 man pages +for i in *.1 +do +$V install -m644 docs/manpages/$i ${BLDFIX}/man/man.1 +done + +# Install codepage source files +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do +$V install -m644 source/codepages/codepage_def.$i ${BLDFIX}/lib/codepages/src +done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +$V install -m644 source/codepages/CP$i.TXT ${BLDFIX}/lib/codepages/src +done + +# Install SWAT helper files +for i in swat/help/*.html docs/htmldocs/*.html +do +$V install -m644 $i ${BLDFIX}/swat/help +done +for i in swat/images/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/images +done +for i in swat/include/*.html +do +$V install -m644 $i ${BLDFIX}/swat/include +done + +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +$V install -m644 $i ${BLDFIX}/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/gifs +done + +# Install the miscellany +$V install -m644 swat/README ${BLDFIX}/swat +$V install -m644 docs/manpages/smb.conf.5 ${BLDFIX}/man/man.5 +$V install -m644 docs/manpages/lmhosts.5 ${BLDFIX}/man/man.5 +$V install -m644 docs/manpages/smbpasswd.5 ${BLDFIX}/man/man.5 +$V install -m644 docs/manpages/samba.7 ${BLDFIX}/man/man.7 +$V install -m644 docs/manpages/smbd.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/nmbd.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbpasswd.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/swat.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbmount.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbmnt.8 ${BLDFIX}/man/man.8 +$V install -m644 docs/manpages/smbumount.8 ${BLDFIX}/man/man.8 +$V install -m644 ${PKGDIR}/smb.conf ${BLDFIX}/lib/smb.conf +$V install -m644 ${PKGDIR}/smbusers $BUILD_ROOT/etc/smbusers +$V install -m755 ${PKGDIR}/smbprint ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/findsmb ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smbadduser ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smb.init $BUILD_ROOT/etc/init.d/samba + +# The following is now done in the postinstall script +# +# if [ "$V" = "echo" ] +# then +# echo "echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts" +# else +# echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts +# fi +# +# Build codepage load files +# $V cd ${BLDFIX}/lib/codepages +# for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +# do +# $V ${PREFIX}/bin/make_smbcodepage c $i \ +# ${BLDFIX}/lib/codepages/src/codepage_def.$i \ +# ${BLDFIX}/lib/codepages/codepage.$i +# done +# for i in 437 737 850 852 861 866 932 936 949 950 \ +# ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +# do +# $V ${PREFIX}/bin/make_unicodemap $i \ +# ${BLDFIX}/lib/codepages/src/CP$i.TXT \ +# ${BLDFIX}/lib/codepages/unicode_map.$i +# done diff --git a/packaging/Caldera/OpenServer/Makevol b/packaging/Caldera/OpenServer/Makevol new file mode 100755 index 0000000000..dc57b246ef --- /dev/null +++ b/packaging/Caldera/OpenServer/Makevol @@ -0,0 +1,10 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +./Configure $* +./Compile $* +./Install $* +./Package $* diff --git a/packaging/Caldera/OpenServer/Package b/packaging/Caldera/OpenServer/Package new file mode 100755 index 0000000000..c954e55e1e --- /dev/null +++ b/packaging/Caldera/OpenServer/Package @@ -0,0 +1,13 @@ +#!/bin/ksh +# +# Now create the actual custom installable media images +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +$V cd dist +$V ./MakeSSO diff --git a/packaging/Caldera/OpenServer/README b/packaging/Caldera/OpenServer/README new file mode 100644 index 0000000000..794bf54604 --- /dev/null +++ b/packaging/Caldera/OpenServer/README @@ -0,0 +1,44 @@ +Preparation Date: April 13, 2001 +Preparer: Ronald Joe Record + +Instructions: Preparing Samba Packages for SCO OpenServer +=============================================================== + +We provide support only for current versions of SCO OpenServer + +The file samba-2.2-osr5.patch is a patch file suitable for use +with the patch command as follows: + + # cd ../../../source + # patch -p 0 -i ../packaging/Caldera/OpenServer/samba-2.2-osr5.patch + +The files modified by this patch are: + utils/torture.c + utils/locktest.c + utils/locktest2.c + +This patch should only be necessary until these changes are accepted +back into the 2.2 source tree. Until then, this patch must be applied +prior to building Samba 2.2 on SCO OpenServer 5. + +To produce the custom installable media images simply type (in this directory): + # ./Makevol + +The resultant samba media images should reside in the ./dist subdirectory. +To install from the media images, issue the command (as root): + + # cd dist + # ./Install + +Alternately, each of the steps in building the media images may be performed +individually by invoking each of the following: + + # ./Configure + # ./Compile + # ./Install + # ./Package + +If files are added or deleted from the SCO OpenServer Samba distribution then +the prototype file in the pkg directory should be appropriately modified. +The files in the pkg subdirectory were initially created using the mkpkg +package from SCO Skunkware (see http://www.sco.com/skunkware). diff --git a/packaging/Caldera/OpenServer/findsmb b/packaging/Caldera/OpenServer/findsmb new file mode 100755 index 0000000000..bb91c784b8 --- /dev/null +++ b/packaging/Caldera/OpenServer/findsmb @@ -0,0 +1,141 @@ +#!/usr/local/bin/perl +# +# Prints info on all smb responding machines on a subnet. +# This script needs to be run on a machine without nmbd running and be +# run as root to get correct info from WIN95 clients. +# +# syntax: +# findsmb [subnet broadcast address] +# +# with no agrument it will list machines on the current subnet +# +# There will be a "+" in front of the workgroup name for machines that are +# local master browsers for that workgroup. There will be an "*" in front +# of the workgroup name for machines that are the domain master browser for +# that workgroup. +# + +$SAMBABIN = "/usr/local/samba/bin"; + +for ($i = 0; $i < 2; $i++) { # test for -d option and broadcast address + $_ = shift; + if (m/-d|-D/) { + $DEBUG = 1; + } else { + if ($_) { + $BCAST = "-B $_"; + } + } +} + +sub ipsort # do numeric sort on last field of IP address +{ + @t1 = split(/\./,$a); + @t2 = split(/\./,$b); + @t1[3] <=> @t2[3]; +} + +# look for all machines that respond to a name lookup + +open(NMBLOOKUP,"$SAMBABIN/nmblookup $BCAST '*'|") || + die("Can't run nmblookup '*'.\n"); + +# get rid of all lines that are not a response IP address, +# strip everything but IP address and sort by last field in address + +@ipaddrs = sort ipsort grep(s/ \*<00>.*$//,); + +# 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/OpenServer/pkg/Clean b/packaging/Caldera/OpenServer/pkg/Clean new file mode 100755 index 0000000000..fa68f18118 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Clean @@ -0,0 +1,3 @@ +#!/bin/sh + +rm -rf archives sso usr diff --git a/packaging/Caldera/OpenServer/pkg/Install b/packaging/Caldera/OpenServer/pkg/Install new file mode 100755 index 0000000000..ef0f61f33e --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Install @@ -0,0 +1 @@ +custom -p SKUNK2000:Samba -i -z `pwd`/archives/FLOPPY diff --git a/packaging/Caldera/OpenServer/pkg/MakeSSO b/packaging/Caldera/OpenServer/pkg/MakeSSO new file mode 100755 index 0000000000..538aaf58f7 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/MakeSSO @@ -0,0 +1,25 @@ +: +# MakeSSO +# + +rm -rf archives sso + + CDMT_DIR=`pwd`; export CDMT_DIR + Samba_DIR=`pwd`; export Samba_DIR + cdmtParse + if test $? != 0 + then + exit 1 + fi + + cdmtCompress + if test $? != 0 + then + exit 1 + fi + + cdmtArchive + if test $? != 0 + then + exit 1 + fi diff --git a/packaging/Caldera/OpenServer/pkg/Packem b/packaging/Caldera/OpenServer/pkg/Packem new file mode 100755 index 0000000000..a1b67e972d --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Packem @@ -0,0 +1,15 @@ +#!/bin/sh + +P=`pwd` +PKGTAR=`basename $P`-VOLS.tar +PKGDIST=`basename $P`-dist.tar.gz + +DIRS=usr +[ -d etc ] && DIRS="etc usr" +cd archives/FLOPPY +tar cf ../../$PKGTAR VOL* +cd ../.. +tar cf - $DIRS | /usr/local/bin/gzip -9 > $PKGDIST +[ -f $PKGTAR ] && rm -rf archives +[ -f $PKGDIST ] && rm -rf $DIRS +rm -rf sso diff --git a/packaging/Caldera/OpenServer/pkg/Remove b/packaging/Caldera/OpenServer/pkg/Remove new file mode 100755 index 0000000000..ea6102ac38 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/Remove @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Generic command-line Software Manger (custom) removal from +# media images. Based on the installation script by Phil Hollenback +# (philiph@sco.com) and Ron Record (rr@sco.com) +# + +# Set this to be the full pathname to the directory +# where your media images are: +VDIR=`pwd`/archives/FLOPPY +VOLS=$VDIR/VOL.000.000 + +component=`grep "component" < $VOLS | head -1 | cut -d= -f2 | cut -d: -f1` +package=`grep "component" < $VOLS | head -1 | cut -d= -f2 | cut -d: -f2` + +custom -p $component:$package -r diff --git a/packaging/Caldera/OpenServer/pkg/cdmt.config b/packaging/Caldera/OpenServer/pkg/cdmt.config new file mode 100644 index 0000000000..e11c1961f2 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/cdmt.config @@ -0,0 +1,34 @@ +MACROS: + +DEFAULT_EXEC_MODE = 0755 + +DEFAULT_FILE_MODE = 0644 +DEFAULT_FILE_OWNER = bin +DEFAULT_FILE_GROUP = bin + +DEFAULT_DIR_MODE = 0755 +DEFAULT_DIR_OWNER = bin +DEFAULT_DIR_GROUP = bin + +DEFAULT_FIFO_MODE = 0644 +DEFAULT_FIFO_OWNER = bin +DEFAULT_FIFO_GROUP = bin + +DEFAULT_DISTTREEROOT_SHARED = $CDMT_DIR +DEFAULT_DISTTREEROOT_CLIENT = $CDMT_DIR + +CONFIG: + removeFiles = FALSE + removalPrompt = FALSE + archiveMedia = FLOPPY + compress = TRUE + ssoDir = sso + +FLOPPY_MEDIA: + device = /dev/rfd0 + volumeSize = 8000 + distVendor = SCO + distVersion = 2.2 + distCode = SKUNK2000 + paperLabel = "SCO Skunkware Samba 2.2" + diff --git a/packaging/Caldera/OpenServer/pkg/cntl/ccs b/packaging/Caldera/OpenServer/pkg/cntl/ccs new file mode 100755 index 0000000000..0cb22490e4 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/cntl/ccs @@ -0,0 +1,108 @@ +#!/bin/sh +# +# Postinstallscript written by Ron Record (rr@sco.com) +# + +scriptname="$0" +step="$1" +keywords="$2" +pkglist="$3" + +# Source in the standard functions library, ccsSetup.sh +. ccsSetup.sh + +ccs_return_value=0 + +SPOOL=/var/spool/samba +SVCS=/etc/services +INET=/etc/inetd.conf +LMHOST=/etc/lmhosts +PREFIX=/usr/local/samba + +# +# Create /var/spool/samba, create an initial /etc/lmhosts, build the +# codepages and setup swat to be run out of inetd on port 901 +# +PostExport() +{ + [ -d $SPOOL ] || { + mkdir -p $SPOOL + chmod 1777 $SPOOL + } + if [ -f $LMHOST ] + then + grep localhost $LMHOST > /dev/null || { + echo 127.0.0.1 localhost >> $LMHOST + } + else + echo 127.0.0.1 localhost > $LMHOST + fi + + cd ${PREFIX}/lib/codepages + for i in 437 737 775 850 852 861 866 932 936 949 950 1251 + do + ${PREFIX}/bin/make_smbcodepage c $i \ + ${PREFIX}/lib/codepages/src/codepage_def.$i \ + ${PREFIX}/lib/codepages/codepage.$i + done + for i in 437 737 850 852 861 866 932 936 949 950 \ + ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R + do + ${PREFIX}/bin/make_unicodemap $i \ + ${PREFIX}/lib/codepages/src/CP$i.TXT \ + ${PREFIX}/lib/codepages/unicode_map.$i + done + + grep swat $SVCS > /dev/null || { + echo "swat 901/tcp # Samba Web Administration Tool " >> $SVCS + } + + grep swat $INET > /dev/null || { + echo "swat stream tcp nowait root /usr/local/samba/bin/swat swat " >> $INET + } + + kill -1 `ps -e | grep inetd | awk ' { print $1 } '` +} + +DisableStop() +{ + /etc/init.d/samba disable > /dev/null 2>&1 + /etc/init.d/samba stop > /dev/null 2>&1 +} + +# +# Remove /var/spool/samba and delete inetd entries for swat +# +PostUnexport() +{ + [ -d $SPOOL ] && { + rm -rf $SPOOL + } + + grep swat $SVCS > /dev/null && { + B=`basename $SVCS` + T=$B$$ + grep -v swat $SVCS > /tmp/$T + cp /tmp/$T $SVCS + rm -f /tmp/$T + } + + grep swat $INET > /dev/null || { + B=`basename $INET` + T=$B$$ + grep -v swat $INET > /tmp/$T + cp /tmp/$T $INET + rm -f /tmp/$T + } + + kill -1 `ps -e | grep inetd | awk ' { print $1 } '` +} + +case "$step" in + POST_EXPORT) PostExport ;; + PRE_UNEXPORT) DisableStop ;; + POST_UNEXPORT) PostUnexport ;; +esac + +exit $ccs_return_value + diff --git a/packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt b/packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt new file mode 100644 index 0000000000..245f6d12ce --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/input/Samba.cmpnt @@ -0,0 +1,25 @@ + +COMP:SKUNK2000:Samba: +description = "Samba - A Windows SMB/CIFS fileserver for UNIX" +version = 2.2 +subpackages = Samba +required = Samba +dependencies = +distTreeRootSHARED = $Samba_DIR +distTreeRootCLIENT = $Samba_DIR +pkgFiles = $Samba_DIR/input/Samba.pkg + +FILE_DEFAULT: +mode = $DEFAULT_FILE_MODE +owner = $DEFAULT_FILE_OWNER +group = $DEFAULT_FILE_GROUP + +DIR_DEFAULT: +mode = $DEFAULT_DIR_MODE +owner = $DEFAULT_DIR_OWNER +group = $DEFAULT_DIR_GROUP + +FIFO_DEFAULT: +mode = $DEFAULT_FIFO_MODE +owner = $DEFAULT_FIFO_OWNER +group = $DEFAULT_FIFO_GROUP diff --git a/packaging/Caldera/OpenServer/pkg/input/Samba.pkg b/packaging/Caldera/OpenServer/pkg/input/Samba.pkg new file mode 100644 index 0000000000..ea76e74a61 --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/input/Samba.pkg @@ -0,0 +1,1905 @@ + +PKG:Control: +description = "Control package" +dependencies = +distTreeRootSHARED = $Samba_DIR +distTreeRootCLIENT = $Samba_DIR + +DIR:Control:SHARED:cntl: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Control:SHARED:cntl/ccs: +mode = 0755 +owner = root +group = sys +flags = + +PKG:Samba: +description = "Samba - A Windows SMB/CIFS fileserver for UNIX" +dependencies = +distTreeRootSHARED = $Samba_DIR +distTreeRootCLIENT = $Samba_DIR + +DIR:Samba:SHARED:etc: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:etc/init.d: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:etc/init.d/samba: +mode = 0755 +owner = root +group = sys +flags = +exportPath = /etc/init.d/samba + +FILE:Samba:SHARED:etc/smbusers: +mode = 0644 +owner = root +group = sys +flags = +exportPath = /etc/smbusers + +DIR:Samba:SHARED:usr: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba: +mode = 0755 +owner = root +group = sys +flags = +exportPath = /usr/local/samba + +DIR:Samba:SHARED:usr/local/samba/bin: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/nmblookup: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbclient: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbpasswd: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbstatus: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/testparm: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/testprns: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/make_smbcodepage: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/make_unicodemap: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/make_printerdef: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/rpcclient: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbspool: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbsh: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/mksmbpasswd.sh: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbtar: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbprint: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/findsmb: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/bin/smbadduser: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/sbin: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/smbd: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/nmbd: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/swat: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/debug2html: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/smbtorture: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/smbfilter: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/locktest2: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/sbin/masktest: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/using_samba: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/using_samba/gifs: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/index.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/samba.s.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/txthome.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/txtnexta.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/gifs/txtpreva.gif: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/using_samba/figs: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0101.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0102.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0103.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0104.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0105.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0106.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0107.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0108.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0109.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0110.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0111.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0112.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0113.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0114.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0201.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0202.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0203.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0204.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0301.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0302.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0303.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0304.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0305.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0306.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0307.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0308.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0309.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0310.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0311.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0312.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0313.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0314.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0315.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0316.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0317.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0318.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0319.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0320.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0321.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0322.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0323.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0324.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0325.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0326.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0327.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0328.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0401.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0402.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0403.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0404.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0405.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0406.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0407.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0501.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0502.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0503.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0504.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0505.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0506.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0507.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0508.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0601.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0602.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0603.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0604.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0605.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0606.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0701.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0702.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0703.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0704.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0705.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0706.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0707.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0708.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0709.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0801.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0802.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0803.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0804.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0805.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0901.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0902.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0903.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0904.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.0905.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.aa01.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.ab01.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/figs/sam.ab02.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appa_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appb_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appb_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appb_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appc_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appd_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appe_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/appf_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_07.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch01_08.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch02_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch03_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch03_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch03_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_07.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch04_08.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch05_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch06_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch07_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch07_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch07_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_04.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_05.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_06.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch08_07.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch09_01.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch09_02.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/ch09_03.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/index.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/inx.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/licenseinfo.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/using_samba/this_edition.html: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/images: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/globals.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/home.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/passwd.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/printers.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/samba.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/shares.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/status.gif: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/images/viewconfig.gif: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/help: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/welcome.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/DOMAIN_MEMBER.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/NT_Security.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/OS2-Client-HOWTO.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/Samba-HOWTO-Collection.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/UNIX_INSTALL.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/findsmb.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/lmhosts.5.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/make_smbcodepage.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/msdfs_setup.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/nmbd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/nmblookup.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/printer_driver2.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/rpcclient.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/samba-pdc-faq.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/samba-pdc-howto.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/samba.7.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smb.conf.5.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbcacls.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbclient.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbcontrol.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbmnt.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbmount.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbpasswd.5.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbpasswd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbrun.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbsh.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbspool.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbstatus.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbtar.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/smbumount.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/swat.8.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/testparm.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/testprns.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/wbinfo.1.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/winbind.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/help/winbindd.8.html: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/swat/include: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/include/footer.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/include/header.html: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/swat/README: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.1: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/findsmb.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/make_smbcodepage.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/make_unicodemap.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/nmblookup.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/rpcclient.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbcacls.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbclient.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbcontrol.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbrun.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbsh.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbstatus.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/smbtar.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/testparm.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/testprns.1: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.1/wbinfo.1: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.5: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.5/smb.conf.5: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.5/lmhosts.5: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.5/smbpasswd.5: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.7: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.7/samba.7: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/man/man.8: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbd.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/nmbd.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbpasswd.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/swat.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbmount.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbmnt.8: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/man/man.8/smbumount.8: +mode = 0644 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/var: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/var/locks: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/lib: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/lib/codepages: +mode = 0755 +owner = root +group = sys +flags = + +DIR:Samba:SHARED:usr/local/samba/lib/codepages/src: +mode = 0755 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.437: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.737: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.775: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.850: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.852: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.861: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.866: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.932: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.936: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.949: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.950: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/codepage_def.1251: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP437.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP737.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP850.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP852.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP861.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP866.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP932.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP936.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP949.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CP950.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-1.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-2.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-5.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPISO8859-7.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/codepages/src/CPKOI8-R.TXT: +mode = 0644 +owner = root +group = sys +flags = + +FILE:Samba:SHARED:usr/local/samba/lib/smb.conf: +mode = 0644 +owner = root +group = sys +flags = diff --git a/packaging/Caldera/OpenServer/pkg/input/Samba.prd b/packaging/Caldera/OpenServer/pkg/input/Samba.prd new file mode 100644 index 0000000000..e31c8bfe8e --- /dev/null +++ b/packaging/Caldera/OpenServer/pkg/input/Samba.prd @@ -0,0 +1,6 @@ +PROD:SKUNK2000:Samba: +description = "Samba - A Windows SMB/CIFS fileserver for UNIX" +version = 2.2 +packages = SKUNK2000:Samba +required = SKUNK2000:Samba +cmpntFiles = Samba.cmpnt diff --git a/packaging/Caldera/OpenServer/samba-2.2-osr5.patch b/packaging/Caldera/OpenServer/samba-2.2-osr5.patch new file mode 100644 index 0000000000..fb71d9298b --- /dev/null +++ b/packaging/Caldera/OpenServer/samba-2.2-osr5.patch @@ -0,0 +1,29 @@ +--- utils/torture.c.00 Fri Mar 30 13:53:26 2001 ++++ utils/torture.c Fri Apr 13 15:06:04 2001 +@@ -2703,7 +2703,11 @@ + + dbf = stdout; + ++#if defined(_SCO_DS) /* SCO OpenServer */ ++ setvbuf(stdout, NULL, _IONBF, 0); ++#else + setbuffer(stdout, NULL, 0); ++#endif + + charset_initialise(); + +--- utils/locktest.c.00 Fri Sep 29 13:18:14 2000 ++++ utils/locktest.c Fri Apr 13 17:54:11 2001 +@@ -384,8 +384,12 @@ + recorded[n].conn = random() % NCONNECTIONS; + recorded[n].f = random() % NFILES; + recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1)); ++#if defined(_SCO_DS) /* OpenServer */ ++ recorded[n].len = 1; ++#else + recorded[n].len = 1 + + random() % (LOCKRANGE-(recorded[n].start-LOCKBASE)); ++#endif + recorded[n].start *= RANGE_MULTIPLE; + recorded[n].len *= RANGE_MULTIPLE; + recorded[n].r1 = random() % 100; diff --git a/packaging/Caldera/OpenServer/smb.conf b/packaging/Caldera/OpenServer/smb.conf new file mode 100644 index 0000000000..717c4efb17 --- /dev/null +++ b/packaging/Caldera/OpenServer/smb.conf @@ -0,0 +1,291 @@ +# This is the main Samba configuration file. You should read the +# smb.conf(5) manual page in order to understand the options listed +# here. Samba has a huge number of configurable options (perhaps too +# many!) most of which are not shown in this example +# +# Any line which starts with a ; (semi-colon) or a # (hash) +# is a comment and is ignored. In this example we will use a # +# for commentry and a ; for parts of the config file that you +# may wish to enable +# +# NOTE: Whenever you modify this file you should run the command "testparm" +# to check that you have not many any basic syntactic errors. +# +#======================= Global Settings ===================================== +[global] + +# workgroup = NT-Domain-Name or Workgroup-Name + workgroup = MYGROUP + +# server string is the equivalent of the NT Description field + server string = Samba Server + +# This option is important for security. It allows you to restrict +# connections to machines which are on your local network. The +# following example restricts access to two C class networks and +# the "loopback" interface. For more examples of the syntax see +# the smb.conf man page +; hosts allow = 192.168.1. 192.168.2. 127. + +# if you want to automatically load your printer list rather +# than setting them up individually then you'll need this + printcap name = lpstat + load printers = yes + +# It should not be necessary to spell out the print system type unless +# yours is non-standard. Currently supported print systems include: +# bsd, sysv, plp, lprng, aix, hpux, qnx + printing = sysv + +# Uncomment this if you want a guest account, you must add this to /etc/passwd +# otherwise the user "nouser" is used +; guest account = pcguest + +# this tells Samba to use a separate log file for each machine +# that connects + log file = /usr/local/samba/var/log.%m + +# Put a capping on the size of the log files (in Kb). + max log size = 50 + +# Security mode. Most people will want user level security. See +# security_level.txt for details. + security = user +# Use password server option only with security = server +; password server = + +# Password Level allows matching of _n_ characters of the password for +# all combinations of upper and lower case. +; password level = 8 +; username level = 8 + +# You may wish to use password encryption. Please read +# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. +# Do not enable this option unless you have read those documents +; encrypt passwords = yes +; smb passwd file = /etc/smbpasswd + +# The following are needed to allow password changing from Windows to +# update the Linux sytsem password also. +# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. +# NOTE2: You do NOT need these to allow workstations to change only +# the encrypted SMB passwords. They allow the Unix password +# to be kept in sync with the SMB password. +; unix password sync = Yes +; passwd program = /usr/bin/passwd %u +; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* + +# Unix users can map to different SMB User names +; username map = /etc/smbusers + +# Using the following line enables you to customise your configuration +# on a per machine basis. The %m gets replaced with the netbios name +# of the machine that is connecting +; include = /etc/smb.conf.%m + +# Most people will find that this option gives better performance. +# See speed.txt and the manual pages for details + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 + +# Configure Samba to use multiple interfaces +# If you have multiple network interfaces then you must list them +# here. See the man page for details. +; interfaces = 192.168.12.2/24 192.168.13.2/24 + +# Configure remote browse list synchronisation here +# request announcement to, or browse list sync from: +# a specific host or from / to a whole subnet (see below) +; remote browse sync = 192.168.3.25 192.168.5.255 +# Cause this host to announce itself to local subnets here +; remote announce = 192.168.1.255 192.168.2.44 + +# Browser Control Options: +# set local master to no if you don't want Samba to become a master +# browser on your network. Otherwise the normal election rules apply +; local master = no + +# OS Level determines the precedence of this server in master browser +# elections. The default value should be reasonable +; os level = 33 + +# Domain Master specifies Samba to be the Domain Master Browser. This +# allows Samba to collate browse lists between subnets. Don't use this +# if you already have a Windows NT domain controller doing this job +; domain master = yes + +# Preferred Master causes Samba to force a local browser election on startup +# and gives it a slightly higher chance of winning the election +; preferred master = yes + +# Use only if you have an NT server on your network that has been +# configured at install time to be a primary domain controller. +; domain controller = + +# Enable this if you want Samba to be a domain logon server for +# Windows95 workstations. +; domain logons = yes + +# if you enable domain logons then you may want a per-machine or +# per user logon script +# run a specific logon batch file per workstation (machine) +; logon script = %m.bat +# run a specific logon batch file per username +; logon script = %U.bat + +# Where to store roving profiles (only for Win95 and WinNT) +# %L substitutes for this servers netbios name, %U is username +# You must uncomment the [Profiles] share below +; logon path = \\%L\Profiles\%U + +# All NetBIOS names must be resolved to IP Addresses +# 'Name Resolve Order' allows the named resolution mechanism to be specified +# the default order is "host lmhosts wins bcast". "host" means use the unix +# system gethostbyname() function call that will use either /etc/hosts OR +# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf +# and the /etc/resolv.conf file. "host" therefore is system configuration +# dependant. This parameter is most often of use to prevent DNS lookups +# in order to resolve NetBIOS names to IP Addresses. Use with care! +# The example below excludes use of name resolution for machines that are NOT +# on the local network segment +# - OR - are not deliberately to be known via lmhosts or via WINS. +; name resolve order = wins lmhosts bcast + +# Windows Internet Name Serving Support Section: +# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server +; wins support = yes + +# WINS Server - Tells the NMBD components of Samba to be a WINS Client +# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both +; wins server = w.x.y.z + +# WINS Proxy - Tells Samba to answer name resolution queries on +# behalf of a non WINS capable client, for this to work there must be +# at least one WINS Server on the network. The default is NO. +; wins proxy = yes + +# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names +# via DNS nslookups. The built-in default for versions 1.9.17 is yes, +# this has been changed in version 1.9.18 to no. + dns proxy = no + +# Case Preservation can be handy - system default is _no_ +# NOTE: These can be set on a per share basis +; preserve case = no +; short preserve case = no +# Default case is normally upper case for all DOS files +; default case = lower +# Be very careful with case sensitivity - it can break things! +; case sensitive = no + +#============================ Share Definitions ============================== +[homes] + comment = Home Directories + browseable = no + writable = yes + +# Un-comment the following and create the netlogon directory for Domain Logons +; [netlogon] +; comment = Network Logon Service +; path = /home/netlogon +; guest ok = yes +; writable = no +; share modes = no + + +# Un-comment the following to provide a specific roving profile share +# the default is to use the user's home directory +;[Profiles] +; path = /home/profiles +; browseable = no +; guest ok = yes + + +# NOTE: If you have a BSD-style print system there is no need to +# specifically define each individual printer +[printers] + comment = All Printers + path = /var/spool/samba + browseable = no +# Set public = yes to allow user 'guest account' to print + guest ok = no + writable = no + printable = yes + +# This one is useful for people to share files +;[tmp] +; comment = Temporary file space +; path = /tmp +; read only = no +; public = yes + +# A publicly accessible directory, but read only, except for people in +# the "staff" group +;[public] +; comment = Public Stuff +; path = /home/samba +; public = yes +; writable = yes +; printable = no +; write list = @staff + +# Other examples. +# +# A private printer, usable only by fred. Spool data will be placed in fred's +# home directory. Note that fred must have write access to the spool directory, +# wherever it is. +;[fredsprn] +; comment = Fred's Printer +; valid users = fred +; path = /homes/fred +; printer = freds_printer +; public = no +; writable = no +; printable = yes + +# A private directory, usable only by fred. Note that fred requires write +# access to the directory. +;[fredsdir] +; comment = Fred's Service +; path = /usr/somewhere/private +; valid users = fred +; public = no +; writable = yes +; printable = no + +# a service which has a different directory for each machine that connects +# this allows you to tailor configurations to incoming machines. You could +# also use the %u option to tailor it by user name. +# The %m gets replaced with the machine name that is connecting. +;[pchome] +; comment = PC Directories +; path = /usr/pc/%m +; public = no +; writable = yes + +# A publicly accessible directory, read/write to all users. Note that all files +# created in the directory by users will be owned by the default user, so +# any user with access can delete any other user's files. Obviously this +# directory must be writable by the default user. Another user could of course +# be specified, in which case all files would be owned by that user instead. +;[public] +; path = /usr/somewhere/else/public +; public = yes +; only guest = yes +; writable = yes +; printable = no + +# The following two entries demonstrate how to share a directory so that two +# users can place files there that will be owned by the specific users. In this +# setup, the directory should be writable by both users and should have the +# sticky bit set on it to prevent abuse. Obviously this could be extended to +# as many users as required. +;[myshare] +; comment = Mary's and Fred's stuff +; path = /usr/somewhere/shared +; valid users = mary fred +; public = no +; writable = yes +; printable = no +; create mask = 0765 + + diff --git a/packaging/Caldera/OpenServer/smb.init b/packaging/Caldera/OpenServer/smb.init new file mode 100755 index 0000000000..ce6c6fa4b3 --- /dev/null +++ b/packaging/Caldera/OpenServer/smb.init @@ -0,0 +1,76 @@ +#!/bin/sh +#ident "@(#)samba.server 1.0 96/06/19 TK" /* SVr4.0 1.1.13.1*/ +# +# Please send info on modifications to knuutila@cs.utu.fi +# +# This file should have uid root, gid sys and chmod 744 +# +# Modified 17-Jul-99 by Ron Record (rr@sco.com) for use in SCO Skunkware +# + +SAMBADIR=/usr/local/samba +RCSCRIPT=/etc/rc2.d/S99samba + +if [ ! -d /usr/bin ] +then # /usr not mounted + exit +fi + +killproc() { # kill the named process(es) + if [ -f $SAMBADIR/var/locks/$1.pid ] + then + kill `cat $SAMBADIR/var/locks/$1.pid` + else + pid=`/usr/bin/ps -e | + /usr/bin/grep $1 | + /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid + fi +} + +start() { +# +# Edit these lines to suit your installation (paths, workgroup, host) +# + $SAMBADIR/sbin/smbd -D -s $SAMBADIR/lib/smb.conf + $SAMBADIR/sbin/nmbd -D -s $SAMBADIR/lib/smb.conf +} + +stop() { + killproc nmbd + killproc smbd +} + +# Start/stop processes required for samba server + +case "$1" in + +'start') + start + ;; +'stop') + stop + ;; +'restart') + stop + start + ;; +'enable') + if [ -h $RCSCRIPT ] ; then + echo "Samba is already enabled." + else + echo "Enabling Samba ... \c" + rm -f $RCSCRIPT + ln -s /etc/init.d/samba $RCSCRIPT + echo "Done" + fi + ;; +'disable') + echo "Disabling Samba ... \c" + rm -f $RCSCRIPT + echo "Done" + ;; +*) + echo "Usage: /etc/init.d/samba { start | stop | restart | enable | disable }" + ;; +esac diff --git a/packaging/Caldera/OpenServer/smbadduser b/packaging/Caldera/OpenServer/smbadduser new file mode 100755 index 0000000000..2f38bf28f1 --- /dev/null +++ b/packaging/Caldera/OpenServer/smbadduser @@ -0,0 +1,73 @@ +#!/bin/csh +# +# smbadduser - Written by Mike Zakharoff +# +unalias * +set path = ($path) + +set smbpasswd = /etc/smbpasswd +set user_map = /etc/smbusers +# +# Set to site specific passwd command +# +set passwd = "cat /etc/passwd" +#set passwd = "niscat passwd.org_dir" +#set passwd = "ypcat passwd" + +set line = "----------------------------------------------------------" +if ($#argv == 0) then + echo $line + echo "Written: Mike Zakharoff email: michael.j.zakharoff@boeing.com" + echo "" + echo " 1) Updates $smbpasswd" + echo " 2) Updates $user_map" + echo " 3) Executes smbpasswd for each new user" + echo "" + echo "smbadduser unixid:ntid unixid:ntid ..." + echo "" + echo "Example: smbadduser zak:zakharoffm johns:smithj" + echo $line + exit 1 +endif + +touch $smbpasswd $user_map +set new = () +foreach one ($argv) + echo $one | grep ':' >& /dev/null + if ($status != 0) then + echo "ERROR: Must use unixid:ntid like -> zak:zakharoffm" + continue + endif + set unix = `echo $one | awk -F: '{print $1}'` + set ntid = `echo $one | awk -F: '{print $2}'` + + set usr = `eval $passwd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#usr != 1) then + echo "ERROR: $unix Not in passwd database SKIPPING..." + continue + endif + set tmp = `cat $smbpasswd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#tmp != 0) then + echo "ERROR: $unix is already in $smbpasswd SKIPPING..." + continue + endif + + echo "Adding: $unix to $smbpasswd" + eval $passwd | \ + awk -F: '$1==USR { \ + printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd + if ($unix != $ntid) then + echo "Adding: {$unix = $ntid} to $user_map" + echo "$unix = $ntid" >> $user_map + endif + set new = ($new $unix) +end + +# +# Enter password for new users +# +foreach one ($new) + echo $line + echo "ENTER password for $one" + smbpasswd $one +end diff --git a/packaging/Caldera/OpenServer/smbprint b/packaging/Caldera/OpenServer/smbprint new file mode 100755 index 0000000000..ec083eede6 --- /dev/null +++ b/packaging/Caldera/OpenServer/smbprint @@ -0,0 +1,77 @@ +#!/bin/sh + +# This script is an input filter for printcap printing on a unix machine. It +# uses the smbclient program to print the file to the specified smb-based +# server and service. +# For example you could have a printcap entry like this +# +# smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint +# +# which would create a unix printer called "smb" that will print via this +# script. You will need to create the spool directory /usr/spool/smb with +# appropriate permissions and ownerships for your system. + +# Set these to the server and service you wish to print to +# In this example I have a WfWg PC called "lapland" that has a printer +# exported called "printer" with no password. + +# +# Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton) +# so that the server, service, and password can be read from +# a /var/spool/lpd/PRINTNAME/.config file. +# +# In order for this to work the /etc/printcap entry must include an +# accounting file (af=...): +# +# cdcolour:\ +# :cm=CD IBM Colorjet on 6th:\ +# :sd=/var/spool/lpd/cdcolour:\ +# :af=/var/spool/lpd/cdcolour/acct:\ +# :if=/usr/local/etc/smbprint:\ +# :mx=0:\ +# :lp=/dev/null: +# +# The /usr/var/spool/lpd/PRINTNAME/.config file should contain: +# server=PC_SERVER +# service=PR_SHARENAME +# password="password" +# +# E.g. +# server=PAULS_PC +# service=CJET_371 +# password="" + +# +# Debugging log file, change to /dev/null if you like. +# +# logfile=/tmp/smb-print.log +logfile=/dev/null + + +# +# The last parameter to the filter is the accounting file name. +# Extract the directory name from the file name. +# Concat this with /.config to get the config file. +# +eval acct_file=\${$#} +spool_dir=`dirname $acct_file` +config_file=$spool_dir/.config + +# Should read the following variables set in the config file: +# server +# service +# password +eval `cat $config_file` + +# +# Some debugging help, change the >> to > if you want to same space. +# +echo "server $server, service $service" >> $logfile + +( +# NOTE You may wish to add the line `echo translate' if you want automatic +# CR/LF translation when printing. +# echo translate + echo "print -" + cat +) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P >> $logfile diff --git a/packaging/Caldera/OpenServer/smbusers b/packaging/Caldera/OpenServer/smbusers new file mode 100644 index 0000000000..08f611826a --- /dev/null +++ b/packaging/Caldera/OpenServer/smbusers @@ -0,0 +1,3 @@ +# Unix_name = SMB_name1 SMB_name2 ... +root = administrator admin +nouser = guest pcguest smbguest diff --git a/packaging/Caldera/UnixWare/Clean b/packaging/Caldera/UnixWare/Clean new file mode 100755 index 0000000000..fe4eed2527 --- /dev/null +++ b/packaging/Caldera/UnixWare/Clean @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Cleanup after having configured, compiled, installed and packaged. +# Careful - running this script attempts to restore this hierarchy to +# freshly unpacked source +# +# Invoke as "./Clean -n" to get this script to tell you what it would do +# without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +[ -d dist ] && $V rm -rf dist +[ -f ../../../source/Makefile ] && { + $V cd ../../../source + $V rm -f bin/locktest bin/masktest bin/smbsh bin/debug2html \ + bin/locktest2 bin/smbfilter bin/smbtorture + $V make clean + $V make distclean + $V rm -f mout* +} diff --git a/packaging/Caldera/UnixWare/Compile b/packaging/Caldera/UnixWare/Compile new file mode 100755 index 0000000000..2867e4d5ad --- /dev/null +++ b/packaging/Caldera/UnixWare/Compile @@ -0,0 +1,52 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="cc -Kthread -Kalloca -I/usr/local/include -L/usr/local/lib" +CPP="$CC -E" +CFLAGS="-Xa -Dasm=__asm -DANSICPP -O3" +LDFLAGS="-L/usr/local/lib" +CXX="CC -I/usr/local/include" +CXXFLAGS="-O3 -I/usr/local/include/stl -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CPP=$CPP" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" + echo "LDFLAGS=$LDFLAGS" +else + export CC CPP CXX RANLIB MAKE CFLAGS CXXFLAGS LDFLAGS +fi + +if [ "$V" = "echo" ] +then + echo "cd ../../../source" + echo "rm -f mout-1 mout-2 mout-3 mout-4" + echo "make all 2>&1 | tee mout-1" + echo "make smbfilter smbtorture debug2html 2>&1 | tee mout-2" + echo "make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3" + echo "make masktest locktest locktest2 2>&1 | tee mout-3" +else + cd ../../../source + rm -f mout-1 mout-2 mout-3 mout-4 + make all 2>&1 | tee mout-1 + make smbfilter smbtorture debug2html 2>&1 | tee mout-2 + make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3 + make masktest locktest locktest2 2>&1 | tee mout-3 +fi +# +# Not building : +# nsswitch - no +# rpctorture - improper use of client_info struct, dunno diff --git a/packaging/Caldera/UnixWare/Configure b/packaging/Caldera/UnixWare/Configure new file mode 100755 index 0000000000..e5a7fbba4d --- /dev/null +++ b/packaging/Caldera/UnixWare/Configure @@ -0,0 +1,67 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +CC="cc -Kthread -Kalloca -I/usr/local/include -L/usr/local/lib" +CPP="$CC -E" +CFLAGS="-Xa -Dasm=__asm -DANSICPP -O3" +LDFLAGS="-L/usr/local/lib" +CXX="CC -I/usr/local/include" +CXXFLAGS="-O3 -I/usr/local/include/stl -L/usr/local/lib" +RANLIB=true +MAKE=/usr/local/bin/make +PREFIX=/usr/local/samba +if [ "$V" = "echo" ] +then + echo "exporting the following shell variables:" + echo "CC=$CC" + echo "CPP=$CPP" + echo "CXX=$CXX" + echo "RANLIB=$RANLIB" + echo "MAKE=$MAKE" + echo "CFLAGS=$CFLAGS" + echo "CXXFLAGS=$CXXFLAGS" + echo "LDFLAGS=$LDFLAGS" + echo "PREFIX=$PREFIX" +else + export CC CPP CXX RANLIB MAKE CFLAGS CXXFLAGS LDFLAGS PREFIX +fi + +cd ../../../source +[ -f mout-config ] && { + if [ "$V" = "echo" ] + then + echo "mv mout-config mout-config$$" + else + mv mout-config mout-config$$ + fi +} +if [ "$V" = "echo" ] +then + echo "./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config" +else + ./configure \ + --prefix=${PREFIX} \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-vfs \ + --with-msdfs \ + --with-netatalk \ + --with-sambabook=${PREFIX}/swat/using_samba \ + 2>&1 | tee mout-config +fi diff --git a/packaging/Caldera/UnixWare/Install b/packaging/Caldera/UnixWare/Install new file mode 100755 index 0000000000..3fffc37d25 --- /dev/null +++ b/packaging/Caldera/UnixWare/Install @@ -0,0 +1,146 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +PREFIX=/usr/local/samba +HERE=`pwd` +PKGDIR=packaging/Caldera/UnixWare + +BUILD_ROOT=${HERE}/dist +BLDFIX=${BUILD_ROOT}/${PREFIX} +$V rm -rf $BUILD_ROOT +$V mkdir -p $BUILD_ROOT/etc/init.d +$V mkdir -p ${BLDFIX}/bin +$V mkdir -p ${BLDFIX}/sbin +$V mkdir -p ${BLDFIX}/swat/using_samba/gifs +$V mkdir -p ${BLDFIX}/swat/using_samba/figs +$V mkdir -p ${BLDFIX}/swat/images +$V mkdir -p ${BLDFIX}/swat/help +$V mkdir -p ${BLDFIX}/swat/include +$V mkdir -p ${BLDFIX}/man/man1 +$V mkdir -p ${BLDFIX}/man/man5 +$V mkdir -p ${BLDFIX}/man/man7 +$V mkdir -p ${BLDFIX}/man/man8 +$V mkdir -p ${BLDFIX}/var/locks +$V mkdir -p ${BLDFIX}/lib/codepages/src + +# Copy into the dist tree the pkg data files +for i in pkg/* +do + [ -f $i ] && $V cp $i ${BUILD_ROOT} +done + +cd ../../.. + +# Install standard binary files +for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ + make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \ + smbsh smbwrapper.so +do +$V install -m755 -s source/bin/$i ${BLDFIX}/bin +done +for i in mksmbpasswd.sh smbtar +do +$V install -m755 source/script/$i ${BLDFIX}/bin +done + +# Install secure binary files +for i in smbd nmbd swat debug2html smbtorture smbfilter locktest2 masktest +do +$V install -m755 -s source/bin/$i ${BLDFIX}/sbin +done + + +# Install level 1 man pages +for i in *.1 +do +$V install -m644 docs/manpages/$i ${BLDFIX}/man/man1 +done + +# Install codepage source files +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do +$V install -m644 source/codepages/codepage_def.$i ${BLDFIX}/lib/codepages/src +done +for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do +$V install -m644 source/codepages/CP$i.TXT ${BLDFIX}/lib/codepages/src +done + +# Install SWAT helper files +for i in swat/help/*.html docs/htmldocs/*.html +do +$V install -m644 $i ${BLDFIX}/swat/help +done +for i in swat/images/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/images +done +for i in swat/include/*.html +do +$V install -m644 $i ${BLDFIX}/swat/include +done + +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +$V install -m644 $i ${BLDFIX}/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +$V install -m644 $i ${BLDFIX}/swat/using_samba/gifs +done + +# Install the miscellany +$V install -m644 swat/README ${BLDFIX}/swat +$V install -m644 docs/manpages/smb.conf.5 ${BLDFIX}/man/man5 +$V install -m644 docs/manpages/lmhosts.5 ${BLDFIX}/man/man5 +$V install -m644 docs/manpages/smbpasswd.5 ${BLDFIX}/man/man5 +$V install -m644 docs/manpages/samba.7 ${BLDFIX}/man/man7 +$V install -m644 docs/manpages/smbd.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/nmbd.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbpasswd.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/swat.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbmount.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbmnt.8 ${BLDFIX}/man/man8 +$V install -m644 docs/manpages/smbumount.8 ${BLDFIX}/man/man8 +$V install -m644 ${PKGDIR}/smb.conf ${BLDFIX}/lib/smb.conf +$V install -m644 ${PKGDIR}/smbusers $BUILD_ROOT/etc/smbusers +$V install -m755 ${PKGDIR}/smbprint ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/findsmb ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smbadduser ${BLDFIX}/bin +$V install -m755 ${PKGDIR}/smb.init $BUILD_ROOT/etc/init.d/samba + +# The following is now done in the postinstall script +# +# if [ "$V" = "echo" ] +# then +# echo "echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts" +# else +# echo 127.0.0.1 localhost > $BUILD_ROOT/etc/lmhosts +# fi +# +# Build codepage load files +# $V cd ${BLDFIX}/lib/codepages +# for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +# do +# $V ${PREFIX}/bin/make_smbcodepage c $i \ +# ${BLDFIX}/lib/codepages/src/codepage_def.$i \ +# ${BLDFIX}/lib/codepages/codepage.$i +# done +# for i in 437 737 850 852 861 866 932 936 949 950 \ +# ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +# do +# $V ${PREFIX}/bin/make_unicodemap $i \ +# ${BLDFIX}/lib/codepages/src/CP$i.TXT \ +# ${BLDFIX}/lib/codepages/unicode_map.$i +# done diff --git a/packaging/Caldera/UnixWare/Makepkg b/packaging/Caldera/UnixWare/Makepkg new file mode 100755 index 0000000000..dc57b246ef --- /dev/null +++ b/packaging/Caldera/UnixWare/Makepkg @@ -0,0 +1,10 @@ +#!/bin/ksh +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +./Configure $* +./Compile $* +./Install $* +./Package $* diff --git a/packaging/Caldera/UnixWare/Package b/packaging/Caldera/UnixWare/Package new file mode 100755 index 0000000000..f225b8eb7e --- /dev/null +++ b/packaging/Caldera/UnixWare/Package @@ -0,0 +1,40 @@ +#!/bin/ksh +# +# Now create the actual pkgadd installable datastream +# +# invoke with -n as the first argument to get this script to tell +# you what it would do without doing anything +# + +V= +[ "$1" = "-n" ] && V=echo + +$V cd dist +PKGNAME=samba +PKGBLD=`pwd` +[ "$V" = "echo" ] && PKGBLD=$PKGBLD/dist + +PKGCOMPRESS="-c" +#PKGBLOCKLIM=2876 +PKGBLOCKLIM=6200 + +############################################################################## +# +# make filesystem-type package in directory ./$PKGNAME/ +# (source files reside in ./root) +# +# don't use PKGBLOCKLIM for now +# +$V pkgmk -o $PKGCOMPRESS -d $PKGBLD -r $PKGBLD +#pkgmk -o $PKGCOMPRESS -l $PKGBLOCKLIM -d $PKGBLD -r $PKGBLD +#pkgmk -o $PKGCOMPRESS -l $PKGBLOCKLIM -d $PKGBLD -r $PKGBLD/root + +# +# make $PKGNAME.pkg datastream-type package +# +$V pkgtrans -s $PKGBLD $PKGBLD/$PKGNAME.pkg $PKGNAME + +# +# remove filesystem-type package +# +#rm -rf $PKGBLD/$PKGNAME diff --git a/packaging/Caldera/UnixWare/README b/packaging/Caldera/UnixWare/README new file mode 100644 index 0000000000..74f8dc53d5 --- /dev/null +++ b/packaging/Caldera/UnixWare/README @@ -0,0 +1,54 @@ +Preparation Date: December 28, 2000 +Preparer: Ronald Joe Record + +Instructions: Preparing Samba Packages for UnixWare +=============================================================== + +We provide support only for current versions of UnixWare. + +The file samba-2.2-uw7.patch is a patch file suitable for use +with the patch command as follows: + + # cd ../../../source + # patch -p 0 -i ../packaging/Caldera/UnixWare/samba-2.2-uw7.patch + +The files modified by this patch are: + smbwrapper/smbw.c + tdb/tdb.c + utils/torture.c + utils/locktest.c + utils/locktest2.c + utils/masktest.c + utils/smbcacls.c + ltconfig + configure.in + +This patch should only be necessary until these changes are accepted +back into the 2.2 source tree. Until then, this patch must be applied +prior to building Samba 2.2 on UnixWare 7. After applying the patch it +is then necessary to run autoconf again and regenerate the configure file: + + # cd ../../../source + # autoconf + +To produce the pkgadd installable datastream simply type (in this directory): + # ./Makepkg + +The resultant samba.pkg should reside in the ./dist subdirectory. +To install from this pkgadd datastream, issue the command (as root): + + # cd dist + # pkgadd -d `pwd`/samba.pkg all + +Alternately, each of the steps in building the datastream may be performed +individually by invoking each of the following: + + # ./Configure + # ./Compile + # ./Install + # ./Package + +If files are added or deleted from the UnixWare Samba distribution then +the prototype file in the pkg directory should be appropriately modified. +The files in the pkg subdirectory were initially created using the mkpkg +package from SCO Skunkware (see http://www.sco.com/skunkware). diff --git a/packaging/Caldera/UnixWare/findsmb b/packaging/Caldera/UnixWare/findsmb new file mode 100755 index 0000000000..bb91c784b8 --- /dev/null +++ b/packaging/Caldera/UnixWare/findsmb @@ -0,0 +1,141 @@ +#!/usr/local/bin/perl +# +# Prints info on all smb responding machines on a subnet. +# This script needs to be run on a machine without nmbd running and be +# run as root to get correct info from WIN95 clients. +# +# syntax: +# findsmb [subnet broadcast address] +# +# with no agrument it will list machines on the current subnet +# +# There will be a "+" in front of the workgroup name for machines that are +# local master browsers for that workgroup. There will be an "*" in front +# of the workgroup name for machines that are the domain master browser for +# that workgroup. +# + +$SAMBABIN = "/usr/local/samba/bin"; + +for ($i = 0; $i < 2; $i++) { # test for -d option and broadcast address + $_ = shift; + if (m/-d|-D/) { + $DEBUG = 1; + } else { + if ($_) { + $BCAST = "-B $_"; + } + } +} + +sub ipsort # do numeric sort on last field of IP address +{ + @t1 = split(/\./,$a); + @t2 = split(/\./,$b); + @t1[3] <=> @t2[3]; +} + +# look for all machines that respond to a name lookup + +open(NMBLOOKUP,"$SAMBABIN/nmblookup $BCAST '*'|") || + die("Can't run nmblookup '*'.\n"); + +# get rid of all lines that are not a response IP address, +# strip everything but IP address and sort by last field in address + +@ipaddrs = sort ipsort grep(s/ \*<00>.*$//,); + +# 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/UnixWare/pkg/admin b/packaging/Caldera/UnixWare/pkg/admin new file mode 100644 index 0000000000..fe2438c770 --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/admin @@ -0,0 +1 @@ +basedir=ask diff --git a/packaging/Caldera/UnixWare/pkg/pkginfo b/packaging/Caldera/UnixWare/pkg/pkginfo new file mode 100644 index 0000000000..c4d8bff0bb --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/pkginfo @@ -0,0 +1,10 @@ +PKG="samba" +NAME="Samba - A Windows SMB/CIFS fileserver for UNIX" +VERSION="2.2" +VENDOR="SCO" +HOTLINE="1-800-SCO-UNIX" +EMAIL="rr@sco.com" +CATEGORY="skunkware" +CLASSES="samba" +ARCH="i386" +BASEDIR=/ diff --git a/packaging/Caldera/UnixWare/pkg/postinstall b/packaging/Caldera/UnixWare/pkg/postinstall new file mode 100755 index 0000000000..4e202ae354 --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/postinstall @@ -0,0 +1,56 @@ +#!/bin/sh +# +# Create /var/spool/samba, setup swat to be run out of inetd on port 901, +# initialize the lmhosts file and create the codepage load files +# +# Written 10-Aug-1999 by Ronald Joe Record (rr@sco.com) +# + +SPOOL=/var/spool/samba +SVCS=/etc/services +INET=/etc/inetd.conf +PREFIX=/usr/local/samba +LMHOST=/etc/lmhosts + +[ -d $SPOOL ] || { + mkdir -p $SPOOL + chmod 1777 $SPOOL +} + +grep swat $SVCS > /dev/null || { + echo "swat 901/tcp # Samba Web Administration Tool " >> $SVCS +} + +grep swat $INET > /dev/null || { + echo "swat stream tcp nowait root /usr/local/samba/bin/swat swat " >> $INET +} + +if [ -f $LMHOST ] +then + grep localhost $LMHOST > /dev/null || { + echo 127.0.0.1 localhost >> $LMHOST + } +else + echo 127.0.0.1 localhost > $LMHOST +fi + +# +# Build codepage load files +# + +cd ${PREFIX}/lib/codepages +for i in 437 737 775 850 852 861 866 932 936 949 950 1251 +do + ${PREFIX}/bin/make_smbcodepage c $i \ + ${PREFIX}/lib/codepages/src/codepage_def.$i \ + ${PREFIX}/lib/codepages/codepage.$i +done +for i in 437 737 850 852 861 866 932 936 949 950 \ + ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R +do + ${PREFIX}/bin/make_unicodemap $i \ + ${PREFIX}/lib/codepages/src/CP$i.TXT \ + ${PREFIX}/lib/codepages/unicode_map.$i +done + +kill -1 `ps -e | grep inetd | awk ' { print $1 } '` diff --git a/packaging/Caldera/UnixWare/pkg/postremove b/packaging/Caldera/UnixWare/pkg/postremove new file mode 100755 index 0000000000..dc81d6fa85 --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/postremove @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Remove /var/spool/samba and delete inetd entries for swat +# + +SPOOL=/var/spool/samba +SVCS=/etc/services +INET=/etc/inetd.conf + +[ -d $SPOOL ] && { + rm -rf $SPOOL +} + +grep swat $SVCS > /dev/null && { + B=`basename $SVCS` + T=$B$$ + grep -v swat $SVCS > /tmp/$T + cp /tmp/$T $SVCS + rm -f /tmp/$T +} + +grep swat $INET > /dev/null || { + B=`basename $INET` + T=$B$$ + grep -v swat $INET > /tmp/$T + cp /tmp/$T $INET + rm -f /tmp/$T +} + +kill -1 `ps -e | grep inetd | awk ' { print $1 } '` diff --git a/packaging/Caldera/UnixWare/pkg/prototype b/packaging/Caldera/UnixWare/pkg/prototype new file mode 100644 index 0000000000..13a64b6feb --- /dev/null +++ b/packaging/Caldera/UnixWare/pkg/prototype @@ -0,0 +1,310 @@ +i admin=admin +i pkginfo=pkginfo +i postinstall=postinstall +i postremove=postremove + +d samba etc 0755 root sys +d samba etc/init.d 0755 root sys +f samba etc/init.d/samba 0755 root sys +f samba etc/smbusers 0644 root sys +d samba usr 0755 root sys +d samba usr/local 0755 root sys +d samba usr/local/samba 0755 root sys +d samba usr/local/samba/bin 0755 root sys +f samba usr/local/samba/bin/nmblookup 0755 root sys +f samba usr/local/samba/bin/smbclient 0755 root sys +f samba usr/local/samba/bin/smbpasswd 0755 root sys +f samba usr/local/samba/bin/smbstatus 0755 root sys +f samba usr/local/samba/bin/testparm 0755 root sys +f samba usr/local/samba/bin/testprns 0755 root sys +f samba usr/local/samba/bin/make_smbcodepage 0755 root sys +f samba usr/local/samba/bin/make_unicodemap 0755 root sys +f samba usr/local/samba/bin/make_printerdef 0755 root sys +f samba usr/local/samba/bin/rpcclient 0755 root sys +f samba usr/local/samba/bin/smbspool 0755 root sys +f samba usr/local/samba/bin/smbsh 0755 root sys +f samba usr/local/samba/bin/smbwrapper.so 0755 root sys +f samba usr/local/samba/bin/mksmbpasswd.sh 0755 root sys +f samba usr/local/samba/bin/smbtar 0755 root sys +f samba usr/local/samba/bin/smbprint 0755 root sys +f samba usr/local/samba/bin/findsmb 0755 root sys +f samba usr/local/samba/bin/smbadduser 0755 root sys +d samba usr/local/samba/sbin 0755 root sys +f samba usr/local/samba/sbin/smbd 0755 root sys +f samba usr/local/samba/sbin/nmbd 0755 root sys +f samba usr/local/samba/sbin/swat 0755 root sys +f samba usr/local/samba/sbin/debug2html 0755 root sys +f samba usr/local/samba/sbin/smbtorture 0755 root sys +f samba usr/local/samba/sbin/smbfilter 0755 root sys +f samba usr/local/samba/sbin/locktest2 0755 root sys +f samba usr/local/samba/sbin/masktest 0755 root sys +d samba usr/local/samba/swat 0755 root sys +d samba usr/local/samba/swat/using_samba 0755 root sys +d samba usr/local/samba/swat/using_samba/gifs 0755 root sys +f samba usr/local/samba/swat/using_samba/gifs/index.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/samba.s.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/txthome.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/txtnexta.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/gifs/txtpreva.gif 0644 root sys +d samba usr/local/samba/swat/using_samba/figs 0755 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0101.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0102.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0103.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0104.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0105.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0106.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0107.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0108.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0109.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0110.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0111.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0112.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0113.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0114.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0201.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0202.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0203.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0204.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0301.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0302.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0303.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0304.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0305.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0306.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0307.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0308.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0309.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0310.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0311.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0312.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0313.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0314.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0315.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0316.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0317.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0318.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0319.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0320.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0321.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0322.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0323.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0324.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0325.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0326.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0327.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0328.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0401.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0402.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0403.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0404.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0405.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0406.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0407.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0501.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0502.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0503.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0504.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0505.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0506.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0507.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0508.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0601.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0602.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0603.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0604.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0605.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0606.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0701.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0702.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0703.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0704.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0705.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0706.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0707.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0708.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0709.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0801.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0802.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0803.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0804.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0805.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0901.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0902.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0903.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0904.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.0905.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.aa01.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.ab01.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/figs/sam.ab02.gif 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appa_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appb_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appb_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appb_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appc_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appd_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appe_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/appf_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_07.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch01_08.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch02_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch03_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch03_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch03_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_07.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch04_08.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch05_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch06_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch07_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch07_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch07_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_04.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_05.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_06.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch08_07.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch09_01.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch09_02.html 0644 root sys +f samba usr/local/samba/swat/using_samba/ch09_03.html 0644 root sys +f samba usr/local/samba/swat/using_samba/index.html 0644 root sys +f samba usr/local/samba/swat/using_samba/inx.html 0644 root sys +f samba usr/local/samba/swat/using_samba/licenseinfo.html 0644 root sys +f samba usr/local/samba/swat/using_samba/this_edition.html 0644 root sys +d samba usr/local/samba/swat/images 0755 root sys +f samba usr/local/samba/swat/images/globals.gif 0644 root sys +f samba usr/local/samba/swat/images/home.gif 0644 root sys +f samba usr/local/samba/swat/images/passwd.gif 0644 root sys +f samba usr/local/samba/swat/images/printers.gif 0644 root sys +f samba usr/local/samba/swat/images/samba.gif 0644 root sys +f samba usr/local/samba/swat/images/shares.gif 0644 root sys +f samba usr/local/samba/swat/images/status.gif 0644 root sys +f samba usr/local/samba/swat/images/viewconfig.gif 0644 root sys +d samba usr/local/samba/swat/help 0755 root sys +f samba usr/local/samba/swat/help/welcome.html 0644 root sys +f samba usr/local/samba/swat/help/DOMAIN_MEMBER.html 0644 root sys +f samba usr/local/samba/swat/help/NT_Security.html 0644 root sys +f samba usr/local/samba/swat/help/findsmb.1.html 0644 root sys +f samba usr/local/samba/swat/help/lmhosts.5.html 0644 root sys +f samba usr/local/samba/swat/help/make_smbcodepage.1.html 0644 root sys +f samba usr/local/samba/swat/help/nmbd.8.html 0644 root sys +f samba usr/local/samba/swat/help/nmblookup.1.html 0644 root sys +f samba usr/local/samba/swat/help/rpcclient.1.html 0644 root sys +f samba usr/local/samba/swat/help/samba-pdc-faq.html 0644 root sys +f samba usr/local/samba/swat/help/samba-pdc-howto.html 0644 root sys +f samba usr/local/samba/swat/help/samba.7.html 0644 root sys +f samba usr/local/samba/swat/help/smb.conf.5.html 0644 root sys +f samba usr/local/samba/swat/help/smbclient.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbcontrol.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbd.8.html 0644 root sys +f samba usr/local/samba/swat/help/smbpasswd.5.html 0644 root sys +f samba usr/local/samba/swat/help/smbpasswd.8.html 0644 root sys +f samba usr/local/samba/swat/help/smbrun.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbsh.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbspool.8.html 0644 root sys +f samba usr/local/samba/swat/help/smbstatus.1.html 0644 root sys +f samba usr/local/samba/swat/help/smbtar.1.html 0644 root sys +f samba usr/local/samba/swat/help/swat.8.html 0644 root sys +f samba usr/local/samba/swat/help/testparm.1.html 0644 root sys +f samba usr/local/samba/swat/help/testprns.1.html 0644 root sys +f samba usr/local/samba/swat/help/wbinfo.1.html 0644 root sys +f samba usr/local/samba/swat/help/winbindd.8.html 0644 root sys +d samba usr/local/samba/swat/include 0755 root sys +f samba usr/local/samba/swat/include/footer.html 0644 root sys +f samba usr/local/samba/swat/include/header.html 0644 root sys +f samba usr/local/samba/swat/README 0644 root sys +d samba usr/local/samba/man 0755 root sys +d samba usr/local/samba/man/man1 0755 root sys +f samba usr/local/samba/man/man1/findsmb.1 0644 root sys +f samba usr/local/samba/man/man1/make_smbcodepage.1 0644 root sys +f samba usr/local/samba/man/man1/make_unicodemap.1 0644 root sys +f samba usr/local/samba/man/man1/nmblookup.1 0644 root sys +f samba usr/local/samba/man/man1/smbclient.1 0644 root sys +f samba usr/local/samba/man/man1/smbcontrol.1 0644 root sys +f samba usr/local/samba/man/man1/smbrun.1 0644 root sys +f samba usr/local/samba/man/man1/smbsh.1 0644 root sys +f samba usr/local/samba/man/man1/smbstatus.1 0644 root sys +f samba usr/local/samba/man/man1/smbtar.1 0644 root sys +f samba usr/local/samba/man/man1/testparm.1 0644 root sys +f samba usr/local/samba/man/man1/testprns.1 0644 root sys +f samba usr/local/samba/man/man1/wbinfo.1 0644 root sys +d samba usr/local/samba/man/man5 0755 root sys +f samba usr/local/samba/man/man5/smb.conf.5 0644 root sys +f samba usr/local/samba/man/man5/lmhosts.5 0644 root sys +f samba usr/local/samba/man/man5/smbpasswd.5 0644 root sys +d samba usr/local/samba/man/man7 0755 root sys +f samba usr/local/samba/man/man7/samba.7 0644 root sys +d samba usr/local/samba/man/man8 0755 root sys +f samba usr/local/samba/man/man8/smbd.8 0644 root sys +f samba usr/local/samba/man/man8/nmbd.8 0644 root sys +f samba usr/local/samba/man/man8/smbpasswd.8 0644 root sys +f samba usr/local/samba/man/man8/swat.8 0644 root sys +f samba usr/local/samba/man/man8/smbmount.8 0644 root sys +f samba usr/local/samba/man/man8/smbmnt.8 0644 root sys +f samba usr/local/samba/man/man8/smbumount.8 0644 root sys +d samba usr/local/samba/var 0755 root sys +d samba usr/local/samba/var/locks 0755 root sys +d samba usr/local/samba/lib 0755 root sys +d samba usr/local/samba/lib/codepages 0755 root sys +d samba usr/local/samba/lib/codepages/src 0755 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.437 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.737 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.775 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.850 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.852 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.861 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.866 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.932 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.936 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.949 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.950 0644 root sys +f samba usr/local/samba/lib/codepages/src/codepage_def.1251 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP437.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP737.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP850.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP852.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP861.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP866.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP932.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP936.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP949.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CP950.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-1.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-2.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-5.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPISO8859-7.TXT 0644 root sys +f samba usr/local/samba/lib/codepages/src/CPKOI8-R.TXT 0644 root sys +f samba usr/local/samba/lib/smb.conf 0644 root sys +d samba usr/local/man 0755 root sys +d samba usr/local/man/html 0755 root sys +s samba usr/local/man/html/samba=/usr/local/samba/swat/using_samba diff --git a/packaging/Caldera/UnixWare/samba-2.2-uw7-prototype.patch b/packaging/Caldera/UnixWare/samba-2.2-uw7-prototype.patch new file mode 100644 index 0000000000..7678379b06 --- /dev/null +++ b/packaging/Caldera/UnixWare/samba-2.2-uw7-prototype.patch @@ -0,0 +1,11 @@ +--- packaging/Caldera/UnixWare/pkg/prototype.00 Tue Jan 9 05:40:47 2001 ++++ packaging/Caldera/UnixWare/pkg/prototype Fri Apr 13 14:44:33 2001 +@@ -220,7 +220,7 @@ + f samba usr/local/samba/swat/help/make_smbcodepage.1.html 0644 root sys + f samba usr/local/samba/swat/help/nmbd.8.html 0644 root sys + f samba usr/local/samba/swat/help/nmblookup.1.html 0644 root sys +-f samba usr/local/samba/swat/help/rpcclient.8.html 0644 root sys ++f samba usr/local/samba/swat/help/rpcclient.1.html 0644 root sys + f samba usr/local/samba/swat/help/samba-pdc-faq.html 0644 root sys + f samba usr/local/samba/swat/help/samba-pdc-howto.html 0644 root sys + f samba usr/local/samba/swat/help/samba.7.html 0644 root sys diff --git a/packaging/Caldera/UnixWare/samba-2.2-uw7.patch b/packaging/Caldera/UnixWare/samba-2.2-uw7.patch new file mode 100644 index 0000000000..c4412e542e --- /dev/null +++ b/packaging/Caldera/UnixWare/samba-2.2-uw7.patch @@ -0,0 +1,200 @@ +--- smbwrapper/smbw.c.orig Mon Jan 8 12:37:48 2001 ++++ smbwrapper/smbw.c Fri Apr 13 13:09:00 2001 +@@ -22,6 +22,11 @@ + #include "includes.h" + #include "realcalls.h" + ++#if defined(__USLC__) && defined(HAVE_SYS_ACL_H) ++#define GETACL ACL_GET ++#define GETACLCNT ACL_CNT ++#endif ++ + pstring smbw_cwd; + + static struct smbw_file *smbw_files; +@@ -1462,7 +1467,11 @@ + /***************************************************** + say no to acls + *******************************************************/ ++#if defined(__USLC__) ++ int smbw_acl(const char *pathp, int cmd, int nentries, void *aclbufp) ++#else + int smbw_acl(const char *pathp, int cmd, int nentries, aclent_t *aclbufp) ++#endif + { + if (cmd == GETACL || cmd == GETACLCNT) return 0; + errno = ENOSYS; +@@ -1474,7 +1483,11 @@ + /***************************************************** + say no to acls + *******************************************************/ ++#if defined(__USLC__) ++ int smbw_facl(int fd, int cmd, int nentries, void *aclbufp) ++#else + int smbw_facl(int fd, int cmd, int nentries, aclent_t *aclbufp) ++#endif + { + if (cmd == GETACL || cmd == GETACLCNT) return 0; + errno = ENOSYS; +--- tdb/tdb.c.orig Fri Apr 13 05:58:34 2001 ++++ tdb/tdb.c Fri Apr 13 13:34:18 2001 +@@ -856,7 +856,11 @@ + { + TDB_DATA key, dbuf; + struct list_struct rec; ++#if defined(__USLC__) ++ struct tdb_traverse_lock tl = { (struct tdb_traverse_lock *)0, 0, 0 }; ++#else + struct tdb_traverse_lock tl = { NULL, 0, 0 }; ++#endif + int ret, count = 0; + + /* This was in the initializaton, above, but the IRIX compiler +--- utils/torture.c.orig Fri Mar 30 13:53:26 2001 ++++ utils/torture.c Fri Apr 13 13:09:01 2001 +@@ -2703,7 +2703,11 @@ + + dbf = stdout; + ++#if defined(__USLC__) ++ setbuf(stdout, NULL); ++#else + setbuffer(stdout, NULL, 0); ++#endif + + charset_initialise(); + +--- utils/locktest.c.orig Fri Sep 29 13:18:14 2000 ++++ utils/locktest.c Fri Apr 13 13:09:01 2001 +@@ -34,7 +34,7 @@ + + #define FILENAME "\\locktest.dat" + #define LOCKRANGE 1000 +-#define LOCKBASE 0; ++#define LOCKBASE 0 + + /* + #define LOCKBASE (0x40000000 - 50) +@@ -59,6 +59,7 @@ + char needed; + }; + ++#ifndef __USLC__ + static struct record preset[] = { + #if 0 + {36, 5, 0, 0, 0, 8, 1}, +@@ -67,6 +68,7 @@ + {99, 11, 0, 0, 7, 1, 1}, + #endif + }; ++#endif /* __USLC__) */ + + static struct record *recorded; + +@@ -378,20 +380,23 @@ + recorded = (struct record *)malloc(sizeof(*recorded) * numops); + + for (n=0; n + +# Password Level allows matching of _n_ characters of the password for +# all combinations of upper and lower case. +; password level = 8 +; username level = 8 + +# You may wish to use password encryption. Please read +# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. +# Do not enable this option unless you have read those documents +; encrypt passwords = yes +; smb passwd file = /etc/smbpasswd + +# The following are needed to allow password changing from Windows to +# update the Linux sytsem password also. +# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. +# NOTE2: You do NOT need these to allow workstations to change only +# the encrypted SMB passwords. They allow the Unix password +# to be kept in sync with the SMB password. +; unix password sync = Yes +; passwd program = /usr/bin/passwd %u +; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* + +# Unix users can map to different SMB User names +; username map = /etc/smbusers + +# Using the following line enables you to customise your configuration +# on a per machine basis. The %m gets replaced with the netbios name +# of the machine that is connecting +; include = /etc/smb.conf.%m + +# Most people will find that this option gives better performance. +# See speed.txt and the manual pages for details + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 + +# Configure Samba to use multiple interfaces +# If you have multiple network interfaces then you must list them +# here. See the man page for details. +; interfaces = 192.168.12.2/24 192.168.13.2/24 + +# Configure remote browse list synchronisation here +# request announcement to, or browse list sync from: +# a specific host or from / to a whole subnet (see below) +; remote browse sync = 192.168.3.25 192.168.5.255 +# Cause this host to announce itself to local subnets here +; remote announce = 192.168.1.255 192.168.2.44 + +# Browser Control Options: +# set local master to no if you don't want Samba to become a master +# browser on your network. Otherwise the normal election rules apply +; local master = no + +# OS Level determines the precedence of this server in master browser +# elections. The default value should be reasonable +; os level = 33 + +# Domain Master specifies Samba to be the Domain Master Browser. This +# allows Samba to collate browse lists between subnets. Don't use this +# if you already have a Windows NT domain controller doing this job +; domain master = yes + +# Preferred Master causes Samba to force a local browser election on startup +# and gives it a slightly higher chance of winning the election +; preferred master = yes + +# Use only if you have an NT server on your network that has been +# configured at install time to be a primary domain controller. +; domain controller = + +# Enable this if you want Samba to be a domain logon server for +# Windows95 workstations. +; domain logons = yes + +# if you enable domain logons then you may want a per-machine or +# per user logon script +# run a specific logon batch file per workstation (machine) +; logon script = %m.bat +# run a specific logon batch file per username +; logon script = %U.bat + +# Where to store roving profiles (only for Win95 and WinNT) +# %L substitutes for this servers netbios name, %U is username +# You must uncomment the [Profiles] share below +; logon path = \\%L\Profiles\%U + +# All NetBIOS names must be resolved to IP Addresses +# 'Name Resolve Order' allows the named resolution mechanism to be specified +# the default order is "host lmhosts wins bcast". "host" means use the unix +# system gethostbyname() function call that will use either /etc/hosts OR +# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf +# and the /etc/resolv.conf file. "host" therefore is system configuration +# dependant. This parameter is most often of use to prevent DNS lookups +# in order to resolve NetBIOS names to IP Addresses. Use with care! +# The example below excludes use of name resolution for machines that are NOT +# on the local network segment +# - OR - are not deliberately to be known via lmhosts or via WINS. +; name resolve order = wins lmhosts bcast + +# Windows Internet Name Serving Support Section: +# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server +; wins support = yes + +# WINS Server - Tells the NMBD components of Samba to be a WINS Client +# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both +; wins server = w.x.y.z + +# WINS Proxy - Tells Samba to answer name resolution queries on +# behalf of a non WINS capable client, for this to work there must be +# at least one WINS Server on the network. The default is NO. +; wins proxy = yes + +# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names +# via DNS nslookups. The built-in default for versions 1.9.17 is yes, +# this has been changed in version 1.9.18 to no. + dns proxy = no + +# Case Preservation can be handy - system default is _no_ +# NOTE: These can be set on a per share basis +; preserve case = no +; short preserve case = no +# Default case is normally upper case for all DOS files +; default case = lower +# Be very careful with case sensitivity - it can break things! +; case sensitive = no + +#============================ Share Definitions ============================== +[homes] + comment = Home Directories + browseable = no + writable = yes + +# Un-comment the following and create the netlogon directory for Domain Logons +; [netlogon] +; comment = Network Logon Service +; path = /home/netlogon +; guest ok = yes +; writable = no +; share modes = no + + +# Un-comment the following to provide a specific roving profile share +# the default is to use the user's home directory +;[Profiles] +; path = /home/profiles +; browseable = no +; guest ok = yes + + +# NOTE: If you have a BSD-style print system there is no need to +# specifically define each individual printer +[printers] + comment = All Printers + path = /var/spool/samba + browseable = no +# Set public = yes to allow user 'guest account' to print + guest ok = no + writable = no + printable = yes + +# This one is useful for people to share files +;[tmp] +; comment = Temporary file space +; path = /tmp +; read only = no +; public = yes + +# A publicly accessible directory, but read only, except for people in +# the "staff" group +;[public] +; comment = Public Stuff +; path = /home/samba +; public = yes +; writable = yes +; printable = no +; write list = @staff + +# Other examples. +# +# A private printer, usable only by fred. Spool data will be placed in fred's +# home directory. Note that fred must have write access to the spool directory, +# wherever it is. +;[fredsprn] +; comment = Fred's Printer +; valid users = fred +; path = /homes/fred +; printer = freds_printer +; public = no +; writable = no +; printable = yes + +# A private directory, usable only by fred. Note that fred requires write +# access to the directory. +;[fredsdir] +; comment = Fred's Service +; path = /usr/somewhere/private +; valid users = fred +; public = no +; writable = yes +; printable = no + +# a service which has a different directory for each machine that connects +# this allows you to tailor configurations to incoming machines. You could +# also use the %u option to tailor it by user name. +# The %m gets replaced with the machine name that is connecting. +;[pchome] +; comment = PC Directories +; path = /usr/pc/%m +; public = no +; writable = yes + +# A publicly accessible directory, read/write to all users. Note that all files +# created in the directory by users will be owned by the default user, so +# any user with access can delete any other user's files. Obviously this +# directory must be writable by the default user. Another user could of course +# be specified, in which case all files would be owned by that user instead. +;[public] +; path = /usr/somewhere/else/public +; public = yes +; only guest = yes +; writable = yes +; printable = no + +# The following two entries demonstrate how to share a directory so that two +# users can place files there that will be owned by the specific users. In this +# setup, the directory should be writable by both users and should have the +# sticky bit set on it to prevent abuse. Obviously this could be extended to +# as many users as required. +;[myshare] +; comment = Mary's and Fred's stuff +; path = /usr/somewhere/shared +; valid users = mary fred +; public = no +; writable = yes +; printable = no +; create mask = 0765 + + diff --git a/packaging/Caldera/UnixWare/smb.init b/packaging/Caldera/UnixWare/smb.init new file mode 100755 index 0000000000..ce6c6fa4b3 --- /dev/null +++ b/packaging/Caldera/UnixWare/smb.init @@ -0,0 +1,76 @@ +#!/bin/sh +#ident "@(#)samba.server 1.0 96/06/19 TK" /* SVr4.0 1.1.13.1*/ +# +# Please send info on modifications to knuutila@cs.utu.fi +# +# This file should have uid root, gid sys and chmod 744 +# +# Modified 17-Jul-99 by Ron Record (rr@sco.com) for use in SCO Skunkware +# + +SAMBADIR=/usr/local/samba +RCSCRIPT=/etc/rc2.d/S99samba + +if [ ! -d /usr/bin ] +then # /usr not mounted + exit +fi + +killproc() { # kill the named process(es) + if [ -f $SAMBADIR/var/locks/$1.pid ] + then + kill `cat $SAMBADIR/var/locks/$1.pid` + else + pid=`/usr/bin/ps -e | + /usr/bin/grep $1 | + /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid + fi +} + +start() { +# +# Edit these lines to suit your installation (paths, workgroup, host) +# + $SAMBADIR/sbin/smbd -D -s $SAMBADIR/lib/smb.conf + $SAMBADIR/sbin/nmbd -D -s $SAMBADIR/lib/smb.conf +} + +stop() { + killproc nmbd + killproc smbd +} + +# Start/stop processes required for samba server + +case "$1" in + +'start') + start + ;; +'stop') + stop + ;; +'restart') + stop + start + ;; +'enable') + if [ -h $RCSCRIPT ] ; then + echo "Samba is already enabled." + else + echo "Enabling Samba ... \c" + rm -f $RCSCRIPT + ln -s /etc/init.d/samba $RCSCRIPT + echo "Done" + fi + ;; +'disable') + echo "Disabling Samba ... \c" + rm -f $RCSCRIPT + echo "Done" + ;; +*) + echo "Usage: /etc/init.d/samba { start | stop | restart | enable | disable }" + ;; +esac diff --git a/packaging/Caldera/UnixWare/smbadduser b/packaging/Caldera/UnixWare/smbadduser new file mode 100755 index 0000000000..2f38bf28f1 --- /dev/null +++ b/packaging/Caldera/UnixWare/smbadduser @@ -0,0 +1,73 @@ +#!/bin/csh +# +# smbadduser - Written by Mike Zakharoff +# +unalias * +set path = ($path) + +set smbpasswd = /etc/smbpasswd +set user_map = /etc/smbusers +# +# Set to site specific passwd command +# +set passwd = "cat /etc/passwd" +#set passwd = "niscat passwd.org_dir" +#set passwd = "ypcat passwd" + +set line = "----------------------------------------------------------" +if ($#argv == 0) then + echo $line + echo "Written: Mike Zakharoff email: michael.j.zakharoff@boeing.com" + echo "" + echo " 1) Updates $smbpasswd" + echo " 2) Updates $user_map" + echo " 3) Executes smbpasswd for each new user" + echo "" + echo "smbadduser unixid:ntid unixid:ntid ..." + echo "" + echo "Example: smbadduser zak:zakharoffm johns:smithj" + echo $line + exit 1 +endif + +touch $smbpasswd $user_map +set new = () +foreach one ($argv) + echo $one | grep ':' >& /dev/null + if ($status != 0) then + echo "ERROR: Must use unixid:ntid like -> zak:zakharoffm" + continue + endif + set unix = `echo $one | awk -F: '{print $1}'` + set ntid = `echo $one | awk -F: '{print $2}'` + + set usr = `eval $passwd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#usr != 1) then + echo "ERROR: $unix Not in passwd database SKIPPING..." + continue + endif + set tmp = `cat $smbpasswd | awk -F: '$1==USR {print $1}' USR=$unix` + if ($#tmp != 0) then + echo "ERROR: $unix is already in $smbpasswd SKIPPING..." + continue + endif + + echo "Adding: $unix to $smbpasswd" + eval $passwd | \ + awk -F: '$1==USR { \ + printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd + if ($unix != $ntid) then + echo "Adding: {$unix = $ntid} to $user_map" + echo "$unix = $ntid" >> $user_map + endif + set new = ($new $unix) +end + +# +# Enter password for new users +# +foreach one ($new) + echo $line + echo "ENTER password for $one" + smbpasswd $one +end diff --git a/packaging/Caldera/UnixWare/smbprint b/packaging/Caldera/UnixWare/smbprint new file mode 100755 index 0000000000..ec083eede6 --- /dev/null +++ b/packaging/Caldera/UnixWare/smbprint @@ -0,0 +1,77 @@ +#!/bin/sh + +# This script is an input filter for printcap printing on a unix machine. It +# uses the smbclient program to print the file to the specified smb-based +# server and service. +# For example you could have a printcap entry like this +# +# smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint +# +# which would create a unix printer called "smb" that will print via this +# script. You will need to create the spool directory /usr/spool/smb with +# appropriate permissions and ownerships for your system. + +# Set these to the server and service you wish to print to +# In this example I have a WfWg PC called "lapland" that has a printer +# exported called "printer" with no password. + +# +# Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton) +# so that the server, service, and password can be read from +# a /var/spool/lpd/PRINTNAME/.config file. +# +# In order for this to work the /etc/printcap entry must include an +# accounting file (af=...): +# +# cdcolour:\ +# :cm=CD IBM Colorjet on 6th:\ +# :sd=/var/spool/lpd/cdcolour:\ +# :af=/var/spool/lpd/cdcolour/acct:\ +# :if=/usr/local/etc/smbprint:\ +# :mx=0:\ +# :lp=/dev/null: +# +# The /usr/var/spool/lpd/PRINTNAME/.config file should contain: +# server=PC_SERVER +# service=PR_SHARENAME +# password="password" +# +# E.g. +# server=PAULS_PC +# service=CJET_371 +# password="" + +# +# Debugging log file, change to /dev/null if you like. +# +# logfile=/tmp/smb-print.log +logfile=/dev/null + + +# +# The last parameter to the filter is the accounting file name. +# Extract the directory name from the file name. +# Concat this with /.config to get the config file. +# +eval acct_file=\${$#} +spool_dir=`dirname $acct_file` +config_file=$spool_dir/.config + +# Should read the following variables set in the config file: +# server +# service +# password +eval `cat $config_file` + +# +# Some debugging help, change the >> to > if you want to same space. +# +echo "server $server, service $service" >> $logfile + +( +# NOTE You may wish to add the line `echo translate' if you want automatic +# CR/LF translation when printing. +# echo translate + echo "print -" + cat +) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P >> $logfile diff --git a/packaging/Caldera/UnixWare/smbusers b/packaging/Caldera/UnixWare/smbusers new file mode 100644 index 0000000000..ae3389f53f --- /dev/null +++ b/packaging/Caldera/UnixWare/smbusers @@ -0,0 +1,3 @@ +# Unix_name = SMB_name1 SMB_name2 ... +root = administrator admin +nobody = guest pcguest smbguest -- cgit From ff681c40678cca8e5b2fa5400fc4f9319c5aa869 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 1 Jun 2001 12:27:05 +0000 Subject: more syncs with SAMBA_2_2 (This used to be commit a4bf39e3dd8a28faac54ddb4e16bea5adf745440) --- packaging/Caldera/OpenLinux/samba.init-lsb | 108 +++++ packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl | 506 +++++++++++++++++++++++ packaging/Caldera/OpenLinux/samba2.spec.tmpl | 484 ++++++++++++++++++++++ packaging/Caldera/OpenLinux/smb.conf | 51 +++ packaging/RedHat/makefile-path.patch | 12 - packaging/RedHat/smbadduser | 73 ---- packaging/RedHat/smbw.patch | 10 - packaging/Solaris/postinstall | 21 + 8 files changed, 1170 insertions(+), 95 deletions(-) create mode 100755 packaging/Caldera/OpenLinux/samba.init-lsb create mode 100644 packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl create mode 100644 packaging/Caldera/OpenLinux/samba2.spec.tmpl create mode 100644 packaging/Caldera/OpenLinux/smb.conf delete mode 100644 packaging/RedHat/makefile-path.patch delete mode 100755 packaging/RedHat/smbadduser delete mode 100644 packaging/RedHat/smbw.patch create mode 100644 packaging/Solaris/postinstall (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba.init-lsb b/packaging/Caldera/OpenLinux/samba.init-lsb new file mode 100755 index 0000000000..f14eef648f --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba.init-lsb @@ -0,0 +1,108 @@ +#!/bin/bash +# +# +### BEGIN INIT INFO +# Provides: $samba +# Required-Start: $network +# Required-Stop: $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: samba +# Starts and stops the Samba smbd and nmbd daemons +# used to provide SMB network services. +### END INIT INFO +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux by Ian Murdock . +# Modified for OpenLinux by Raymund Will +# Adapted for samba by Klaus Singvogel + +NAME_S=smbd +DAEMON_S=/usr/sbin/$NAME_S +NAME_N=nmbd +DAEMON_N=/usr/sbin/$NAME_N + +# Source function library (and set vital variables). +. @SVIdir@/functions + +status() { + [ -e $1 ] || return 3; # lock / pid file doesn't exist, seems to be stopped + + i=`cat "$1"` + state=`egrep '^State' /proc/$i/status 2>/dev/null| sed 's#.* \(.\).*#\1#'` + if [ x$state = x -o x$state = xZ ]; then + return 2 # no such process (or zombie) --> dead + fi + return 0 # seems to be up and running +} + +case "$1" in + start) + [ ! -e $SVIlock ] || exit 0 + [ -x $DAEMON_S -a -x $DAEMON_N ] || exit 5 + SVIemptyConfig /etc/samba.d/smb.conf && exit 6 + + echo -n "Starting $SVIsubsys services: " + ssd -S -n $NAME_S -x $DAEMON_S -- $OPTIONS_SMB + ssd -S -n $NAME_N -x $DAEMON_N -- $OPTIONS_NMB + ret=$? + + echo "." + touch $SVIlock + ;; + + stop) + [ -e $SVIlock ] || exit 0 + + echo -n "Stopping $SVIsubsys services: " + ssd -K -p /var/lock/samba.d/$NAME_N.pid -n $NAME_N #-x $DAEMON_N + ssd -K -p /var/lock/samba.d/$NAME_S.pid -n $NAME_S #-x $DAEMON_S + + ret=$? + + echo "." + rm -f $SVIlock + ;; + + force-reload) + [ -e $SVIlock ] || exit 0 + $0 restart + ret=$? + ;; + + reload) + echo -n "Reloading $SVIsubsys service configuration: " + # nmbd has no config file to reload + ssd -K --signal 1 -p /var/lock/samba.d/$NAME_S.pid -n $NAME_S #-x $DAEMON_S + ret=$? + echo "." + ;; + + restart) + $0 stop + $0 start + ret=$? + ;; + + status) + echo -n "Checking status of $SVIsubsys service: " + status /var/lock/samba.d/$NAME_N.pid + ret=$? + if [ $ret -eq 0 ]; then + echo -n "$NAME_N " + status /var/lock/samba.d/$NAME_S.pid + ret=$? + [ $ret -eq 0 ] && echo -n "$NAME_S" + fi + echo "." + ;; + + *) + echo "Usage: $SVIscript {start|stop|restart|force-reload|reload|status}" + ret=2 + ;; + +esac + +exit $ret + diff --git a/packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl b/packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl new file mode 100644 index 0000000000..7a2b921dd5 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl @@ -0,0 +1,506 @@ +%define Version PVERSION +%define date PRELEASE +%define Vendor Caldera +%define Dist OpenLinux +%define EtcSamba /etc/samba.d +%define LSBservedir /srv/samba + +Name : samba +Version : %{Version} +Release : %{date} +Group : Server/Network + +Summary : Samba SMB client and server. +Summary(de) : Samba SMB Client und Server. +Summary(es) : Cliente y servidor SMB Samba. +Summary(fr) : Client et serveur SMB Samba. +Summary(it) : Client e server SMB. +Summary(pt) : Cliente e servidor SMB Samba. + +Copyright : Andrew Tridgell, John H Terpstra; GPL Version 2 +Packager : Klaus Singvogel +#Icon : Caldera-daemon.gif +URL : http://samba.org/samba + +Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 + + +BuildRoot : /tmp/%{Name}-%{Version} + +Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}.tar.gz +#Patch0: %{Name}-%{Version}-smbmount.patch +#Patch1: %{Name}-%{Version}-install.patch +#Patch2: %{Name}-%{Version}-smbconf.patch + +%Package doc +Group : Server/Network + +Summary : Documentation on SAMBA. +Summary(de) : Die Dokumentation für Samba. +Summary(es) : Documentation de SAMBA. +Summary(fr) : Documentation pour Samba. +Summary(it) : Documentazione su SAMBA. +Summary(pt) : Documentação sobre o SAMBA. + +%Package -n smbfs +Group : System/Network + +Summary : Mount and unmount commands for SMB filesystems (smbfs). +Summary(de) : Mount und unmount für SMB-Dateisysteme (smbfs). +Summary(es) : Comandos de montaje y desmontaje de sistemas de ficheros SMB (smbfs). +Summary(fr) : Commandes pour le montage et le démontage des systèmes de fichiers SMB (smbfs). +Summary(it) : Comandi per montare e smontare i file system SMB (smbfs). +Summary(pt) : Comandos mount e unmount para o sistema de ficheiros SMB (smbfs). + +%Package -n swat +Group : Administration/Network +Requires : setup >= 2.0-2, tcp_wrappers, netkit-base >= 0.17-5 + +Summary : Samba Web Administration Tool. +Summary(de) : Das Samba Web Administrationstool. +Summary(es) : Utilidad de administración Samba. +Summary(fr) : Outil d'administration Internet pour Samba. +Summary(it) : Strumento per l'amministrazione di Samba via Web. +Summary(pt) : Ferramenta Web de administração de Samba (Samba Web Administration Tool). + + +%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. + +%Description -l de +Samba stellt einen SMB Server zur Verfügung, mit dem Netzwerkdienste für SMB +(auch "Lan Manager" genannt) Clients bereitgestellt werden können. Dies +schließt verschiedene Versionen von MS Windows, OS/2 und andere Linux +Maschinen ein. + +%Description -l es +Samba dispone de un servidor SMB que puede utilizarse para proporcionar +servicios de red a clientes SMB (a veces conocido como "Lan Manager"), +incluyendo varias versiones de MS Windows, OS/2 y otras máquinas Linux. + +%Description -l fr +Samba fournit un serveur SMB qui peut être utilisé pour fournir des services +de réseau aux clients SMB (parfois appelés "Lan Manager"), comportant +diverses versions de MS Windows, OS/2 et d'autres machines Linux. + +%Description -l it +Samba fornisce un server SMB che può essere usato per fornire servizi +di rete a client SMB (talvolta chiamato "Lan Manager"), comprese varie +versioni di MS Windows, OS/2 e altre macchine Linux. + +%Description -l pt +O Samba fornece um servidor de SMB que pode ser usado para fornecer serviços de +rede aos clientes de SMB (denominado por vezes como "Lan Manager"), incluindo +várias versões do Windows, OS/2 e outras máquinas Linux. + +%Description doc +This package contains extensive SAMBA documentation, including a FAQ, +comprehensive usage documentation, and a number of examples. + +%Description -l de doc +Dieses Paket enthält eine ausführliche SAMBA Dokumentation, inklusive +einer FAQ, umfassender Gebrauchsdokumentation und einer Reihe von +Beispielen. + +%Description -l es doc +Este paquete contiene una extensa documentación sobre SAMBA, incluyendo +FAQ (Preguntas de Uso Frecuente), documentación sobre el uso y algunos +ejemplos. + +%Description -l fr doc +Ce paquetage contient une documentation complète sur Samba, y compris +une FAQ détaillée de son utilisation et un certain nombre d'exemples. + +%Description -l it doc +Questo pacchetto contiene la documentazione su SAMBA tra cui una FAQ +una esaustiva documentazione d'uso e un certo numero di esempi. + +%Description -l pt doc +Este pacote contém alguma documentação extensa sobre o SAMBA, incluindo a FAQ, +alguma documentação compreensiva sobre a utilização e alguns exemplos. + +%Description -n smbfs +This package includes the tools necessary to mount filesystems from +SMB servers. + +%Description -l de -n smbfs +Dieses Paket enthält die nötigen Tools, um Dateisysteme von SMB-Servern +zu mounten. + +%Description -l es -n smbfs +este paqeute incluye las herramientas necesarias para montar sistemas de +ficheros de servidores SMB. + +%Description -l fr -n smbfs +Ce paquetage contient les outils nécessaires pour monter des systèmes +de fichiers sur des serveurs SMB. + +%Description -l it -n smbfs +Questo pacchetto contiene gli strumenti necessari per montare filesystem +da server SMB. + +%Description -l pt -n smbfs +Este pacote contém as ferramentas necessárias para montar sistema de +ficheiros de servidores SMB. + +%Description -n swat +SWAT allows a Samba administrator to configure the complex smb.conf +file via a Web browser. It also provides links to all the configurable +options in the smb.conf file allowing an administrator to easily look +up the effects of any change. + +%Description -l de -n swat +Mit SWAT kann ein Samba-Administrator die komplexe smb.conf +Datei mit Hilfe eines Web-Browsers konfigurieren. Es stellt auch Links zu +allen konfigurierbaren Optionen in der smb.conf Datei bereit, wodurch ein +Administrator die Auswirkungen einer Änderung leicht nachvollziehen kann. + +%Description -l es -n swat +SWAT permite a un administrador de Samba configurar el complejo fichero +smb.conf mediante una navegador web. También proporciona enlaces a todas las +opciones configurables en el fichero smb.conf, permitiendo al administrador +comprobar fácilmente los efectos de cualquier cambio. + +%Description -l fr -n swat +SWAT permet à un administrateur Samba de configurer le fichier smb.conf +complexe via un navigateur Web. Il fournit également des liens d'aide pour +toutes les options configurables dans le fichier smb.conf permettant à un +administrateur de consulter aisément les effets d'une modification. + +%Description -l it -n swat +SWAT permette ad un amministratore Samba di configurare il complesso file +smb.conf attraverso un browser Web. SWAT ha anche dei link di aiuto per +tutte le opzioni di configurazione del file smb.conf. + +%Description -l pt -n swat +O SWAT permite a um administrador de Samba configurar o complexo ficheiro +smb.conf através de uma interface Web. Fornece também referências para +todas as opções configuraveis no smb.conf, permitindo a um admnistrador +verificar rapidamente o efeite de qualquer alteração. + + +%Prep +%setup +#%patch0 -p1 +#%patch1 -p1 +#%patch2 -p1 + +# instead of patch (to help configuration) ... ;^) +%{fixUP} -vbT source/Makefile.in -e ' + s:we don.t use sbindir because we want:if you want : + + s:(the previous releases of Samba):$1, please use: + + s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + + s:/log\.(\S+):/log/samba.d/${1}d: + + s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: +' +# s:^(LIBS\s*=):AUTH_$1: + +# s:((CLIENT|CUPS|NMBD|SMBD|SWAT|RPCCLIENT|SMBPASSWD|STATUS|TESTPRNS|TESTPARM)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: + +for i in {cvs.,change-}log; do [ ! -f ../$i ] || mv ../$i source; done + +mv swat/help/welcome.html docs +%{fixUP} -vT docs -e ' + s:/usr/local/samba/bin/(smb(client|run)):/usr/bin/$1:g + + s:/usr/local/samba/bin/((s|n)mbd|swat|smbstatus):/usr/sbin/$1:g + + s:/usr/local/samba/var/locks:/var/lock/samba.d: + + s:/usr/local/samba/(var|lib)/log:/var/log/samba.d/smb: + + s:/usr/local/samba/swat:/usr/share/samba/swat:g + + s:/usr/local/samba/lib:%{EtcSamba}:g + + s:/usr/local/samba/printers:/var/spool/samba:g + + s:/usr/local/samba/private/smbpasswd:/usr/bin/smbpasswd:g + + s:/usr/local/samba/netlogon:%{LSBservedir}/netlogon:g; +' +mv docs/welcome.html swat/help +for i in docs/*/smb.conf.5*; do + %{fixUP} -vT $i -e ' + s:users\.map:smbusers:g + + s:SAMBA_INSTALL_DIRECTORY/lib:%{EtcSamba}: + + s:None \(set in compile\)\.:(see above).: + + s:/usr/local/:/usr/:g; + ' +done +%{fixUP} -vT docs/textdocs/Faxing.txt -e ' + s:/usr/local/etc/:/etc/: + + s:/usr/local/:/usr/:; +' +# ENCRYPTION.txt is gone. +%{fixUP} -vT docs/docbook/projdoc/ENCRYPTION.sgml -e ' + s:/usr/local/samba/private:%{EtcSamba}:g + + s:mksmbpasswd.sh:mksmbpasswd:g + + s:the Samba source directory:/usr/bin:; +' + +%{fixUP} -vT docs/htmldocs/make_smbcodepage.1.html -e ' + s:/usr/local/samba:/usr/bin/:g; +' +for i in htmldocs/DOMAIN_MEMBER.html htmldocs/Samba-HOWTO-Collection.html \ + htmldocs/samba-pdc-faq.html htmldocs/samba-pdc-howto.html \ + htmldocs/smbclient.1.html htmldocs/smbd.8.html \ + docbook/projdoc/DOMAIN_MEMBER.sgml docbook/projdoc/DOMAIN_MEMBER.sgml \ + docbook/faq/samba-pdc-faq.sgml docbook/howto/samba-pdc-howto.sgml \ + docbook/manpages/smbclient.1.sgml docbook/manpages/smbd.8.sgml \ + docbook/projdoc/ENCRYPTION.sgml manpages/smbclient.1 manpages/smbd.8 ; do +%{fixUP} -vT docs/$i -e ' + s:/usr/local/samba/private/FOREST.SLEEPY.SID:/var/lock/samba.d/FOREST.SLEEPY.SID: + + s:/usr/local/samba/private:/usr/bin:g + + s:/usr/local/samba/bin:/usr/bin:g + + s:/usr/local/sbin:/usr/sbin:g + + s:/usr/local/src/samba:/usr/src/samba:g ;' +done +%{fixUP} -vT docs/docbook/manpages/make_smbcodepage.1.sgml -e ' + s:/usr/local/samba:/usr/bin:g ; +' +%{fixUP} -vT docs/htmldocs/samba-pdc-faq.html -e ' + s:/usr/local/src:/usr/src:g ; +' +# End of DirtyHack(TM) + + +%Build +cd source +autoreconf + +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ + --with-fhs \ + --prefix='$(DESTDIR)/usr' \ + --localstatedir='$(DESTDIR)/var' \ + --libdir='$(DESTDIR)%{EtcSamba}' \ + --with-privatedir='$(LIBDIR)' \ + --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ + --with-swatdir='$(DESTDIR)/usr/share/swat' \ + --with-sambabook='$(DESTDIR)/usr/share/swat/using_samba' \ + --with-configdir='$(DESTDIR)'%{EtcSamba} \ + --with-codepagedir='$(DESTDIR)'/usr/share/samba/codepages \ + --without-smbwrapper \ + --with-smbmount \ + --with-pam \ + --with-pam_smbpass \ + --with-netatalk \ + --with-quotas \ + --with-utmp \ + --with-syslog + +make LOGFILEBASE=/var/log/samba.d all nsswitch/libnss_wins.so debug2html bin/smbspool + + +%Install +%{mkDESTDIR} +VVS=packaging/%{Vendor}/%{Dist} + +mkdir -p $DESTDIR/etc/{{logrotate,pam}.d,sysconfig/daemons} +mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} +mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs} +mkdir -p $DESTDIR/lib/security +mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} +mkdir -p $DESTDIR/etc/skel/Samba +mkdir -p $DESTDIR/usr/share/samba/codepages/src $DESTDIR/sbin +mkdir -p $DESTDIR/%{SVIdir} + +make LOGFILEBASE=/var/log/samba.d -C source install + +strip $DESTDIR/usr/bin/smb{mnt,umount} +#mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/bin + +cp -p source/codepages/codepage_def.??? $DESTDIR/usr/share/samba/codepages/src + +# Install the nsswitch library extension file +install -m 755 source/nsswitch/libnss_wins.so $DESTDIR/lib/libnss_wins.so.2.0 +# Make link for wins resolver +ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so.2 +ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so + +# install -m 755 source/nsswitch/libnss_winbind.so $DESTDIR/lib/libnss_winbind.so.2.0 +# # Make link for winbind resolver +# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so.2 +# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so + +# install -m 755 source/nsswitch/pam_winbind.so $DESTDIR/lib/security + +# install -m 755 source/bin/wbinfo $DESTDIR/usr/bin + +install -m 755 source/bin/debug2html $DESTDIR/usr/sbin/debug2html + +#lsb: cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba +ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin + +cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample +cp -p $VVS/smb.conf $DESTDIR%{EtcSamba}/smb.conf +cp -p $VVS/smbusers $DESTDIR%{EtcSamba} +cp -p $VVS/smbprint $DESTDIR/usr/bin +#cp -p $VVS/smbadduser.perl $DESTDIR/usr/bin/smbadduser +#cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/bin/make_smbpasswd +#cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/bin/convertsmbpasswd +#cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/bin/updatesmbpasswd +cp -p $VVS/findsmb $DESTDIR/usr/bin +cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba +cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba +cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba +cp -p $VVS/README.home $DESTDIR/etc/skel/Samba/README.txt +cp -p $VVS/README.Public $DESTDIR/%{LSBservedir}/Public/README.txt +cp -p $VVS/README.profiles $DESTDIR/%{LSBservedir}/profiles/README.txt + +# Add PAM smbpass facility +mv $DESTDIR/usr/bin/pam_smbpass.so $DESTDIR/lib/security + +install -m 755 $VVS/samba.init-lsb $DESTDIR/%{SVIdir}/%{Name} + +for f in testparm testprns; do + ln -s $f $DESTDIR/usr/bin/smb$f + ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 +done +#ln -s make_smbcodepage $DESTDIR/usr/bin/mksmbcodepage +#ln -s make_smbpasswd $DESTDIR/usr/bin/mksmbpasswd +#ln -sf convert_smbpasswd $DESTDIR/usr/bin/convertsmbpasswd +ln -s ../usr/bin/smbmnt $DESTDIR/sbin/mount.smbfs + + +cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts + 127.0.0.1 localhost +EoH + +# lsb has new way of inetd configuration +mkdir -p $DESTDIR%{NKinetdir} +cat <$DESTDIR%{NKinetdir}/swat +swat stream tcp nowait.400 root /usr/sbin/tcpd swat +EoI + +# -------------------- Documentation ------------------------------- +DOCD="$DESTDIR/%{_defaultdocdir}/samba-%{Version}"; mkdir -p $DOCD +ln -sf ../Copyrights/GPL-2.0 $DOCD/COPYING +#cp -p README README-smbmount Manifest Read-Manifest-Now $DOCD +cp -p README Manifest Read-Manifest-Now $DOCD +cp -p WHATSNEW.txt Roadmap $DOCD +cp -a docs examples $DOCD + +mv $DOCD/docs/htmldocs/wfw_slip.htm $DOCD/docs/wfw_slip.html + +rm -rf $DOCD/docs/{htmldocs,manpages,yodldocs} +rm -rf $DOCD/examples/{svr4-startup,printing} +rm -rf $DOCD/CVS $DOCD/*/CVS $DOCD/*/*/CVS $DOCD/*/*/*/CVS + +cp -p swat/README $DOCD/README.swat + +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba/gifs +done + +# -------------------- Fixing final pathes ------------------------------- + +%{fixUP} -T $DESTDIR/%{SVIdir} -e 's:\@SVIdir\@:%{SVIdir}:' +%{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;' +%{fixUP} -vT $DESTDIR/%{EtcSamba} -e 's:\@samba_home\@:%{LSBservedir}:' + +%{fixManPages} + +%{mkLists} -c samba +cat << 'EOF' | %{mkLists} -d samba +Samba base +%{LSBservedir} config-IGNORED +^/(etc|var|home|tmp) config-IGNORED +swat swat +%{_defaultdocdir}/samba-[^/]+/$ base +%{_defaultdocdir}/samba- doc +tmp IGNORED +man IGNORED +lib/security IGNORED +/src/$ IGNORED +/usr/private/$ IGNORED +@default@ +EOF +cat << 'EOF' | %{mkLists} -f -a samba +\.old$ IGNORED +Samba/README.txt base +^/etc config-IGNORED +%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base +libnss_wins.* base +pam_smbpass.so base +%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base +%{_defaultdocdir}/samba- doc +smb(mount|mnt|umount) smbfs +mount.smbfs smbfs +swat swat +@default@ +EOF + + +%Clean +%{rmDESTDIR} + + +%Post +/usr/lib/LSB/init-install %{Name} + + +%Post -n swat +%{NKinetdReload} +perl -pi -e '$s=1 if /^swat/; + print "swat:ALL EXCEPT 127.0.0.1\n" if eof && ! $s' /etc/hosts.deny + + +%PostUn +test "$1" = "0" || exit 0 +/usr/lib/LSB/init-remove %{Name} +# We want to remove the browse.dat and wins.dat files so they can not +# interfer with a new version of samba! +rm -f /var/lock/samba/browse.dat +rm -f /var/lock/samba/{brlock,connections,locking,messages}.tdb +if [ -e /var/lock/samba.d/namelist.debug ]; then + rm -f /var/lock/samba.d/namelist.debug +fi +rm -f /var/lock/samba/unexpected.tdb +rm -f /var/lock/samba/{smbd,nmbd}.pid + +# Note: We MUST keep: +# winbindd_*, sshare_info*, printing*, ntdrivers* + + +%PostUn -n swat +#$no lsb: lisa --inetd disable swat $1 +test "$1" = "0" || exit 0 +%{SVIdir}/inet reload +[ -x /usr/sbin/swat ]||perl -ni -e '/^swat\s*\:/||print' /etc/hosts.deny + + +%Files -f files-samba-base +%defattr(-,root,root) +%config %attr(0755,root,root) %{SVIdir}/samba +%config %attr(644,root,root) /etc/sysconfig/daemons/samba +%config %attr(644,root,root) /etc/pam.d/samba +%config %attr(644,root,root) /etc/logrotate.d/samba +%config %attr(-,root,root) %{EtcSamba} +%dir %attr(755,root,root) /var/lock/samba.d +%dir %attr(755,root,root) /var/log/samba.d +%dir %attr(1777,root,root) /var/spool/samba +%dir %attr(755,root,root) %{LSBservedir} +%dir %attr(755,root,root) %{LSBservedir}/netlogon +%dir %attr(755,root,root) %{LSBservedir}/profiles +%dir %attr(755,root,root) %{LSBservedir}/Public + + +%Files doc -f files-samba-doc +%defattr(-,root,root) + + +%Files -n smbfs -f files-samba-smbfs +%defattr(-,root,root) + + +%Files -n swat -f files-samba-swat +%defattr(-,root,root) +%config %attr(644,root,root) %{NKinetdir}/swat + +%ChangeLog +* Mon Jan 01 1997 ... +$Id: samba2.spec-lsb.tmpl,v 1.3 2001/06/01 12:33:16 jerry Exp $ diff --git a/packaging/Caldera/OpenLinux/samba2.spec.tmpl b/packaging/Caldera/OpenLinux/samba2.spec.tmpl new file mode 100644 index 0000000000..738b8c41e3 --- /dev/null +++ b/packaging/Caldera/OpenLinux/samba2.spec.tmpl @@ -0,0 +1,484 @@ +%define Version PVERSION +%define date PRELEASE +%define Vendor Caldera +%define Dist OpenLinux +%define EtcSamba /etc/samba.d +%define _defaultdocdir /usr/doc +%define LSBservedir /srv/samba + +Name : samba +Version : %{Version} +Release : %{date} +Group : Server/Network + +Summary : Samba SMB client and server. +Summary(de) : Samba SMB Client und Server. +Summary(es) : Cliente y servidor SMB Samba. +Summary(fr) : Client et serveur SMB Samba. +Summary(it) : Client e server SMB. +Summary(pt) : Cliente e servidor SMB Samba. + +Copyright : Andrew Tridgell, John H Terpstra; GPL Version 2 +Packager : Klaus Singvogel +#Icon : Caldera-daemon.gif +URL : http://samba.org/samba + +Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 + + +BuildRoot : /tmp/%{Name}-%{Version} + +Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}.tar.gz +#Patch0: %{Name}-%{Version}-smbmount.patch +#Patch1: %{Name}-%{Version}-install.patch +#Patch2: %{Name}-%{Version}-smbconf.patch + + +%Package doc +Group : Server/Network + +Summary : Documentation on SAMBA. +Summary(de) : Die Dokumentation für Samba. +Summary(es) : Documentation de SAMBA. +Summary(fr) : Documentation pour Samba. +Summary(it) : Documentazione su SAMBA. +Summary(pt) : Documentação sobre o SAMBA. + + +%Package -n smbfs +Group : System/Network + +Summary : Mount and unmount commands for SMB filesystems (smbfs). +Summary(de) : Mount und unmount für SMB-Dateisysteme (smbfs). +Summary(es) : Comandos de montaje y desmontaje de sistemas de ficheros SMB (smbfs). +Summary(fr) : Commandes pour le montage et le démontage des systèmes de fichiers SMB (smbfs). +Summary(it) : Comandi per montare e smontare i file system SMB (smbfs). +Summary(pt) : Comandos mount e unmount para o sistema de ficheiros SMB (smbfs). + + + +%Package -n swat +Group : Administration/Network +Requires : setup >= 2.0-2, tcp_wrappers + +Summary : Samba Web Administration Tool. +Summary(de) : Das Samba Web Administrationstool. +Summary(es) : Utilidad de administración Samba. +Summary(fr) : Outil d'administration Internet pour Samba. +Summary(it) : Strumento per l'amministrazione di Samba via Web. +Summary(pt) : Ferramenta Web de administração de Samba (Samba Web Administration Tool). + + +%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. + +%Description -l de +Samba stellt einen SMB Server zur Verfügung, mit dem Netzwerkdienste für SMB +(auch "Lan Manager" genannt) Clients bereitgestellt werden können. Dies +schließt verschiedene Versionen von MS Windows, OS/2 und andere Linux +Maschinen ein. + +%Description -l es +Samba dispone de un servidor SMB que puede utilizarse para proporcionar +servicios de red a clientes SMB (a veces conocido como "Lan Manager"), +incluyendo varias versiones de MS Windows, OS/2 y otras máquinas Linux. + +%Description -l fr +Samba fournit un serveur SMB qui peut être utilisé pour fournir des services +de réseau aux clients SMB (parfois appelés "Lan Manager"), comportant +diverses versions de MS Windows, OS/2 et d'autres machines Linux. + +%Description -l it +Samba fornisce un server SMB che può essere usato per fornire servizi +di rete a client SMB (talvolta chiamato "Lan Manager"), comprese varie +versioni di MS Windows, OS/2 e altre macchine Linux. + +%Description -l pt +O Samba fornece um servidor de SMB que pode ser usado para fornecer serviços de +rede aos clientes de SMB (denominado por vezes como "Lan Manager"), incluindo +várias versões do Windows, OS/2 e outras máquinas Linux. + +%Description doc +This package contains extensive SAMBA documentation, including a FAQ, +comprehensive usage documentation, and a number of examples. + +%Description -l de doc +Dieses Paket enthält eine ausführliche SAMBA Dokumentation, inklusive +einer FAQ, umfassender Gebrauchsdokumentation und einer Reihe von +Beispielen. + +%Description -l es doc +Este paquete contiene una extensa documentación sobre SAMBA, incluyendo +FAQ (Preguntas de Uso Frecuente), documentación sobre el uso y algunos +ejemplos. + +%Description -l fr doc +Ce paquetage contient une documentation complète sur Samba, y compris +une FAQ détaillée de son utilisation et un certain nombre d'exemples. + +%Description -l it doc +Questo pacchetto contiene la documentazione su SAMBA tra cui una FAQ +una esaustiva documentazione d'uso e un certo numero di esempi. + +%Description -l pt doc +Este pacote contém alguma documentação extensa sobre o SAMBA, incluindo a FAQ, +alguma documentação compreensiva sobre a utilização e alguns exemplos. + +%Description -n smbfs +This package includes the tools necessary to mount filesystems from +SMB servers. + +%Description -l de -n smbfs +Dieses Paket enthält die nötigen Tools, um Dateisysteme von SMB-Servern +zu mounten. + +%Description -l es -n smbfs +este paqeute incluye las herramientas necesarias para montar sistemas de +ficheros de servidores SMB. + +%Description -l fr -n smbfs +Ce paquetage contient les outils nécessaires pour monter des systèmes +de fichiers sur des serveurs SMB. + +%Description -l it -n smbfs +Questo pacchetto contiene gli strumenti necessari per montare filesystem +da server SMB. + +%Description -l pt -n smbfs +Este pacote contém as ferramentas necessárias para montar sistema de +ficheiros de servidores SMB. + +%Description -n swat +SWAT allows a Samba administrator to configure the complex smb.conf +file via a Web browser. It also provides links to all the configurable +options in the smb.conf file allowing an administrator to easily look +up the effects of any change. + +%Description -l de -n swat +Mit SWAT kann ein Samba-Administrator die komplexe smb.conf +Datei mit Hilfe eines Web-Browsers konfigurieren. Es stellt auch Links zu +allen konfigurierbaren Optionen in der smb.conf Datei bereit, wodurch ein +Administrator die Auswirkungen einer Änderung leicht nachvollziehen kann. + +%Description -l es -n swat +SWAT permite a un administrador de Samba configurar el complejo fichero +smb.conf mediante una navegador web. También proporciona enlaces a todas las +opciones configurables en el fichero smb.conf, permitiendo al administrador +comprobar fácilmente los efectos de cualquier cambio. + +%Description -l fr -n swat +SWAT permet à un administrateur Samba de configurer le fichier smb.conf +complexe via un navigateur Web. Il fournit également des liens d'aide pour +toutes les options configurables dans le fichier smb.conf permettant à un +administrateur de consulter aisément les effets d'une modification. + +%Description -l it -n swat +SWAT permette ad un amministratore Samba di configurare il complesso file +smb.conf attraverso un browser Web. SWAT ha anche dei link di aiuto per +tutte le opzioni di configurazione del file smb.conf. + +%Description -l pt -n swat +O SWAT permite a um administrador de Samba configurar o complexo ficheiro +smb.conf através de uma interface Web. Fornece também referências para +todas as opções configuraveis no smb.conf, permitindo a um admnistrador +verificar rapidamente o efeite de qualquer alteração. + + +%Prep +%setup +#%patch0 -p1 +#%patch1 -p1 +#%patch2 -p1 + +# instead of patch (to help configuration) ... ;^) +%{fixUP} -vbT source/Makefile.in -e ' + s:we don.t use sbindir because we want:if you want : + + s:(the previous releases of Samba):$1, please use: + + s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + + s:/log\.(\S+):/log/samba.d/${1}d: + + s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: +' +# s:^(LIBS\s*=):AUTH_$1: + +# s:((CLIENT|CUPS|NMBD|SMBD|SWAT|RPCCLIENT|SMBPASSWD|STATUS|TESTPRNS|TESTPARM)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: + +for i in {cvs.,change-}log; do [ ! -f ../$i ] || mv ../$i source; done + +mv swat/help/welcome.html docs +%{fixUP} -vT docs -e ' + s:/usr/local/samba/bin/(smb(client|run)):/usr/bin/$1:g + + s:/usr/local/samba/bin/((s|n)mbd|swat|smbstatus):/usr/sbin/$1:g + + s:/usr/local/samba/var/locks:/var/lock/samba.d: + + s:/usr/local/samba/(var|lib)/log:/var/log/samba.d/smb: + + s:/usr/local/samba/swat:/usr/share/samba/swat:g + + s:/usr/local/samba/lib:%{EtcSamba}:g + + s:/usr/local/samba/printers:/var/spool/samba:g + + s:/usr/local/samba/private/smbpasswd:/usr/bin/smbpasswd:g + + s:/usr/local/samba/netlogon:%{LSBservedir}/netlogon:g; +' +mv docs/welcome.html swat/help +for i in docs/*/smb.conf.5*; do + %{fixUP} -vT $i -e ' + s:users\.map:smbusers:g + + s:SAMBA_INSTALL_DIRECTORY/lib:%{EtcSamba}: + + s:None \(set in compile\)\.:(see above).: + + s:/usr/local/:/usr/:g; + ' +done +%{fixUP} -vT docs/textdocs/Faxing.txt -e ' + s:/usr/local/etc/:/etc/: + + s:/usr/local/:/usr/:; +' +%{fixUP} -vT docs/docbook/projdoc/ENCRYPTION.sgml -e ' + s:/usr/local/samba/private:%{EtcSamba}:g + + s:mksmbpasswd.sh:mksmbpasswd:g + + s:the Samba source directory:/usr/bin:; +' +%{fixUP} -vT docs/htmldocs/make_smbcodepage.1.html -e ' + s:/usr/local/samba:/usr/bin/:g; +' +for i in htmldocs/DOMAIN_MEMBER.html htmldocs/Samba-HOWTO-Collection.html \ + htmldocs/samba-pdc-faq.html htmldocs/samba-pdc-howto.html \ + htmldocs/smbclient.1.html htmldocs/smbd.8.html \ + docbook/projdoc/DOMAIN_MEMBER.sgml htmldocs/DOMAIN_MEMBER.html \ + docbook/faq/samba-pdc-faq.sgml docbook/howto/samba-pdc-howto.sgml \ + docbook/manpages/smbclient.1.sgml docbook/manpages/smbd.8.sgml \ + docbook/projdoc/ENCRYPTION.sgml manpages/smbclient.1 manpages/smbd.8 ; do +%{fixUP} -vT docs/$i -e ' + s:/usr/local/samba/private/FOREST.SLEEPY.SID:/var/lock/samba.d/FOREST.SLEEPY.SID: + + s:/usr/local/samba/private:/usr/bin:g + + s:/usr/local/samba/bin:/usr/bin:g + + s:/usr/local/sbin:/usr/sbin:g + + s:/usr/local/src/samba:/usr/src/samba:g ;' +done +%{fixUP} -vT docs/docbook/manpages/make_smbcodepage.1.sgml -e ' + s:/usr/local/samba:/usr/bin:g ; +' +%{fixUP} -vT docs/htmldocs/samba-pdc-faq.html -e ' + s:/usr/local/src:/usr/src:g ; +' +# End of DirtyHack(TM) + + +%Build +cd source +autoreconf + +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ + --prefix='$(DESTDIR)/usr' \ + --localstatedir='$(DESTDIR)/var' \ + --libdir='$(DESTDIR)%{EtcSamba}' \ + --with-privatedir='$(LIBDIR)' \ + --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ + --with-swatdir='$(DESTDIR)/usr/share/swat' \ + --with-swatdir='$(DESTDIR)/usr/share/swat' \ + --with-sambabook='$(DESTDIR)/usr/share/swat/using_samba' \ + --with-configdir='$(DESTDIR)'%{EtcSamba} \ + --with-codepagedir='$(DESTDIR)'/usr/share/samba/codepages \ + --without-smbwrapper \ + --with-smbmount \ + --with-pam \ + --with-pam_smbpass \ + --with-netatalk \ + --with-quotas \ + --with-syslog \ + --with-utmp + +make LOGFILEBASE=/var/log/samba.d all +make LOGFILEBASE=/var/log/samba.d nsswitch/libnss_wins.so +make LOGFILEBASE=/var/log/samba.d smbfilter debug2html +make LOGFILEBASE=/var/log/samba.d bin/smbspool + + +%Install +%{mkDESTDIR} +VVS=packaging/%{Vendor}/%{Dist} + +mkdir -p $DESTDIR/etc/{{rc.d/init,logrotate,pam}.d,sysconfig/daemons,skel/Samba} +mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} +mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs} +mkdir -p $DESTDIR/lib/security +mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} +mkdir -p $DESTDIR/usr/share/samba/codepages/src $DESTDIR/sbin + +make -C source install +make LOGFILEBASE=/var/log/samba.d -C source install + +strip $DESTDIR/usr/bin/smb{mnt,umount} +#mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin + +cp -p source/codepages/codepage_def.??? $DESTDIR/usr/share/samba/codepages/src + +# Install the nsswitch library extension file +install -m 755 source/nsswitch/libnss_wins.so $DESTDIR/lib/libnss_wins.so.2.0 +# Make link for wins resolver +ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so.2 +ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so + +# install -m 755 source/nsswitch/libnss_winbind.so $DESTDIR/lib/libnss_winbind.so.2.0 +# # Make link for winbind resolver +# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so.2 +# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so + +# install -m 755 source/nsswitch/pam_winbind.so $DESTDIR/lib/security + +# install -m 755 source/bin/wbinfo $DESTDIR/usr/bin + +for f in debug2html smbfilter smbspool; do + install -m 755 source/bin/$f $DESTDIR/usr/sbin/$f +done + +cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba +ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin + +cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample +cp -p $VVS/smb.conf $DESTDIR%{EtcSamba}/smb.conf +cp -p $VVS/smbusers $DESTDIR%{EtcSamba} +cp -p $VVS/smbprint $DESTDIR/usr/bin +#cp -p $VVS/smbadduser.perl $DESTDIR/usr/bin/smbadduser +#cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/bin/make_smbpasswd +#cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/bin/convertsmbpasswd +#cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/bin/updatesmbpasswd +cp -p $VVS/findsmb $DESTDIR/usr/bin +cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba +cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba +cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba +cp -p $VVS/README.home $DESTDIR/etc/skel/Samba/README.txt +cp -p $VVS/README.Public $DESTDIR/%{LSBservedir}/Public/README.txt +cp -p $VVS/README.profiles $DESTDIR/%{LSBservedir}/profiles/README.txt + +# Add PAM smbpass facility +mv $DESTDIR/usr/bin/pam_smbpass.so $DESTDIR/lib/security + +for f in testparm testprns; do + ln -s $f $DESTDIR/usr/bin/smb$f + ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 +done +ln -s make_smbcodepage $DESTDIR/usr/bin/mksmbcodepage +#ln -s make_smbpasswd $DESTDIR/usr/bin/mksmbpasswd +#ln -sf convert_smbpasswd $DESTDIR/usr/bin/convertsmbpasswd +ln -s ../usr/bin/smbmnt $DESTDIR/sbin/mount.smbfs + +cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts + 127.0.0.1 localhost +EoH + + +DOCD="$DESTDIR/%{_defaultdocdir}/samba-%{Version}"; mkdir -p $DOCD +ln -sf ../Copyrights/GPL-2.0 $DOCD/COPYING +cp -p README README-smbmount Manifest Read-Manifest-Now $DOCD +cp -p WHATSNEW.txt Roadmap $DOCD +cp -a docs examples $DOCD + +mv $DOCD/docs/htmldocs/wfw_slip.htm $DOCD/docs/wfw_slip.html + +rm -rf $DOCD/docs/{htmldocs,manpages,yodldocs} +rm -rf $DOCD/examples/{svr4-startup,printing} +rm -rf $DOCD/CVS $DOCD/*/CVS $DOCD/*/*/CVS $DOCD/*/*/*/CVS + +cp -p swat/README $DOCD/README.swat + +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba/gifs +done + +%{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;' +%{fixUP} -vT $DESTDIR/etc/samba.d -e 's:\@samba_home\@:%{LSBservedir}:' + +%{fixManPages} + +%{mkLists} -c samba +cat << 'EOF' | %{mkLists} -d samba +Samba base +%{LSBservedir} config-IGNORED +^/(etc|var|home|tmp) config-IGNORED +swat swat +%{_defaultdocdir}/samba-[^/]+/$ base +%{_defaultdocdir}/samba- doc +tmp IGNORED +man IGNORED +@default@ +EOF +cat << 'EOF' | %{mkLists} -f -a samba +\.old$ IGNORED +Samba/README.txt base +^/etc config-IGNORED +%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base +libnss_wins.so base +%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base +%{_defaultdocdir}/samba- doc +smb(mount|mnt|umount) smbfs +mount.smbfs smbfs +swat swat +@default@ +EOF + + +%Clean +%{rmDESTDIR} + + +%Post +lisa --SysV-init install samba S91 3:4:5 K09 0:1:2:6 + + +%Post -n swat +lisa --inetd install swat stream tcp nowait.400 root /usr/sbin/tcpd swat +perl -pi -e '$s=1 if /^swat/; + print "swat:ALL EXCEPT 127.0.0.1\n" if eof && ! $s' /etc/hosts.deny + + +%PostUn +lisa --SysV-init remove samba $1 +# We want to remove the browse.dat and wins.dat files so they can not +# interfer with a new version of samba! +rm -f /var/lock/samba/{browse,wins}.dat + + +%PostUn -n swat +lisa --inetd disable swat $1 +[ -x /usr/sbin/swat ]||perl -ni -e '/^swat\s*\:/||print' /etc/hosts.deny + + +%Files -f files-samba-base +%defattr(-,root,root) +%config %attr(755,root,root) /etc/rc.d/init.d/samba +%config %attr(644,root,root) /etc/sysconfig/daemons/samba +%config %attr(644,root,root) /etc/pam.d/samba +%config %attr(644,root,root) /etc/logrotate.d/samba +%config %attr(-,root,root) %{EtcSamba} +%dir %attr(755,root,root) /var/lock/samba.d +%dir %attr(755,root,root) /var/log/samba.d +%dir %attr(1777,root,root) /var/spool/samba +%dir %attr(755,root,root) %{LSBservedir} +%dir %attr(755,root,root) %{LSBservedir}/netlogon +%dir %attr(755,root,root) %{LSBservedir}/profiles +%dir %attr(755,root,root) %{LSBservedir}/Public + + +%Files doc -f files-samba-doc +%defattr(-,root,root) + + +%Files -n smbfs -f files-samba-smbfs +%defattr(-,root,root) + + +%Files -n swat -f files-samba-swat +%defattr(-,root,root) + + +%ChangeLog +* Mon Jan 01 1997 ... +$Id: samba2.spec.tmpl,v 1.3 2001/06/01 12:33:16 jerry Exp $ diff --git a/packaging/Caldera/OpenLinux/smb.conf b/packaging/Caldera/OpenLinux/smb.conf new file mode 100644 index 0000000000..e62c7bf1e4 --- /dev/null +++ b/packaging/Caldera/OpenLinux/smb.conf @@ -0,0 +1,51 @@ +# Samba config file created using SWAT +# from localhost (127.0.0.1) + +# Global parameters +[global] + workgroup = MYGROUP + server string = Samba Server on Caldera OpenLinux + encrypt passwords = Yes + username map = /etc/samba.d/smbusers + password level = 8 + username level = 8 + log file = /var/log/samba.d/smb.%m + max log size = 200 + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 + logon path = \\%L\Profiles\%U + dns proxy = No + printing = cups + +[homes] + comment = Home Directories + path = %H/Samba + username = %S + valid users = %S + writeable = Yes + create mask = 0750 + only user = Yes + browseable = No + +[netlogon] + comment = Samba Network Logon Service + path = @samba_home@/netlogon + guest ok = Yes + share modes = No + +[profiles] + path = @samba_home@/profiles + writeable = Yes + guest ok = Yes + browseable = No + +[printers] + comment = All Printers + path = /var/spool/samba + create mask = 0700 + printable = Yes + browseable = No + +[public] + comment = Public Stuff + path = @samba_home@/Public + write list = @users diff --git a/packaging/RedHat/makefile-path.patch b/packaging/RedHat/makefile-path.patch deleted file mode 100644 index 88d5222e09..0000000000 --- a/packaging/RedHat/makefile-path.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- samba-2.0.1/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 -+++ samba-2.0.1/source/Makefile.in Wed Dec 2 17:11:33 1998 -@@ -25,9 +25,9 @@ - BINDIR = @bindir@ - # we don't use sbindir because we want full compatibility with - # the previous releases of Samba --SBINDIR = @bindir@ -+SBINDIR = @sbindir@ - LIBDIR = @libdir@ --VARDIR = @localstatedir@ -+VARDIR = /var/log/samba - MANDIR = @mandir@ diff --git a/packaging/RedHat/smbadduser b/packaging/RedHat/smbadduser deleted file mode 100755 index 2f38bf28f1..0000000000 --- a/packaging/RedHat/smbadduser +++ /dev/null @@ -1,73 +0,0 @@ -#!/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/smbw.patch b/packaging/RedHat/smbw.patch deleted file mode 100644 index 0abbfdf73f..0000000000 --- a/packaging/RedHat/smbw.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- 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/Solaris/postinstall b/packaging/Solaris/postinstall new file mode 100644 index 0000000000..0b7f40a85d --- /dev/null +++ b/packaging/Solaris/postinstall @@ -0,0 +1,21 @@ +cat < Date: Fri, 1 Jun 2001 12:33:16 +0000 Subject: final sync with SAMBA_2_2 (This used to be commit a25f6694d230fe384c212350dacf17bfae3ab79d) --- packaging/Caldera/OpenLinux/makerpms.sh.tmpl | 33 ++++++--- packaging/Caldera/OpenLinux/samba.pam | 8 ++- packaging/Caldera/OpenLinux/smb.conf.sample | 61 ++++++++-------- packaging/PHT/TurboLinux/makefile-path.patch | 12 ---- packaging/PHT/TurboLinux/samba.pamd | 13 +++- packaging/PHT/TurboLinux/samba2.spec.tmpl | 102 ++++++++++++--------------- packaging/README | 2 +- packaging/SGI/findsmb | 2 +- packaging/SGI/idb.pl | 1 + packaging/SGI/mkrelease.sh | 2 +- packaging/SGI/smb.conf | 14 ++-- packaging/SGI/smbprint | 2 +- packaging/Solaris/makepkg.sh | 33 ++++++++- packaging/Solaris/prototype.master | 46 ++---------- 14 files changed, 169 insertions(+), 162 deletions(-) delete mode 100644 packaging/PHT/TurboLinux/makefile-path.patch (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl index fda8545df7..e7ba1d9623 100644 --- a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl +++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl @@ -5,21 +5,38 @@ SPECDIR=${SPECDIR:-/usr/src/OpenLinux/SPECS} SRCDIR=${SRCDIR:-/usr/src/OpenLinux/SOURCES} USERID=`id -u` GRPID=`id -g` +devel=0; +old=0; -if ( z$1 == "zdevel" ) then - ( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba; mv samba samba-PVERSION ) - ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERIONS; mv samba-PVERSION samba ) +# Do some argument parsing... +if [ z$1 = z"devel" ]; then + devel=1; + shift +fi +if [ z$1 = z"old" ]; then + old=1; + shift +fi + +# Start preparing the packages... +if [ $devel -ne 0 ]; then + ( cd ../../../.. ; chown -R ${USERID}.${GRPID} samba; mv samba samba-PVERSION ) + ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION; mv samba-PVERSION samba ) else - ( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-PVERSION ) + ( cd ../../../.. ; chown -R ${USERID}.${GRPID} samba-PVERSION ) ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION ) -done +fi -cp -a *.spec *.spec-lsb $SPECDIR +cp -af *.spec *.spec-lsb $SPECDIR for src in *.patch; do trg=`echo $src | sed 's;xxxxxx;PVERSION;'` cp -a $src $SRCDIR/$trg done + +# Start building the package cd $SPECDIR -mv samba2.spec samba2.spec-nonlsb -ln samba2.spec-lsb samba2.spec +if [ $old -eq 0 ]; then +mv -f samba2.spec samba2.spec-nonlsb +ln -f samba2.spec-lsb samba2.spec +fi rpm -ba -v samba2.spec diff --git a/packaging/Caldera/OpenLinux/samba.pam b/packaging/Caldera/OpenLinux/samba.pam index 4588db1735..225ab724ec 100644 --- a/packaging/Caldera/OpenLinux/samba.pam +++ b/packaging/Caldera/OpenLinux/samba.pam @@ -3,5 +3,9 @@ # # The PAM configuration file for the `samba' service # -auth required /lib/security/pam_pwdb.so shadow nullok -account required /lib/security/pam_pwdb.so +auth required /lib/security/pam_pwdb.so nullok nodelay # shadow audit +# auth required /lib/security/pam_smbpass.so nodelay +account required /lib/security/pam_pwdb.so audit nodelay +session required /lib/security/pam_pwdb.so nodelay +password required /lib/security/pam_pwdb.so # shadow md5 +#password required /lib/security/pam_smbpass.so nodelay smbconf=/etc/samba.d/smb.conf diff --git a/packaging/Caldera/OpenLinux/smb.conf.sample b/packaging/Caldera/OpenLinux/smb.conf.sample index a00803ca18..cec5a8a8b2 100644 --- a/packaging/Caldera/OpenLinux/smb.conf.sample +++ b/packaging/Caldera/OpenLinux/smb.conf.sample @@ -15,7 +15,7 @@ [global] # workgroup = NT-Domain-Name or Workgroup-Name - workgroup = WORKGROUP + workgroup = MYGROUP # server string is the equivalent of the NT Description field server string = Samba Server on Caldera OpenLinux @@ -37,7 +37,7 @@ # It should not be necessary to specify the print system type unless # it is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx - printing = lprng + printing = cups # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used @@ -45,10 +45,10 @@ # this tells Samba to use a separate log file for each machine # that connects -; log file = /var/log/samba.d/smb.%m + log file = /var/log/samba.d/smb.%m # Put a capping on the size of the log files (in Kb). - max log size = 50 + max log size = 200 # Security mode. Most people will want user level security. See # security_level.txt for details. @@ -58,14 +58,14 @@ # Password Level allows matching of _n_ characters of the password for # all combinations of upper and lower case. -; password level = 8 -; username level = 8 + 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/samba.d/smbpasswd + encrypt passwords = yes + smb passwd file = /etc/samba.d/smbpasswd # The following are needed to allow password changing from Windows to # update the Linux sytsem password also. @@ -78,7 +78,7 @@ ; 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/samba.d/smbusers + username map = /etc/samba.d/smbusers # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name @@ -87,7 +87,7 @@ # Most people will find that this option gives better performance. # See speed.txt and the manual pages for details - socket options = TCP_NODELAY + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them @@ -108,7 +108,7 @@ # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable -; os level = 33 + os level = 20 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this @@ -137,7 +137,7 @@ # 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 + 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 @@ -186,28 +186,30 @@ ; (it is named 'public' as it is intended to be used by other sharing ; technologies (like NetWare, appletalk) too and may get disclosed due ; to weak protocols! -- hmm, are there less secure protocols than NFS? :) - path = %H/Public + path = %H/Samba valid users = %S + users = %S only user = yes browseable = no writable = yes create mask = 0750 # Un-comment the following and create the netlogon directory for Domain Logons -; [netlogon] -; comment = Samba Network Logon Service -; path = /home/samba/netlogon -; guest ok = yes -; writable = no -; share modes = no +[netlogon] + comment = Samba Network Logon Service + path = @samba_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/samba/profiles -; browseable = no -; guest ok = yes +[profiles] + path = @samba_home@/profiles + writeable = yes + browseable = no + guest ok = yes # NOTE: If you have a BSD-style print system there is no need to @@ -224,13 +226,14 @@ # A publicly accessible directory, but read only, except for people in # the "users" group -;[public] -; comment = Public Stuff -; path = /home/public -; browseable = yes -; public = yes +[public] + comment = Public Stuff + path = @samba_home@/public + browseable = yes + read only = yes + public = no + printable = no ; writable = yes -; printable = no # access may be controlled by these options ; read list = user1, user2, @group ; valid users = user1, user3 diff --git a/packaging/PHT/TurboLinux/makefile-path.patch b/packaging/PHT/TurboLinux/makefile-path.patch deleted file mode 100644 index 88d5222e09..0000000000 --- a/packaging/PHT/TurboLinux/makefile-path.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- samba-2.0.1/source/Makefile.in.orig Tue Dec 1 22:32:20 1998 -+++ samba-2.0.1/source/Makefile.in Wed Dec 2 17:11:33 1998 -@@ -25,9 +25,9 @@ - BINDIR = @bindir@ - # we don't use sbindir because we want full compatibility with - # the previous releases of Samba --SBINDIR = @bindir@ -+SBINDIR = @sbindir@ - LIBDIR = @libdir@ --VARDIR = @localstatedir@ -+VARDIR = /var/log/samba - MANDIR = @mandir@ diff --git a/packaging/PHT/TurboLinux/samba.pamd b/packaging/PHT/TurboLinux/samba.pamd index f38e70184a..225ab724ec 100644 --- a/packaging/PHT/TurboLinux/samba.pamd +++ b/packaging/PHT/TurboLinux/samba.pamd @@ -1,2 +1,11 @@ -auth required /lib/security/pam_pwdb.so nullok shadow -account required /lib/security/pam_pwdb.so +#%PAM-1.0 +#[For version 1.0 syntax, the above header is optional] +# +# The PAM configuration file for the `samba' service +# +auth required /lib/security/pam_pwdb.so nullok nodelay # shadow audit +# auth required /lib/security/pam_smbpass.so nodelay +account required /lib/security/pam_pwdb.so audit nodelay +session required /lib/security/pam_pwdb.so nodelay +password required /lib/security/pam_pwdb.so # shadow md5 +#password required /lib/security/pam_smbpass.so nodelay smbconf=/etc/samba.d/smb.conf diff --git a/packaging/PHT/TurboLinux/samba2.spec.tmpl b/packaging/PHT/TurboLinux/samba2.spec.tmpl index 668dddb0f6..0633f62a7e 100644 --- a/packaging/PHT/TurboLinux/samba2.spec.tmpl +++ b/packaging/PHT/TurboLinux/samba2.spec.tmpl @@ -5,8 +5,7 @@ Release: PRELEASE Copyright: GNU GPL version 2 Group: Networking Source: ftp://samba.org/pub/samba/samba-PVERSION.tar.gz -Patch: makefile-path.patch -Patch1: smbw.patch +Patch: smbw.patch Requires: pam >= 0.64 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils BuildRoot: /var/tmp/samba @@ -69,12 +68,10 @@ http://samba.org/samba for this interesting program suite and lots of more information on SMB and NetBIOS over TCP/IP. There you also find explanation for conceps like NetBIOS name or share. -%description debugtools -This package contains programs that can be used to crash test any SMB -server. Please use it with care. If you do not need it then do NOT -install. - %changelog +* Tue Mar 27 2001 John H Terpstra +- Fixes to make 2.2 compile + * Sat Nov 04 2000 John H Terpstra - Put Symlink for libnss_wins.so back into main install section @@ -183,7 +180,6 @@ install. %prep %setup %patch -p1 -%patch1 -p1 %build @@ -191,38 +187,36 @@ cd source %ifarch ia64 libtoolize --copy --force # get it to recognize IA-64 -autoconf -autoheader -EXTRA="-D_LARGEFILE64_SOURCE" %endif +autoconf +autoheader NUMCPU=`grep processor /proc/cpuinfo | wc -l` CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ --prefix=%{prefix} \ - --libdir=/etc \ + --libdir=/etc/samba \ --with-lockdir=/var/lock/samba \ --with-privatedir=/etc \ --with-swatdir=%{prefix}/share/swat \ --with-quotas \ --with-smbmount \ --with-pam \ + --with-pam_smbpass \ --with-profile \ --with-syslog \ --with-utmp \ - --with-vfs \ - --with-msdfs \ --with-netatalk \ --with-sambabook=%{prefix}/share/swat/using_samba + make -j${NUMCPU} all smbfilter nsswitch/libnss_wins.so -make -j${NUMCPU} smbtorture debug2html locktest2 -make -j${NUMCPU} masktest bin/smbspool -#make -j${NUMCPU} rpctorture locktest smbwrapper bin/wbinfo +make -j${NUMCPU} debug2html %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/sbin -mkdir -p $RPM_BUILD_ROOT/etc/codepages/src +mkdir -p $RPM_BUILD_ROOT%{prefix}/share/samba/codepages/src +mkdir -p $RPM_BUILD_ROOT/etc/samba mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d} mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d mkdir -p $RPM_BUILD_ROOT/lib @@ -238,19 +232,16 @@ mkdir -p $RPM_BUILD_ROOT/var/spool/samba # Install standard binary files for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool -# smbsh smbwrapper.so do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done -for i in addtosmbpass mksmbpasswd.sh smbtar +for i in mksmbpasswd.sh smbtar do install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount smbmnt debug2html \ - smbtorture smbfilter locktest2 masktest -# wbinfo +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html smbfilter do install -m755 -s source/bin/$i $RPM_BUILD_ROOT/usr/sbin done @@ -265,11 +256,11 @@ done # Install codepage source files for i in 437 737 775 850 852 861 866 932 936 949 950 1251 do -install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT/etc/codepages/src +install -m644 source/codepages/codepage_def.$i $RPM_BUILD_ROOT%{prefix}/samba/codepages/src done for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R do -install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROOT/etc/codepages/src +install -m644 source/codepages/CP$i.TXT $RPM_BUILD_ROO%{prefix}/samba/codepages/src done # Install the nsswitch library extension file @@ -277,6 +268,9 @@ install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib # Make link for wins resolver ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) +# Install PAM pam_smbpass.so +install -m644 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security + # Install SWAT helper files for i in swat/help/*.html docs/htmldocs/*.html do @@ -318,11 +312,10 @@ install -m644 docs/manpages/swat.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/smbmount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/smbmnt.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 install -m644 docs/manpages/smbumount.8 $RPM_BUILD_ROOT%{prefix}/share/man/man8 -install -m644 packaging/PHT/TurboLinux/smb.conf $RPM_BUILD_ROOT/etc/smb.conf -install -m644 packaging/PHT/TurboLinux/smbusers $RPM_BUILD_ROOT/etc/smbusers +install -m644 packaging/PHT/TurboLinux/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf +install -m644 packaging/PHT/TurboLinux/smbusers $RPM_BUILD_ROOT/etc/samba/smbusers install -m755 packaging/PHT/TurboLinux/smbprint $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/PHT/TurboLinux/findsmb $RPM_BUILD_ROOT%{prefix}/bin -install -m755 packaging/PHT/TurboLinux/smbadduser $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb install -m755 packaging/PHT/TurboLinux/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba install -m644 packaging/PHT/TurboLinux/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba @@ -341,14 +334,14 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig smb off # Build codepage load files -cd /etc +cd %{prefix}/share/samba for i in 437 737 775 850 852 861 866 932 936 949 950 1251 do -%{prefix}/bin/make_smbcodepage c $i /etc/codepages/src/codepage_def.$i /etc/codepages/codepage.$i +%{prefix}/bin/make_smbcodepage c $i %{prefix}/share/samba/codepages/src/codepage_def.$i %{prefix}/share/samba/codepages/codepage.$i done for i in 437 737 850 852 861 866 932 936 949 950 ISO8859-1 ISO8859-2 ISO8859-5 ISO8859-7 KOI8-R do -%{prefix}/bin/make_unicodemap $i /etc/codepages/src/CP$i.TXT /etc/codepages/unicode_map.$i +%{prefix}/bin/make_unicodemap $i %{prefix}/share/samba/codepages/src/CP$i.TXT %{prefix}/share/samba/codepages/unicode_map.$i done # Add swat entry to /etc/services if not already there @@ -373,8 +366,8 @@ fi if [ $1 = 0 ] ; then /sbin/chkconfig --del smb - for n in /etc/codepages/*; do - if [ $n != /etc/codepages/src ]; then + for n in %{prefix}/share/samba/codepages/*; do + if [ $n != %{prefix}/share/samba/codepages/src ]; then rm -rf $n fi done @@ -396,8 +389,18 @@ if [ $1 = 0 ] ; then if [ -e /var/log/samba ]; then rm -rf /var/log/samba fi - if [ -e /var/lock/samba ]; then - rm -rf /var/lock/samba + +# Note: We MUST keep: +# winbindd_*, sshare_info*, printing*, ntdrivers* + + if [ -x /var/lock/samba ]; then + rm -f /var/lock/samba/browse.dat + rm -f /var/lock/samba/{brlock,connections,locking,messages}.tdb + if [ -e /var/lock/samba.d/namelist.debug ]; then + rm -f /var/lock/samba.d/namelist.debug + fi + rm -f /var/lock/samba/unexpected.tdb + rm -f /var/lock/samba/{smbd,nmbd}.pid fi # Remove swat entries from /etc/inetd.conf and /etc/services @@ -431,9 +434,8 @@ fi %attr(-,root,root) %{prefix}/sbin/smbd %attr(-,root,root) %{prefix}/sbin/nmbd %attr(-,root,root) %{prefix}/sbin/swat +%attr(-,root,root) %{prefix}/sbin/debug2html %attr(0750,root,root) %{prefix}/sbin/samba -%attr(-,root,root) %{prefix}/bin/addtosmbpass -%attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh %attr(-,root,root) %{prefix}/bin/smbclient %attr(-,root,root) %{prefix}/bin/rpcclient %attr(-,root,root) %{prefix}/bin/testparm @@ -449,22 +451,21 @@ fi %attr(-,root,root) %{prefix}/bin/smbprint %attr(-,root,root) %{prefix}/bin/smbspool %attr(-,root,root) %{prefix}/bin/smbadduser -# %attr(0755,root,root) %{prefix}/bin/smbsh -# %attr(0755,root,root) %{prefix}/bin/smbwrapper.so %attr(755,root,root) /lib/libnss_wins.s* +%attr(755,root,root) /lib/security/pam_smbpass.so %attr(-,root,root) %{prefix}/share/swat/help/* %attr(-,root,root) %{prefix}/share/swat/images/* %attr(-,root,root) %{prefix}/share/swat/include/header.html %attr(-,root,root) %{prefix}/share/swat/include/footer.html %attr(-,root,root) %{prefix}/share/swat/using_samba/* -%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) %config(noreplace) /etc/samba/lmhosts +%attr(-,root,root) %config(noreplace) /etc/samba/smb.conf +%attr(-,root,root) %config(noreplace) /etc/samba/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.* -%attr(-,root,root) /etc/codepages/src/CP* +%attr(-,root,root) %{prefix}/share/samba/codepages/src/codepage_def.* +%attr(-,root,root) %{prefix}/share/samba/codepages/src/CP* # %attr(-,root,root) %{prefix}/share/man/man1/smbsh.1 %attr(-,root,root) %{prefix}/share/man/man1/make_smbcodepage.1 %attr(-,root,root) %{prefix}/share/man/man1/make_unicodemap.1 @@ -484,8 +485,8 @@ fi %attr(-,root,root) %{prefix}/share/man/man8/smbpasswd.8 %attr(-,root,root) %{prefix}/share/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 %{prefix}/share/samba/codepages +%attr(-,root,root) %dir %{prefix}/share/samba/codepages/src %attr(-,root,root) %dir /var/lock/samba %attr(-,root,root) %dir /var/log/samba %attr(1777,root,root) %dir /var/spool/samba @@ -499,12 +500,3 @@ fi %attr(-,root,root) %{prefix}/share/man/man8/smbmnt.8 %attr(-,root,root) %{prefix}/share/man/man8/smbmount.8 %attr(-,root,root) %{prefix}/share/man/man8/smbumount.8 - -%files debugtools -%attr(-,root,root) %{prefix}/sbin/smbtorture -#%attr(-,root,root) %{prefix}/sbin/rpctorture -%attr(-,root,root) %{prefix}/sbin/smbfilter -%attr(-,root,root) %{prefix}/sbin/debug2html -%attr(-,root,root) %{prefix}/sbin/locktest2 -#%attr(-,root,root) %{prefix}/sbin/wbinfo -%attr(-,root,root) %{prefix}/sbin/masktest diff --git a/packaging/README b/packaging/README index 8175ef9fd4..ce65137790 100644 --- a/packaging/README +++ b/packaging/README @@ -19,7 +19,7 @@ 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.org with the subject marked: +should be sent to samba-patches@samba.org with the subject marked: PACKAGING: [add|mod|contrib] Your subject. Should you, or anyone you know of, have package build instructions and/or files diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb index c10efbf22a..a48ec592e8 100755 --- a/packaging/SGI/findsmb +++ b/packaging/SGI/findsmb @@ -63,7 +63,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found # get the first <00> name - @name = grep(/<00>/,@nmblookup); + @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { # we have a netbios name if (/GROUP/) { # is it a group name diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index cdbddcb590..ba05149509 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -101,6 +101,7 @@ chdir $curdir; # the "*.doc" files from the source tree @docs = sort byfilename grep (!/^docs\/$/ & (/^source\/.*\.doc$/ | /^docs\//),@allfiles); @docs = grep(!/htmldocs\/using_samba/, @docs); +@docs = grep(!/docbook/, @docs); @swatfiles = sort grep(/^packaging\/SGI\/swat/, @allfiles); @catman = sort grep(/^packaging\/SGI\/catman/ & !/\/$/, @allfiles); diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index 19aa642aad..6eab242de8 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -67,7 +67,7 @@ fi cd ../../source if [ "$doclean" = "clean" ]; then echo Create SGI specific Makefile - ./configure --prefix=/usr/samba --mandir=/usr/share/catman --with-smbwrapper + ./configure --prefix=/usr/samba --mandir=/usr/share/catman --with-acl-support --with-smbwrapper errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat creating Makefile\n"; diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf index 5172949cfc..58d5e6e542 100644 --- a/packaging/SGI/smb.conf +++ b/packaging/SGI/smb.conf @@ -96,18 +96,16 @@ browseable = no writeable = 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 +; Use the new NT style printer download setup. +; See the file PRINTER_DRIVER2.txt in the docs directory for info. ; -;[printer$] +;[print$] ; comment = printer driver directory ; path = /usr/samba/printer ; guest ok = yes -; writeable = no -; browseable = no +; browseable = yes +; read only = yes +; write list = ntadmin [printers] comment = All Printers diff --git a/packaging/SGI/smbprint b/packaging/SGI/smbprint index 0db8b6f7e3..07923a42b1 100644 --- a/packaging/SGI/smbprint +++ b/packaging/SGI/smbprint @@ -49,6 +49,6 @@ password="" echo translate echo "print -" cat $* -) | /usr/samba/bin/smbclient "\\\\$server\\$service" $password -N -P > /dev/null +) | /usr/samba/bin/smbclient "//$server/$service" $password -N > /dev/null exit $? diff --git a/packaging/Solaris/makepkg.sh b/packaging/Solaris/makepkg.sh index ea15eafbc3..b57e182e4a 100755 --- a/packaging/Solaris/makepkg.sh +++ b/packaging/Solaris/makepkg.sh @@ -52,6 +52,38 @@ add_dynamic_entries() echo f none samba/bin/$binfile=source/bin/$binfile 0755 root other fi done + + # Add the scripts to bin/ + echo "#\n# Scripts \n#" + cd $DISTR_BASE/source/script + for shfile in * + do + if [ -f $shfile ]; then + echo f none samba/bin/$shfile=source/script/$shfile 0755 root other + fi + done + + # Add the manpages + echo "#\n# man pages \n#" + echo d none /usr ? ? ? + echo d none /usr/share ? ? ? + echo d none /usr/share/man ? ? ? + + # Create directories for man page sections if nonexistent + cd $DISTR_BASE/docs/manpages + for i in 1 2 3 4 5 6 7 8 9 + do + manpages=`ls *.$i 2>/dev/null` + if [ $? -eq 0 ] + then + echo d none /usr/share/man/man$i ? ? ? + for manpage in $manpages + do + echo f none /usr/share/man/man${i}/${manpage}=docs/manpages/$manpage 0644 root other + done + fi + done + echo "#\n# HTML documentation \n#" cd $DISTR_BASE list=`find docs/htmldocs -type d | grep -v "/CVS$"` @@ -151,4 +183,3 @@ then pkgtrans /tmp samba.pkg samba fi echo The samba package is in /tmp -rm -f prototype diff --git a/packaging/Solaris/prototype.master b/packaging/Solaris/prototype.master index 8f98104cdd..bfcb3e0049 100644 --- a/packaging/Solaris/prototype.master +++ b/packaging/Solaris/prototype.master @@ -8,6 +8,7 @@ i pkginfo=./pkginfo i copyright=./copyright i request=./request +i checkinstall i preremove=./preremove i postinstall=./postinstall i i.swat=./i.swat @@ -15,7 +16,7 @@ i r.swat=./r.swat # # Stuff that goes into the system areas of the filesystem. # -d initscript /etc ? ? ? +d none /etc ? ? ? d initscript /etc/init.d ? ? ? f initscript /etc/init.d/samba.server=packaging/Solaris/samba.server 0744 root sys d initscript /etc/rc3.d ? ? ? @@ -23,8 +24,9 @@ s initscript /etc/rc3.d/S99samba.server=../init.d/samba.server # # Stuff to set up SWAT # -e swat /etc/services=packaging/Solaris/services ? ? ? -e swat /etc/inetd.conf=packaging/Solaris/inetd.conf ? ? ? +d swat /etc/inet ? ? ? +e swat /etc/inet/services=packaging/Solaris/services ? ? ? +e swat /etc/inet/inetd.conf=packaging/Solaris/inetd.conf ? ? ? # # Create the samba subtree. (Usually /usr/local/samba ) # @@ -34,44 +36,6 @@ d none samba/bin 0755 root other d none samba/lib 0755 root other d none samba/docs 0755 root other # -# Scripts -# -f none samba/bin/smbtar=source/script/smbtar 0755 root other -f none samba/bin/addtosmbpass=source/script/addtosmbpass 0755 root other -f none samba/bin/convert_smbpasswd=source/script/convert_smbpasswd 0755 root other -f none samba/bin/mksmbpasswd.sh=source/script/mksmbpasswd.sh 0755 root other -# -# man pages -# -d none /usr ? ? ? -d none /usr/share ? ? ? -d none /usr/share/man ? ? ? -d none /usr/share/man/man1 ? ? ? -d none /usr/share/man/man5 ? ? ? -d none /usr/share/man/man7 ? ? ? -d none /usr/share/man/man8 ? ? ? -f none /usr/share/man/man1/make_smbcodepage.1=docs/manpages/make_smbcodepage.1 0644 root other -f none /usr/share/man/man1/nmblookup.1=docs/manpages/nmblookup.1 0644 root other -f none /usr/share/man/man1/smbclient.1=docs/manpages/smbclient.1 0644 root other -f none /usr/share/man/man1/smbrun.1=docs/manpages/smbrun.1 0644 root other -f none /usr/share/man/man1/smbsh.1=docs/manpages/smbsh.1 0644 root other -f none /usr/share/man/man1/smbstatus.1=docs/manpages/smbstatus.1 0644 root other -f none /usr/share/man/man1/smbtar.1=docs/manpages/smbtar.1 0644 root other -f none /usr/share/man/man1/testparm.1=docs/manpages/testparm.1 0644 root other -f none /usr/share/man/man1/testprns.1=docs/manpages/testprns.1 0644 root other -f none /usr/share/man/man5/lmhosts.5=docs/manpages/lmhosts.5 0644 root other -f none /usr/share/man/man5/smb.conf.5=docs/manpages/smb.conf.5 0644 root other -f none /usr/share/man/man5/smbpasswd.5=docs/manpages/smbpasswd.5 0644 root other -f none /usr/share/man/man7/samba.7=docs/manpages/samba.7 0644 root other -f none /usr/share/man/man8/nmbd.8=docs/manpages/nmbd.8 0644 root other -f none /usr/share/man/man8/smbd.8=docs/manpages/smbd.8 0644 root other -f none /usr/share/man/man8/smbmnt.8=docs/manpages/smbmnt.8 0644 root other -f none /usr/share/man/man8/smbmount.8=docs/manpages/smbmount.8 0644 root other -f none /usr/share/man/man8/smbpasswd.8=docs/manpages/smbpasswd.8 0644 root other -f none /usr/share/man/man8/smbumount.8=docs/manpages/smbumount.8 0644 root other -f none /usr/share/man/man8/swat.8=docs/manpages/swat.8 0644 root other -f none /usr/share/man/man8/smbspool.8=docs/manpages/smbspool.8 0644 root other -# # Stuff that goes into lib # f none samba/lib/smb.conf.example=examples/smb.conf.default 0644 root other -- cgit From eae35e8f00ad6d83afac6b06e0f83500e4633391 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 3 Jul 2001 01:01:12 +0000 Subject: Adding Michael Sweet's LSB packaging. Jeremy. (This used to be commit 90985da62f733bed550ef326359bdbb8631ea554) --- packaging/LSB/README | 6 + packaging/LSB/lsb-samba.spec | 100 +++++++++++++++ packaging/LSB/samba.sh | 80 ++++++++++++ packaging/LSB/samba.xinetd | 15 +++ packaging/LSB/smb.conf | 290 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 491 insertions(+) create mode 100644 packaging/LSB/README create mode 100644 packaging/LSB/lsb-samba.spec create mode 100755 packaging/LSB/samba.sh create mode 100644 packaging/LSB/samba.xinetd create mode 100644 packaging/LSB/smb.conf (limited to 'packaging') diff --git a/packaging/LSB/README b/packaging/LSB/README new file mode 100644 index 0000000000..4ff0b99d76 --- /dev/null +++ b/packaging/LSB/README @@ -0,0 +1,6 @@ +README.lsb - 1 July 2001 +------------------------ + +The files in this directory allow you to build an LSB-compliant +version of SAMBA using the RPM software and the LSB development +environment. diff --git a/packaging/LSB/lsb-samba.spec b/packaging/LSB/lsb-samba.spec new file mode 100644 index 0000000000..516eaa430e --- /dev/null +++ b/packaging/LSB/lsb-samba.spec @@ -0,0 +1,100 @@ +# +# "$Id: lsb-samba.spec,v 1.2 2001/07/03 01:01:12 jra Exp $" +# +# Linux Standards Based RPM "spec" file for SAMBA. +# + +Summary: SAMBA +Name: lsb-samba +Version: 2.2.1 +Release: 0 +Copyright: GPL +Group: System Environment/Daemons +Source: ftp://ftp.samba.org/pub/samba/samba-%{version}.tar.gz +Url: http://www.samba.org +Packager: Michael Sweet +Vendor: SAMBA Team + +# Require the "lsb" package, which guarantees LSB compliance. +Requires: lsb + +# use BuildRoot so as not to disturb the version already installed +BuildRoot: /var/tmp/%{name}-root + +%description + +%prep +%setup + +%build +export LDFLAGS="-L/usr/lib/lsb --dynamic-linker=/lib/ld-lsb.so.1" + +./configure --with-fhs --prefix=/usr --sysconfdir=/etc \ + --sharedstatedir=/var --datadir=/usr/share \ + --with-configdir=/etc/samba \ + --with-swatdir=/usr/share/samba/swat + +# If we got this far, all prerequisite libraries must be here. +make + +%install +# Make sure the RPM_BUILD_ROOT directory exists. +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + +make \ + BASEDIR=$RPM_BUILD_ROOT/usr \ + BINDIR=$RPM_BUILD_ROOT/usr/bin \ + CODEPAGEDIR=$RPM_BUILD_ROOT/usr/share/samba/codepages \ + CONFIGDIR=$RPM_BUILD_ROOT/etc/samba \ + INCLUDEDIR=$RPM_BUILD_ROOT/usr/include \ + LIBDIR=$RPM_BUILD_ROOT/usr/lib \ + LOCKDIR=$RPM_BUILD_ROOT/var/lock/samba \ + LOGFILEBASE=$RPM_BUILD_ROOT/var/log/samba \ + MANDIR=$RPM_BUILD_ROOT/usr/share/man \ + SBINDIR=$RPM_BUILD_ROOT/usr/sbin \ + SWATDIR=$RPM_BUILD_ROOT/usr/share/samba/swat \ + VARDIR=$RPM_BUILD_ROOT/var \ + install + +mkdir -p $RPM_BUILD_ROOT/etc/init.d +install -m 700 packaging/LSB/samba.sh /etc/init.d/samba + +mkdir -p $RPM_BUILD_ROOT/etc/samba +install -m 644 packaging/LSB/smb.conf /etc/samba + +mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d +install -m 644 packaging/LSB/samba.xinetd /etc/xinetd.d/samba + +%post +/usr/lib/lsb/install_initd /etc/init.d/samba + +%preun +/usr/lib/lsb/remove_initd /etc/init.d/samba + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%dir /etc/init.d +/etc/init.d/samba +%dir /etc/samba +%config(noreplace) /etc/samba/smb.conf +%dir /etc/samba/private +%dir /etc/xinetd.d +%config(noreplace) /etc/xinetd.d/samba +%dir /usr/bin +/usr/bin/* +%dir /usr/sbin +/usr/sbin/* +%dir /usr/share/man +/usr/share/man/* +%dir /usr/share/samba +/usr/share/samba/* +%dir /var/lock/samba +%dir /var/log/samba + +# +# End of "$Id: lsb-samba.spec,v 1.2 2001/07/03 01:01:12 jra Exp $". +# diff --git a/packaging/LSB/samba.sh b/packaging/LSB/samba.sh new file mode 100755 index 0000000000..99fa1b0117 --- /dev/null +++ b/packaging/LSB/samba.sh @@ -0,0 +1,80 @@ +#!/bin/sh +# +# "$Id: samba.sh,v 1.2 2001/07/03 01:01:12 jra Exp $" +# +# SAMBA startup (init) script for LSB-compliant systems. +# +# Provides: smbd nmbd +# Required-Start: 3 5 +# Required-Stop: 0 2 1 6 +# Default-Start: 3 5 +# Default-Stop: 0 2 1 6 +# Description: Starts and stops the SAMBA smbd and nmbd daemons \ +# used to provide SMB network services. +# + +# Source LSB function library. +. /lib/lsb/init-functions + +# Check that smb.conf exists. +if test ! -f /etc/samba/smb.conf; then + log_failure_msg "The smb.conf file does not exist." + exit 6 +fi + +# Make sure that smbd and nmbd exist... +if test ! -f /usr/sbin/nmbd -o ! -f /usr/sbin/smbd; then + log_failure_msg "The nmbd and/or smbd daemons are not installed." + exit 5 +fi + +# See how we were called. +case "$1" in + start) + start_daemon nmbd -D + start_daemon smbd -D + log_success_msg "Started SMB services." + ;; + + stop) + killproc smbd + killproc nmbd + log_success_msg "Shutdown SMB services." + ;; + + reload) + # smbd and nmbd automatically re-read the smb.conf file... + log_success_msg "Reload not necessary with SAMBA." + ;; + + status) + if test -z "`pidofproc smbd`"; then + log_success_msg "smbd is not running." + else + log_success_msg "smbd is running." + fi + if test -z "`pidofproc nmbd`"; then + log_success_msg "nmbd is not running." + else + log_success_msg "nmbd is running." + fi + ;; + + + restart | force-reload) + $0 stop + $0 start + ;; + + *) + echo "Usage: smb {start|stop|reload|force-reload|restart|status}" + exit 1 + ;; +esac + +# Return "success" +exit 0 + +# +# End of "$Id: samba.sh,v 1.2 2001/07/03 01:01:12 jra Exp $". +# diff --git a/packaging/LSB/samba.xinetd b/packaging/LSB/samba.xinetd new file mode 100644 index 0000000000..8c38b35421 --- /dev/null +++ b/packaging/LSB/samba.xinetd @@ -0,0 +1,15 @@ +# default: off +# description: SWAT is the Samba Web Admin Tool. Use swat \ +# to configure your Samba server. To use SWAT, \ +# connect to port 901 with your favorite web browser. +service swat +{ + port = 901 + socket_type = stream + wait = no + only_from = localhost + user = root + server = /usr/sbin/swat + log_on_failure += USERID + disable = yes +} diff --git a/packaging/LSB/smb.conf b/packaging/LSB/smb.conf new file mode 100644 index 0000000000..71ff946388 --- /dev/null +++ b/packaging/LSB/smb.conf @@ -0,0 +1,290 @@ +# 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 made 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/samba/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/samba/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/samba/smb.conf.%m + +# Most people will find that this option gives better performance. +# See speed.txt and the manual pages for details + socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 + +# Configure Samba to use multiple interfaces +# If you have multiple network interfaces then you must list them +# here. See the man page for details. +; interfaces = 192.168.12.2/24 192.168.13.2/24 + +# Configure remote browse list synchronisation here +# request announcement to, or browse list sync from: +# a specific host or from / to a whole subnet (see below) +; remote browse sync = 192.168.3.25 192.168.5.255 +# Cause this host to announce itself to local subnets here +; remote announce = 192.168.1.255 192.168.2.44 + +# Browser Control Options: +# set local master to no if you don't want Samba to become a master +# browser on your network. Otherwise the normal election rules apply +; local master = no + +# OS Level determines the precedence of this server in master browser +# elections. The default value should be reasonable +; os level = 33 + +# Domain Master specifies Samba to be the Domain Master Browser. This +# allows Samba to collate browse lists between subnets. Don't use this +# if you already have a Windows NT domain controller doing this job +; domain master = yes + +# Preferred Master causes Samba to force a local browser election on startup +# and gives it a slightly higher chance of winning the election +; preferred master = yes + +# Use only if you have an NT server on your network that has been +# configured at install time to be a primary domain controller. +; domain controller = + +# 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 +; read only = yes +; 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 + + -- cgit From 08ab0a2a3efdbb8e6adbcf1589848146350240a9 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 1 Aug 2001 01:00:53 +0000 Subject: Added and populated .cvsignore files for packaging subdirectories. (This used to be commit ec042f2af94a834226b59224ab28452b1cd6bf15) --- packaging/Caldera/OpenLinux/.cvsignore | 6 ++++++ packaging/Mandrake/.cvsignore | 2 ++ packaging/PHT/TurboLinux/.cvsignore | 3 +++ packaging/RedHat/.cvsignore | 5 +++++ 4 files changed, 16 insertions(+) create mode 100644 packaging/Caldera/OpenLinux/.cvsignore create mode 100644 packaging/Mandrake/.cvsignore create mode 100644 packaging/PHT/TurboLinux/.cvsignore create mode 100644 packaging/RedHat/.cvsignore (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/.cvsignore b/packaging/Caldera/OpenLinux/.cvsignore new file mode 100644 index 0000000000..062afa2b04 --- /dev/null +++ b/packaging/Caldera/OpenLinux/.cvsignore @@ -0,0 +1,6 @@ +convertsmbpasswd.perl +make_smbpasswd.perl +makerpms.sh +samba2.spec +samba2.spec-lsb +samba3.spec diff --git a/packaging/Mandrake/.cvsignore b/packaging/Mandrake/.cvsignore new file mode 100644 index 0000000000..ffcc2e7e5e --- /dev/null +++ b/packaging/Mandrake/.cvsignore @@ -0,0 +1,2 @@ +makerpms.sh +samba2.spec diff --git a/packaging/PHT/TurboLinux/.cvsignore b/packaging/PHT/TurboLinux/.cvsignore new file mode 100644 index 0000000000..0238ed8cae --- /dev/null +++ b/packaging/PHT/TurboLinux/.cvsignore @@ -0,0 +1,3 @@ +makefile-path.patch +makerpms.sh +samba2.spec diff --git a/packaging/RedHat/.cvsignore b/packaging/RedHat/.cvsignore new file mode 100644 index 0000000000..17623390ab --- /dev/null +++ b/packaging/RedHat/.cvsignore @@ -0,0 +1,5 @@ +makefile-path.patch +makerpms.sh +samba2.spec +smbadduser +smbw.patch -- cgit From edc22874ad1b856a880c2ad6fb34ee3600f8dd5e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 1 Aug 2001 01:20:10 +0000 Subject: Added some command line argument checking and usage info. (This used to be commit a13eedf8bdefacfb569eb006d8c169247272ecf6) --- packaging/bin/update-pkginfo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packaging') diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo index fab56daebf..8432173cc8 100755 --- a/packaging/bin/update-pkginfo +++ b/packaging/bin/update-pkginfo @@ -3,6 +3,11 @@ VERSION=$1 RELEASE=$2 +if [ $# -ne 2 ]; then + echo Usage: update-pkginfo VERSION RELEASE + exit 1 +fi + for f in */*/*.tmpl; do f2=`echo $f | sed s/.tmpl//g` echo $f2 -- cgit From 9c8621477096593b3bb04d6346a022aaf24ac671 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 1 Aug 2001 02:39:13 +0000 Subject: Added autogenerated spec files for various rpm versions. (This used to be commit 1323972bf4c7a045b2897aae834dff3b6866ee62) --- packaging/RedHat/.cvsignore | 1 + 1 file changed, 1 insertion(+) (limited to 'packaging') diff --git a/packaging/RedHat/.cvsignore b/packaging/RedHat/.cvsignore index 17623390ab..4ce9d934e6 100644 --- a/packaging/RedHat/.cvsignore +++ b/packaging/RedHat/.cvsignore @@ -3,3 +3,4 @@ makerpms.sh samba2.spec smbadduser smbw.patch +samba2.rpm?.spec \ No newline at end of file -- cgit From c4a9fafc5640f158f142bba4facc8d1c0d2416fe Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 1 Aug 2001 06:03:54 +0000 Subject: Modifying spec files is PITA. - Install winbind daemon, client programs, nss and pam libraries - Removed codepage stuff so spec file works with current HEAD branch (This used to be commit 04005e74c6f897ba9965b89210d06212486eeac7) --- packaging/RedHat/samba2.spec.tmpl | 45 +++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 18 deletions(-) (limited to 'packaging') diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 44a8fe998e..c5c9f542eb 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -43,6 +43,10 @@ for Shadow passwords and quotas. Do NOT recompile with the SHADOW_PWD option enabled %changelog +* Mon Aug 1 2001 Tim Potter + - Install winbind daemon, client programs, nss and pam libraries + - Removed codepage stuff so spec file works with current HEAD branch + * Sat Mar 31 2001 Andrew Bartlett - Changed prefix/share/man for _mandir/share/man - Changed this for a sed macro MANDIR_MACRO @@ -152,7 +156,6 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ --localstatedir=/var \ --with-configdir=/etc/samba \ --with-privatedir=/etc/samba \ - --with-codepagedir=/etc/codepages \ --with-fhs \ --with-quotas \ --with-smbmount \ @@ -173,7 +176,6 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/sbin mkdir -p $RPM_BUILD_ROOT/etc/samba -mkdir -p $RPM_BUILD_ROOT/etc/codepages/src mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,samba} mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin} @@ -183,12 +185,11 @@ mkdir -p $RPM_BUILD_ROOTMANDIR_MACRO mkdir -p $RPM_BUILD_ROOT/var/lock/samba mkdir -p $RPM_BUILD_ROOT/var/log/samba mkdir -p $RPM_BUILD_ROOT/var/spool/samba -mkdir -p $RPM_BUILD_ROOT/lib +mkdir -p $RPM_BUILD_ROOT/lib/security # Install standard binary files for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ - make_smbcodepage make_unicodemap make_printerdef rpcclient smbspool \ - smbcacls smbcontrol + make_printerdef rpcclient smbspool smbcacls smbcontrol wbinfo do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done @@ -198,7 +199,7 @@ install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount smbmnt debug2html +for i in smbd nmbd swat smbmount smbumount smbmnt debug2html winbindd do install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done @@ -213,23 +214,21 @@ cd source make LIBDIR=$RPM_BUILD_ROOT/etc/samba \ BINDIR=$RPM_BUILD_ROOT%{prefix}/bin \ MANDIR=$RPM_BUILD_ROOTMANDIR_MACRO \ - CODEPAGEDIR=$RPM_BUILD_ROOT/etc/codepages \ SWATDIR=$RPM_BUILD_ROOT/usr/share/swat \ SAMBABOOK=$RPM_BUILD_ROOT/usr/share/swat/using_samba \ - installman installcp installswat + installman installswat cd .. -# Install codepage source files -for i in source/codepages/codepage_def.* source/codepages/*.TXT -do -install -m644 $i $RPM_BUILD_ROOT/etc/codepages/src -done - -# Install the nsswitch library extenstion file +# Install the nsswitch library extension file install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib + # Make link for wins resolver ( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) +# Install winbind shared libraries +install -m755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib +install -m755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security + # Install SWAT helper files for i in swat/help/*.html docs/htmldocs/*.html do @@ -324,6 +323,10 @@ else rm -f /etc/samba/samba.stack fi +# Create winbind nss client symlink + +ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2 + %preun if [ $1 = 0 ] ; then /sbin/chkconfig --del smb @@ -357,6 +360,11 @@ if [ $1 = 0 ] ; then rm -f /var/lock/samba/messages.tdb fi + # Remove winbind nss client symlink + + if [ -L /lib/libnss_winbind.so.2 ]; then + rm -f /lib/libnss_winbind.so.2 + fi fi %postun @@ -406,6 +414,7 @@ fi %attr(-,root,root) %{prefix}/sbin/smbmnt %attr(-,root,root) %{prefix}/sbin/smbmount %attr(-,root,root) %{prefix}/sbin/smbumount +%attr(-,root,root) %{prefix}/sbin/winbindd %attr(-,root,root) /sbin/mount.smbfs %attr(-,root,root) /sbin/mount.smb %attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh @@ -417,14 +426,13 @@ fi %attr(-,root,root) %{prefix}/bin/findsmb %attr(-,root,root) %{prefix}/bin/smbstatus %attr(-,root,root) %{prefix}/bin/nmblookup -%attr(-,root,root) %{prefix}/bin/make_smbcodepage -%attr(-,root,root) %{prefix}/bin/make_unicodemap %attr(-,root,root) %{prefix}/bin/make_printerdef %attr(-,root,root) %{prefix}/bin/smbpasswd %attr(-,root,root) %{prefix}/bin/smbtar %attr(-,root,root) %{prefix}/bin/smbprint %attr(-,root,root) %{prefix}/bin/smbcontrol %attr(-,root,root) %{prefix}/bin/smbcacls +%attr(-,root,root) %{prefix}/bin/wbinfo %attr(755,root,root) /lib/libnss_wins.s* %attr(-,root,root) %{prefix}/share/swat/help/* %attr(-,root,root) %{prefix}/share/swat/images/* @@ -443,7 +451,8 @@ fi %attr(-,root,root) MANDIR_MACRO/man5/* %attr(-,root,root) MANDIR_MACRO/man7/* %attr(-,root,root) MANDIR_MACRO/man8/* -%attr(-,root,root) %dir /etc/codepages/* %attr(755,root,root) %dir /var/lock/samba %attr(-,root,root) %dir /var/log/samba %attr(1777,root,root) %dir /var/spool/samba +%attr(-,root,root) /lib/libnss_winbind.so +%attr(-,root,root) /lib/security/pam_winbind.so -- cgit From 013ef477b27129eaeb0f5e08deccd2717f4a67c3 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 8 Aug 2001 03:21:43 +0000 Subject: Merge of modesty patch from 2.2 spec file. (This used to be commit 4c4d128d08e848c65b1aec8bcc0b1bc3a913d55b) --- packaging/RedHat/samba2.spec.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index c5c9f542eb..73c2a3e985 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -191,7 +191,7 @@ mkdir -p $RPM_BUILD_ROOT/lib/security for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ make_printerdef rpcclient smbspool smbcacls smbcontrol wbinfo do -install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin +install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done for i in mksmbpasswd.sh smbtar do @@ -201,7 +201,7 @@ done # Install secure binary files for i in smbd nmbd swat smbmount smbumount smbmnt debug2html winbindd do -install -m755 -s source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin +install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done # we need a symlink for mount to recognise the smb and smbfs filesystem types -- cgit From f8d0031ad221f879ad1046963458ae781b868a28 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 21 Aug 2001 23:56:04 +0000 Subject: sync with 2.2 branch (This used to be commit feb9bf86723bce7dd1e81250b92191c370228a45) --- packaging/SGI/mkrelease.sh | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index 6eab242de8..ef07a2e2d4 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -2,9 +2,7 @@ # This file goes through all the necessary steps to build a release package. # syntax: -# mkrelease.sh [5] [clean] [targets ....] -# -# You may specify 5 to build for IRIX 5.3 +# mkrelease.sh [clean] # # You can specify clean to do a make clean before building. Make clean # will also run configure and generate the required Makefile. @@ -24,21 +22,6 @@ fi if [ "$1" = "clean" ]; then doclean=$1 shift -elif [ "$1" = "5" ]; then - SGI_ABI=-32 - ISA="" - 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 - ISA="" - shift fi export SGI_ABI ISA CC @@ -67,7 +50,7 @@ fi cd ../../source if [ "$doclean" = "clean" ]; then echo Create SGI specific Makefile - ./configure --prefix=/usr/samba --mandir=/usr/share/catman --with-acl-support --with-smbwrapper + ./configure --prefix=/usr/samba --sbindir='${exec_prefix}/bin' --mandir=/usr/share/catman --with-acl-support --with-smbwrapper errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat creating Makefile\n"; @@ -80,7 +63,17 @@ fi # echo Making binaries -make "CFLAGS=-O -g3" $* +make clean +make "CFLAGS=-O -g3 -D WITH_PROFILE" CHECK bin/smbd bin/nmbd +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat building profile sources\n"; + exit $errstat; +fi +mv bin/smbd bin/smbd.profile +mv bin/nmbd bin/nmbd.profile +make clean +make "CFLAGS=-O -g3" all errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building sources\n"; -- cgit From b5b9c46c0fa3a98999f5afbda497e88a6d319151 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 4 Sep 2001 07:43:50 +0000 Subject: Don't overwrite an existing /etc/xinetd.d/swat on install file since we don't overwrite it on upgrade. Does this make sense? (This used to be commit 90b3dccfd421bac6516c298f85fcccc857c57989) --- packaging/RedHat/samba2.spec.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 73c2a3e985..c99b912382 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -308,8 +308,8 @@ if [ -f /etc/inetd.conf ]; then fi # Add swat entry to xinetd.d if needed. -if [ -d $RPM_BUILD_ROOT/etc/xinetd.d ]; then - mv /etc/samba/samba.xinetd /etc/xinetd.d/swat +if [ -d $RPM_BUILD_ROOT/etc/xinetd.d -a ! -f /etc/xinetd.d/swat ]; then + mv /etc/samba/samba.xinetd /etc/xinetd.d/swat else rm -f /etc/samba/samba.xinetd fi -- cgit From 50b94eed80b6ff84a532129dc35aa5949a4d3a82 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 5 Dec 2001 01:04:47 +0000 Subject: merge from 2.2 branch (This used to be commit 692c23fe86391204161adeb6cf9b8061d0121175) --- packaging/SGI/idb.pl | 51 ++++++++++++++++++++++++++++++++++++++++++++++++-- packaging/SGI/smb.conf | 36 ++++++++++++----------------------- 2 files changed, 61 insertions(+), 26 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index ba05149509..b37e46c4ec 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -36,6 +36,10 @@ close IGNORES; # get the names of all the binary files to be installed open(MAKEFILE,"$SRCDIR/source/Makefile") || die "Unable to open Makefile\n"; @makefile = ; +@winbind_progs = grep(/^WINBIND_PROGS /,@makefile); +@winbind_sprogs = grep(/^WINBIND_SPROGS /,@makefile); +@winbind_lprogs = grep(/^WINBIND_LPROGS /,@makefile); +@winbind_pam_progs = grep(/^WINBIND_PAM_PROGS /,@makefile); @sprogs = grep(/^SPROGS /,@makefile); @progs1 = grep(/^PROGS1 /,@makefile); @progs2 = grep(/^PROGS2 /,@makefile); @@ -45,8 +49,25 @@ open(MAKEFILE,"$SRCDIR/source/Makefile") || die "Unable to open Makefile\n"; @codepagelist = grep(/^CODEPAGELIST/,@makefile); close MAKEFILE; +if (@winbind_progs) { + @winbind_progs[0] =~ s/^.*\=//; + @winbind_progs = split(' ',@winbind_progs[0]); +} +if (@winbind_sprogs) { + @winbind_sprogs[0] =~ s/^.*\=//; + @winbind_sprogs = split(' ',@winbind_sprogs[0]); +} +if (@winbind_lprogs) { + @winbind_lprogs[0] =~ s/^.*\=//; + @winbind_lprogs = split(' ',@winbind_lprogs[0]); +} +if (@winbind_pam_progs) { + @winbind_pam_progs[0] =~ s/^.*\=//; + @winbind_pam_progs = split(' ',@winbind_pam_progs[0]); +} if (@sprogs) { @sprogs[0] =~ s/^.*\=//; + @sprogs[0] =~ s/\$\(\S+\)\s//g; @sprogs = split(' ',@sprogs[0]); } if (@progs) { @@ -90,7 +111,8 @@ system("cp -f ../swat/README ../packaging/SGI/swat"); chdir $curdir; # add my local files to the list of binaries to install -@bins = sort byfilename (@sprogs,@progs,@progs1,@progs2,@mprogs,@scripts,("/findsmb","/sambalp","/smbprint")); +@bins = sort byfilename (@sprogs,@progs,@progs1,@progs2,@mprogs,@scripts,@winbind_progs,@winbind_sprogs,("/findsmb","/sambalp","/smbprint")); +@nsswitch = sort byfilename (@winbind_lprogs,@winbind_pam_progs); # get a complete list of all files in the tree chdir "$SRCDIR/"; @@ -156,6 +178,15 @@ while(@bins) { elsif ($filename eq "smbprint") { print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/packaging/SGI/$filename $PKG.sw.base\n"; } + elsif ($filename eq "smbd") { + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; + print IDB "f 0755 root sys usr/samba/bin/$filename.noquota $SRCPFX/source/$nextfile.noquota $PKG.sw.base \n"; + print IDB "f 0755 root sys usr/samba/bin/$filename.profile $SRCPFX/source/$nextfile.profile $PKG.sw.base \n"; + } + elsif ($filename eq "nmbd") { + print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; + print IDB "f 0755 root sys usr/samba/bin/$filename.profile $SRCPFX/source/$nextfile.profile $PKG.sw.base \n"; + } else { print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; } @@ -185,6 +216,22 @@ while (@codepage) { } print IDB "f 0644 root sys usr/samba/lib/smb.conf $SRCPFX/packaging/SGI/smb.conf $PKG.sw.base config(suggest)\n"; +if (@nsswitch) { + print IDB "d 0644 root sys usr/samba/nsswitch $SRCPFX/packaging/SGI $PKG.sw.base\n"; + while(@nsswitch) { + $nextfile = shift @nsswitch; + ($filename = $nextfile) =~ s/^.*\///;; + print IDB "f 0755 root sys usr/samba/nsswitch/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; + } +} + +print IDB "d 0755 lp sys usr/samba/printer $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/W32X86 $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/WIN40 $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/W32MIPS $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/W32ALPHA $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/W32PPC $SRCPFX/packaging/SGI $PKG.sw.base\n"; + print IDB "d 0644 root sys usr/samba/private $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "f 0600 root sys usr/samba/private/smbpasswd $SRCPFX/packaging/SGI/smbpasswd $PKG.sw.base config(suggest)\n"; @@ -254,7 +301,7 @@ while (@catman) { } print IDB "f 0664 root sys usr/share/catman/u_man/cat$dirnum/$file $SRCPFX/$nextfile $PKG.man.manpages\n"; } -print IDB "d 01777 nobody nobody var/spool/samba $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 01777 lp sys var/spool/samba $SRCPFX/packaging/SGI $PKG.sw.base\n"; close IDB; print "\n\n$PKG.idb file has been created\n"; diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf index 58d5e6e542..3448226faa 100644 --- a/packaging/SGI/smb.conf +++ b/packaging/SGI/smb.conf @@ -58,12 +58,11 @@ ; Set a max size for log files in Kb max log size = 50 -; You will need a world readable lock directory and "share modes=yes" +; You will need a world readable lock directory ; 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 @@ -91,21 +90,23 @@ ; Uncomment the following if you wish to sync unix and smbpasswd ; unix password sync = yes +; Printer admin account to allow uploading printer drivers + printer admin = lp + [homes] comment = Home Directories browseable = no writeable = yes -; Use the new NT style printer download setup. -; See the file PRINTER_DRIVER2.txt in the docs directory for info. +; Share for printer drivers for automatic driver download ; -;[print$] -; comment = printer driver directory -; path = /usr/samba/printer -; guest ok = yes -; browseable = yes -; read only = yes -; write list = ntadmin +[print$] + comment = printer driver directory + path = /usr/samba/printer + guest ok = yes + browseable = yes + read only = yes + write list = lp [printers] comment = All Printers @@ -115,19 +116,6 @@ guest ok = yes writeable = no create mask = 0700 -; -; this specifies the location of the share containing the printer driver -; files - see the printer$ section above -; -; printer driver location = \\%L\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 466781a71f2d6794260700527df47f23b03c2216 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 5 Dec 2001 21:49:51 +0000 Subject: fix up packaging stuff (This used to be commit 8f3093fbd092c0ddf38b49c0735308f4f5ba4492) --- packaging/SGI/idb.pl | 6 +++--- packaging/SGI/mkrelease.sh | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index b37e46c4ec..66cb3fa558 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -226,11 +226,11 @@ if (@nsswitch) { } print IDB "d 0755 lp sys usr/samba/printer $SRCPFX/packaging/SGI $PKG.sw.base\n"; -print IDB "d 0755 lp sys usr/samba/printer/W32X86 $SRCPFX/packaging/SGI $PKG.sw.base\n"; -print IDB "d 0755 lp sys usr/samba/printer/WIN40 $SRCPFX/packaging/SGI $PKG.sw.base\n"; -print IDB "d 0755 lp sys usr/samba/printer/W32MIPS $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 lp sys usr/samba/printer/W32ALPHA $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/W32MIPS $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 lp sys usr/samba/printer/W32PPC $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/W32X86 $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "d 0755 lp sys usr/samba/printer/WIN40 $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0644 root sys usr/samba/private $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "f 0600 root sys usr/samba/private/smbpasswd $SRCPFX/packaging/SGI/smbpasswd $PKG.sw.base config(suggest)\n"; diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index ef07a2e2d4..a85a64569b 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -50,7 +50,7 @@ fi cd ../../source if [ "$doclean" = "clean" ]; then echo Create SGI specific Makefile - ./configure --prefix=/usr/samba --sbindir='${exec_prefix}/bin' --mandir=/usr/share/catman --with-acl-support --with-smbwrapper + ./configure --prefix=/usr/samba --sbindir='${exec_prefix}/bin' --mandir=/usr/share/catman --with-acl-support errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat creating Makefile\n"; @@ -64,7 +64,8 @@ fi echo Making binaries make clean -make "CFLAGS=-O -g3 -D WITH_PROFILE" CHECK bin/smbd bin/nmbd +make headers +make -P "CFLAGS=-O -g3 -D WITH_PROFILE" bin/smbd bin/nmbd errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building profile sources\n"; @@ -72,8 +73,17 @@ if [ $errstat -ne 0 ]; then fi mv bin/smbd bin/smbd.profile mv bin/nmbd bin/nmbd.profile + make clean -make "CFLAGS=-O -g3" all +make -P "CFLAGS=-O -g3 -D QUOTAOBJS=smbd/noquotas.o" bin/smbd +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat building noquota sources\n"; + exit $errstat; +fi +mv bin/smbd bin/smbd.noquota + +make -P "CFLAGS=-O -g3" all errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building sources\n"; -- cgit From 50d954433086ac43c7ab3bc048d3f53df8af5858 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Sat, 22 Dec 2001 00:54:10 +0000 Subject: sync up packaging scripts (This used to be commit 3999e13ef89acd51df4cf215959eccd6217c86e3) --- packaging/SGI/idb.pl | 41 +++++++++++++++++++++++++++-------------- packaging/SGI/mkrelease.sh | 33 ++++++++++++++++++++++----------- 2 files changed, 49 insertions(+), 25 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 66cb3fa558..8858702b9f 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -112,7 +112,12 @@ chdir $curdir; # add my local files to the list of binaries to install @bins = sort byfilename (@sprogs,@progs,@progs1,@progs2,@mprogs,@scripts,@winbind_progs,@winbind_sprogs,("/findsmb","/sambalp","/smbprint")); -@nsswitch = sort byfilename (@winbind_lprogs,@winbind_pam_progs); + +# add libnss_wins.so if it was built +if (-e "$SRCDIR/source/nsswitch/libnss_wins.so") { + $libns_wins = "nsswitch/libnss_wins.so"; +} +@nsswitch = sort byfilename (@winbind_lprogs,@winbind_pam_progs,$libns_wins); # get a complete list of all files in the tree chdir "$SRCDIR/"; @@ -131,7 +136,7 @@ chdir $curdir; # strip out all the generated directories and the "*.o" files from the source # release -@allfiles = grep(!/^.*\.o$/ & !/^.*\.po$/ & !/^.*\.po32$/ & !/^source\/bin/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/ & !/^packaging\/SGI\/swat/, @allfiles); +@allfiles = grep(!/^.*\.o$/ & !/^.*\.po$/ & !/^.*\.po32$/ & !/^.*\.so$/ & !/^source\/bin/ & !/^packaging\/SGI\/bins/ & !/^packaging\/SGI\/catman/ & !/^packaging\/SGI\/html/ & !/^packaging\/SGI\/codepages/ & !/^packaging\/SGI\/swat/, @allfiles); open(IDB,"> $curdir/$PKG.idb") || die "Unable to open $PKG.idb for output\n"; @@ -180,12 +185,18 @@ while(@bins) { } elsif ($filename eq "smbd") { print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; - print IDB "f 0755 root sys usr/samba/bin/$filename.noquota $SRCPFX/source/$nextfile.noquota $PKG.sw.base \n"; - print IDB "f 0755 root sys usr/samba/bin/$filename.profile $SRCPFX/source/$nextfile.profile $PKG.sw.base \n"; + if (-e "$SRCDIR/source/$nextfile.noquota") { + print IDB "f 0755 root sys usr/samba/bin/$filename.noquota $SRCPFX/source/$nextfile.noquota $PKG.sw.base \n"; + } + if (-e "$SRCDIR/source/$nextfile.profile") { + print IDB "f 0755 root sys usr/samba/bin/$filename.profile $SRCPFX/source/$nextfile.profile $PKG.sw.base \n"; + } } elsif ($filename eq "nmbd") { print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; - print IDB "f 0755 root sys usr/samba/bin/$filename.profile $SRCPFX/source/$nextfile.profile $PKG.sw.base \n"; + if (-e "$SRCDIR/source/$nextfile.profile") { + print IDB "f 0755 root sys usr/samba/bin/$filename.profile $SRCPFX/source/$nextfile.profile $PKG.sw.base \n"; + } } else { print IDB "f 0755 root sys usr/samba/bin/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; @@ -216,15 +227,6 @@ while (@codepage) { } print IDB "f 0644 root sys usr/samba/lib/smb.conf $SRCPFX/packaging/SGI/smb.conf $PKG.sw.base config(suggest)\n"; -if (@nsswitch) { - print IDB "d 0644 root sys usr/samba/nsswitch $SRCPFX/packaging/SGI $PKG.sw.base\n"; - while(@nsswitch) { - $nextfile = shift @nsswitch; - ($filename = $nextfile) =~ s/^.*\///;; - print IDB "f 0755 root sys usr/samba/nsswitch/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; - } -} - print IDB "d 0755 lp sys usr/samba/printer $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 lp sys usr/samba/printer/W32ALPHA $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 lp sys usr/samba/printer/W32MIPS $SRCPFX/packaging/SGI $PKG.sw.base\n"; @@ -301,6 +303,17 @@ while (@catman) { } print IDB "f 0664 root sys usr/share/catman/u_man/cat$dirnum/$file $SRCPFX/$nextfile $PKG.man.manpages\n"; } + +if (@nsswitch) { + print IDB "d 0755 root sys var/ns/lib $SRCPFX/packaging/SGI $PKG.sw.base\n"; + while(@nsswitch) { + $nextfile = shift @nsswitch; + ($filename = $nextfile) =~ s/^.*\///; + $filename =~ s/libnss/libns/; + print IDB "f 0644 root sys var/ns/lib/$filename $SRCPFX/source/$nextfile $PKG.sw.base \n"; + } +} + print IDB "d 01777 lp sys var/spool/samba $SRCPFX/packaging/SGI $PKG.sw.base\n"; close IDB; diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index a85a64569b..7412a02d4f 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -7,8 +7,8 @@ # 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. +# This will build an smbd.noquota, smbd.profile, nmbd.profile and the +# entire package with quota support and acl support. doclean="" SGI_ABI=-n32 @@ -31,6 +31,7 @@ if [ "$doclean" = "clean" ]; then if [ -f Makefile ]; then make distclean fi + rm -rf bin/*.profile bin/*.noquota cd ../packaging/SGI rm -rf bins catman html codepages swat samba.idb samba.spec fi @@ -50,7 +51,7 @@ fi cd ../../source if [ "$doclean" = "clean" ]; then echo Create SGI specific Makefile - ./configure --prefix=/usr/samba --sbindir='${exec_prefix}/bin' --mandir=/usr/share/catman --with-acl-support + ./configure --prefix=/usr/samba --sbindir=/usr/samba/bin --mandir=/usr/share/catman --with-acl-support --with-quotas --with-smbwrapper errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat creating Makefile\n"; @@ -63,6 +64,7 @@ fi # echo Making binaries +echo "===================== Making Profile versions =======================" make clean make headers make -P "CFLAGS=-O -g3 -D WITH_PROFILE" bin/smbd bin/nmbd @@ -74,7 +76,9 @@ fi mv bin/smbd bin/smbd.profile mv bin/nmbd bin/nmbd.profile +echo "===================== Making No Quota versions =======================" make clean +make headers make -P "CFLAGS=-O -g3 -D QUOTAOBJS=smbd/noquotas.o" bin/smbd errstat=$? if [ $errstat -ne 0 ]; then @@ -83,7 +87,21 @@ if [ $errstat -ne 0 ]; then fi mv bin/smbd bin/smbd.noquota -make -P "CFLAGS=-O -g3" all +echo "===================== Making smbwrapper.32.so =======================" +# cannot use -mips3 with 32 bit shared libraries so reset the ISA variable +# just for this object +ISA= +export ISA +make -P "CFLAGS=-O -g3" bin/smbwrapper.32.so +errstat=$? +if [ $errstat -ne 0 ]; then + echo "Error $errstat building sources\n"; + exit $errstat; +fi +ISA=-mips3 +export ISA +echo "===================== Making Regular versions =======================" +make -P "CFLAGS=-O -g3" all nsswitch/libnss_wins.so errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building sources\n"; @@ -92,13 +110,6 @@ 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 b4e634f43640dd926009bf5020c262490965c501 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Thu, 3 Jan 2002 22:26:54 +0000 Subject: Note: This does NOT work yet. More work is in progress - please wait before using. (This used to be commit 72bda5e82173a95af58c58f8b454850f8794c356) --- packaging/Caldera/OpenLinux/makerpms.sh.tmpl | 24 ++++++++++++++++++------ packaging/Caldera/OpenLinux/samba3.spec.tmpl | 2 +- 2 files changed, 19 insertions(+), 7 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl index e7ba1d9623..54e207bd8d 100644 --- a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl +++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl @@ -17,6 +17,10 @@ if [ z$1 = z"old" ]; then old=1; shift fi +if [ z$1 = z"team" ]; then + team=1; + shift +fi # Start preparing the packages... if [ $devel -ne 0 ]; then @@ -28,15 +32,23 @@ else fi cp -af *.spec *.spec-lsb $SPECDIR -for src in *.patch; do - trg=`echo $src | sed 's;xxxxxx;PVERSION;'` - cp -a $src $SRCDIR/$trg +if [ $team -ne 0 ]; then + cp *.spec-team $SPECDIR +fi +for i in `ls *.patch` +do + cp $i $SRCDIR/ done - # Start building the package cd $SPECDIR if [ $old -eq 0 ]; then mv -f samba2.spec samba2.spec-nonlsb -ln -f samba2.spec-lsb samba2.spec +ln -f samba2.spec-lsb samba3.spec +fi +if [ $team -ne 0 ]; then + mv -f samba3.spec samba3.spec-lsb + ln -f samba3.spec-team samba3.spec + rpm -ba -v samba3.spec +else + rpm -ba -v --rmsource --clean samba3.spec fi -rpm -ba -v samba2.spec diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index ab4e48649b..e32dd89d28 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -21,7 +21,7 @@ Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 BuildRoot : /tmp/%{Name}-%{Version} -Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}%{date}.tar.gz +Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}.tar.gz #Patch0: %{Name}-%{Version}-smbmount.patch Patch1: %{Name}-%{Version}-install.patch #Patch2: %{Name}-%{Version}-smbconf.patch -- cgit From 80653ebbbfb8c7f2c173734fea3c252f5dd9c450 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Thu, 17 Jan 2002 01:18:13 +0000 Subject: new config files for winbindd startup (This used to be commit 4ab2a775438f4266d270c626a9ad547c97c4eb62) --- packaging/SGI/winbindd.config | 1 + packaging/SGI/winbindd.rc | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 packaging/SGI/winbindd.config create mode 100644 packaging/SGI/winbindd.rc (limited to 'packaging') diff --git a/packaging/SGI/winbindd.config b/packaging/SGI/winbindd.config new file mode 100644 index 0000000000..cfb931e470 --- /dev/null +++ b/packaging/SGI/winbindd.config @@ -0,0 +1 @@ +off diff --git a/packaging/SGI/winbindd.rc b/packaging/SGI/winbindd.rc new file mode 100644 index 0000000000..c63944a04d --- /dev/null +++ b/packaging/SGI/winbindd.rc @@ -0,0 +1,38 @@ +#! /bin/sh + +# +# winbindd server control +# + +IS_ON=/etc/chkconfig +KILLALL=/sbin/killall + +WINBINDD=/usr/samba/bin/winbindd + +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 winbindd && test -x $WINBINDD; then + $KILLALL -15 winbindd + $ECHO "winbindd:\c" + $WINBINDD ; $ECHO " winbindd." + fi + ;; +'stop') + $ECHO "Stopping winbindd." + $KILLALL -15 winbindd + exit 0 + ;; +*) + echo "usage: /etc/init.d/winbindd {start|stop}" + ;; +esac -- cgit From c8bc0fa4a7be25cb926750a56085e1e98ed9046b Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sat, 2 Feb 2002 15:44:37 +0000 Subject: merge from 2.2 (This used to be commit 473a89cde2e60c359cb435c714dc98974489a118) --- packaging/Debian/README | 42 + packaging/Debian/debian/README.build | 397 ++ packaging/Debian/debian/README.debian | 71 + packaging/Debian/debian/TODO | 10 + packaging/Debian/debian/changelog | 1559 +++++ packaging/Debian/debian/config.cache | 231 + packaging/Debian/debian/config.cache.alpha-linux | 12 + packaging/Debian/debian/config.cache.sparc-linux | 13 + packaging/Debian/debian/control | 151 + packaging/Debian/debian/control.smbwrapper | 111 + packaging/Debian/debian/copyright | 36 + packaging/Debian/debian/libpam-smbpass.files | 1 + packaging/Debian/debian/libsmbclient-dev.files | 2 + packaging/Debian/debian/libsmbclient.files | 2 + packaging/Debian/debian/libsmbclient.postinst | 10 + packaging/Debian/debian/libsmbclient.shlibs | 1 + packaging/Debian/debian/mksmbpasswd.8 | 28 + packaging/Debian/debian/mksmbpasswd.awk | 5 + packaging/Debian/debian/patches/Makefile.patch | 49 + packaging/Debian/debian/patches/configure.patch | 6044 ++++++++++++++++++++ packaging/Debian/debian/patches/loadparm.patch | 78 + packaging/Debian/debian/patches/samba.patch | 199 + packaging/Debian/debian/patches/smbadduser.patch | 22 + .../Debian/debian/patches/smbclient-pager.patch | 11 + .../debian/patches/smbclient-xfer-speed.patch | 17 + packaging/Debian/debian/rules | 274 + packaging/Debian/debian/rules.old | 194 + packaging/Debian/debian/rules.smbwrapper | 172 + packaging/Debian/debian/samba-common.conffiles | 2 + packaging/Debian/debian/samba-common.files | 7 + packaging/Debian/debian/samba-common.postrm | 6 + packaging/Debian/debian/samba-doc.docs | 9 + packaging/Debian/debian/samba-doc.examples | 3 + packaging/Debian/debian/samba.conffiles | 3 + packaging/Debian/debian/samba.cron.daily | 16 + packaging/Debian/debian/samba.dirs | 11 + packaging/Debian/debian/samba.docs | 3 + packaging/Debian/debian/samba.init | 94 + packaging/Debian/debian/samba.logrotate | 21 + packaging/Debian/debian/samba.pamd | 5 + packaging/Debian/debian/samba.postinst | 218 + packaging/Debian/debian/samba.postrm | 26 + packaging/Debian/debian/samba.preinst | 47 + packaging/Debian/debian/samba.prerm | 74 + packaging/Debian/debian/sambaconfig | 130 + packaging/Debian/debian/sambaconfig.8 | 40 + packaging/Debian/debian/scripts/patch-source | 7 + packaging/Debian/debian/scripts/unpatch-source | 7 + packaging/Debian/debian/smb.conf | 147 + packaging/Debian/debian/smbclient.files | 9 + packaging/Debian/debian/smbfs.files | 10 + packaging/Debian/debian/smbfs.suid | 5 + packaging/Debian/debian/smbwrapper.dirs | 2 + packaging/Debian/debian/smbwrapper.docs | 2 + packaging/Debian/debian/smbwrapper.files | 1 + packaging/Debian/debian/swat.dirs | 2 + packaging/Debian/debian/swat.docs | 1 + packaging/Debian/debian/swat.files | 2 + packaging/Debian/debian/swat.postinst | 23 + packaging/Debian/debian/swat.postrm | 19 + packaging/Debian/debian/wins2dns.awk | 38 + 61 files changed, 10732 insertions(+) create mode 100644 packaging/Debian/README create mode 100644 packaging/Debian/debian/README.build create mode 100644 packaging/Debian/debian/README.debian create mode 100644 packaging/Debian/debian/TODO create mode 100644 packaging/Debian/debian/changelog create mode 100644 packaging/Debian/debian/config.cache create mode 100644 packaging/Debian/debian/config.cache.alpha-linux create mode 100644 packaging/Debian/debian/config.cache.sparc-linux create mode 100644 packaging/Debian/debian/control create mode 100644 packaging/Debian/debian/control.smbwrapper create mode 100644 packaging/Debian/debian/copyright create mode 100644 packaging/Debian/debian/libpam-smbpass.files create mode 100644 packaging/Debian/debian/libsmbclient-dev.files create mode 100644 packaging/Debian/debian/libsmbclient.files create mode 100644 packaging/Debian/debian/libsmbclient.postinst create mode 100644 packaging/Debian/debian/libsmbclient.shlibs create mode 100644 packaging/Debian/debian/mksmbpasswd.8 create mode 100644 packaging/Debian/debian/mksmbpasswd.awk create mode 100644 packaging/Debian/debian/patches/Makefile.patch create mode 100644 packaging/Debian/debian/patches/configure.patch create mode 100644 packaging/Debian/debian/patches/loadparm.patch create mode 100644 packaging/Debian/debian/patches/samba.patch create mode 100644 packaging/Debian/debian/patches/smbadduser.patch create mode 100644 packaging/Debian/debian/patches/smbclient-pager.patch create mode 100644 packaging/Debian/debian/patches/smbclient-xfer-speed.patch create mode 100755 packaging/Debian/debian/rules create mode 100644 packaging/Debian/debian/rules.old create mode 100644 packaging/Debian/debian/rules.smbwrapper create mode 100644 packaging/Debian/debian/samba-common.conffiles create mode 100644 packaging/Debian/debian/samba-common.files create mode 100644 packaging/Debian/debian/samba-common.postrm create mode 100644 packaging/Debian/debian/samba-doc.docs create mode 100644 packaging/Debian/debian/samba-doc.examples create mode 100644 packaging/Debian/debian/samba.conffiles create mode 100644 packaging/Debian/debian/samba.cron.daily create mode 100644 packaging/Debian/debian/samba.dirs create mode 100644 packaging/Debian/debian/samba.docs create mode 100644 packaging/Debian/debian/samba.init create mode 100644 packaging/Debian/debian/samba.logrotate create mode 100644 packaging/Debian/debian/samba.pamd create mode 100644 packaging/Debian/debian/samba.postinst create mode 100644 packaging/Debian/debian/samba.postrm create mode 100644 packaging/Debian/debian/samba.preinst create mode 100644 packaging/Debian/debian/samba.prerm create mode 100644 packaging/Debian/debian/sambaconfig create mode 100644 packaging/Debian/debian/sambaconfig.8 create mode 100755 packaging/Debian/debian/scripts/patch-source create mode 100755 packaging/Debian/debian/scripts/unpatch-source create mode 100644 packaging/Debian/debian/smb.conf create mode 100644 packaging/Debian/debian/smbclient.files create mode 100644 packaging/Debian/debian/smbfs.files create mode 100644 packaging/Debian/debian/smbfs.suid create mode 100644 packaging/Debian/debian/smbwrapper.dirs create mode 100644 packaging/Debian/debian/smbwrapper.docs create mode 100644 packaging/Debian/debian/smbwrapper.files create mode 100644 packaging/Debian/debian/swat.dirs create mode 100644 packaging/Debian/debian/swat.docs create mode 100644 packaging/Debian/debian/swat.files create mode 100644 packaging/Debian/debian/swat.postinst create mode 100644 packaging/Debian/debian/swat.postrm create mode 100644 packaging/Debian/debian/wins2dns.awk (limited to 'packaging') diff --git a/packaging/Debian/README b/packaging/Debian/README new file mode 100644 index 0000000000..042499b46f --- /dev/null +++ b/packaging/Debian/README @@ -0,0 +1,42 @@ +Building Samba Packages for Debian GNU/Linux +-------------------------------------------- + +If you want to build Samba packages for Debian and you just want to use +upstream sources, i.e. you don't want to wait for us to put official +packages out, or you want packages for a Debian version for which we +don't provide deb's, or you don't want to use official packages, or +you want to add --this-cool-switch to configure, or whatever, follow +these instructions: + +0) Make sure you have the following packages installed: + debhelper + libpam0g-dev + libreadline4-dev + libcupsys2-dev + + the minimum Debian development stuff (dpkg-dev, libc6-dev, etc.) + Note: libcupsys2-dev is not available for Potato. It's safe + to not install it if you don't need CUPS support. +1) cd samba[-] +2) cp -a packaging/Debian/debian/ debian + It's important that you copy instead of symlink because the build + tools in Potato have a problem that prevents the build to work with + a symlink. +3) dch -i + - Edit the changelog and make sure the version is right. For example, + for Samba 2.2.3, the version number should be 2.2.3-0.1 (use + a number less than 1 like 0.1, 0.2, etc. so there is no conflict + with future upgrades to the official Debian packages.) +4) Run 'debian/rules binary'. + - It is better that you prefix the above command with 'fakeroot'. + If you have problems you might try building as root. +5) That's it. Your new packages should be in ../. Install with dpkg. + +Please e-mail samba@packages.debian.org with comments, question or +usggestions. Please talk to us and not to the Samba Team. They have +better things to do and know nothing about the Debian packaging system. + +Eloy A. Paris +Steve Langasek + +Sat Feb 2 00:44:42 CET 2002 + diff --git a/packaging/Debian/debian/README.build b/packaging/Debian/debian/README.build new file mode 100644 index 0000000000..0a11a1f6ea --- /dev/null +++ b/packaging/Debian/debian/README.build @@ -0,0 +1,397 @@ +From: Steve Langasek +To: "Eloy A. Paris" +Date: Thu, 23 Aug 2001 21:20:05 -0500 (CDT) +Subject: Re: autobuilder failure on arm for samba-2.2.1a-3 +In-Reply-To: <20010823100906.A1092@antenas> +Message-ID: +MIME-Version: 1.0 +Content-Type: TEXT/PLAIN; charset=US-ASCII + +On Thu, 23 Aug 2001, Eloy A. Paris wrote: + +> On Wed, Aug 22, 2001 at 03:01:01PM -0500, Steve Langasek wrote: + +> > Hmm. Maybe the thing to do is to focus on getting config.cache (not log, +> > cache) support into the package. Issues like this are frequent enough with +> > Samba, and the configure tests add enough time to the build process, that I +> > think there'd be much benefit in being able to step past a lot of these. + +> Uhhmmm... I don't know, I guess I don't like much the idea of +> maintaining a config.cache. It looks like extra work plus a +> compilation process that is "synthetic" or atificial. What happens if +> the Samba Team adds a new test, or modifies the configure script, will +> the config.cache pick those up? + +> In any case, you are the expert, so if you think that's the way to go, +> and the burden far exceeds the problems we have right now I say let's +> go for it. I am not well versed on autoconf and the configure process, +> that's all... + +Well, I'll attach my work to the bottom of this message and let you judge it +for yourself. + +The config.cache I'm trying to generate here is not equivalent to what +a configure script outputs. The only values I'm including are those which 1) +are no-brainers on any glibc-based platform, 2) are questions we need to force +a particular value for regardless of the kernel being built against, or 3) are +questions about specific bizarre features of proprietary Unices that we'll +always get an answer of 'no' to. + +I've removed all of the config.cache variables related to headers, or to +checks for particular libraries; I think it's pretty safe to assert that glibc +provides basic C functions like select(), setenv(), and waitpid() on all our +build targets, but I think it's less safe to assert that they'll always be +provided by particular header files. + +So the config.cache won't automatically be updated with answers to new +configure tests, but it also doesn't need to in order to be useful. There's +really only a handful of variables in there that we /need/ in order to +guarantee correctly-built packages, and if you want to leave out everything +else, that's perfectly ok too. Everything from the fifth stanza on down is +just a build-time speed-up for some of the slower architectures. Well, it +also has the fringe benefit that the packages will FAIL to build if someone +tries rebuilding for a really bizarre (non-Linux, non-glibc) architecture. I +see that as a plus :), you may disagree, but in any case my next trick would +be to add a global variable developers can set to bypass the provided +config.cache. + + +It is a little artificial, but the whole point of .debs is to be able to build +binaries in a controlled environment. Right now, we don't really have control +over what happens in the autobuilders. We have even /less/ control over what +happens in a stable release: it's been two weeks now since I built binaries +for bug #94380, and they haven't been uploaded to security.d.o yet. I'm +guessing they won't be uploaded until Wichert is back from vacation, either -- +which is fine, but it would be nice if we didn't have to worry about +mis-builds by the security team, or about putting the security team to extra +trouble after the fact to get packages fixed. + +With a pre-loaded config.cache, we can ensure that bugs of this kind don't +happen in woody. We can take the arm autobuilder problem into our own hands, +and not have to worry about quirkiness in the build environment. We can even +close bug #109773, since we no longer have to worry about detecting the +setuid() routines. + + +So to me, it definitely seems worth it. But you're the maintainer, and I +won't ask you to put anything in the package that you're not comfortable with. + + +> By the way, I think I remember someone was able to build 2.2.x succesfully on +> the ARM. If this is the case, could it be that there's something weird +> with Phillip's setup? + +It could be. There are arm packages for 2.2.1a-1, so at /some/ point the +autobuilder was able to pass the locking test. + + +> P.S. How did you know about the ARM build problems? I don't see any +> bugs about this... + +, follow the links for samba... The +exact reference for the arm autobuilder is at +. + +Regards, +Steve Langasek +postmodern programmer + + +diff -uNrw samba-2.2.1a-bak/debian/changelog samba-2.2.1a/debian/changelog +--- samba-2.2.1a-bak/debian/changelog Thu Aug 23 10:27:54 2001 ++++ samba-2.2.1a/debian/changelog Thu Aug 23 10:28:08 2001 +@@ -1,3 +1,12 @@ ++samba (2.2.1a-4.1) unstable; urgency=low ++ ++ * Fix up the build system to avoid needing to run configure as root to ++ answer questions we already know the answers to. ++ * In the process, make surprising progress towards being able to ++ cross-compile the samba packages. ++ ++ -- Steve Langasek Wed, 22 Aug 2001 23:35:00 -0500 ++ + samba (2.2.1a-4) unstable; urgency=low + + * Fixed typo in smbmount's mount page. +diff -uNrw samba-2.2.1a-bak/debian/config.cache samba-2.2.1a/debian/config.cache +--- samba-2.2.1a-bak/debian/config.cache Wed Dec 31 18:00:00 1969 ++++ samba-2.2.1a/debian/config.cache Thu Aug 23 10:28:08 2001 +@@ -0,0 +1,231 @@ ++# ++# 22 August 2001 Steve Langasek ++# ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs. It is not useful on other systems. ++# If it contains results you don't want to keep, you may remove or edit it. ++# ++# By default, configure uses ./config.cache as the cache file, ++# creating it if it does not exist already. You can give configure ++# the --cache-file=FILE option to use a different cache file; that is ++# what configure does when it calls configure scripts in ++# subdirectories, so they share the cache. ++# Giving --cache-file=/dev/null disables caching, for debugging configure. ++# config.status only pays attention to the cache file if you give it the ++# --recheck option to rerun configure. ++# ++# ++# This config.cache file contains a list of acceptable autoconf ++# values which can be used in compiling Samba for Debian woody/sid. ++# ++# Autoconf sorts options alphabetically in its output. This file ++# groups options logically. ++ ++ ++# Load any architecture-specific settings ++if [ -n "$DEB_HOST_GNU_TYPE" \ ++ -a -f ../debian/config.cache.${DEB_HOST_GNU_TYPE} ]; then ++ . ../debian/config.cache.${DEB_HOST_GNU_TYPE} ++fi ++ ++ ++# This is at the top because it's most in need of regular tweaking. ++# These are options which are supported on 2.4 kernels, but not on 2.2 ++# kernels. ++ ++samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no} ++samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no} ++samba_cv_HAVE_KERNEL_SHARE_MODES=${samba_cv_HAVE_KERNEL_SHARE_MODES=no} ++ ++ ++# These are present in 2.2 kernels, but not in 2.0... ++ ++samba_cv_have_setresuid=${samba_cv_have_setresuid=yes} ++samba_cv_have_setresgid=${samba_cv_have_setresgid=yes} ++samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=yes} ++ ++ ++# POSIX ACL support not present in Linux 2.2; not allowed in the ++# Debian packages, even if present on the build machine. ++ ++ac_cv_header_sys_acl_h=${ac_cv_header_sys_acl_h=no} ++ ++ ++# Various basic libc/compiler stuff that it's blindingly obvious that ++# Linux supports (now watch me get bitten for saying that) ++ ++ac_cv_c_const=${ac_cv_c_const=yes} ++ac_cv_c_inline=${ac_cv_c_inline=inline} ++samba_cv_volatile=${samba_cv_volatile=yes} ++ac_cv_dirent_d_off=${ac_cv_dirent_d_off=yes} ++ac_cv_func_bzero=${ac_cv_func_bzero=yes} ++ac_cv_func_chmod=${ac_cv_func_chmod=yes} ++ac_cv_func_chown=${ac_cv_func_chown=yes} ++ac_cv_func_chroot=${ac_cv_func_chroot=yes} ++ac_cv_func_connect=${ac_cv_func_connect=yes} ++ac_cv_func_dup2=${ac_cv_func_dup2=yes} ++ac_cv_func_execl=${ac_cv_func_execl=yes} ++ac_cv_func_fchmod=${ac_cv_func_fchmod=yes} ++ac_cv_func_fchown=${ac_cv_func_fchown=yes} ++ac_cv_func_fstat=${ac_cv_func_fstat=yes} ++ac_cv_func_fsync=${ac_cv_func_fsync=yes} ++ac_cv_func_ftruncate=${ac_cv_func_ftruncate=yes} ++ac_cv_func_getcwd=${ac_cv_func_getcwd=yes} ++ac_cv_func_getgrent=${ac_cv_func_getgrent=yes} ++ac_cv_func_getgrnam=${ac_cv_func_getgrnam=yes} ++ac_cv_func_getspnam=${ac_cv_func_getspnam=yes} ++ac_cv_func_glob=${ac_cv_func_glob=yes} ++ac_cv_func_grantpt=${ac_cv_func_grantpt=yes} ++ac_cv_func_initgroups=${ac_cv_func_initgroups=yes} ++ac_cv_func_llseek=${ac_cv_func_llseek=yes} ++ac_cv_func_memcmp_clean=${ac_cv_func_memcmp_clean=yes} ++ac_cv_func_memmove=${ac_cv_func_memmove=yes} ++ac_cv_func_memset=${ac_cv_func_memset=yes} ++ac_cv_func_mktime=${ac_cv_func_mktime=yes} ++ac_cv_func_pipe=${ac_cv_func_pipe=yes} ++ac_cv_func_poll=${ac_cv_func_poll=yes} ++ac_cv_func_pread=${ac_cv_func_pread=yes} ++ac_cv_func_pwrite=${ac_cv_func_pwrite=yes} ++ac_cv_func_rand=${ac_cv_func_rand=yes} ++ac_cv_func_random=${ac_cv_func_random=yes} ++ac_cv_func_readlink=${ac_cv_func_readlink=yes} ++ac_cv_func_rename=${ac_cv_func_rename=yes} ++ac_cv_func_select=${ac_cv_func_select=yes} ++ac_cv_func_setenv=${ac_cv_func_setenv=yes} ++ac_cv_func_setgroups=${ac_cv_func_setgroups=yes} ++ac_cv_func_setsid=${ac_cv_func_setsid=yes} ++ac_cv_func_sigaction=${ac_cv_func_sigaction=yes} ++ac_cv_func_sigblock=${ac_cv_func_sigblock=yes} ++ac_cv_func_sigprocmask=${ac_cv_func_sigprocmask=yes} ++ac_cv_func_snprintf=${ac_cv_func_snprintf=yes} ++ac_cv_func_srand=${ac_cv_func_srand=yes} ++ac_cv_func_srandom=${ac_cv_func_srandom=yes} ++ac_cv_func_strcasecmp=${ac_cv_func_strcasecmp=yes} ++ac_cv_func_strchr=${ac_cv_func_strchr=yes} ++ac_cv_func_strdup=${ac_cv_func_strdup=yes} ++ac_cv_func_strerror=${ac_cv_func_strerror=yes} ++ac_cv_func_strftime=${ac_cv_func_strftime=yes} ++ac_cv_func_strpbrk=${ac_cv_func_strpbrk=yes} ++ac_cv_func_strtoul=${ac_cv_func_strtoul=yes} ++ac_cv_func_symlink=${ac_cv_func_symlink=yes} ++ac_cv_func_usleep=${ac_cv_func_usleep=yes} ++ac_cv_func_utime=${ac_cv_func_utime=yes} ++ac_cv_func_utimes=${ac_cv_func_utimes=yes} ++ac_cv_func_vsnprintf=${ac_cv_func_vsnprintf=yes} ++ac_cv_func_waitpid=${ac_cv_func_waitpid=yes} ++ac_cv_type_ino_t=${ac_cv_type_ino_t=yes} ++ac_cv_type_mode_t=${ac_cv_type_mode_t=yes} ++ac_cv_type_pid_t=${ac_cv_type_pid_t=yes} ++ac_cv_type_size_t=${ac_cv_type_size_t=yes} ++ac_cv_type_uid_t=${ac_cv_type_uid_t=yes} ++samba_cv_socklen_t=${samba_cv_socklen_t=yes} ++ ++# Yes, we know Linux supports fcntl locking. Just ignore ++# any errors caused by building on an NFS mount. ++samba_cv_HAVE_FCNTL_LOCK=${samba_cv_HAVE_FCNTL_LOCK=yes} ++ ++ ++# smbwrapper doesn't work because the glibc maintainers don't want ++# to support transparent userland VFS. We might as well preempt ++# any checks for shadowed symbols that are only useful for smbwrapper. ++ ++ac_cv_func___acl=${ac_cv_func___acl=no} ++ac_cv_func__acl=${ac_cv_func__acl=no} ++ac_cv_func___chdir=${ac_cv_func___chdir=no} ++ac_cv_func__chdir=${ac_cv_func__chdir=no} ++ac_cv_func___close=${ac_cv_func___close=no} ++ac_cv_func__close=${ac_cv_func__close=no} ++ac_cv_func___closedir=${ac_cv_func___closedir=no} ++ac_cv_func__closedir=${ac_cv_func__closedir=no} ++ac_cv_func___dup=${ac_cv_func___dup=no} ++ac_cv_func__dup=${ac_cv_func__dup=no} ++ac_cv_func___dup2=${ac_cv_func___dup2=no} ++ac_cv_func__dup2=${ac_cv_func__dup2=no} ++ac_cv_func___facl=${ac_cv_func___facl=no} ++ac_cv_func__facl=${ac_cv_func__facl=no} ++ac_cv_func___fchdir=${ac_cv_func___fchdir=no} ++ac_cv_func__fchdir=${ac_cv_func__fchdir=no} ++ac_cv_func___fcntl=${ac_cv_func___fcntl=no} ++ac_cv_func__fcntl=${ac_cv_func__fcntl=no} ++ac_cv_func___fork=${ac_cv_func___fork=no} ++ac_cv_func__fork=${ac_cv_func__fork=no} ++ac_cv_func___fstat=${ac_cv_func___fstat=no} ++ac_cv_func__fstat=${ac_cv_func__fstat=no} ++ac_cv_func___fstat64=${ac_cv_func___fstat64=no} ++ac_cv_func__fstat64=${ac_cv_func__fstat64=no} ++ac_cv_func___fxstat=${ac_cv_func___fxstat=no} ++ac_cv_func___getcwd=${ac_cv_func___getcwd=no} ++ac_cv_func__getcwd=${ac_cv_func__getcwd=no} ++ac_cv_func___getdents=${ac_cv_func___getdents=no} ++ac_cv_func__getdents=${ac_cv_func__getdents=no} ++ac_cv_func___llseek=${ac_cv_func___llseek=no} ++ac_cv_func___sys_llseek=${ac_cv_func___sys_llseek=no} ++ac_cv_func__llseek=${ac_cv_func__llseek=no} ++ac_cv_func___lseek=${ac_cv_func___lseek=no} ++ac_cv_func__lseek=${ac_cv_func__lseek=no} ++ac_cv_func___lstat=${ac_cv_func___lstat=no} ++ac_cv_func__lstat=${ac_cv_func__lstat=no} ++ac_cv_func___lstat64=${ac_cv_func___lstat64=no} ++ac_cv_func__lstat64=${ac_cv_func__lstat64=no} ++ac_cv_func___lxstat=${ac_cv_func___lxstat=no} ++ac_cv_func___open=${ac_cv_func___open=no} ++ac_cv_func__open=${ac_cv_func__open=no} ++ac_cv_func___open64=${ac_cv_func___open64=no} ++ac_cv_func__open64=${ac_cv_func__open64=no} ++ac_cv_func___opendir=${ac_cv_func___opendir=no} ++ac_cv_func__opendir=${ac_cv_func__opendir=no} ++ac_cv_func___pread=${ac_cv_func___pread=no} ++ac_cv_func__pread=${ac_cv_func__pread=no} ++ac_cv_func___pread64=${ac_cv_func___pread64=no} ++ac_cv_func__pread64=${ac_cv_func__pread64=no} ++ac_cv_func___pwrite=${ac_cv_func___pwrite=no} ++ac_cv_func__pwrite=${ac_cv_func__pwrite=no} ++ac_cv_func___pwrite64=${ac_cv_func___pwrite64=no} ++ac_cv_func__pwrite64=${ac_cv_func__pwrite64=no} ++ac_cv_func___read=${ac_cv_func___read=no} ++ac_cv_func__read=${ac_cv_func__read=no} ++ac_cv_func___readdir=${ac_cv_func___readdir=no} ++ac_cv_func__readdir=${ac_cv_func__readdir=no} ++ac_cv_func___readdir64=${ac_cv_func___readdir64=no} ++ac_cv_func__readdir64=${ac_cv_func__readdir64=no} ++ac_cv_func___seekdir=${ac_cv_func___seekdir=no} ++ac_cv_func__seekdir=${ac_cv_func__seekdir=no} ++ac_cv_func___stat=${ac_cv_func___stat=no} ++ac_cv_func__stat=${ac_cv_func__stat=no} ++ac_cv_func___stat64=${ac_cv_func___stat64=no} ++ac_cv_func__stat64=${ac_cv_func__stat64=no} ++ac_cv_func___telldir=${ac_cv_func___telldir=no} ++ac_cv_func__telldir=${ac_cv_func__telldir=no} ++ac_cv_func___write=${ac_cv_func___write=no} ++ac_cv_func__write=${ac_cv_func__write=no} ++ac_cv_func___xstat=${ac_cv_func___xstat=no} ++ ++ ++ ++# Miscellaneous stuff that isn't, and shouldn't be, available ++# in Debian. Those interested in building debs for other systems may ++# need to remove some of these defines. ++ ++ac_cv_func_bigcrypt=${ac_cv_func_bigcrypt=no} ++ac_cv_func_crypt16=${ac_cv_func_crypt16=no} ++ac_cv_func_getauthuid=${ac_cv_func_getauthuid=no} ++ac_cv_func_getprpwnam=${ac_cv_func_getprpwnam=no} ++ac_cv_func_getpwanam=${ac_cv_func_getpwanam=no} ++ac_cv_func_putprpwnam=${ac_cv_func_putprpwnam=no} ++ac_cv_func_rdchk=${ac_cv_func_rdchk=no} ++ac_cv_func_set_auth_parameters=${ac_cv_func_set_auth_parameters=no} ++ac_cv_func_setgidx=${ac_cv_func_setgidx=no} ++ac_cv_func_setluid=${ac_cv_func_setluid=no} ++ac_cv_func_setpriv=${ac_cv_func_setpriv=no} ++ac_cv_func_setuidx=${ac_cv_func_setuidx=no} ++ac_cv_lib_sec_bigcrypt=${ac_cv_lib_sec_bigcrypt=no} ++ac_cv_lib_sec_getprpwnam=${ac_cv_lib_sec_getprpwnam=no} ++ac_cv_lib_sec_getspnam=${ac_cv_lib_sec_getspnam=no} ++ac_cv_lib_sec_putprpwnam=${ac_cv_lib_sec_putprpwnam=no} ++ac_cv_lib_sec_set_auth_parameters=${ac_cv_lib_sec_set_auth_parameters=no} ++ac_cv_lib_security_bigcrypt=${ac_cv_lib_security_bigcrypt=no} ++ac_cv_lib_security_getprpwnam=${ac_cv_lib_security_getprpwnam=no} ++ac_cv_lib_security_getspnam=${ac_cv_lib_security_getspnam=no} ++ac_cv_lib_security_putprpwnam=${ac_cv_lib_security_putprpwnam=no} ++ac_cv_lib_security_set_auth_parameters=${ac_cv_lib_security_set_auth_parameters=no} +diff -uNrw samba-2.2.1a-bak/debian/config.cache.alpha-linux samba-2.2.1a/debian/config.cache.alpha-linux +--- samba-2.2.1a-bak/debian/config.cache.alpha-linux Wed Dec 31 18:00:00 1969 ++++ samba-2.2.1a/debian/config.cache.alpha-linux Thu Aug 23 10:28:08 2001 +@@ -0,0 +1,12 @@ ++# 22 Aug 2001 Steve Langasek ++ ++# This file contains autoconf settings specific to the alpha-linux ++# platform that should be preloaded when building for this architecture. ++ ++ ++# Linux 2.2 on Alpha doesn't have a functional setresgid() call, but ++# Linux 2.4 does. Ensure that packages compiled for woody remain ++# compatible with 2.2 kernels, even if the build machine is running 2.4. ++samba_cv_have_setresgid=${samba_cv_have_setresgid=no} ++samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=no} ++samba_cv_USE_SETREUID=${samba_cv_USE_SETREUID=yes} +diff -uNrw samba-2.2.1a-bak/debian/rules samba-2.2.1a/debian/rules +--- samba-2.2.1a-bak/debian/rules Thu Aug 23 10:27:54 2001 ++++ samba-2.2.1a/debian/rules Thu Aug 23 10:28:08 2001 +@@ -15,6 +15,14 @@ + # This has to be exported to make some magic below work. + export DH_OPTIONS + ++# Set the host and build architectures for use with config.cache loading, ++# cross-building, etc. ++DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ++DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ++ ++export DEB_HOST_GNU_TYPE ++export DEB_BUILD_GNU_TYPE ++ + BVARS = SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb + + DESTDIR=`pwd`/debian/samba +@@ -48,8 +56,11 @@ + # ./configure --with-fhs --prefix=/usr --sysconfdir=/etc \ + # --localstatedir=/var + ++ if [ -f debian/config.cache ]; then \ ++ cp -f debian/config.cache source/config.cache; \ ++ fi + # [ -f source/Makefile ] || (cd source && ./configure --with-fhs --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp) +- [ -f source/Makefile ] || (cd source && ./configure --with-fhs --prefix=/usr --sysconfdir=/etc --with-privatedir=/etc/samba --with-lockdir=/var/state/samba --localstatedir=/var --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp --with-readline --with-pam_smbpass) ++ [ -f source/Makefile ] || (cd source && ./configure --host=$(DEB_HOST_GNU_TYPE)-gnu --build=$(DEB_BUILD_GNU_TYPE)-gnu --with-fhs --prefix=/usr --sysconfdir=/etc --with-privatedir=/etc/samba --with-lockdir=/var/state/samba --localstatedir=/var --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp --with-readline --with-pam_smbpass) + + touch configure-stamp + diff --git a/packaging/Debian/debian/README.debian b/packaging/Debian/debian/README.debian new file mode 100644 index 0000000000..82be3f4df4 --- /dev/null +++ b/packaging/Debian/debian/README.debian @@ -0,0 +1,71 @@ +Samba for Debian +---------------- + +This package was built by Eloy Paris and Steve +Langasek , current maintainers of the Samba packages +for Debian, based on work from Bruce Perens , Andrew +Howell , Klee Dienes and Michael +Meskes , all previous maintainers of the packages +samba and sambades (now merged together - see below). + +As of Samba 2.0.6-1, the Debian version of Samba is compiled with +Pluggable Authentication Modules (PAM) support. PAM support was +discontinued during the libc5 -> libc6 migration process and I never +brought it back until 2.0.6-1. + +The smbfs package does not support the 2.0.x Linux kernels anymore. +This has been the case since the very first packages of the CVS sources +that eventually became Samba 2.2. To use the smbfs package you need to +run a 2.2.x kernel or later. + +Starting with the Debian packages for Samba 2.2, the Samba log files (for +nmbd and smbd) have been moved to a new location: /var/log/samba/. The +files also have new names: log.nmbd and log.smbd. The old files +(/var/log/{nmb,smb} were moved to the new location. + +As of Samba 2.2.2-11, the Samba sources produce the following binary +packages: + +samba: A LanManager like file and printer server for Unix. +samba-common: Samba common files used by both the server and the client. +smbclient: A LanManager like simple client for Unix. +swat: Samba Web Administration Tool +samba-doc: Samba documentation. +smbfs: Mount and umount commands for the smbfs (works with 2.2.x and + above kernels, not with 2.0.x kernels.) +libpam-smbpass: pluggable authentication module for SMB password + database. +libsmbclient: Shared library that allows applications to talk to SMB servers. +libsmbclient-dev: libsmbclient shared libraries. + + +Please note that the package smbwrapper (a shared library that provides +SMB client services that existed between Samba 2.0.0-1 and Samba-2.0.5a-4 +does not exist any more. The reason is that starting with Samba 2.0.6-1, that +code does not even compile, and the upstream author (Andrew Tridgell) +recommended to disable the compilation of smbwrapper until some issues +with glibc2.1 get cleared out (the problem is with glibc, not with Samba +itself). + +Support for NT Domains +---------------------- + +Samba 2.2 includes preliminary support for NT domains. A Samba server +can now be part of a Windows NT domain whose Primary Domain Controller +is a Windows NT server. This feature is supposed to be stable although I +haven't tried it myself. Read the documentation in the samba-doc package +for help on how to do this (hint: "security = domain" in the smb.conf +file). + +Samba 2.2 has also experimental support for Primary Domain +Controller. This means that a Samba server can act now as a PDC. There +are no special flags needed to compile Samba with NT domain PDC +support. Please read the NTDOM PDC FAQ at www.samba.org (Documentation +section). + +Please note that NT domain PDC support is far from complete and is still +experimental. + +Eloy A. Paris +Steve Langasek +January 14, 2002 diff --git a/packaging/Debian/debian/TODO b/packaging/Debian/debian/TODO new file mode 100644 index 0000000000..95bcd64e2b --- /dev/null +++ b/packaging/Debian/debian/TODO @@ -0,0 +1,10 @@ +In no particular order: + +- New packages for winbind stuff. +- Fix stuff in packaging/Debian/ (add infrastructure for stable + builds) +- Compile with LDAP support. +- Finish debconf support. +- Test debconf support. +- Review /etc/init.d/samba (Brian White reports problems, should add + --oknodo to start-stop-daemon) diff --git a/packaging/Debian/debian/changelog b/packaging/Debian/debian/changelog new file mode 100644 index 0000000000..93bb6d4f04 --- /dev/null +++ b/packaging/Debian/debian/changelog @@ -0,0 +1,1559 @@ +samba (2.2.2.cvs20020201-1) unstable; urgency=low + + * Getting ready for Samba 2.2.3. + * Using a poor's man build system to keep our patches to upstream + under the debian/ directory. + + -- Eloy A. Paris Fri, 1 Feb 2002 16:10:58 -0500 + +samba (2.2.2-12) unstable; urgency=high + + * (Steve) Patch for source/client/client.c. + Closes: #86438 smbclient: Transfering several GB causes the average + speed to be messed up. + * Uploading with urgency=high to expedite the move from unstable + to testing because of the security problem fixed in -11. + + -- Eloy A. Paris Fri, 25 Jan 2002 22:31:12 -0500 + +samba (2.2.2-11) unstable; urgency=low + + * Building with --with-libsmbclient. We have created two new + packages: libsmbclient and libsmbclient-dev. Hopefully this + will help some people that want to add the capability of + speaking SMB to their applications. + Closes: #117132 - libsmbclient support library? + * (Steve) Make swat do the right thing when reading (parsing) + the saved preferences in smb.conf. + Closes: #55617 swat mutilates the linpopup message command. + * Updated README.Debian. Updated descriptions in debian/control. + * Remembered to bump up version number in source/include/version.h + (need to automate this or else I'll keep forgetting.) + * (Steve) one liner for source/web/diagnose.c. + Closes: #106976 - smbd/nmbd not running message with swat/linuxconf. + * Added '|| true' to the post-rotate script so logrotate doesn't + fail if either nmbd or smbd is not running. + Closes: #127897 - /etc/logrotate.d/samba fails if there is no smbd process. + * Fixed incorrect file locations in swat's man page and added a + Debian-specific note to /usr/share/doc/swat/README. + Closes: #71586 swat: needs documentation fixes for debian. + * smbmount in the smbfs package does not have the setuid bit set. + Apparently, smbmount uses libsmb without checking the environment. + Thanks to Christian Jaeger for + finding the local root exploit. + * Applied old patch from Jerry) Carter" to correct + the following two problems in Samba 2.2.2: + - %U and %G could not be used in services names + in smb.conf. + - %G would fail to be expanded in an "include = ..." + line. + + -- Eloy A. Paris Sat, 19 Jan 2002 21:35:26 -0500 + +samba (2.2.2-10) unstable; urgency=low + + * (Steve) Add missing manual pages. + Closes: Bug#128928: missing manpages in smbfs. + + -- Eloy A. Paris Sun, 13 Jan 2002 14:39:55 -0500 + +samba (2.2.2-9) unstable; urgency=low + + * (Steve) Fix broken URL's in HTML docs. + Closes: Bug#17741: bad links in html docs (at last!!!) + + -- Eloy A. Paris Fri, 11 Jan 2002 13:37:07 -0500 + +samba (2.2.2-8) unstable; urgency=low + + * Added "Replaces: samba (<= 2.2.2-5)" to the smbclient section in + debian/control so rpcclient.1, which was in samba-2.2.2-5, does not + cause problems now that it is part of smbclient (>= 2.2.2-6). Closes: + Closes: Bug#128684: error upgrading smbclient in sid. + + -- Eloy A. Paris Fri, 11 Jan 2002 11:42:40 -0500 + +samba (2.2.2-7) unstable; urgency=low + + * (Steve) Patch to make behavior honor what the docs. say about "hosts allow" + taking precedence over "hosts deny". + Closes: Bug#49249: swat: error with host deny ?! + + -- Eloy A. Paris Thu, 10 Jan 2002 12:36:58 -0500 + +samba (2.2.2-6) unstable; urgency=low + + * (Steve) Adds manpage for rpcclient to the proper file, + removes smbtorture from the distro because this tool isn't intended for + widespread consumption. + Closes: #63057 - no manual page for smbtorture. + * (Steve) Removed -gnu from the configure arguments (--build, --host) in + debian/rules so config.sub is able to properly create the host and target + tuples. + + -- Eloy A. Paris Wed, 9 Jan 2002 14:39:51 -0500 + +samba (2.2.2-5) unstable; urgency=low + + * Fixes from vorlon: + * Use /usr/bin/pager instead of more. + Closes: #125603: smbclient violates pager policy. + * Make /etc/logrotate.d/samba a conffile, send smbd and nmbd + a SIGHUP to have the log files reopened, fixes to + /etc/logrotate.d/samba. + Closes: #127897: log file rotation. + Closes: #118277: /etc/logrotate.d/samba not listed in conffiles. + * s/covert/convert/. + Closes: #121653 probable typo in install message. + + -- Eloy A. Paris Sun, 6 Jan 2002 03:14:58 -0500 + +samba (2.2.2-4) unstable; urgency=low + + * Applied patch from Steve to work around problem in glibc that affects the + HPPA architecure. The patch detects the error condition at configure time + and compiles without LFS support if necessary. + Closes: Bug#126763: samba completely broken on hppa. + * Including unicode_map.1251. + Closes: Bug#126719: samba-common: unicode_map.1251 missing. + * Updated smbd daemon version to match Debian package version. + Closes: Bug#127199: Package version and smbd daemon version don't match. + + -- Eloy A. Paris Mon, 31 Dec 2001 14:32:47 -0500 + +samba (2.2.2-3) unstable; urgency=low + + * Added some spaces in package description in debian/control. + Closes: #120730 - missing spaces in package description for nice + alignment. + * Spelling fixes. + Closes: #125328, #125329, #125330, #125367, #125365, #125403. + * Steve Langasek is the co-maintainer of the Debian + Samba packages!!! Added him to the uploaders field in debian/control. + + -- Eloy A. Paris Tue, 18 Dec 2001 00:54:25 -0500 + +samba (2.2.2-2) unstable; urgency=low + + * Backed out changes to source/filename.c per Andrew Tridgell's request. + This changes were introduced in 2.2.1a-7 as an attempt to fix #47493. + Tridge found out that they break smbd. + * Changed version number in source/includes/version.h so it is clear that + this is a version of Samba packaged for Debian. This is another request from + Tridge and will help the Samba Team to get bogus bug reports. + * Added Samba-HOWTO-Collection.pdf and other README files to the + /usr/share/doc// directories. + * Installing libnss_winbind.so and pam_winbind.so. + Closes: #116790: nss and pam modules for winbind missing. + * Removed user-emacs-settings from changelog. + + -- Eloy A. Paris Mon, 29 Oct 2001 19:16:26 -0500 + +samba (2.2.2-1) unstable; urgency=low + + * New upstream version. + * Temporary fix for #113763 (Steve Langasek) + * Quick hack to avoid smbmount reveal password length. Please note + that even with this hack there is a small window when password is + completely visible with 'ps aux'. There are other methods that should + be used to automate mounting of SMB shares. + Closes: #112195: smbmount-2.2.x reveals password length. + * Applied patch from Steve Langasek to prevent + forcing use of setresuid() in Sparc. + Closes: #112779: samba build forces use of setresuid, which causes + smbd to fail on Sparc. + + -- Eloy A. Paris Mon, 15 Oct 2001 10:26:10 -0400 + +samba (2.2.1a-9) unstable; urgency=low + + * Replaced $(LD) with $(CC) all the way through source/Makefile. + Closes: #111036: ld shouldn't be used to link shlibs. + * s/\/bin\/mail/\/usr\/bin\/mail/ in smb.conf's man page (HTML and + sgml as well.) + Closes: #110963: smb.conf: mail should be /usr/bin/mail. + * Documented better smbclient's -W behavior. Patch from Steve + Langasek. + Closes: #53672: smbclient: -W flag is interpreted as domain, not + workgroup. + + -- Eloy A. Paris Tue, 4 Sep 2001 23:10:41 -0400 + +samba (2.2.1a-8) unstable; urgency=low + + * Set some reasonable default perms for the samba logdir (again, + thanks to vorlon :-) + Closes: #72529: insecure permissions on log files. + + -- Eloy A. Paris Sun, 26 Aug 2001 15:40:47 -0400 + +samba (2.2.1a-7) unstable; urgency=low + + * Another attempt at fixing #47493. Patch from Steve Langasek + . Let's keep our fingers crossed Steve! + + -- Eloy A. Paris Sun, 26 Aug 2001 13:37:06 -0400 + +samba (2.2.1a-6) unstable; urgency=low + + * Backed out fix to #47493 introduced in 2.2.1a-4 as it is causing + smbd to die with signal 11 under some unidentified situations. + Closes: #109774: Latest debian version breaks printer driver download. + Closes: #109946: not all files appear in samba-exported directories. + * Another patch from Steve Langasek. This one adds quotes around + printer names for print systems it's reasonable for Debian to + support. Together with the patch in #29957 (see changelog for + 2.2.1a-4), this should take care of the problems with multi-word + printer names in Samba. + + -- Eloy A. Paris Fri, 24 Aug 2001 21:12:27 -0400 + +samba (2.2.1a-5) unstable; urgency=low + + * Important changes that affect how Samba is built on Debian + machines are implemented in this release. All of this changes + were suggested by the energetic Steve Langasek , + and his arguments were so sound and reasonable that I decided + to implement them. Here's Steve's original changelog: + + * Fix up the build system to avoid needing to run configure + as root to answer questions we already know the answers to. + * In the process, make surprising progress towards being able to + cross-compile the samba packages. + + -- Eloy A. Paris Fri, 24 Aug 2001 01:08:06 -0400 + +samba (2.2.1a-4) unstable; urgency=low + + * Fixed typo in smbmount's mount page. + Closes: #109317: smbfs: mistype in smbmount manpage. + * Included symlink to smbspool to better support CUPS printing. + Closes: #109509: include symlink for cups samba support. + * Applied patch from Steve Langasek to + fix bug #29957. + Closes: #29957: samba strips trailing " from strings in smb.conf. + * First attempt at fixing #47493. Another patch from Steve "I want + a bug-free Samba" Langasek. + Closes: #47493: Samba doesn't handle ':' in dir names right. + + -- Eloy A. Paris Tue, 21 Aug 2001 23:26:38 -0400 + +samba (2.2.1a-3) unstable; urgency=low + + * Steve Langasek has been hard at work in + the last few days looking at the long list of open bugs filed + against the Samba packages. I don't know how to thank him. It's been + a pleasure working with Steve, and all the fixes, patches, etc. in + this release come from him. The bug list is greatly reduced thanks + to Steve's efforts. + * Steve's additions/modifications/patches/etc. are: + - New package that (libpam-smbpass) provides pam_smbpass. Before, this + was provided in another package but now the sources are part of + the Samba sources so we can start providing it from here. + Closes: #107043 - pam_smbpass now present in Samba source, + should be built from there + - Patch to source/smbd/service.c that allows admins to call + /bin/umount from the root postexec of a Samba share. + Closes: #40561 - samba pre/postexec commands do not work. + - Clear TMPDIR before starting smbd in /etc/init.d/samba. + Closes: #51295 - Problems with Samba and TMPDIR. + - Correction to documentation of "guest only". + Closes #38282 - "guest only" share still requires a password. + * Applied patch from Santiago Vila to convert + /usr/sbin/mksmbpasswd from a shell script into a real awk script. + Sorry it took so long, Santiago; I hadn't realized you even + provided a patch :-) + Closes: #77891 - mksmbpasswd could be a real awk script. + * Updated description of the smbfs and smbclient packages. Also have + each package recommend the other. + Closes: #108650: Should suggest or recommend smbfs. + + -- Eloy A. Paris Mon, 13 Aug 2001 22:21:55 -0400 + +samba (2.2.1a-2) unstable; urgency=low + + * Build-depends: depend on debhelper (>=2.0.103). + Closes: #105795: Build-Depends are wrong. + * Run samba's preinst and postinst scripts without -e so failed commands + do not abort installation. + Closes: #106384: postinstall crashes abnormally. (And really closes + #104471.) + + -- Eloy A. Paris Thu, 26 Jul 2001 00:30:37 -0400 + +samba (2.2.1a-1) unstable; urgency=low + + * New upstream version. + * Make sure samba's postinst script exits with a zero status. + Closes: #104471: Samba postinst problem. + + -- Eloy A. Paris Thu, 12 Jul 2001 21:55:21 -0400 + +samba (2.2.1-1) unstable; urgency=low + + * New upstream version. + Closes: #103339: config.guess and config.sub update required. + Closes: #98518: Samba 2.2 can't act as PDC for NT4/W2K due to + incompatibility with PAM. + Closes: #97447: nmbd crashes due to bugs in DAVE 2.5.2. + Closes: #95777: Samba 2.2 is unable to join or authenticate against + Samba 2.2 PDC domain. + Closes: #68842: samba should use PAM for password changing (I + haven't personally tried this one, but it's been + advertised this works.) + Closes: #102506: PAM account checking fails. + Closes: #102518: Complains about unknown paramter "obey pam + restrictions" + Closes: #94774: Build failure on PARISC machines. + * Moved away from /etc/cron.weekly/samba for log file rotation. + Now using logrotate. + Closes: #95548: typo in /etc/cron.weekly/samba. + Closes: #74951: nmbd does not rename its log file. + * Removed Debian-specific addtosmbpass.8 man page since this script + is not longer provided upstream. Users should use the smbpasswd + program instead. + * Updated sample /etc/samba/smb.conf to reflect the recent changes + affecting handling of PAM authentication. Also updated + /etc/pam.d/samba. + + -- Eloy A. Paris Wed, 11 Jul 2001 00:44:14 -0400 + +samba (2.2.0.final.a-1) unstable; urgency=high + + * New upstream version (contains security fix from DSA-065-1.) + Closes: #97241: samba 2.2.0 fails to process hostnames in + "hosts allow" config line. + * Removed Debian-specific addtosmbpass.8 man page since this script + is not longer provided upstream. Users should use the smbpasswd + program instead. + Closes: #98365: addtosmbpass is missing from 2.2.0.final-2. + * Updated sample /etc/samba/smb.conf to reflect the recent changes + affecting handling of PAM authentication. Also updated + /etc/pam.d/samba. + + -- Eloy A. Paris Sun, 24 Jun 2001 11:11:59 -0400 + +samba (2.2.0.final-2) unstable; urgency=low + + * Added libcupsys2-dev to Build-Depends. + * Samba depends now (again) on netbase so update-inetd is always + available for the Samba maintainer scripts. + Closes: #86063: Fails to uninstall if inetd is not installed. + * Updated source/config.{sub,guess} so ARM built doesn't fail. + Closes: #94480: config.sub out of date; can't build on arm. + Closes: #85801: config.sub/guess out of date. + * Not using brace expansion, i.e. {foo,bar} in any of the maintainers + scripts nor in debian/rules. + Closes: #88007: samba postrm has is not POSIX sh compliant. + + -- Eloy A. Paris Sat, 21 Apr 2001 17:27:18 -0400 + +samba (2.2.0.final-1) unstable; urgency=low + + * New upstream release. Lots of new things. See WHATSNEW.txt. + * Goofy version number because of my stupidity when assigning version + numbers to the CVS packages I have been uploading to experimental. + Will be fixed when 2.2.1 is released. I've no doubts a 2.2.1 release + will follow soon. + + -- Eloy A. Paris Tue, 17 Apr 2001 22:58:14 -0400 + +samba (2.2.0.cvs20010416-1) experimental; urgency=low + + * CVS update. + + -- Eloy A. Paris Mon, 16 Apr 2001 21:25:15 -0400 + +samba (2.2.0.cvs20010410-1) experimental; urgency=low + + * CVS update. + * Added libreadline4-dev to Build-Depends. + + -- Eloy A. Paris Tue, 10 Apr 2001 16:53:45 -0400 + +samba (2.2.0.cvs20010407-1) experimental; urgency=low + + * CVS update. Includes what is in 2.2.0alpha3. + + -- Eloy A. Paris Sat, 7 Apr 2001 16:00:33 -0400 + +samba (2.2.0.cvs20010316-1) experimental; urgency=low + + * Started working on Samba 2.2.0. Using the SAMBA_2_2_0 branch + from Samba CVS. + * Not compiling rpctorture as it has compile errors. Change in + debian/rules. + * Removed Linux kernel 2.0.x and smbfs compatibility baggage. Now + the smbfs does not support 2.0.x kernels; a kernel > 2.2.x is + needed to use smbfs. Updated debian/control, debian/rules and + README.Debian to reflect this change. + * Added to swat a versioned dependency on samba (so a user is forced to + install a new version of swat each time a new version of samba is + installed.) + + -- Eloy A. Paris Sun, 18 Mar 2001 14:21:14 -0500 + +samba (2.0.7-5) unstable; urgency=medium + + * Transition from suidmanager to dpkg-statoverride. + + -- Eloy A. Paris Thu, 18 Jan 2001 23:51:56 -0500 + +samba (2.0.7-4) unstable; urgency=medium + + * Applied Urban Widmark fixes to smbmount. Urban + is the maintainer of the smbfs in the kernel and of the userland + utilities. + * Links to HTML documents are correct now. + Closes: #69439: swat: Broken help file symlinks + Closes: #72615: samba-doc directory changed: removed htmldocs from path + Closes: #75847: swat: Wrong symlink + Closes: #66857: Wrong links to html documents. + Closes: #77912: misplaced documentation symlinks for swat + * Building Samba with CUPS support. For this I reverted the change to + source/configure.in that I did in 2.0.7-3 and re-ran autoconf. + Closes: #59038: samba: not compiled with cups support. + * Fix against previous known/unknown user time difference patch to swat + (make username / password lookups take the same time.) Remove CGI + logging code in Swat. + Closes: #76341 - Security holes in swat + * Updated Build-depends. + * Updated debian/copyright to refer to the correct location of the GPL. + * debian/rules: changed DESTDIR to `pwd`/debian/samba (was + `pwd`/debian/tmp.) + * debian/rules: added '--sourcedir=debian/samba' to dh_movefiles (for some + strange reason dh_installdirs is not creating debian/tmp/ so I needed + to tweak everything to install stuff in debian/samba rather than in + debian/tmp.) + * debian/control: changed section of samba-docs to 'doc' (was 'docs') + * Using relative symlinks in /usr/share/samba/swat/ (changed debian/rules + and source/scripts/installswat.sh.) + * Fixed (by tweaking debian/rules) + /usr/bin/{smbmnt,smbumount-2.*,smbmount-2.*} to be suid. + * Added "Provides: samba-client" to smbclient's section in control. + Closes: #71143: smbclient: Smbclient should provide samba-client. + * Fix for desired_access being zero in map_share_mode() (patch to + source/smbd/nttrans.c.) Thanks to Gary Wilson + for bringing this patch to my + attention. + * Hacked source/lib/util_sec.c so smbd works fine in both 2.0.x and + 2.2.x kernels even when the build is done in a system running + a 2.2.x kernel. + Closes: #78858: samba-common: samba2.0.7 needs kernel 2.2.x but + doesnt depend on it. + Closes: #72758: README.Debian should comment on 2.0.x kernels. + Closes: #56935: Samba 2.0.6 and Kernel 2.0.x. + Closes: #58126: Samba 2.0.6 and Kernel 2.0.x -- more info. + Closes: #60580: samba: failed to set gid. + Closes: #64280: Samba panics, can't set gid. + Closes: #66816: Must deal with brokenness under 2.0.x. + Closes: #67682: potatoe samba 2.0.7-3 out of order, 2.0.5a-1 OK. + Closes: #69735: PANIC: failed to set gid + Closes: #66122: "smbclient -L localhost -U%" returns with "tree + connect failed: code 0". + Closes: #57637: Samba says tree connect error. + Closes: #58015: potato samba wins support is broken. + * Fixed comments in sample smb.conf to point to the correct location. + Closes: #69578: comments in smb.conf points to wrong path. + * Move codepages from /etc/samba/codepages/ to + /usr/share/samba/codepages/. + Closes: #63813: samba; codepages should go in /usr/lib. + * Moved /var/samba/ to /var/state/samba/. + Closes: #49011: samba package not FHS compliant. + * Hacked source/configure.in (and re-ran autoconf) so yp_get_default_domain() + is found. + Closes: #44558: netgroup support missing in samba 2.0.5a-1. + * /etc/init.d/samba was calling start-stop-daemon with both --pidfile and + --exec. Got rid of --exec so --pidfile works. + + -- Eloy A. Paris Thu, 11 Jan 2001 00:15:57 -0500 + +samba (2.0.7-3) frozen unstable; urgency=high + + * Release manager: this closes a RC bug. + * Commented out the section in source/configure.in that auto-detects + CUPS support and then ran autoconf to generate a new configure + script. This was done to prevent machines that have libcupsys-dev + installed from detecting CUPS support and adding an unwanted + dependency on libcupsys. This way the whole printing system + won't break on upgrades. CUPS support should be added after + Potato is released. + Closes: #65185: samba-common: Upgrading removes printing system. + Closes: #64496: smbfs: smbfs on powerpc has a dependency on cupsys. + * Updated README.debian. + Closes: #64594: Old README.Debian in /usr/share/doc/samba. + + -- Eloy A. Paris Tue, 20 Jun 2000 19:16:04 -0400 + +samba (2.0.7-2) frozen unstable; urgency=high + + * Release manager: this closes RC bug #63839 that prevents Samba + to be built from source. + * Fixed a stupid typo in debian/rules that was preventing Samba + to be built from source. + Closes: #63839: samba_2.0.7-1(frozen): build error (SAMBABOOK dir) + * I forgot to mention that O'Reilly's book "Using Samba" was donated + to the Open Source community. The book was included in Samba 2.0.7 + in HTML format and is part of the Debian Samba package since + Samba 2.0.7-1. + * In Samba 2.0.7-1, the "Using Samba" book and a number of HTML help + files were supposed to be provided in both the swat and the samba-doc + packages. This duplication was a waste of space. Starting with + Samba 2.0.7-2, swat recommends samba-doc and the book and the HTML + files are included only in samba-doc, and are accessed via symlinks + from within swat. + Closes: #58810: superfluous files in swat? + * Added a 'echo "."' to /etc/init.d/samba in the reload) section. + Closes: #63394: "echo ." missing in reload section of init.d script + * Fixed typo in docs/htmldocs/using_samba/ch06_05.html. + Closes: #64344: typo "encrypted passwords" + * Cleaned up samba's postrm script so important common files aren't + deleted when samba is purged. Created a samba-common.postrm script. + Closes: #62675: purging samba removes /etc/samba/smb.conf. + Closes: #63386: samba --purge removes /etc/samba dir even though + smbclient/smbfs/samba-common packages are still installed + + -- Eloy A. Paris Wed, 3 May 2000 02:42:07 -0400 + +samba (2.0.7-1) frozen unstable; urgency=low + + * New upstream version. Dear Release Manager: please allow this + package to go to frozen as it contains fixes to a _lot_ of problems. + You can take a look at all the problems fixed by this release in + the official upstream announcement at + http://us1.samba.org/samba/whatsnew/samba-2.0.7.html. + * Added --with-utmp to add utmp support to smbd (this is new in Samba + 2.0.7) + * Closes: #62148 - samba not rotating filled logs. + * Closes: #56711: Samba doesn't manage well long share name (please note + that it's possible to connect to shares with names longer than + 14 characters but the share will be listed with a name truncated to + 13 characters.) + * Closes: #51752 - NT DOMAIN - NET USE * /HOME not mapping (error 67). + Closes: #50907 - logon path not working. + This is not a bug, it's just Samba doing the same thing an NT server + does. See WHATSNEW.txt and smb.conf's man page for details. + * Closes: #48497 - error executing smbsh in debian-potato. (smbwrapper + is not supported anymore.) + * Closes: #58994 swat: typo in swat description. + * Closes: #45931 - Samba dies with SIGILL on startup. (Hardware + problems, person that reported the bug never came back.) + Closes: #54398 - smbadduser fails, looks for ypcat. + * Fixed swat's man page to include Debian specific installation + instructions. There's not necessary to edit /etc/services or + /etc/inetd.conf. + (Closes: #58616 - incomplete install config && incorrect installation + instructions.) + * s/SBINDIR/\"/usr/sbin\"/g in source/web/startstop.c to prevent swat + to look for smbd and nmbd in the wrong place when requested to start or + stop smbd or nmbd. + (Closes: #55028 - swat can't start samba servers.) + * Closes: #37274: smbclient does not honour pot. (Tested and seems to be + working now.) + * Not confirmed, but should fix #56699, #62185, #56247, #52218, #43492, + #50479, #39818, #54383, #59411. + (please re-open any of this if the problem still exists - I was unable + to confirm any of this because I could never reproduce them.) + Closes: #56699 - Samba's nmbd causes random kernel oops several + times in a row. + Closes: #62185 - nmbd's forking until no more file descriptors are + available. + Closes: #56247 - session setup failed: ERRSRV - ERRbadpw. + Closes: #52218 - Either wins proxy does not work, or I don't understand + it. + Closes: #43492 - intermittent problem changing password. + Closes: #50479 - Can't access windows 2000 shares with samba. + Closes: #39818 - samba-common: Upgrading Samba from the Slink version. + Closes: #54383 - samba-common: Missing /etc/smb.conf. + Closes: #59411 - smbclient: cannot browse Win2k shares. + + -- Eloy A. Paris Thu, 27 Apr 2000 16:07:45 -0400 + +samba (2.0.6-5) frozen unstable; urgency=low + + * Oppsss! samba-common doesn't depend on libcupsys1 so the binaries + in this package are broken unless libcupsys1 is installed. + samba-common has a "grave" bug because of this. Instead of adding + libcupsys1 to the Depends: list of each package in debian/control + I investigated why dh_shlibs was not picking the dependency + automatically. It turns out that it's probably a bug in libcupsys1 + because the format of its shlibs file is not correct. I fixed that + file (/var/lib/dpkg/info/libcupsys1.shlibs) and now dependencies are + picked correctly. I'll talk to the libcupsys1 maintainer. + + I think the addition of CUPS support to Samba is a big change that + should not go into Frozen. So, I decided to back up the addition + of CUPS support I did in 2.0.6-4 to minimize problems. I'll add + CUPS support again when I start working on Samba for Woody. + (Closes: #59337 - samba-common has a missing dependency) + + -- Eloy A. Paris Wed, 1 Mar 2000 08:40:02 -0500 + +samba (2.0.6-4) frozen unstable; urgency=low + + * It seems that sometimes nmbd or smbd are not killed when upgrading. + I think it is because in samba's prerm script I was calling + start-stop-daemon with the --pidfile switch and in old versions of + Samba the nmbd and smbd daemons did not store their PIDs in a file in + /var/samba/. I changed debian/samba.prerm so the existence of the + PID files is checked before calling "start-stop-daemon --pidfile ..." + If the PID files do not exist then start-stop-daemon is called + without the --pidfile parameter. + (Closes: #58058 - upgrade from slink went badly) + * Fixed typo in description of swat package in debian/control. + * Installed libcupsys1-dev so the configure script picks up CUPS + and Samba is compiled with CUPS support. Also added libcupsys1 to + the Depends: list of package samba in debian/control. + (Closes: #59038 - samba not compiled with cups support) + * Added a small paragraph to debian/README.debian warning about possible + problems with the WINS code in Samba 2.0.6. + + -- Eloy A. Paris Mon, 28 Feb 2000 14:00:42 -0500 + +samba (2.0.6-3) frozen unstable; urgency=low + + * Applied patch posted by Jeremy Allison to the samba mailing list + that should take care of the internal errors reported in bug #52698 + (release-critical). Wichert: please test as I never could reproduce + it here. + (Closes: #52698 - samba gets interbal errors) + * Moved samba-docs to the 'docs' section. + (Closes: #51077 - samba-doc: wrong section) + * Added reload capability to /etc/init.d/samba (only for smbd because + nmbd does not support reloading after receiving a signal). + (Closes: #50954 - patch to add reload support to /etc/init.d/samba) + * Corrected "passwd chat" parameter in sample /etc/samba/smb.conf so + Unix password syncronization works with the passwd program currently + in Potato. Thanks to Augustin Luton for + the correct chat script. + * Stole source/lib/util_sec.c from the CVS tree of what will become + Samba 2.0.7 or whatever so we can use the same binaries under + both 2.0.x and 2.2.x kernels. + (Closes: #51331 - PANIC: failed to set gid) + * smbadduser is now provided as an example and it's customized for Debian. + I am not providing this script in /usr/sbin/ because then I would need + a dependency on csh, something that I don't want to do. + (Closes: #51697, #54052) + * Fixed the short description of the smbfs package in debian/control. + (Closes: 53534 - one-line description out of date). + + -- Eloy A. Paris Tue, 23 Nov 1999 16:32:12 -0500 + +samba (2.0.6-2) unstable; urgency=low + + * samba-common now depends on libpam-modules (not on libpam-pwdb, which + I have been told is obsolete). I modified /etc/pam.d/samba accordingly + to reflect the change. + (Closes: Bug#50722: pam pwdb dependence?). + * The old /etc/pam.d/samba file which had references to pam_pwdb caused + smbd to die with a signal 11. The new /etc/pam.d/samba file fixes + this problem. + (Closes: #50876, #50838, #50698) + * Compiled with syslog support (use at your own risk: syslog support + is still experimental in Samba). I added the parameters "syslog = 0" + and "syslog only = no" to the sample smb.conf to avoid pestering + users that do not want Samba to log through syslog. + (Closes: Bug#50703 - syslog only option doesn't work) + * Removed the stupid code in the smbmount wrapper script that tries + to load the smbfs module if smbfs is not listed in /proc/filesystems. + (Closes: Bug#50759 - Non-root can't run smbmount if SMBFS is compiled + as a module in the kernel) + * Added /bin/mount.smb as a symlink pointing to /usr/bin/smbmount so + 'mount -t smb ...' works just as 'mount -t smbfs ...'. + (Closes: Bug#50763 - 'mount -t smb' doesn't work) + + -- Eloy A. Paris Sat, 20 Nov 1999 18:53:35 -0500 + +samba (2.0.6-1) unstable; urgency=low + + * Samba 2.0.6 has been released. This is the first try of the Debian + Samba packages. I know for sure that smbd won't work properly on + 2.0.x kernels because the patch that Wichert sent me does not apply + to the new source/lib/util_sec.c in Samba 2.0.6. That file was + completely re-written by Tridge. + * Updated README.Debian. + * A new client utility called smbspool appeared in Samba 2.0.6. I added + this utility to the smbclient package, although I haven't tried it yet. + * Added the symlink /sbin/mount.smbfs that points to /usr/bin/smbmount. + This is to be able to type "mouont -t smbfs ...". This symlink goes + in the smbfs package, of course. + * This new release should close the following bugs (some of these + are fixed for sure in this new upstream release, some others I could + not reproduce but I believe they are fixed if they were real bugs. + As always, please feel free to re-open the bugs if the problem is not + solved). + Closes: Bug#33240: icmp mask needs a bug workaround. + Closes: Bug#37692: samba: Has problems detecting interfaces. + Closes: Bug#38988: samba: Truly bizzare behavour from nmbd. + Closes: Bug#46432: samba-2.0.5a-2: nmbd does not appear to broadcast + properly. + Closes: Bug#44131: smbfs: no longer possible to set file and + directory-modes. + Closes: Bug#46992: smbmount-2.2.x manpage wrong. + Closes: Bug#42335: smbfs: missing options from the new 2.2.x commandline. + Closes: Bug#46605: smbmnt segfaults. + Closes: Bug#48186: smbmount. + Closes: Bug#38040: smbfs: Please add /sbin/mount.smb [included]. + Closes: Bug#47332: smbmount: could -f and -P be added back? + * Samba has been compiled with PAM support (closes: Bug#39512 - samba PAM + module). To succesfully add PAM support, I created /etc/pam.d/samba and + added this file as a conffile for the samba-common package. I also made + samba-common depend on libpam-pwdb. + * Added simple man pages for the wrapper scripts smbmount and smbmount. + (Closes: Bug#44705 - Missing smbmount man page) + * Installed libreadlineg2-dev in my system so smbclient now has a + "history" command and libreadline support :-) + * This time I did add a check to the smbmount wrapper script to see if + the kernel has support for smbfs, as suggested by Jeroen Schaap + . I mentioned in the changelog + for samba-2.0.5a-3 that I did this but I forgot at the end. + + -- Eloy A. Paris Thu, 11 Nov 1999 12:08:15 -0500 + +samba (2.0.5a-5) unstable; urgency=low + + * I am sorry to report that the smbwrapper package is gone for the + moment. The reason for this is twofold: first of all, smbwrapper + is completely broken in Samba-2.0.5a (it compiles but it doesn't + run) and in the upcoming Samba-2.0.6 it doesn't even compile. Second, + when I asked Andrew Tridgell (father of Samba) about the state of + smbwrapper he told me that Ulrich Drepper (head of the glibc project) + broke on purpose the glibc stuff in which smbwrapper is based. + Consequently, Tridge recommended me to compile Samba without + support for smbwrapper. When, I have no idea. Sorry folks. Here is + the original message I received from Andrew: + + > 1) 2.0.5a's smbwrapper doesn't work under glibc2.1, and pre-2.0.6's + > smbwrapper doesn't even compile under glibc2.1. + + yep, Ulrich deliberately broke it. It won't get fixed till glibc + allows the sorts of games it plays to work again. I suggest you turn + it off in your build scripts until that gets sorted out. + + * Swat's file are now in /usr/share/samba/ instead of + /usr/lib/samba/ (bug #49011). + * Man pages now in /usr/share/man/ instead of /usr/man/ (bug #49011). + + -- Eloy A. Paris Tue, 2 Nov 1999 12:59:13 -0500 + +samba (2.0.5a-4) unstable; urgency=low + + * Applied patch from our fearless leader (Wichert) to fix the darn bug + that prevents Samba to work on 2.0.x kernels if it was compiled + in a system running a 2.2.x kernel. This closes #40645 (build uses + setresuid which doesn't work under 2.0.34 (does apparently under + 2.2.x) ). + * Fixed the entry that swat's postinst script adds to /etc/inetd.conf + so it is '## swat\t\tstream\ttcp\tnowait.400 ...' instead of + '##swat\t\tstream\ttcp\tnowait.400 ...'. The old way caused + 'update-inetd --enable swat' to leave the entry for swat disabled. + Thanks to Dave Burchell for finding out + this problem. This closes #48762 (swat uses non-standard syntax to + comment out inetd.conf entry). + * /usr/sbin/swat does not think anymore that the smbd daemon lives + in /usr/local/samba/bin/. To fix this I am running now source/configure + with "--prefix=/usr --exec-prefix=/usr". This closes #47716 (samba + 'swat' fails: incorrect hardwired path in the binary). + + -- Eloy A. Paris Sun, 31 Oct 1999 03:42:38 -0500 + +samba (2.0.5a-3) unstable; urgency=low + + * I am pretty darn busy with my MBA, I apologize for the long time it's + taking to squash bugs in the Samba packages. + * Built with debhelper v2 for FHS compliancy. Changed a couple of + things in debian/rules to accomodate for the new place for the docs. + I also had to change debian/{samba.postinst,samba.prerm,swat.postinst} + to make sure that the symlink from /usr/doc/xxx exists and points to + /usr/share/doc/xxx (the reason for this is that I am not letting + debhelper to create these scripts for me automatically). + * Built with latest libc6. + * smbfs: finally, the nasty bug that causes smbmount to die after + a while is gone thanks to Ben Tilly . + The problem was just a typo in source/client/smbmount.c. + This closes grave bug #42764 (smbmount dies) and #43341 + (smbfs-2.2.x won't function after a while). + * Fixed the smbmount wrapper script to eliminate a bashism (closes + #45202 - "wrapper scripts use $* instead of "$@") and to recognize + 2.3.x and 2.4.x kernels (closes #47688 - "smbfs: does not recognize + kernel 2.3.x"). + * Added a check to the smbmount wrapper script to see if the + kernel has support for smbfs, as suggested by Jeroen Schaap + . + * swat's man page is now part of the swat package, not of the samba + package. This closes #44808 (Samba has a man page for swat, but + the binary is not included). + * The interface program smbrun is not longer needed by smbd because + of the availability of execl() under Linux. Because of this, the + smbrun is not even being compiled. Since there is no need for smbrun + now, the smbrun man page was taken out of the samba package. This + closes #45266 (/usr/bin/smbrun missing). + * smbpasswd is now part of the samba-common package, and not part of + the samba package. This is to let administrators that do not want + to install a full Samba server administer passwords in remote + machines. This closes bug #42624 (smbpasswd should be included in + smbclient). This bug report also suggests that swat becomes part of + the samba package, that smbfs becomes part of the smbclient package, + and that the binary smbpasswd becomes part of the smbclient package. + I moved smbpasswd to the samba-common package but I am reluctant to + do the other things the bug report suggests. + * In order to keep dpkg happy when moving smbpasswd from the samba + package to samba-common, I had to add a "Replaces: samba (<= 2.0.5a-2)" + in the control section of the samba-common package and a + "Replaces: samba-common (<= 2.0.5a-2)" in the control section of the + samba package (in debian.control). + * Samba is now being compiled with the "--with-netatalk" option. This + closes #47480 (Could samba be compiled with the --with-netatalk option). + * All packages that depend on samba-common have a versioned dependency + now. This was accomplished by adding "(= ${Source-Version})" to the + relevant sections of debian/control. Thanks t Antti-Juhani Kaijanaho + for the hint. This closes #42985 (samba should probably + have a versioned depends on samba-common). + * Made sure the file docs/textdocs/DIAGNOSIS.txt gets installed in all + the Samba packages. This closes bug #42049 (no DIAGNOSTICS.txt file). + * Added the smbadduser helper script to the samba package. This closes + #44480 (Samba doesn't come with the smbadduser program). + * Applied patch from szasz@triton.sch.bme.hu that prevents smbmount + to leave an entry in /etc/mtab for a share that could not be mounted + because of invalid user of password. The patch also allows smbumount + to unmount the share in the event that something goes wrong with the + smbmount process. This closes bug #48613 (Mount/umount problems + + patch) as well as #44130 (failed mount is still mounted). + * smbmount-2.2.x is now setuid root. This is needed for the patch + applied above to be effective. If smbmount-2.2.x is not setuid root + then an entry will be left in /etc/mtab even when the mount + fails. I had to add "usr/bin/smbmount-2.2.x" to debian/smbfs.suid + for this to work. + + -- Eloy A. Paris Wed, 27 Oct 1999 10:36:13 -0400 + +samba (2.0.5a-2) unstable; urgency=low + + * This version is basically the same as 2.0.5a-1 but it was compiled + on a Potato system with glibc2.1. See below the change log for 2.0.5a-1 + for more information. + + -- Eloy A. Paris Tue, 27 Jul 1999 02:25:29 -0400 + +samba (2.0.5a-1) stable; urgency=high + + * I'm back from the Honey Moon. We are pretty busy because we are moving + to Pittsburgh (from Caracas, Venezuela) in aprox. 24 hours and we still + have plenty of things to pack and to do. Samba 2.0.5 was released + while I was in the Honey Moon and it is just now (almost 3 AM) when + I have time to package it. + * Because of the security problems fixed in 2.0.5, this upload goes + to both stable and unstable (the Security Team asked for this). + * This release (2.0.5a-1) was compiled on a Slink system. 2.0.5a-2 will + be compiled on a Potato system. + * Added a "Replaces: samba (<= 1.9.18p10-7)" to the samba-common + section in debian/control (as suggested by Steve Haslam + ) to fix the problems that appear when upgrading + from the Samba package in Slink. Please test this as I am completely + unable to do so. This should fix bug #39818 (Upgrading Samba from the + Slink version). + * Removed the hacks to the autoconf stuff that I added to 2.0.4b-2 in + order to have defined several socket options when compiling with + Linux 2.2.x kernel headers - the fix is now upstream. + * Finally!!! smbmount was re-written (thanks Tridge :-) to use a command + line syntax similar to the one used by the old smbmount (for 2.0.x + kernels). This means that the wrapper script is no longer necessary + so I removed it. In its place there is a simple wrapper script that + calls smbmount-2.0.x or smbmount-2.2.x depending on the kernel that is + running. + * Because of the wedding, the Honey Moon, and our move to Pittsburgh, + I can't work on fixing other bugs in this release. + + -- Eloy A. Paris Tue, 27 Jul 1999 02:18:51 -0400 + +samba (2.0.4b-3) unstable; urgency=low + + * Stupid mistake: I forgot to add /usr/bin/smbumount to debian/smbfs.files + and because of this /usr/bin/smbumount was part of the samba package + instead of part of the smbfs package. + + -- Eloy A. Paris Thu, 1 Jul 1999 01:51:24 -0400 + +samba (2.0.4b-2) unstable; urgency=low + + * Dark (and archive maintainers): please remove from Potato the smbfsx + binary package and also the old source package for smbfs. smbfs and + smbfsx have been merged starting with this version. + * Merged the old smbfs package with Samba. Now there is only one package + for the smbfs utilities and is called "smbfs". The package smbfsx + does not exist any more and this new smbfs package must be used + for both 2.0.x and > 2.1.x kernels. + * A wrapper script was added to handle the syntax change in smbmount + in the new smbfs utilities (required for kernels > 2.1.70). The + home page for this script is http://www.wittsend.com/mhw/smbmount.html. + Please _note_ that this will change (for good) in Samba 2.0.5 :-) + * Added debian/smbumount.sh. It's another wrapper that calls smbumount-2.2.x + or smbumount-2.0.x depending on the kernel currently running. + * Not using -t for savelog in cron.weekly script. + * Recompiled without libreadlineg-dev (Samba does not seem to be using + it so unnecessary dependencies are produced). + * glibc2.1 build. + * Removed smbpasswd.8 man page from the debian/ directory because it is + now being provided upstream. + * Got rid of the ugly hack I put in source/lib/util_sock.c to have + IPTOS_LOWDELAY and IPTOS_THROUGHPUT defined. Now I patched the + autoconf stuff to #include . I've sent the patch to + Jeremy Allison so we have this upstream. + + -- Eloy A. Paris Mon, 28 Jun 1999 17:47:19 -0400 + +samba (2.0.4b-1) unstable; urgency=low + + * New upstream release. This release fixes the following Debian bugs: + #33838 (Amanda/ Samba 2.0.2 and backing up large filesystems) and + #33867 (Amanda 2.4.1 and Samba 2.0.2 and large filesystems). Jeremy + Allison released Samba 2.0.4 and found out that there were a couple + of minor bugs so he released 2.0.4a. Then he found out about more + serious bugs and released 2.0.4b. I have built this package several + times between yesterday and today because of this. Now I am releasing + the Debian packages for Samba with what I believe will be the latest + release the Samba Team will make at least in the next 4 days (Jeremy + is taking a short vacation). + * Still compiling against glibc2.0 (sorry about that :-) + * Hacked source/smbwrapper/smbsh.c to fix the problem + of smbsh not finding the shared library smbwrapper.so. It looks + now in /usr/lib/samba/ for this file. This fixes #32971, #32989, + #33278, #34911 and #36317. + * Made smbfsx depend on samba-common because smbfsx uses /etc/samba/smb.conf + and /etc/samba/codepages/. This fixes #33128 (smbmount complains about + missing /etc/smb.conf). + * Package swat does not depend on httpd anymore (there's no need to). + This fixes #35795 (swat requires httpd). + * Renamed smbmount-2.1.x and smbumount-2.1.x to smbmount-2.2.x and + smbumount-2.2.x. Same applies to the man pages. + * Changed minor type in smbmount's man page (changed "\"" by "\'"). This + fixes #34070 (wrong quotes in manpage). + * Used Fabrizio Polacco's procedure to create the + Debian package for Samba. This closes #35781 (samba has no pristine + source). + * Changes to /etc/cron.weely/samba: rotate /var/log/{nmb,smb}.old only + if the size of either is different than 0. Also, added comments at the + beginning of this script to explain how rotation of log files works in + Samba. Thanks to ujr@physik.phy.tu-dresden.de (Ulf Jaenicke-Roessler) + for the suggestions. This closes #37490 (cron.weekly script rotates not + used [sn]mb.old files). As I side effect, this should also close + #31462 (still trouble with /etc/cron.weekly/samba). + * Check for old /etc/pam.d/samba file which is not provided by this version + of the Debian Samba package but was provided in older versions. If this + file exists we delete it. We check for this in the postinst. This closes + #37356 (samba put stuff in pam.d that pam complains about) and #34312 + (libpam0g: questions during upgrade). + * Make sure the mode of /etc/samba/smbpasswd is set to 600. This is done + in the postinst script. This closes #35730 (Security problem with + /etc/samba/smbpasswd when upgrading from samba 1.9.18p8-2 to 2.0.3-1). + * I have just checked and it looks like #28748 (smbfsx doesn't "return ") + has been fixed. This might have been fixed since a long time ago. + * Long long standing bug #18488 (smbclient: internal tar is broken) is + closed in this release of Samba. The bug might have been closed for a + long long time, but I did not check for this before. + * Temporary fix to the annoying "Unknown socket option IPTOS_LOWDELAY" + message. This fixes #33698 (socket option IPTOS_LOWDELAY no longer works), + #34148 (warnings from smbd) and #35333 (samba warnings). + + -- Eloy A. Paris Thu, 20 May 1999 00:35:57 -0400 + +samba (2.0.3-1) unstable; urgency=low + + * New upstream version. + * Removed the convert_smbpasswd.pl program I created and put in + /usr/doc/samba/ because there's a convert_smbpasswd script in the + upstream sources that does the same thing. I modified the postinst + script to use this script instead of the one I created. + + -- Eloy A. Paris Sun, 28 Feb 1999 01:35:37 -0400 + +samba (2.0.2-2) unstable; urgency=low + + * Updated the README.Debian file. + * Updated the description of the samba package in the control file. + * The binaries smbmnt and smbumount-2.1.x in the smbfsx package are now + installed setuid root as they should be. This was done by doing a + a "chmod u+s" for each binary in debian/rules and by creating the + file debian/smbfsx.suid. + * Minor patch to source/client/smbumount.c to allow normal users + to umount what they have mounted (problem was a kernel vs. libc6 + size mismatch). I sent the patch upstream. + * Created debian/smbwrapper.dirs so the directory /usr/lib/samba/ is + created. + * Modified debian/rules to move smbwrapper.so from debian/tmp/usr/bin/ to + debian/smbwrapper/usr/lib/samba/. + * Hacked source/smbwrapper/smbsh.c to fix the problem + of smbsh not finding the shared library smbwrapper.so. + + -- Eloy A. Paris Thu, 11 Feb 1999 18:11:34 -0400 + +samba (2.0.2-1) unstable; urgency=low + + * New upstream version. + + -- Eloy A. Paris Thu, 11 Feb 1999 01:35:51 -0400 + +samba (2.0.1-1) unstable; urgency=low + + * New upstream version. + + -- Eloy A. Paris Sat, 6 Feb 1999 06:51:18 -0400 + +samba (2.0.0final-4) unstable; urgency=low + + * The samba postinst made an unwarranted assumption that the file + /etc/samba/smbpasswd exists. If the file did not exist (which is + perfectly valid) the postinst will fail. This fixes #32953. + + -- Eloy A. Paris Fri, 5 Feb 1999 23:32:46 -0400 + +samba (2.0.0final-3) unstable; urgency=low + + * Added to debian/control a "Depends: ${shlibs:Depends}" line for the + samba-common package so dependencies for this package are set + correctly (thanks to Dark for pointing this out). + + -- Eloy A. Paris Thu, 4 Feb 1999 09:45:21 -0400 + +samba (2.0.0final-2) unstable; urgency=low + + * Finally!!! The first upload to unstable. Sorry for the delay folks + but I have been quite busy lately :-) Another reason for the delay + is that I wanted to ease the migration from Samba 1.9.18p10 and + before to Samba 2.0.0. I changed the location of the config. files + from /etc/ to /etc/samba/ and this made things a little bit harder. + * This package needs 2.2 kernel headers to compile (well, this is + true for the smbfsx package, all others compile fine with 2.0 kernel + headers). + * Created a preinst script for the samba package to take care of the + location migration of smb.conf (from /etc/ to /etc/samba/). The + preinst script also takes care of moving /etc/smbpasswd to its new + location (/etc/samba/). + * Created postinst and postrm scripts to add/remove an entry for swat + in /etc/inetd.conf. + * I had forgotten to install the sambaconfig script so I changed + debian/rules to install this script. + * Added a postrm script for the samba package (I had forgotten to add + this script to the new Samba packages after the migration from 1.9.18 + to 2.0.0). + * Created a small Perl script that is called from the samba postinst + to convert the smbpasswd from the old format used in version prior + to 2.0.0 to the new one used in 2.0.0 and beyond. + * The upgrade process should be automatically now. Please let me know + of any problems you encounter. + + -- Eloy A. Paris Sat, 23 Jan 1999 09:34:10 -0400 + +samba (2.0.0final-1) experimental; urgency=low + + * Finally!!! Samba 2.0.0 is here! I am not uploading to unstable + because I still have to work out the migration from the old + samba packages to the new ones. I also need to work more on the + new swat package. + + -- Eloy A. Paris Thu, 14 Jan 1999 22:40:02 -0400 + +samba (2.0.0beta5-1) experimental; urgency=low + + * New upstream version. + + -- Eloy A. Paris Tue, 5 Jan 1999 00:37:57 -0400 + +samba (2.0.0beta4-1) experimental; urgency=low + + * New upstream version. + + -- Eloy A. Paris Wed, 23 Dec 1998 18:37:45 -0400 + +samba (2.0.0beta3-1) experimental; urgency=low + + * New upstream version. + * I have just realized that the documentation patches (for man pages) + that I used for the 1.9.18 release are not longer necessary because + there was a major re-write of all the Samba documentation that added + the missing bits of information. So, I have just removed these minor + patches. + + -- Eloy A. Paris Tue, 8 Dec 1998 12:00:30 -0400 + +samba (2.0.0beta2-1) experimental; urgency=low + + * New upstream version. + * This new version fixes the potential security problem that + was posted to debian-private (using the "message command" parameter + to execute arbitrary commands from messages sent from LinPopUp). + * Changed /etc/init.d/samba to use one of the variables stored in + /etc/samba/debian_config to know how Samba is being run (from inetd or + as daemons) instead of grepping /etc/inetd.conf which may not exist + if the user is running xinetd (this fixes bug #29687 - assumes using + vanilla inetd) + + -- Eloy A. Paris Mon, 23 Nov 1998 23:32:03 -0400 + +samba (2.0.0beta1-1) experimental; urgency=low + + * First beta release of the samba-2.0.0 code. Before the beta I was + working with sources downloaded directly from the CVS server. This + package goes into experimental and I plan to release the new + samba to unstable as soon as it gets out of beta. + * Created several packages out of the Samba sources. They are: + samba (nmbd and smbd daemons + related programs), smbclient (FTP + like command line utility to retrieve files from SMB servers), + swat (Samba Web Administration Tool), samba-common (common files + used by samba, smbclient and swat), smbfsx (smbfs utilities for + kernels >= 2.1.70), smbwrapper and samba-doc (Samba documentation). + * Refreshed debian/samba-doc.docs so recently added docs. are + installed in the samba-doc package. New additions include man + pages in the /usr/doc/samba-doc/htmldocs/ directory. + * Deleted Debian specific nmblookup(1) man page as it is now upstream. + * Added smbtorture to smbclient package. + * Moved rpcclient from the samba package to the smbclient package. + * The Samba daemons (nmbd and smbd) now create a PID file so I changed + all calls to start-stop-daemon to use the PID file. + * Fixed debian/rules to install mksmbpasswd (fixes #27655). + * Modified /etc/init.d/samba so nmbd is started without the -a (append + to the log file instead of overwrite) switch. The new behavior of + nmbd is to NOT overwrite log files, so the -a switch can be deleted + safely. + * Moved from debstd to debhelper. + + -- Eloy A. Paris Thu, 1 Oct 1998 08:37:41 -0400 + +samba (1.9.18p10-5) frozen unstable; urgency=high + + * Oppsss!!! While fixing bug #26884 I introduced a bug even worse than + the one I was trying to fix: in /etc/init.d/samba I got rid of the test + that tells us whether the Samba daemons are running from inetd or as + standalone daemons. I corrected the problem by editing again + /etc/init.d/samba to uncomment the test. + * Wishlist bug #28298 (typos in samba) was fixed. + * Wishlist bug #28309 (typos in smb.conf) was fixed. + + -- Eloy A. Paris Wed, 28 Oct 1998 09:11:47 -0400 + +samba (1.9.18p10-4) unstable; urgency=low + + * Minor patch to debian/rules to delete *substvars instead of only + substvars when doing a "debian/rules clean" (thanks to Daniel Jacobowitz + for this). + * Small patch to source/shmem_sysv.c that eases compilation under + glibc-2.1 (thanks to Daniel for this). + + -- Eloy A. Paris Thu, 17 Sep 1998 15:33:49 -0400 + +samba (1.9.18p10-3) unstable; urgency=low + + * Patched smbclient again to fix minor formatting problem introduced + by Magosanyi Arpad's smbclient patch. + + -- Eloy A. Paris Thu, 3 Sep 1998 11:03:23 -0400 + +samba (1.9.18p10-2) unstable; urgency=low + + * Sync'ed include files for the smbfs utilities with the ones in + kernel 2.1.119. + * Added to the /usr/doc/samba/examples/ directory a new script called + wins2dns (courtesy of Jason Gunthorpe ) that + generates BIND sonze files for hosts in the WINS database. + * Patched smbclient to include enhancements by Magosanyi Arpad + that make scripting easier. + + -- Eloy A. Paris Fri, 28 Aug 1998 13:34:54 -0400 + +samba (1.9.18p10-1) stable unstable; urgency=low + + * New upstream version (see /usr/doc/samba/WHATSNEW.txt for a + description of what has changed). I built a 1.9.18p9-1 but I + never released it because an obscure bug was found just a couple + of days before the official release, so the Samba Team stopped + the rollover of 1.9.18p9. + * Updated documentation (new files were added to the docs/ directory + that were not installed in /usr/doc/samba/). + * Fixed long standing bug #7695 (smb.conf's man page doesn't document + 'printing=lprng') - I made a couple of changes to the man page to + include references to lprng. + * Fixes bug #24930 (samba needs to suggest psmisc?). I don't think it + is necessary to make samba suggest psmisc just because the postinst + script mentions to call killall. So, I removed all references to + "killall" in the scripts. + * Fixes bug #25999 (Samba does not by default work with unix password + sync): I added the "passwd program" and "passwd chat" parameters to + the sample smb.conf to reflect the Debian environment. + + -- Eloy A. Paris Fri, 21 Aug 1998 08:59:18 -0400 + +samba (1.9.18p9-1) unstable; urgency=low + + * New upstream version (see /usr/doc/samba/WHATSNEW.txt for a + description of what has changed). + * Removed Jeremy Allison's patch applied to 1.9.18p8-2 because it is + now part of the new upstream version. + * Corrected small typo in addtosmbpass' man page (fixes #25629). + + -- Eloy A. Paris Tue, 11 Aug 1998 08:53:08 -0400 + +samba (1.9.18p8-2) frozen unstable; urgency=medium + + * Applied patch received from Jeremy Allison (Samba Team) that fixes + "grave" bug #23903 (samba maps username before authenicating with + NT password server). + * Added a "sleep 2" between "start-stop-daemon --stop" and + "start-stop-daemon --start" in /etc/init.d/samba so when this script + is called with the "restart" parameter the Samba daemons are restarted + properly. This fixes bug #24211 (init.d script doesn't restart). + * Sent start-stop-daemon output in /etc/init.d/samba to /dev/null to + avoid annoying warning messages. + * Added perfomance tune parameters to sample /etc/smb.conf (SO_SNDBUF=4096 + and SO_RCVBUF=4096 to "socket options" in /etc/smb.conf). I can't + find who sent this suggestion to me. If you are listening, drop me a + note and I'll put your name here :-) + + -- Eloy A. Paris Mon, 29 Jun 1998 08:45:01 -0400 + +samba (1.9.18p8-1) frozen unstable; urgency=low + + * New upstream release that fixes _lots_ of "ugly" bugs. The list of + fixed bugs is too long to include here (see /usr/doc/samba/WHATSNEW.txt). + * Fixed postinst to quote arguments to if [ arg .. ] constructs + (fixes #22881). + * Applied Jeremy Allison's patch (posted to the samba-ntdom mailing + list) that solves a problem with username maps (the Samba Team did + not catch this problem before final 1.9.18p8). + * Made /etc/init.d/samba to print out a warning when Samba is running + from inetd and the user runs /etc/init.d/samba to start|stop|restart + Samba (there's no point on doing this because inetd will start the + daemons again when there is traffic on UDP port 137-139). + + -- Eloy A. Paris Sat, 13 Jun 1998 00:18:25 -0400 + +samba (1.9.18p7-4) frozen unstable; urgency=medium + + * Fixes the serious problem of having the WINS name server + database getting deleted at boot time. That happened because the + WINS database was being stored under /var/lock/samba/ and all files + under /var/lock/ are deleted at boot time. The place where the WINS + database is stored was moved to /var/samba/. + + -- Eloy A. Paris Mon, 18 May 1998 20:24:29 -0400 + +samba (1.9.18p7-3) stable; urgency=high + + * Libc5 version for Bo (stable) that fixes the recently reported + security hole. + + -- Eloy A. Paris Mon, 18 May 1998 20:19:33 -0400 + +samba (1.9.18p7-2) frozen unstable; urgency=low + + * Added patches from the non-mantainer upload that make us able + to compile Samba on Alpha systems. This fixes bug #22379. + + -- Eloy A. Paris Wed, 13 May 1998 20:38:51 -0400 + +samba (1.9.18p7-1) frozen unstable; urgency=low + + * New upstream release (just bug fixes, no new functionality). + + -- Eloy A. Paris Wed, 13 May 1998 11:47:32 -0400 + +samba (1.9.18p6-2) frozen unstable; urgency=low + + * Uploaded to frozen (I forgot to upload last version to frozen + so it got installed only in unstable). + + -- Eloy A. Paris Tue, 12 May 1998 18:10:17 -0400 + +samba (1.9.18p6-1.1) unstable; urgency=low + + * non-maintainer upload for Alpha + * patch needed for source/quota.c (_syscall4() confusion) + + -- Paul Slootman Tue, 12 May 1998 20:39:13 +0200 + +samba (1.9.18p6-1) unstable; urgency=low + + * New upstream release that fixes a possible buffer overflow. + This security hole was reported on BugTraq by Drago. The + previous Debian version (1.9.18p5-1) was not released because + 1.9.18p5 and 1.9.18p6 were released very closely. + + -- Eloy A. Paris Mon, 11 May 1998 20:28:33 -0400 + +samba (1.9.18p5-1) unstable; urgency=low + + * New upstream release (no new funcionality, just bug fixes - see + /usr/doc/samba/WHATSNEW.txt.gz). + * Backed off Debian patches that were added upstream. + + -- Eloy A. Paris Mon, 11 May 1998 08:43:53 -0400 + +samba (1.9.18p4-2) frozen unstable; urgency=low + + * Patched smbclient(1) man page to not reference the unsopported + -A parameter (fixes #6863). + * Changes to start nmbd with the -a option (in /etc/init.d/samba + and in the entry added to /etc/inetd.conf). + * Fixed typo in sample smb.conf (fixes #21484). + * Fixed yet another typo in sample smb.conf (fixes #21447). + + -- Eloy A. Paris Fri, 17 Apr 1998 22:19:23 -0400 + +samba (1.9.18p4-1) frozen unstable; urgency=low + + * New upstream version that fixes several bugs. + * New scheme for keeping track of Debian specific configuration. + This new scheme fixes bug #18624 (Samba always asks the user about + configuration options). New scheme stores Debian specific + configuration information in /etc/samba/debian_config. + * Changes to /usr/sbin/sambaconfig, prerm and postinst to support the + new configuration scheme. + * Moved required kernel 2.1.x include files inside the source tree + so I don't have to do very nasty things like creating crazy + symlinks in /usr/include to make this package compile. This + allows non-root users to build the package and fixes bug + #20104. + * Fixed address of the FSF in /usr/doc/samba/copyright (problem + reported by lintian). + * The /etc/init.d/samba script now supports the force-reload + argument, as required by the policy (problem reported by lintian). + * Added a "rm /etc/cron.weekly/samba" at the end of the postinst. + * Now the samba package can be installed even if no nmbd or smbd processes + are running. This fixes the following bugs: #8917, #9334, #10268, + #10411, #11146 and #13387. + * Provides the original README in /usr/doc/samba. This fixes bug #9693. + * Added a --no-reload option to sambaconfig to not reload Samba + after configuration. + * Created man pages for sambaconfig(8), addtosmbpass(8), + mksmbpasswd(8) and nmblookup(1). + * Corrected small typo in sample /etc/smb.conf. + * Added two new parameters to /etc/smb.conf: "preserver case" and + "short preserve case". + * "rm -Rf /var/lock/samba" in postrm when package is being purged. + * Patched upstream source (nmbd.c) to not overwrite log files when + nmbd is called with the -a parameter (fixes #17704: nmbd ignores + -a option). + * /etc/init.d/samba now starts the nmbd daemon with the -a parameter + to not overwrite log files. + + -- Eloy A. Paris Mon, 23 Mar 1998 21:22:03 -0400 + +samba (1.9.18p3-1) unstable; urgency=low + + * New upstream version. + * Oppsss!!! I really screwed it up (actually, debstd did). + 1.9.18p2-2 still contained man pages (smbmount and smbumount) part + of other packages. This version does have this corrected. If not, + I no longer deserve to be a Debian developer! So, this version + fixes bug #18438 and some of the bugs I claimed to fix in + 1.9.18p2-2. Oh, by the way, I fixed the problem by running debstd + with -m in debian/rules (man pages are installed by "make install" + so it's a bad idea to re-install man pages with debstd). + + -- Eloy A. Paris Mon, 23 Feb 1998 17:32:42 -0400 + +samba (1.9.18p2-2) unstable; urgency=low + + * Fixes bugs #18017, #17999, #17961, #17932: old 1.9.18p2-1 provided + a man page for smbmount, which conflicts with package smbfs. This + was solved by creating a multi-binary package that produces + package samba and new package smbfsx. + * Fixes bug #18000 (typo in postinst). + * Fixes bug #17958 (postinst asks obsolete question). Actually, + the question is still asked, but only if Samba is run as daemons. + * Created a multi-binary package from the Samba sources: package + samba and new package smbfsx which provides SMB mount utilities + for kernels > 2.1.70. + + -- Eloy A. Paris Mon, 9 Feb 1998 19:47:05 -0400 + +samba (1.9.18p2-1) unstable; urgency=low + + * New upstream version. + * Removed /etc/cron.weekly/samba because Samba does not handle well + rotation of log files (if the log file is rotated Samba will + continue to log to the rotated file, instead of the just created + one). In any case, Samba will rotate log files after an specific + file size. + + -- Eloy A. Paris Tue, 27 Jan 1998 22:34:27 -0400 + +samba (1.9.18p1-2) unstable; urgency=low + + * Created a multi-binary package out of the Samba sources to provide + packages samba and smbfsx (userland utilities to work with + smbfs with kernels > 2.1.x. + + -- Eloy A. Paris Sat, 17 Jan 1998 09:23:48 -0400 + +samba (1.9.18p1-1) unstable; urgency=low + + * New upstream version. + * Created /etc/cron.daily/samba to save a copy of /etc/smbpasswd in + /var/backups/smbpasswd.bak. + + -- Eloy A. Paris Wed, 14 Jan 1998 13:40:56 -0400 + +samba (1.9.18alpha14-1) unstable; urgency=low + + * New upstream version. + * Added a note to the postinst script telling the user that he/she + needs to run smbpasswd manually after creating a new /etc/smbpasswd + from /etc/passwd. + + -- Eloy A. Paris Tue, 23 Dec 1997 23:44:37 -0400 + +samba (1.9.18alpha13-1) unstable; urgency=low + + * New upstream version. + + -- Eloy A. Paris Tue, 16 Dec 1997 13:02:32 -0400 + +samba (1.9.18alpha12-1) unstable; urgency=low + + * New upstream version. + * Conflicts with the sambades package because the new Samba 1.9.18 + series do not depend on the DES libraries to support encrypted + passwords. + * Added parameter "encrypt passwords = yes" to /etc/smb.conf. + * Compiled with support for quotas in disk_free(). + * Home directories are now exported read only by default. + * Re-worked debian/rules. + * Re-worked sample smb.conf. + + -- Eloy A. Paris Thu, 4 Dec 1997 22:50:34 -0400 + +samba (1.9.17p4-1) unstable; urgency=low + + * New upstream version. + * Made /etc/smb.conf readable by everybody because some Samba utilities + will fail otherwise when run by non-root users. + * Dropped PAM support while the PAM libraries are ported to libc6. + + -- Eloy A. Paris Tue, 21 Oct 1997 18:08:49 -0400 + +samba (1.9.17p3-1) unstable; urgency=low + + * New upstream version. + * Made /etc/smb.conf readable only by root as suggested by smbd's man page. + + -- Eloy A. Paris Wed, 15 Oct 1997 09:21:25 -0400 + +samba (1.9.17p2-2) unstable; urgency=low + + * Running Samba as daemons instead of from inetd. + * Removing netbios entries in /etc/inetd.conf. + + -- Eloy A. Paris Thu, 9 Oct 1997 23:37:25 -0400 + +samba (1.9.17p2-1) unstable; urgency=low + + * New upstream version that fixes a serious security hole. + * Removed Debian patches added in 1.9.17-1 and 1.9.17p1-1 because + these patches are now part of the upstream release. + + -- Eloy A. Paris Sun, 28 Sep 1997 22:54:33 -0400 + +samba (1.9.17p1-1) unstable; urgency=low + + * New upstream version. + * Defined symbol _LINUX_C_LIB_VERSION_MAJOR as 6 in includes.h to shut up + compiler warnings. + * Included rpcsvc/ypclnt.h in includes.h to shut up compiler warnings. + * Included crypt.h to have function prototype for crypt(). + * Included netinet/tcp.h to have some socket options included. + * Included netinet/ip.h to have some socket options included. + * Linking with libcrypt (LIBM='... -lcrypt'). Without including this + library smbd generates a seg. fault when authenticating users (?). + + -- Eloy A. Paris Wed, 10 Sep 1997 22:09:18 -0400 + +samba (1.9.17-1) unstable; urgency=low + + * New upstream version (called the "Browse Fix Release") + * Added the option --oknodo to the start-stop-daemon invocation in prerm + script. This was because the prerm was failing because start-stop-daemon + was returning an error code if no nmbd or smbd daemons were found + to kill. + * The function yp_get_default_domain(), referenced in three source + files was part of libc5 but with libc6 (glibc2) it has been moved + to libnss_nis. Since the linker was unable to find the function + I had to add LIBSM='-lnss_nis' to debian/rules. + * Added -DNO_ASMSIGNALH and -DGLIBC2 to FLAGSM in debian/rules + because compiling was failing because of conflicts with glibc2. + * Patched source/includes.h to include termios.h if GLIBC2 is defined. + + -- Eloy A. Paris Wed, 27 Aug 1997 08:39:32 -0400 + +samba (1.9.17alpha5-1) unstable; urgency=low + + * New upstream version. + + -- Eloy A. Paris Thu, 14 Aug 1997 18:05:02 -0400 + +samba (1.9.16p11-3) unstable; urgency=low + + * Fixed accidental omission of /etc/pam.d/samba. + + -- Klee Dienes Sat, 15 Mar 1997 22:31:26 -0500 + +samba (1.9.16p11-2) unstable; urgency=low + + * Recompiled against newer PAM libraries. + * Added /etc/pam.d/samba. + + -- Klee Dienes Sat, 8 Mar 1997 01:16:28 -0500 + +samba (1.9.16p11-1) unstable; urgency=low + + * New upstream release. + * Added PAM support. + + -- Klee Dienes Tue, 25 Feb 1997 18:00:12 -0500 + +samba (1.9.16p9-2) unstable; urgency=low + + * minor packaging changes + + -- Klee Dienes Sun, 3 Nov 1996 11:45:37 -0700 + +samba (1.9.16p9-1) unstable; urgency=low + + * upgraded to new upstream version + + -- Klee Dienes Sat, 26 Oct 1996 21:38:20 -0700 + +1.9.16alpha10-1: + 960714 + * Removed Package_Revision from control file. + * Removed -m486 compiler option. + * Added Architecture, Section and Priority fields to control file. + * Upgraded to latest upstream version. + * Uses update-inetd now. + * Added shadow passwords support. + * Fixed Bug#1946: nmbd won't browse + +1.9.15p4-1: + 951128 + * Upgraded to latest upstream version. + * Fixed many bugs. + * Adds Master Browsing support. + * Converted to ELF. + * Fixed bug #1825 - nmbd is now killed when removing samba. + +1.9.14-1: + 950926 Andrew Howell + * Upgraded to latest version. + * Fixed Bug #1139 - samba won't print + +1.9.14alpha5-1: + * Fixes killing of inetd problem in debian.postint and debian.postrm + +1.9.14alpha5-0: + 950704 Andrew Howell + * Taken over samba package from Bruce Perens. + * Upgraded to newest version of samba. + +1.9.02-1: + 9-January-1994 Bruce Perens + * Added Debian GNU/Linux package maintenance system files, and + configured for Debian systems. diff --git a/packaging/Debian/debian/config.cache b/packaging/Debian/debian/config.cache new file mode 100644 index 0000000000..c0a70a5b19 --- /dev/null +++ b/packaging/Debian/debian/config.cache @@ -0,0 +1,231 @@ +# +# 22 August 2001 Steve Langasek +# +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +# +# This config.cache file contains a list of acceptable autoconf +# values which can be used in compiling Samba for Debian woody/sid. +# +# Autoconf sorts options alphabetically in its output. This file +# groups options logically. + + +# Load any architecture-specific settings +if [ -n "$DEB_HOST_GNU_TYPE" \ + -a -f ../debian/config.cache.${DEB_HOST_GNU_TYPE} ]; then + . ../debian/config.cache.${DEB_HOST_GNU_TYPE} +fi + + +# This is at the top because it's most in need of regular tweaking. +# These are options which are supported on 2.4 kernels, but not on 2.2 +# kernels. + +samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no} +samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no} +samba_cv_HAVE_KERNEL_SHARE_MODES=${samba_cv_HAVE_KERNEL_SHARE_MODES=no} + + +# These are present in 2.2 kernels, but not in 2.0... + +samba_cv_have_setresuid=${samba_cv_have_setresuid=yes} +samba_cv_have_setresgid=${samba_cv_have_setresgid=yes} +samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=yes} + + +# POSIX ACL support not present in Linux 2.2; not allowed in the +# Debian packages, even if present on the build machine. + +ac_cv_header_sys_acl_h=${ac_cv_header_sys_acl_h=no} + + +# Various basic libc/compiler stuff that it's blindingly obvious that +# Linux supports (now watch me get bitten for saying that) + +ac_cv_c_const=${ac_cv_c_const=yes} +ac_cv_c_inline=${ac_cv_c_inline=inline} +samba_cv_volatile=${samba_cv_volatile=yes} +ac_cv_dirent_d_off=${ac_cv_dirent_d_off=yes} +ac_cv_func_bzero=${ac_cv_func_bzero=yes} +ac_cv_func_chmod=${ac_cv_func_chmod=yes} +ac_cv_func_chown=${ac_cv_func_chown=yes} +ac_cv_func_chroot=${ac_cv_func_chroot=yes} +ac_cv_func_connect=${ac_cv_func_connect=yes} +ac_cv_func_dup2=${ac_cv_func_dup2=yes} +ac_cv_func_execl=${ac_cv_func_execl=yes} +ac_cv_func_fchmod=${ac_cv_func_fchmod=yes} +ac_cv_func_fchown=${ac_cv_func_fchown=yes} +ac_cv_func_fstat=${ac_cv_func_fstat=yes} +ac_cv_func_fsync=${ac_cv_func_fsync=yes} +ac_cv_func_ftruncate=${ac_cv_func_ftruncate=yes} +ac_cv_func_getcwd=${ac_cv_func_getcwd=yes} +ac_cv_func_getgrent=${ac_cv_func_getgrent=yes} +ac_cv_func_getgrnam=${ac_cv_func_getgrnam=yes} +ac_cv_func_getspnam=${ac_cv_func_getspnam=yes} +ac_cv_func_glob=${ac_cv_func_glob=yes} +ac_cv_func_grantpt=${ac_cv_func_grantpt=yes} +ac_cv_func_initgroups=${ac_cv_func_initgroups=yes} +ac_cv_func_llseek=${ac_cv_func_llseek=yes} +ac_cv_func_memcmp_clean=${ac_cv_func_memcmp_clean=yes} +ac_cv_func_memmove=${ac_cv_func_memmove=yes} +ac_cv_func_memset=${ac_cv_func_memset=yes} +ac_cv_func_mktime=${ac_cv_func_mktime=yes} +ac_cv_func_pipe=${ac_cv_func_pipe=yes} +ac_cv_func_poll=${ac_cv_func_poll=yes} +ac_cv_func_pread=${ac_cv_func_pread=yes} +ac_cv_func_pwrite=${ac_cv_func_pwrite=yes} +ac_cv_func_rand=${ac_cv_func_rand=yes} +ac_cv_func_random=${ac_cv_func_random=yes} +ac_cv_func_readlink=${ac_cv_func_readlink=yes} +ac_cv_func_rename=${ac_cv_func_rename=yes} +ac_cv_func_select=${ac_cv_func_select=yes} +ac_cv_func_setenv=${ac_cv_func_setenv=yes} +ac_cv_func_setgroups=${ac_cv_func_setgroups=yes} +ac_cv_func_setsid=${ac_cv_func_setsid=yes} +ac_cv_func_sigaction=${ac_cv_func_sigaction=yes} +ac_cv_func_sigblock=${ac_cv_func_sigblock=yes} +ac_cv_func_sigprocmask=${ac_cv_func_sigprocmask=yes} +ac_cv_func_snprintf=${ac_cv_func_snprintf=yes} +ac_cv_func_srand=${ac_cv_func_srand=yes} +ac_cv_func_srandom=${ac_cv_func_srandom=yes} +ac_cv_func_strcasecmp=${ac_cv_func_strcasecmp=yes} +ac_cv_func_strchr=${ac_cv_func_strchr=yes} +ac_cv_func_strdup=${ac_cv_func_strdup=yes} +ac_cv_func_strerror=${ac_cv_func_strerror=yes} +ac_cv_func_strftime=${ac_cv_func_strftime=yes} +ac_cv_func_strpbrk=${ac_cv_func_strpbrk=yes} +ac_cv_func_strtoul=${ac_cv_func_strtoul=yes} +ac_cv_func_symlink=${ac_cv_func_symlink=yes} +ac_cv_func_usleep=${ac_cv_func_usleep=yes} +ac_cv_func_utime=${ac_cv_func_utime=yes} +ac_cv_func_utimes=${ac_cv_func_utimes=yes} +ac_cv_func_vsnprintf=${ac_cv_func_vsnprintf=yes} +ac_cv_func_waitpid=${ac_cv_func_waitpid=yes} +ac_cv_type_ino_t=${ac_cv_type_ino_t=yes} +ac_cv_type_mode_t=${ac_cv_type_mode_t=yes} +ac_cv_type_pid_t=${ac_cv_type_pid_t=yes} +ac_cv_type_size_t=${ac_cv_type_size_t=yes} +ac_cv_type_uid_t=${ac_cv_type_uid_t=yes} +samba_cv_socklen_t=${samba_cv_socklen_t=yes} + +# Yes, we know Linux supports fcntl locking. Just ignore +# any errors caused by building on an NFS mount. +samba_cv_HAVE_FCNTL_LOCK=${samba_cv_HAVE_FCNTL_LOCK=yes} + + +# smbwrapper doesn't work because the glibc maintainers don't want +# to support transparent userland VFS. We might as well preempt +# any checks for shadowed symbols that are only useful for smbwrapper. + +ac_cv_func___acl=${ac_cv_func___acl=no} +ac_cv_func__acl=${ac_cv_func__acl=no} +ac_cv_func___chdir=${ac_cv_func___chdir=no} +ac_cv_func__chdir=${ac_cv_func__chdir=no} +ac_cv_func___close=${ac_cv_func___close=no} +ac_cv_func__close=${ac_cv_func__close=no} +ac_cv_func___closedir=${ac_cv_func___closedir=no} +ac_cv_func__closedir=${ac_cv_func__closedir=no} +ac_cv_func___dup=${ac_cv_func___dup=no} +ac_cv_func__dup=${ac_cv_func__dup=no} +ac_cv_func___dup2=${ac_cv_func___dup2=no} +ac_cv_func__dup2=${ac_cv_func__dup2=no} +ac_cv_func___facl=${ac_cv_func___facl=no} +ac_cv_func__facl=${ac_cv_func__facl=no} +ac_cv_func___fchdir=${ac_cv_func___fchdir=no} +ac_cv_func__fchdir=${ac_cv_func__fchdir=no} +ac_cv_func___fcntl=${ac_cv_func___fcntl=no} +ac_cv_func__fcntl=${ac_cv_func__fcntl=no} +ac_cv_func___fork=${ac_cv_func___fork=no} +ac_cv_func__fork=${ac_cv_func__fork=no} +ac_cv_func___fstat=${ac_cv_func___fstat=no} +ac_cv_func__fstat=${ac_cv_func__fstat=no} +ac_cv_func___fstat64=${ac_cv_func___fstat64=no} +ac_cv_func__fstat64=${ac_cv_func__fstat64=no} +ac_cv_func___fxstat=${ac_cv_func___fxstat=no} +ac_cv_func___getcwd=${ac_cv_func___getcwd=no} +ac_cv_func__getcwd=${ac_cv_func__getcwd=no} +ac_cv_func___getdents=${ac_cv_func___getdents=no} +ac_cv_func__getdents=${ac_cv_func__getdents=no} +ac_cv_func___llseek=${ac_cv_func___llseek=no} +ac_cv_func___sys_llseek=${ac_cv_func___sys_llseek=no} +ac_cv_func__llseek=${ac_cv_func__llseek=no} +ac_cv_func___lseek=${ac_cv_func___lseek=no} +ac_cv_func__lseek=${ac_cv_func__lseek=no} +ac_cv_func___lstat=${ac_cv_func___lstat=no} +ac_cv_func__lstat=${ac_cv_func__lstat=no} +ac_cv_func___lstat64=${ac_cv_func___lstat64=no} +ac_cv_func__lstat64=${ac_cv_func__lstat64=no} +ac_cv_func___lxstat=${ac_cv_func___lxstat=no} +ac_cv_func___open=${ac_cv_func___open=no} +ac_cv_func__open=${ac_cv_func__open=no} +ac_cv_func___open64=${ac_cv_func___open64=no} +ac_cv_func__open64=${ac_cv_func__open64=no} +ac_cv_func___opendir=${ac_cv_func___opendir=no} +ac_cv_func__opendir=${ac_cv_func__opendir=no} +ac_cv_func___pread=${ac_cv_func___pread=no} +ac_cv_func__pread=${ac_cv_func__pread=no} +ac_cv_func___pread64=${ac_cv_func___pread64=no} +ac_cv_func__pread64=${ac_cv_func__pread64=no} +ac_cv_func___pwrite=${ac_cv_func___pwrite=no} +ac_cv_func__pwrite=${ac_cv_func__pwrite=no} +ac_cv_func___pwrite64=${ac_cv_func___pwrite64=no} +ac_cv_func__pwrite64=${ac_cv_func__pwrite64=no} +ac_cv_func___read=${ac_cv_func___read=no} +ac_cv_func__read=${ac_cv_func__read=no} +ac_cv_func___readdir=${ac_cv_func___readdir=no} +ac_cv_func__readdir=${ac_cv_func__readdir=no} +ac_cv_func___readdir64=${ac_cv_func___readdir64=no} +ac_cv_func__readdir64=${ac_cv_func__readdir64=no} +ac_cv_func___seekdir=${ac_cv_func___seekdir=no} +ac_cv_func__seekdir=${ac_cv_func__seekdir=no} +ac_cv_func___stat=${ac_cv_func___stat=no} +ac_cv_func__stat=${ac_cv_func__stat=no} +ac_cv_func___stat64=${ac_cv_func___stat64=no} +ac_cv_func__stat64=${ac_cv_func__stat64=no} +ac_cv_func___telldir=${ac_cv_func___telldir=no} +ac_cv_func__telldir=${ac_cv_func__telldir=no} +ac_cv_func___write=${ac_cv_func___write=no} +ac_cv_func__write=${ac_cv_func__write=no} +ac_cv_func___xstat=${ac_cv_func___xstat=no} + + + +# Miscellaneous stuff that isn't, and shouldn't be, available +# in Debian. Those interested in building debs for other systems may +# need to remove some of these defines. + +ac_cv_func_bigcrypt=${ac_cv_func_bigcrypt=no} +ac_cv_func_crypt16=${ac_cv_func_crypt16=no} +ac_cv_func_getauthuid=${ac_cv_func_getauthuid=no} +ac_cv_func_getprpwnam=${ac_cv_func_getprpwnam=no} +ac_cv_func_getpwanam=${ac_cv_func_getpwanam=no} +ac_cv_func_putprpwnam=${ac_cv_func_putprpwnam=no} +ac_cv_func_rdchk=${ac_cv_func_rdchk=no} +ac_cv_func_set_auth_parameters=${ac_cv_func_set_auth_parameters=no} +ac_cv_func_setgidx=${ac_cv_func_setgidx=no} +ac_cv_func_setluid=${ac_cv_func_setluid=no} +ac_cv_func_setpriv=${ac_cv_func_setpriv=no} +ac_cv_func_setuidx=${ac_cv_func_setuidx=no} +ac_cv_lib_sec_bigcrypt=${ac_cv_lib_sec_bigcrypt=no} +ac_cv_lib_sec_getprpwnam=${ac_cv_lib_sec_getprpwnam=no} +ac_cv_lib_sec_getspnam=${ac_cv_lib_sec_getspnam=no} +ac_cv_lib_sec_putprpwnam=${ac_cv_lib_sec_putprpwnam=no} +ac_cv_lib_sec_set_auth_parameters=${ac_cv_lib_sec_set_auth_parameters=no} +ac_cv_lib_security_bigcrypt=${ac_cv_lib_security_bigcrypt=no} +ac_cv_lib_security_getprpwnam=${ac_cv_lib_security_getprpwnam=no} +ac_cv_lib_security_getspnam=${ac_cv_lib_security_getspnam=no} +ac_cv_lib_security_putprpwnam=${ac_cv_lib_security_putprpwnam=no} +ac_cv_lib_security_set_auth_parameters=${ac_cv_lib_security_set_auth_parameters=no} diff --git a/packaging/Debian/debian/config.cache.alpha-linux b/packaging/Debian/debian/config.cache.alpha-linux new file mode 100644 index 0000000000..6d17192026 --- /dev/null +++ b/packaging/Debian/debian/config.cache.alpha-linux @@ -0,0 +1,12 @@ +# 22 Aug 2001 Steve Langasek + +# This file contains autoconf settings specific to the alpha-linux +# platform that should be preloaded when building for this architecture. + + +# Linux 2.2 on Alpha doesn't have a functional setresgid() call, but +# Linux 2.4 does. Ensure that packages compiled for woody remain +# compatible with 2.2 kernels, even if the build machine is running 2.4. +samba_cv_have_setresgid=${samba_cv_have_setresgid=no} +samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=no} +samba_cv_USE_SETREUID=${samba_cv_USE_SETREUID=yes} diff --git a/packaging/Debian/debian/config.cache.sparc-linux b/packaging/Debian/debian/config.cache.sparc-linux new file mode 100644 index 0000000000..a2a21b1d3a --- /dev/null +++ b/packaging/Debian/debian/config.cache.sparc-linux @@ -0,0 +1,13 @@ +# 24 Spe 2001 Steve Langasek + +# This file contains autoconf settings specific to the sparc-linux +# platform that should be preloaded when building for this architecture. + + +# Linux 2.2 on Sparc doesn't have setresgid() or setresuid(), but +# Linux 2.4 does. Ensure that packages compiled for woody remain +# compatible with 2.2 kernels, even if the build machine is running 2.4. +samba_cv_have_setresuid=${samba_cv_have_setresuid=no} +samba_cv_have_setresgid=${samba_cv_have_setresgid=no} +samba_cv_USE_SETRESUID=${samba_cv_USE_SETRESUID=no} +samba_cv_USE_SETREUID=${samba_cv_USE_SETREUID=yes} diff --git a/packaging/Debian/debian/control b/packaging/Debian/debian/control new file mode 100644 index 0000000000..2054da9f18 --- /dev/null +++ b/packaging/Debian/debian/control @@ -0,0 +1,151 @@ +Source: samba +Section: net +Priority: optional +Maintainer: Eloy A. Paris +Uploaders: Steve Langasek +Build-Depends: debhelper (>=2.0.103), libpam0g-dev, libreadline4-dev, libcupsys2-dev +Standards-Version: 3.1.1 + +Package: samba +Architecture: any +Depends: samba-common (= ${Source-Version}), netbase, logrotate, ${shlibs:Depends} +Replaces: samba-common (<= 2.0.5a-2) +Suggests: samba-doc +Description: A LanManager like file and printer server for Unix. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or NetBIOS protocol. + . + This package contains all the components necessary to turn your + Debian GNU/Linux box into a powerful file and printer server. + . + As of Samba 2.2.1a-3, the Samba Debian packages consist of the following: + . + samba - A LanManager like file and printer server for Unix. + samba-common - Samba common files used by both the server and the client. + smbclient - A LanManager like simple client for Unix. + swat - Samba Web Administration Tool + samba-doc - Samba documentation. + smbfs - Mount and umount commands for the smbfs (kernels 2.0.x and above). + libpam-smbpass - pluggable authentication module for SMB password database + libsmbclient - Shared library that allows applications to talk to SMB servers + libsmbclient-dev - libsmbclient shared libraries + +Package: samba-common +Architecture: any +Depends: libpam-modules, ${shlibs:Depends} +Replaces: samba (<= 2.0.5a-2) +Description: Samba common files used by both the server and the client. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or NetBIOS protocol. + . + This package contains the common files that are used by both the server + (provided in the samba package) and the client (provided in the smbclient + package). + +Package: smbclient +Architecture: any +Depends: samba-common (= ${Source-Version}), ${shlibs:Depends} +Replaces: samba (<= 2.2.2-5) +Provides: samba-client +Suggests: smbfs +Description: A LanManager like simple client for Unix. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or NetBIOS protocol. + . + This package contains some client components of the Samba suite. In + particular it includes the command line utilities smbclient, smbtar, + and smbspool. If you want to mount shares exported from Microsoft + Windows machines or a Samba server you must install the smbfs package. + +Package: swat +Architecture: any +Depends: samba (= ${Source-Version}), ${shlibs:Depends} +Recommends: samba-doc +Description: Samba Web Administration Tool + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or NetBIOS protocol. + . + This package contains the components of the Samba suite that are needed + for Web administration of the Samba server. + +Package: samba-doc +Section: doc +Architecture: all +Description: Samba documentation. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or NetBIOS protocol. + . + This package contains all the documentation that comes in the original + tarball. + +Package: smbfs +Section: otherosfs +Priority: optional +Architecture: any +Depends: netbase (>= 2.02), samba-common (= ${Source-Version}), ${shlibs:Depends} +Suggests: smbclient +Replaces: smbfsx +Conflicts: smbfsx, suidmanager (<< 0.50) +Description: mount and umount commands for the smbfs (for kernels >= than 2.2.x) + Smbfs is a filesystem which understands the SMB protocol. + This is the protocol Windows for Workgroups, Windows NT or + LAN Manager use to talk to each other. It was inspired by + samba, the program by Andrew Tridgell that turns any unix + site into a file server for DOS or Windows clients. + . + If you want to use command-line utilities like smbclient, smbtar + and/or smbspool just need to install the smbclient package. + . + Starting with the Debian Samba packages version 2.2.0-1, the old smbfs + utilities for 2.0.x have been removed. There are no wrapper scripts + that call a specific smbmount/smbmount depending on the kernel version. + If you are using a 2.0.x kernel please upgrade or use the latest Samba + 2.0.7 Debian package. + +Package: libpam-smbpass +Section: admin +Priority: extra +Architecture: any +Depends: ${shlibs:Depends} +Suggests: samba +Description: pluggable authentication module for SMB password database + This is a stackable PAM module that allows a system administrator to easily + migrate to using encrypted passwords for Samba and to keep smb passwords in + sync with unix passwords. Unlike other solutions, it does this without + requiring users to change their existing passwords or login to Samba using + cleartext passwords. + +Package: libsmbclient +Section: libs +Priority: extra +Architecture: any +Depends: ${shlibs:Depends} +Description: Shared library that allows applications to talk to SMB servers + libsmbclient allows to write applications that use the SMB protocol. + This gives applications the ability to talk to Microsoft Windows servers + and Unix servers running Samba. + . + This package contains the libsmbclient shared library. + +Package: libsmbclient-dev +Section: devel +Priority: extra +Architecture: any +Depends: libsmbclient (= ${Source-Version}), ${shlibs:Depends} +Description: libsmbclient static libraries and headers + libsmbclient allows to write applications that use the SMB protocol. + This gives applications the ability to talk to Microsoft Windows servers + and Unix servers running Samba. + . + This package contains the libsmbclient static libraries and headers + needed to build applications that use SMB services. diff --git a/packaging/Debian/debian/control.smbwrapper b/packaging/Debian/debian/control.smbwrapper new file mode 100644 index 0000000000..70444ca5f5 --- /dev/null +++ b/packaging/Debian/debian/control.smbwrapper @@ -0,0 +1,111 @@ +Source: samba +Section: net +Priority: optional +Maintainer: Eloy A. Paris +Standards-Version: 2.4.0.0 + +Package: samba +Architecture: any +Depends: samba-common (= ${Source-Version}), ${shlibs:Depends} +Replaces: samba-common (<= 2.0.5a-2) +Suggests: samba-doc +Description: A LanManager like file and printer server for Unix. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or Netbios protocol. + . + This package contains all the components necessary to turn your + Debian GNU/Linux box into a powerful file and printer server. + . + As of Samba 2.0.0, the Samba Debian packages consist of the following: + . + samba - A LanManager like file and printer server for Unix. + samba-common - Samba common files used by both the server and the client. + smbclient - A LanManager like simple client for Unix. + swat - Samba Web Administration Tool + samba-doc - Samba documentation. + smbfsx - Mount and umount commands for the smbfs and kernels > 2.1.70. + smbwrapper - A shared library that provides SMB client services + +Package: samba-common +Architecture: any +Depends: ${shlibs:Depends} +Replaces: samba (<= 2.0.5a-2) +Description: Samba common files used by both the server and the client. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or Netbios protocol. + . + This package contains the common files that are used by both the server + (provided in the samba package) and the client (provided in the smbclient + package). + +Package: smbclient +Architecture: any +Depends: samba-common (= ${Source-Version}), ${shlibs:Depends} +Description: A LanManager like simple client for Unix. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or Netbios protocol. + . + This package contains the client components of the Samba suite. + +Package: swat +Architecture: any +Depends: samba, ${shlibs:Depends} +Description: Samba Web Administration Tool + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or Netbios protocol. + . + This package contains the components of the Samba suite that are needed + for Web administration fo the Samba server. + +Package: samba-doc +Architecture: all +Description: Samba documentation. + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or Netbios protocol. + . + This package contains all the documentation that comes in the original + tarball. + +Package: smbfs +Section: otherosfs +Priority: optional +Architecture: any +Depends: netbase (>= 2.02), samba-common (= ${Source-Version}), ${shlibs:Depends} +Replaces: smbfsx +Conflicts: smbfsx +Description: Mount and umount commands for the smbfs (2.0.x and 2.1.x kernels) + Smbfs is a filesystem which understands the SMB protocol. + This is the protocol Windows for Workgroups, Windows NT or + Lan Manager use to talk to each other. It was inspired by + samba, the program by Andrew Tridgell that turns any unix + site into a file server for DOS or Windows clients. + . + Starting with the Debian Samba packages version 2.0.4b-2, the old smbfs + utilities for 2.0.x and the new smbfs utilities for 2.2.x kernels have been + merged in a single package called smbfs. A wrapper script called smbmount.sh + identifies the version of the kernel running and calls the correct binary. + +Package: smbwrapper +Section: otherosfs +Priority: optional +Architecture: any +Depends: ${shlibs:Depends} +Description: A shared library that provides SMB client services + The Samba software suite is a collection of programs that + implements the SMB protocol for unix systems, allowing you to serve + files and printers to Windows, NT, OS/2 and DOS clients. This protocol + is sometimes also referred to as the LanManager or Netbios protocol. + . + This package contains prelodable shared library that provides SMB client + services for existing executables. Using this you can simulate a smb + filesystem. diff --git a/packaging/Debian/debian/copyright b/packaging/Debian/debian/copyright new file mode 100644 index 0000000000..95bac89a54 --- /dev/null +++ b/packaging/Debian/debian/copyright @@ -0,0 +1,36 @@ +This is the Debian Linux prepackaged version of the Samba SMB +(LAN-Manager) server. Samba was written by Andrew Tridgell + and many others. + +This package was put together by Eloy Paris +based on previous work by Klee Dienes , +Andrew Howell and Bruce Perens +from sources found at . + +As of early in the samba-2.0.0alpha series, the Samba package for Debian +was split into the following packages: + +- samba (the Samba server) +- smbclient (a LAN Manager client - like the ftp program) +- swat (Samba Web Administration Tool) +- smbfs (smbfs userland utilities for kernels > 2.0.x) +- samba-doc (Samba documentation). + +Copyright: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, + MA 02111-1307, USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. diff --git a/packaging/Debian/debian/libpam-smbpass.files b/packaging/Debian/debian/libpam-smbpass.files new file mode 100644 index 0000000000..4263df5c0f --- /dev/null +++ b/packaging/Debian/debian/libpam-smbpass.files @@ -0,0 +1 @@ +lib/security/pam_smbpass.so diff --git a/packaging/Debian/debian/libsmbclient-dev.files b/packaging/Debian/debian/libsmbclient-dev.files new file mode 100644 index 0000000000..3ca6033fe7 --- /dev/null +++ b/packaging/Debian/debian/libsmbclient-dev.files @@ -0,0 +1,2 @@ +usr/lib/libsmbclient.a +usr/include/libsmbclient.h diff --git a/packaging/Debian/debian/libsmbclient.files b/packaging/Debian/debian/libsmbclient.files new file mode 100644 index 0000000000..18b7f3b165 --- /dev/null +++ b/packaging/Debian/debian/libsmbclient.files @@ -0,0 +1,2 @@ +usr/lib/libsmbclient.so.0.1 +usr/lib/libsmbclient.so.0 diff --git a/packaging/Debian/debian/libsmbclient.postinst b/packaging/Debian/debian/libsmbclient.postinst new file mode 100644 index 0000000000..76f61de067 --- /dev/null +++ b/packaging/Debian/debian/libsmbclient.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +# +# postinst script for libsmbclient +# + +if [ "$1" = "configure" ]; then + ldconfig +fi + +#DEBHELPER# diff --git a/packaging/Debian/debian/libsmbclient.shlibs b/packaging/Debian/debian/libsmbclient.shlibs new file mode 100644 index 0000000000..74329f2c08 --- /dev/null +++ b/packaging/Debian/debian/libsmbclient.shlibs @@ -0,0 +1 @@ +libsmbclient 0.1 libsmbclient (>= 2.2.2-11) diff --git a/packaging/Debian/debian/mksmbpasswd.8 b/packaging/Debian/debian/mksmbpasswd.8 new file mode 100644 index 0000000000..0a500102e8 --- /dev/null +++ b/packaging/Debian/debian/mksmbpasswd.8 @@ -0,0 +1,28 @@ +.TH MKSMBPASSWD 8 12-Apr-1998 +.SH NAME +mksmbpasswd \- formats a /etc/passwd entry for a smbpasswd file +.SH SYNOPSIS +mksmbpasswd cat /etc/passwd | /usr/sbin/mksmbpasswd > /etc/samba/smbpasswd +.SH DESCRIPTION +.B mksmbpasswd +should be used only once, the first time Samba is installed. The idea +is to ease accounts creation by transferring all user accounts from +/etc/passwd to /etc/samba/smbpasswd. +.PP +Please note that passwords are not transferred automatically from +/etc/passwd to the new /etc/samba/smbpasswd file. After running +.B mksmbpasswd +all accounts are disabled so the system administrator must run +smbpasswd for each account that needs to be enable. +.SH FILES +.TP +/etc/passwd +System wide accounts file +.TP +/etc/samba/smbpasswd +Encrypted passwords file for the Samba daemons +.SH SEE ALSO +samba(7), nmbd(8), smbd(8) +.SH AUTHOR +Eloy A. Paris (man page based on sendmailconfig's man page +by Robert Leslie ) diff --git a/packaging/Debian/debian/mksmbpasswd.awk b/packaging/Debian/debian/mksmbpasswd.awk new file mode 100644 index 0000000000..a7b41a725d --- /dev/null +++ b/packaging/Debian/debian/mksmbpasswd.awk @@ -0,0 +1,5 @@ +#!/usr/bin/awk -f +BEGIN {FS=":" + printf("#\n# SMB password file.\n#\n") + } +{ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:%s\n", $1, $3, $5) } diff --git a/packaging/Debian/debian/patches/Makefile.patch b/packaging/Debian/debian/patches/Makefile.patch new file mode 100644 index 0000000000..2b28da5c3a --- /dev/null +++ b/packaging/Debian/debian/patches/Makefile.patch @@ -0,0 +1,49 @@ +--- samba-2.2.2.cvs20020120.orig/source/Makefile.in ++++ samba-2.2.2.cvs20020120/source/Makefile.in +@@ -91,7 +91,7 @@ + + SPROGS = bin/smbd bin/nmbd bin/swat + PROGS1 = bin/smbclient bin/smbspool bin/testparm bin/testprns bin/smbstatus bin/smbcontrol bin/make_printerdef @RUNPROG@ +-PROGS2 = bin/smbpasswd bin/make_smbcodepage bin/rpcclient bin/make_unicodemap bin/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@ @PDBEDIT@ @LIBSMBCLIENT@ ++PROGS2 = bin/smbpasswd bin/make_smbcodepage bin/rpcclient bin/make_unicodemap bin/smbcacls @WRAP@ @WRAP32@ @PAM_MOD@ @PDBEDIT@ @LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@ + MPROGS = @MPROGS@ + LPROGS = $(WINBIND_PAM_PROGS) $(WINBIND_LPROGS) + PROGS = $(PROGS1) $(PROGS2) $(MPROGS) bin/nmblookup +@@ -614,13 +614,15 @@ + @echo Linking shared library $@ + @$(SHLD) -32 @LDSHFLAGS@ -o $@ $(PICOBJS32) $(LIBS) + +-libsmbclient: $(LIBSMBCLIENT_PICOBJS) +- @echo Linking libsmbclient shared library bin/$@.@SHLIBEXT@ +- @$(SHLD) @LDSHFLAGS@ -o bin/$@.@SHLIBEXT@ \ ++bin/libsmbclient.so: $(LIBSMBCLIENT_PICOBJS) ++ @echo Linking libsmbclient shared library $@ ++ @$(SHLD) @LDSHFLAGS@ -o $@ \ + $(LIBSMBCLIENT_PICOBJS) $(LIBS) \ + @SONAMEFLAG@libsmbclient.so.$(LIBSMBCLIENT_MAJOR) +- @echo Linking libsmbclient non-shared library bin/$@.a +- @-$(AR) -rc bin/$@.a $(LIBSMBCLIENT_PICOBJS) ++ ++bin/libsmbclient.a: $(LIBSMBCLIENT_PICOBJS) ++ @echo Linking libsmbclient non-shared library $@ ++ @-$(AR) -rc $@ $(LIBSMBCLIENT_PICOBJS) + + bin/smbsh: $(SMBSH_OBJ) bin/.dummy + @echo Linking $@ +@@ -673,10 +675,12 @@ + installswat: installdirs + @$(SHELL) $(srcdir)/script/installswat.sh $(SWATDIR) $(srcdir) + +-installclientlib: +- -$(INSTALLCMD) bin/libsmbclient.so +- -$(INSTALLCMD) -d ${prefix}/include +- -$(INSTALLCMD) include/libsmbclient.h ${prefix}/include ++installclientlib: bin/libsmbclient.so bin/libsmbclient.a ++ # Installed (in the wrong location, BTW) by installbin above (peloy@debian.org) ++ # -$(INSTALLCMD) bin/libsmbclient.so $(BASEDIR)/lib ++ # -$(INSTALLCMD) bin/libsmbclient.a $(BASEDIR)/lib ++ -$(INSTALLCMD) -d $(INCLUDEDIR) ++ -$(INSTALLCMD) include/libsmbclient.h $(INCLUDEDIR) + + # revert to the previously installed version + revert: diff --git a/packaging/Debian/debian/patches/configure.patch b/packaging/Debian/debian/patches/configure.patch new file mode 100644 index 0000000000..497455120d --- /dev/null +++ b/packaging/Debian/debian/patches/configure.patch @@ -0,0 +1,6044 @@ +--- samba-2.2.2.cvs20020120.orig/source/configure ++++ samba-2.2.2.cvs20020120/source/configure +@@ -1077,7 +1077,7 @@ + + test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +-for ac_prog in gawk mawk nawk awk ++for ac_prog in mawk gawk nawk awk + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 +@@ -1537,6 +1537,47 @@ + rm -fr conftest* + fi + ++ if test x$LINUX_LFS_SUPPORT = xyes ; then ++ if test "$cross_compiling" = yes; then ++ LINUX_LFS_SUPPORT=cross ++else ++ cat > conftest.$ac_ext < ++#include ++#include ++main() { ++ unsigned int *padding; ++ struct flock foo_lock = {F_WRLCK, SEEK_SET, 0, 1, 0}; ++ int fd = open("/dev/null", O_RDWR); ++ ++ /* Yes, we're depending on the internals of the Linux flock structure ++ here -- but this test is explicitly Linux-specific to begin with. */ ++ padding = (unsigned int *)&foo_lock; ++ padding[1] = 0xffffffff; ++ foo_lock.l_start = 0; ++ if (fcntl(fd, F_SETLK, &foo_lock) < 0) ++ exit(1); ++ ++ exit(0); ++} ++ ++EOF ++if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++then ++ LINUX_LFS_SUPPORT=yes ++else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -fr conftest* ++ LINUX_LFS_SUPPORT=no ++fi ++rm -fr conftest* ++fi ++ ++ fi + CPPFLAGS="$old_CPPFLAGS" + if test x$LINUX_LFS_SUPPORT = xyes ; then + CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" +@@ -1546,14 +1587,14 @@ + + *hurd*) + echo $ac_n "checking for LFS support""... $ac_c" 1>&6 +-echo "configure:1550: checking for LFS support" >&5 ++echo "configure:1591: checking for LFS support" >&5 + old_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS" + if test "$cross_compiling" = yes; then + GLIBC_LFS_SUPPORT=cross + else + cat > conftest.$ac_ext < +@@ -1565,7 +1606,7 @@ + #endif + } + EOF +-if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + GLIBC_LFS_SUPPORT=yes + else +@@ -1587,21 +1628,21 @@ + esac + + echo $ac_n "checking for inline""... $ac_c" 1>&6 +-echo "configure:1591: checking for inline" >&5 ++echo "configure:1632: checking for inline" >&5 + if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_cv_c_inline=no + for ac_kw in inline __inline__ __inline; do + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_inline=$ac_kw; break + else +@@ -1627,7 +1668,7 @@ + esac + + echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +-echo "configure:1631: checking how to run the C preprocessor" >&5 ++echo "configure:1672: checking how to run the C preprocessor" >&5 + # On Suns, sometimes $CPP names a directory. + if test -n "$CPP" && test -d "$CPP"; then + CPP= +@@ -1642,13 +1683,13 @@ + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext < + Syntax Error + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:1652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + : +@@ -1659,13 +1700,13 @@ + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext < + Syntax Error + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + : +@@ -1676,13 +1717,13 @@ + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext < + Syntax Error + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + : +@@ -1707,12 +1748,12 @@ + echo "$ac_t""$CPP" 1>&6 + + echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +-echo "configure:1711: checking for ANSI C header files" >&5 ++echo "configure:1752: checking for ANSI C header files" >&5 + if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #include +@@ -1720,7 +1761,7 @@ + #include + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -1737,7 +1778,7 @@ + if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat > conftest.$ac_ext < + EOF +@@ -1755,7 +1796,7 @@ + if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat > conftest.$ac_ext < + EOF +@@ -1776,7 +1817,7 @@ + : + else + cat > conftest.$ac_ext < + #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +@@ -1787,7 +1828,7 @@ + exit (0); } + + EOF +-if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + : + else +@@ -1815,12 +1856,12 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 +-echo "configure:1819: checking for $ac_hdr that defines DIR" >&5 ++echo "configure:1860: checking for $ac_hdr that defines DIR" >&5 + if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #include <$ac_hdr> +@@ -1828,7 +1869,7 @@ + DIR *dirp = 0; + ; return 0; } + EOF +-if { (eval echo configure:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_header_dirent_$ac_safe=yes" + else +@@ -1853,7 +1894,7 @@ + # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. + if test $ac_header_dirent = dirent.h; then + echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 +-echo "configure:1857: checking for opendir in -ldir" >&5 ++echo "configure:1898: checking for opendir in -ldir" >&5 + ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -1861,7 +1902,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-ldir $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -1894,7 +1935,7 @@ + + else + echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 +-echo "configure:1898: checking for opendir in -lx" >&5 ++echo "configure:1939: checking for opendir in -lx" >&5 + ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -1902,7 +1943,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lx $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -1936,12 +1977,12 @@ + fi + + echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 +-echo "configure:1940: checking whether time.h and sys/time.h may both be included" >&5 ++echo "configure:1981: checking whether time.h and sys/time.h may both be included" >&5 + if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #include +@@ -1950,7 +1991,7 @@ + struct tm *tp; + ; return 0; } + EOF +-if { (eval echo configure:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_time=yes + else +@@ -1971,12 +2012,12 @@ + fi + + echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 +-echo "configure:1975: checking for sys/wait.h that is POSIX.1 compatible" >&5 ++echo "configure:2016: checking for sys/wait.h that is POSIX.1 compatible" >&5 + if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #include +@@ -1992,7 +2033,7 @@ + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; + ; return 0; } + EOF +-if { (eval echo configure:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_sys_wait_h=yes + else +@@ -2016,17 +2057,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2020: checking for $ac_hdr" >&5 ++echo "configure:2061: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2056,17 +2097,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2060: checking for $ac_hdr" >&5 ++echo "configure:2101: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2096,17 +2137,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2100: checking for $ac_hdr" >&5 ++echo "configure:2141: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2136,17 +2177,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2140: checking for $ac_hdr" >&5 ++echo "configure:2181: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2176,17 +2217,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2180: checking for $ac_hdr" >&5 ++echo "configure:2221: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2216,17 +2257,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2220: checking for $ac_hdr" >&5 ++echo "configure:2261: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2256,17 +2297,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2260: checking for $ac_hdr" >&5 ++echo "configure:2301: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2296,17 +2337,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2300: checking for $ac_hdr" >&5 ++echo "configure:2341: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2340,14 +2381,14 @@ + case "$host_os" in + *hpux*) + cat > conftest.$ac_ext < + int main() { + struct spwd testme + ; return 0; } + EOF +-if { (eval echo configure:2351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_shadow_h=yes + else +@@ -2369,17 +2410,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2373: checking for $ac_hdr" >&5 ++echo "configure:2414: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2409,17 +2450,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2413: checking for $ac_hdr" >&5 ++echo "configure:2454: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2449,17 +2490,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2453: checking for $ac_hdr" >&5 ++echo "configure:2494: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2489,17 +2530,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2493: checking for $ac_hdr" >&5 ++echo "configure:2534: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2529,17 +2570,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2533: checking for $ac_hdr" >&5 ++echo "configure:2574: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2571,17 +2612,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2575: checking for $ac_hdr" >&5 ++echo "configure:2616: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2613,17 +2654,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2617: checking for $ac_hdr" >&5 ++echo "configure:2658: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2655,17 +2696,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:2659: checking for $ac_hdr" >&5 ++echo "configure:2700: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -2693,7 +2734,7 @@ + + + echo $ac_n "checking size of int""... $ac_c" 1>&6 +-echo "configure:2697: checking size of int" >&5 ++echo "configure:2738: checking size of int" >&5 + if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -2701,18 +2742,19 @@ + ac_cv_sizeof_int=cross + else + cat > conftest.$ac_ext < +-int main() ++#include ++main() + { + FILE *f=fopen("conftestval", "w"); +- if (!f) return(1); ++ if (!f) exit(1); + fprintf(f, "%d\n", sizeof(int)); +- return(0); ++ exit(0); + } + EOF +-if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_sizeof_int=`cat conftestval` + else +@@ -2732,7 +2774,7 @@ + + + echo $ac_n "checking size of long""... $ac_c" 1>&6 +-echo "configure:2736: checking size of long" >&5 ++echo "configure:2778: checking size of long" >&5 + if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -2740,18 +2782,19 @@ + ac_cv_sizeof_long=cross + else + cat > conftest.$ac_ext < +-int main() ++#include ++main() + { + FILE *f=fopen("conftestval", "w"); +- if (!f) return(1); ++ if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long)); +- return(0); ++ exit(0); + } + EOF +-if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_sizeof_long=`cat conftestval` + else +@@ -2771,7 +2814,7 @@ + + + echo $ac_n "checking size of short""... $ac_c" 1>&6 +-echo "configure:2775: checking size of short" >&5 ++echo "configure:2818: checking size of short" >&5 + if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -2779,18 +2822,19 @@ + ac_cv_sizeof_short=cross + else + cat > conftest.$ac_ext < +-int main() ++#include ++main() + { + FILE *f=fopen("conftestval", "w"); +- if (!f) return(1); ++ if (!f) exit(1); + fprintf(f, "%d\n", sizeof(short)); +- return(0); ++ exit(0); + } + EOF +-if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_sizeof_short=`cat conftestval` + else +@@ -2811,12 +2855,12 @@ + + + echo $ac_n "checking for working const""... $ac_c" 1>&6 +-echo "configure:2815: checking for working const" >&5 ++echo "configure:2859: checking for working const" >&5 + if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_const=yes + else +@@ -2886,21 +2930,21 @@ + fi + + echo $ac_n "checking for inline""... $ac_c" 1>&6 +-echo "configure:2890: checking for inline" >&5 ++echo "configure:2934: checking for inline" >&5 + if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_cv_c_inline=no + for ac_kw in inline __inline__ __inline; do + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_inline=$ac_kw; break + else +@@ -2926,14 +2970,14 @@ + esac + + echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 +-echo "configure:2930: checking whether byte ordering is bigendian" >&5 ++echo "configure:2974: checking whether byte ordering is bigendian" >&5 + if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_cv_c_bigendian=unknown + # See if sys/param.h defines the BYTE_ORDER macro. + cat > conftest.$ac_ext < + #include +@@ -2944,11 +2988,11 @@ + #endif + ; return 0; } + EOF +-if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:2992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + # It does; now see whether it defined to BIG_ENDIAN or not. + cat > conftest.$ac_ext < + #include +@@ -2959,7 +3003,7 @@ + #endif + ; return 0; } + EOF +-if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_bigendian=yes + else +@@ -2979,7 +3023,7 @@ + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_c_bigendian=no + else +@@ -3016,14 +3060,14 @@ + fi + + echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 +-echo "configure:3020: checking whether char is unsigned" >&5 ++echo "configure:3064: checking whether char is unsigned" >&5 + if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + if test "$GCC" = yes; then + # GCC predefines this symbol on systems where it applies. + cat > conftest.$ac_ext <&2; exit 1; } + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_c_char_unsigned=yes + else +@@ -3080,12 +3124,12 @@ + + + echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 +-echo "configure:3084: checking return type of signal handlers" >&5 ++echo "configure:3128: checking return type of signal handlers" >&5 + if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #include +@@ -3102,7 +3146,7 @@ + int i; + ; return 0; } + EOF +-if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_signal=void + else +@@ -3121,12 +3165,12 @@ + + + echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 +-echo "configure:3125: checking for uid_t in sys/types.h" >&5 ++echo "configure:3169: checking for uid_t in sys/types.h" >&5 + if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF +@@ -3155,12 +3199,12 @@ + fi + + echo $ac_n "checking for mode_t""... $ac_c" 1>&6 +-echo "configure:3159: checking for mode_t" >&5 ++echo "configure:3203: checking for mode_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3188,12 +3232,12 @@ + fi + + echo $ac_n "checking for off_t""... $ac_c" 1>&6 +-echo "configure:3192: checking for off_t" >&5 ++echo "configure:3236: checking for off_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3221,12 +3265,12 @@ + fi + + echo $ac_n "checking for size_t""... $ac_c" 1>&6 +-echo "configure:3225: checking for size_t" >&5 ++echo "configure:3269: checking for size_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3254,12 +3298,12 @@ + fi + + echo $ac_n "checking for pid_t""... $ac_c" 1>&6 +-echo "configure:3258: checking for pid_t" >&5 ++echo "configure:3302: checking for pid_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3287,12 +3331,12 @@ + fi + + echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 +-echo "configure:3291: checking for st_rdev in struct stat" >&5 ++echo "configure:3335: checking for st_rdev in struct stat" >&5 + if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #include +@@ -3300,7 +3344,7 @@ + struct stat s; s.st_rdev; + ; return 0; } + EOF +-if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_st_rdev=yes + else +@@ -3321,12 +3365,12 @@ + fi + + echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6 +-echo "configure:3325: checking for d_off in dirent" >&5 ++echo "configure:3369: checking for d_off in dirent" >&5 + if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < +@@ -3336,7 +3380,7 @@ + struct dirent d; d.d_off; + ; return 0; } + EOF +-if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_dirent_d_off=yes + else +@@ -3357,12 +3401,12 @@ + fi + + echo $ac_n "checking for ino_t""... $ac_c" 1>&6 +-echo "configure:3361: checking for ino_t" >&5 ++echo "configure:3405: checking for ino_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3390,12 +3434,12 @@ + fi + + echo $ac_n "checking for loff_t""... $ac_c" 1>&6 +-echo "configure:3394: checking for loff_t" >&5 ++echo "configure:3438: checking for loff_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3423,12 +3467,12 @@ + fi + + echo $ac_n "checking for offset_t""... $ac_c" 1>&6 +-echo "configure:3427: checking for offset_t" >&5 ++echo "configure:3471: checking for offset_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3456,12 +3500,12 @@ + fi + + echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 +-echo "configure:3460: checking for ssize_t" >&5 ++echo "configure:3504: checking for ssize_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3489,12 +3533,12 @@ + fi + + echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 +-echo "configure:3493: checking for wchar_t" >&5 ++echo "configure:3537: checking for wchar_t" >&5 + if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #if STDC_HEADERS +@@ -3526,7 +3570,7 @@ + # for cups support we need libcups, and a handful of header files + + echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6 +-echo "configure:3530: checking for httpConnect in -lcups" >&5 ++echo "configure:3574: checking for httpConnect in -lcups" >&5 + ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -3534,7 +3578,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lcups $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -3580,17 +3624,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:3584: checking for $ac_hdr" >&5 ++echo "configure:3628: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:3594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -3629,7 +3673,7 @@ + ############################################ + # we need libdl for PAM and the new VFS code + echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 +-echo "configure:3633: checking for dlopen in -ldl" >&5 ++echo "configure:3677: checking for dlopen in -ldl" >&5 + ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -3637,7 +3681,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-ldl $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -3676,13 +3720,13 @@ + ############################################ + # check if the compiler can do immediate structures + echo $ac_n "checking for immediate structures""... $ac_c" 1>&6 +-echo "configure:3680: checking for immediate structures" >&5 ++echo "configure:3724: checking for immediate structures" >&5 + if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < +@@ -3694,7 +3738,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_immediate_structures=yes + else +@@ -3717,13 +3761,13 @@ + ############################################ + # check for unix domain sockets + echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6 +-echo "configure:3721: checking for unix domain sockets" >&5 ++echo "configure:3765: checking for unix domain sockets" >&5 + if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < +@@ -3738,7 +3782,7 @@ + + ; return 0; } + EOF +-if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_unixsocket=yes + else +@@ -3759,13 +3803,13 @@ + fi + + echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6 +-echo "configure:3763: checking for socklen_t type" >&5 ++echo "configure:3807: checking for socklen_t type" >&5 + if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < +@@ -3778,7 +3822,7 @@ + socklen_t i = 0 + ; return 0; } + EOF +-if { (eval echo configure:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_socklen_t=yes + else +@@ -3799,13 +3843,13 @@ + fi + + echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6 +-echo "configure:3803: checking for sig_atomic_t type" >&5 ++echo "configure:3847: checking for sig_atomic_t type" >&5 + if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < +@@ -3818,7 +3862,7 @@ + sig_atomic_t i = 0 + ; return 0; } + EOF +-if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_sig_atomic_t=yes + else +@@ -3841,20 +3885,20 @@ + # stupid headers have the functions but no declaration. grrrr. + + echo $ac_n "checking for errno declaration""... $ac_c" 1>&6 +-echo "configure:3845: checking for errno declaration" >&5 ++echo "configure:3889: checking for errno declaration" >&5 + if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + int i = (int)errno + ; return 0; } + EOF +-if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_errno_decl=yes + else +@@ -3876,20 +3920,20 @@ + + + echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6 +-echo "configure:3880: checking for setresuid declaration" >&5 ++echo "configure:3924: checking for setresuid declaration" >&5 + if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + int i = (int)setresuid + ; return 0; } + EOF +-if { (eval echo configure:3893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_setresuid_decl=yes + else +@@ -3911,20 +3955,20 @@ + + + echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6 +-echo "configure:3915: checking for setresgid declaration" >&5 ++echo "configure:3959: checking for setresgid declaration" >&5 + if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + int i = (int)setresgid + ; return 0; } + EOF +-if { (eval echo configure:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_setresgid_decl=yes + else +@@ -3946,20 +3990,20 @@ + + + echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6 +-echo "configure:3950: checking for asprintf declaration" >&5 ++echo "configure:3994: checking for asprintf declaration" >&5 + if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + int i = (int)asprintf + ; return 0; } + EOF +-if { (eval echo configure:3963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_asprintf_decl=yes + else +@@ -3981,20 +4025,20 @@ + + + echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6 +-echo "configure:3985: checking for vasprintf declaration" >&5 ++echo "configure:4029: checking for vasprintf declaration" >&5 + if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + int i = (int)vasprintf + ; return 0; } + EOF +-if { (eval echo configure:3998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:4042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_vasprintf_decl=yes + else +@@ -4016,20 +4060,20 @@ + + + echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 +-echo "configure:4020: checking for vsnprintf declaration" >&5 ++echo "configure:4064: checking for vsnprintf declaration" >&5 + if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + int i = (int)vsnprintf + ; return 0; } + EOF +-if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_vsnprintf_decl=yes + else +@@ -4051,20 +4095,20 @@ + + + echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6 +-echo "configure:4055: checking for snprintf declaration" >&5 ++echo "configure:4099: checking for snprintf declaration" >&5 + if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + int i = (int)snprintf + ; return 0; } + EOF +-if { (eval echo configure:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:4112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_have_snprintf_decl=yes + else +@@ -4088,7 +4132,7 @@ + # and glibc has setresuid under linux but the function does + # nothing until kernel 2.1.44! very dumb. + echo $ac_n "checking for real setresuid""... $ac_c" 1>&6 +-echo "configure:4092: checking for real setresuid" >&5 ++echo "configure:4136: checking for real setresuid" >&5 + if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4097,12 +4141,12 @@ + samba_cv_have_setresuid=cross + else + cat > conftest.$ac_ext < + main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);} + EOF +-if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_have_setresuid=yes + else +@@ -4127,7 +4171,7 @@ + # Do the same check for setresguid... + # + echo $ac_n "checking for real setresgid""... $ac_c" 1>&6 +-echo "configure:4131: checking for real setresgid" >&5 ++echo "configure:4175: checking for real setresgid" >&5 + if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4136,13 +4180,13 @@ + samba_cv_have_setresgid=cross + else + cat > conftest.$ac_ext < + #include + main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);} + EOF +-if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_have_setresgid=yes + else +@@ -4165,7 +4209,7 @@ + fi + + echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 +-echo "configure:4169: checking for 8-bit clean memcmp" >&5 ++echo "configure:4213: checking for 8-bit clean memcmp" >&5 + if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -4173,7 +4217,7 @@ + ac_cv_func_memcmp_clean=no + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + ac_cv_func_memcmp_clean=yes + else +@@ -4207,7 +4251,7 @@ + + # test for where we get readline() from + echo $ac_n "checking whether to use readline""... $ac_c" 1>&6 +-echo "configure:4211: checking whether to use readline" >&5 ++echo "configure:4255: checking whether to use readline" >&5 + # Check whether --with-readline or --without-readline was given. + if test "${with_readline+set}" = set; then + withval="$with_readline" +@@ -4219,17 +4263,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4223: checking for $ac_hdr" >&5 ++echo "configure:4267: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4259,17 +4303,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4263: checking for $ac_hdr" >&5 ++echo "configure:4307: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4300,17 +4344,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4304: checking for $ac_hdr" >&5 ++echo "configure:4348: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4333,7 +4377,7 @@ + + for termlib in ncurses curses termcap terminfo termlib; do + echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6 +-echo "configure:4337: checking for tgetent in -l${termlib}" >&5 ++echo "configure:4381: checking for tgetent in -l${termlib}" >&5 + ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4341,7 +4385,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-l${termlib} $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4374,7 +4418,7 @@ + + done + echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6 +-echo "configure:4378: checking for rl_callback_handler_install in -lreadline" >&5 ++echo "configure:4422: checking for rl_callback_handler_install in -lreadline" >&5 + ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4382,7 +4426,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lreadline $TERMLIBS $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4444,17 +4488,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4448: checking for $ac_hdr" >&5 ++echo "configure:4492: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4484,17 +4528,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4488: checking for $ac_hdr" >&5 ++echo "configure:4532: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4525,17 +4569,17 @@ + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:4529: checking for $ac_hdr" >&5 ++echo "configure:4573: checking for $ac_hdr" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++{ (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` + if test -z "$ac_err"; then + rm -rf conftest* +@@ -4558,7 +4602,7 @@ + + for termlib in ncurses curses termcap terminfo termlib; do + echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6 +-echo "configure:4562: checking for tgetent in -l${termlib}" >&5 ++echo "configure:4606: checking for tgetent in -l${termlib}" >&5 + ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4566,7 +4610,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-l${termlib} $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4599,7 +4643,7 @@ + + done + echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6 +-echo "configure:4603: checking for rl_callback_handler_install in -lreadline" >&5 ++echo "configure:4647: checking for rl_callback_handler_install in -lreadline" >&5 + ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4607,7 +4651,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lreadline $TERMLIBS $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4673,12 +4717,12 @@ + for ac_func in connect + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:4677: checking for $ac_func" >&5 ++echo "configure:4721: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -4729,7 +4773,7 @@ + case "$LIBS" in + *-lnsl*) ;; + *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6 +-echo "configure:4733: checking for printf in -lnsl_s" >&5 ++echo "configure:4777: checking for printf in -lnsl_s" >&5 + ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4737,7 +4781,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lnsl_s $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4779,7 +4823,7 @@ + case "$LIBS" in + *-lnsl*) ;; + *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6 +-echo "configure:4783: checking for printf in -lnsl" >&5 ++echo "configure:4827: checking for printf in -lnsl" >&5 + ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4787,7 +4831,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lnsl $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4829,7 +4873,7 @@ + case "$LIBS" in + *-lsocket*) ;; + *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 +-echo "configure:4833: checking for connect in -lsocket" >&5 ++echo "configure:4877: checking for connect in -lsocket" >&5 + ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4837,7 +4881,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsocket $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4879,7 +4923,7 @@ + case "$LIBS" in + *-linet*) ;; + *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6 +-echo "configure:4883: checking for connect in -linet" >&5 ++echo "configure:4927: checking for connect in -linet" >&5 + ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -4887,7 +4931,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-linet $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -4942,12 +4986,12 @@ + for ac_func in yp_get_default_domain + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:4946: checking for $ac_func" >&5 ++echo "configure:4990: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -4996,7 +5040,7 @@ + + if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then + echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6 +-echo "configure:5000: checking for yp_get_default_domain in -lnsl" >&5 ++echo "configure:5044: checking for yp_get_default_domain in -lnsl" >&5 + ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -5004,7 +5048,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lnsl $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -5045,12 +5089,12 @@ + for ac_func in execl + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5049: checking for $ac_func" >&5 ++echo "configure:5093: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5106,12 +5150,12 @@ + for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5110: checking for $ac_func" >&5 ++echo "configure:5154: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5161,12 +5205,12 @@ + for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset setpgid mknod mknod64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5165: checking for $ac_func" >&5 ++echo "configure:5209: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5216,12 +5260,12 @@ + for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5220: checking for $ac_func" >&5 ++echo "configure:5264: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5271,12 +5315,12 @@ + for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5275: checking for $ac_func" >&5 ++echo "configure:5319: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5326,12 +5370,12 @@ + for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5330: checking for $ac_func" >&5 ++echo "configure:5374: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5381,12 +5425,12 @@ + for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5385: checking for $ac_func" >&5 ++echo "configure:5429: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5436,12 +5480,12 @@ + for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5440: checking for $ac_func" >&5 ++echo "configure:5484: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5491,12 +5535,12 @@ + for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5495: checking for $ac_func" >&5 ++echo "configure:5539: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5546,12 +5590,12 @@ + for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5550: checking for $ac_func" >&5 ++echo "configure:5594: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5601,12 +5645,12 @@ + for ac_func in syslog vsyslog + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5605: checking for $ac_func" >&5 ++echo "configure:5649: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5658,12 +5702,12 @@ + for ac_func in syscall + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5662: checking for $ac_func" >&5 ++echo "configure:5706: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5714,12 +5758,12 @@ + for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5718: checking for $ac_func" >&5 ++echo "configure:5762: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5769,12 +5813,12 @@ + for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5773: checking for $ac_func" >&5 ++echo "configure:5817: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5824,12 +5868,12 @@ + for ac_func in __getcwd _getcwd + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5828: checking for $ac_func" >&5 ++echo "configure:5872: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5879,12 +5923,12 @@ + for ac_func in __xstat __fxstat __lxstat + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5883: checking for $ac_func" >&5 ++echo "configure:5927: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5934,12 +5978,12 @@ + for ac_func in _stat _lstat _fstat __stat __lstat __fstat + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5938: checking for $ac_func" >&5 ++echo "configure:5982: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -5989,12 +6033,12 @@ + for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:5993: checking for $ac_func" >&5 ++echo "configure:6037: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6044,12 +6088,12 @@ + for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6048: checking for $ac_func" >&5 ++echo "configure:6092: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6099,12 +6143,12 @@ + for ac_func in getdents _getdents __getdents _lseek __lseek _read __read + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6103: checking for $ac_func" >&5 ++echo "configure:6147: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6154,12 +6198,12 @@ + for ac_func in _write __write _fork __fork + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6158: checking for $ac_func" >&5 ++echo "configure:6202: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6209,12 +6253,12 @@ + for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6213: checking for $ac_func" >&5 ++echo "configure:6257: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6264,12 +6308,12 @@ + for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6268: checking for $ac_func" >&5 ++echo "configure:6312: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6319,12 +6363,12 @@ + for ac_func in pread _pread __pread pread64 _pread64 __pread64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6323: checking for $ac_func" >&5 ++echo "configure:6367: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6374,12 +6418,12 @@ + for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6378: checking for $ac_func" >&5 ++echo "configure:6422: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6429,12 +6473,12 @@ + for ac_func in open64 _open64 __open64 creat64 + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6433: checking for $ac_func" >&5 ++echo "configure:6477: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6488,9 +6532,9 @@ + + if test x$ac_cv_func_stat64 = xno ; then + echo $ac_n "checking for stat64 in ""... $ac_c" 1>&6 +-echo "configure:6492: checking for stat64 in " >&5 ++echo "configure:6536: checking for stat64 in " >&5 + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_stat64=yes + else +@@ -6521,9 +6565,9 @@ + + if test x$ac_cv_func_lstat64 = xno ; then + echo $ac_n "checking for lstat64 in ""... $ac_c" 1>&6 +-echo "configure:6525: checking for lstat64 in " >&5 ++echo "configure:6569: checking for lstat64 in " >&5 + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_lstat64=yes + else +@@ -6554,9 +6598,9 @@ + + if test x$ac_cv_func_fstat64 = xno ; then + echo $ac_n "checking for fstat64 in ""... $ac_c" 1>&6 +-echo "configure:6558: checking for fstat64 in " >&5 ++echo "configure:6602: checking for fstat64 in " >&5 + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_fstat64=yes + else +@@ -6593,7 +6637,7 @@ + + if test x$ac_cv_func_strcasecmp = xno ; then + echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6 +-echo "configure:6597: checking for strcasecmp in -lresolv" >&5 ++echo "configure:6641: checking for strcasecmp in -lresolv" >&5 + ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -6601,7 +6645,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lresolv $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -6648,12 +6692,12 @@ + *-lsecurity*) for ac_func in putprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6652: checking for $ac_func" >&5 ++echo "configure:6696: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6701,7 +6745,7 @@ + done + ;; + *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6 +-echo "configure:6705: checking for putprpwnam in -lsecurity" >&5 ++echo "configure:6749: checking for putprpwnam in -lsecurity" >&5 + ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -6709,7 +6753,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsecurity $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -6750,12 +6794,12 @@ + for ac_func in putprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6754: checking for $ac_func" >&5 ++echo "configure:6798: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6809,12 +6853,12 @@ + *-lsec*) for ac_func in putprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6813: checking for $ac_func" >&5 ++echo "configure:6857: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6862,7 +6906,7 @@ + done + ;; + *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6 +-echo "configure:6866: checking for putprpwnam in -lsec" >&5 ++echo "configure:6910: checking for putprpwnam in -lsec" >&5 + ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -6870,7 +6914,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsec $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -6911,12 +6955,12 @@ + for ac_func in putprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6915: checking for $ac_func" >&5 ++echo "configure:6959: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -6971,12 +7015,12 @@ + *-lsecurity*) for ac_func in set_auth_parameters + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:6975: checking for $ac_func" >&5 ++echo "configure:7019: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7024,7 +7068,7 @@ + done + ;; + *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6 +-echo "configure:7028: checking for set_auth_parameters in -lsecurity" >&5 ++echo "configure:7072: checking for set_auth_parameters in -lsecurity" >&5 + ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -7032,7 +7076,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsecurity $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -7073,12 +7117,12 @@ + for ac_func in set_auth_parameters + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7077: checking for $ac_func" >&5 ++echo "configure:7121: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7132,12 +7176,12 @@ + *-lsec*) for ac_func in set_auth_parameters + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7136: checking for $ac_func" >&5 ++echo "configure:7180: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7185,7 +7229,7 @@ + done + ;; + *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6 +-echo "configure:7189: checking for set_auth_parameters in -lsec" >&5 ++echo "configure:7233: checking for set_auth_parameters in -lsec" >&5 + ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -7193,7 +7237,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsec $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -7234,12 +7278,12 @@ + for ac_func in set_auth_parameters + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7238: checking for $ac_func" >&5 ++echo "configure:7282: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7295,12 +7339,12 @@ + *-lgen*) for ac_func in getspnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7299: checking for $ac_func" >&5 ++echo "configure:7343: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7348,7 +7392,7 @@ + done + ;; + *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6 +-echo "configure:7352: checking for getspnam in -lgen" >&5 ++echo "configure:7396: checking for getspnam in -lgen" >&5 + ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -7356,7 +7400,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lgen $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -7397,12 +7441,12 @@ + for ac_func in getspnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7401: checking for $ac_func" >&5 ++echo "configure:7445: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7457,12 +7501,12 @@ + *-lsecurity*) for ac_func in getspnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7461: checking for $ac_func" >&5 ++echo "configure:7505: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7510,7 +7554,7 @@ + done + ;; + *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6 +-echo "configure:7514: checking for getspnam in -lsecurity" >&5 ++echo "configure:7558: checking for getspnam in -lsecurity" >&5 + ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -7518,7 +7562,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsecurity $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -7559,12 +7603,12 @@ + for ac_func in getspnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7563: checking for $ac_func" >&5 ++echo "configure:7607: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7618,12 +7662,12 @@ + *-lsec*) for ac_func in getspnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7622: checking for $ac_func" >&5 ++echo "configure:7666: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7671,7 +7715,7 @@ + done + ;; + *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6 +-echo "configure:7675: checking for getspnam in -lsec" >&5 ++echo "configure:7719: checking for getspnam in -lsec" >&5 + ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -7679,7 +7723,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsec $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -7720,12 +7764,12 @@ + for ac_func in getspnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7724: checking for $ac_func" >&5 ++echo "configure:7768: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7780,12 +7824,12 @@ + *-lsecurity*) for ac_func in bigcrypt + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7784: checking for $ac_func" >&5 ++echo "configure:7828: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7833,7 +7877,7 @@ + done + ;; + *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6 +-echo "configure:7837: checking for bigcrypt in -lsecurity" >&5 ++echo "configure:7881: checking for bigcrypt in -lsecurity" >&5 + ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -7841,7 +7885,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsecurity $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -7882,12 +7926,12 @@ + for ac_func in bigcrypt + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7886: checking for $ac_func" >&5 ++echo "configure:7930: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7941,12 +7985,12 @@ + *-lsec*) for ac_func in bigcrypt + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:7945: checking for $ac_func" >&5 ++echo "configure:7989: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -7994,7 +8038,7 @@ + done + ;; + *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6 +-echo "configure:7998: checking for bigcrypt in -lsec" >&5 ++echo "configure:8042: checking for bigcrypt in -lsec" >&5 + ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -8002,7 +8046,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsec $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -8043,12 +8087,12 @@ + for ac_func in bigcrypt + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:8047: checking for $ac_func" >&5 ++echo "configure:8091: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -8103,12 +8147,12 @@ + *-lsecurity*) for ac_func in getprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:8107: checking for $ac_func" >&5 ++echo "configure:8151: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -8156,7 +8200,7 @@ + done + ;; + *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6 +-echo "configure:8160: checking for getprpwnam in -lsecurity" >&5 ++echo "configure:8204: checking for getprpwnam in -lsecurity" >&5 + ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -8164,7 +8208,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsecurity $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -8205,12 +8249,12 @@ + for ac_func in getprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:8209: checking for $ac_func" >&5 ++echo "configure:8253: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -8264,12 +8308,12 @@ + *-lsec*) for ac_func in getprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:8268: checking for $ac_func" >&5 ++echo "configure:8312: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -8317,7 +8361,7 @@ + done + ;; + *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6 +-echo "configure:8321: checking for getprpwnam in -lsec" >&5 ++echo "configure:8365: checking for getprpwnam in -lsec" >&5 + ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -8325,7 +8369,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lsec $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -8366,12 +8410,12 @@ + for ac_func in getprpwnam + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:8370: checking for $ac_func" >&5 ++echo "configure:8414: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:8442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -8437,7 +8481,7 @@ + # Assume non-shared by default and override below + BLDSHARED="false" + echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6 +-echo "configure:8441: checking ability to build shared libraries" >&5 ++echo "configure:8485: checking ability to build shared libraries" >&5 + + # and these are for particular systems + case "$host_os" in +@@ -8572,7 +8616,7 @@ + *dgux*) # Extract the first word of "groff", so it can be a program name with args. + set dummy groff; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +-echo "configure:8576: checking for $ac_word" >&5 ++echo "configure:8620: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8626,15 +8670,15 @@ + esac + echo "$ac_t""$BLDSHARED" 1>&6 + echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6 +-echo "configure:8630: checking linker flags for shared libraries" >&5 ++echo "configure:8674: checking linker flags for shared libraries" >&5 + echo "$ac_t""$LDSHFLAGS" 1>&6 + echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6 +-echo "configure:8633: checking compiler flags for position-independent code" >&5 ++echo "configure:8677: checking compiler flags for position-independent code" >&5 + echo "$ac_t""$PICFLAGS" 1>&6 + + # try to work out how to produce pic code with this compiler + echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6 +-echo "configure:8638: checking whether ${CC-cc} accepts -fpic" >&5 ++echo "configure:8682: checking whether ${CC-cc} accepts -fpic" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8654,7 +8698,7 @@ + fi + if test x$PICFLAG = x; then + echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6 +-echo "configure:8658: checking whether ${CC-cc} accepts -KPIC" >&5 ++echo "configure:8702: checking whether ${CC-cc} accepts -KPIC" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8675,7 +8719,7 @@ + fi + if test x$PICFLAG = x; then + echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6 +-echo "configure:8679: checking whether ${CC-cc} accepts -Kpic" >&5 ++echo "configure:8723: checking whether ${CC-cc} accepts -Kpic" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8698,7 +8742,7 @@ + ################ + + echo $ac_n "checking for long long""... $ac_c" 1>&6 +-echo "configure:8702: checking for long long" >&5 ++echo "configure:8746: checking for long long" >&5 + if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8707,12 +8751,12 @@ + samba_cv_have_longlong=cross + else + cat > conftest.$ac_ext < + main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); } + EOF +-if { (eval echo configure:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_have_longlong=yes + else +@@ -8739,20 +8783,20 @@ + # AIX needs this. + + echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6 +-echo "configure:8743: checking for LL suffix on long long integers" >&5 ++echo "configure:8787: checking for LL suffix on long long integers" >&5 + if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + long long i = 0x8000000000LL + ; return 0; } + EOF +-if { (eval echo configure:8756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:8800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_compiler_supports_ll=yes + else +@@ -8774,7 +8818,7 @@ + + + echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6 +-echo "configure:8778: checking for 64 bit off_t" >&5 ++echo "configure:8822: checking for 64 bit off_t" >&5 + if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8783,13 +8827,13 @@ + samba_cv_SIZEOF_OFF_T=cross + else + cat > conftest.$ac_ext < + #include + main() { exit((sizeof(off_t) == 8) ? 0 : 1); } + EOF +-if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_SIZEOF_OFF_T=yes + else +@@ -8812,7 +8856,7 @@ + fi + + echo $ac_n "checking for off64_t""... $ac_c" 1>&6 +-echo "configure:8816: checking for off64_t" >&5 ++echo "configure:8860: checking for off64_t" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8821,7 +8865,7 @@ + samba_cv_HAVE_OFF64_T=cross + else + cat > conftest.$ac_ext < + main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); } + EOF +-if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_OFF64_T=yes + else +@@ -8854,7 +8898,7 @@ + fi + + echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6 +-echo "configure:8858: checking for 64 bit ino_t" >&5 ++echo "configure:8902: checking for 64 bit ino_t" >&5 + if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8863,13 +8907,13 @@ + samba_cv_SIZEOF_INO_T=cross + else + cat > conftest.$ac_ext < + #include + main() { exit((sizeof(ino_t) == 8) ? 0 : 1); } + EOF +-if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_SIZEOF_INO_T=yes + else +@@ -8892,7 +8936,7 @@ + fi + + echo $ac_n "checking for ino64_t""... $ac_c" 1>&6 +-echo "configure:8896: checking for ino64_t" >&5 ++echo "configure:8940: checking for ino64_t" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8901,7 +8945,7 @@ + samba_cv_HAVE_INO64_T=cross + else + cat > conftest.$ac_ext < + main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); } + EOF +-if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_INO64_T=yes + else +@@ -8934,7 +8978,7 @@ + fi + + echo $ac_n "checking for dev64_t""... $ac_c" 1>&6 +-echo "configure:8938: checking for dev64_t" >&5 ++echo "configure:8982: checking for dev64_t" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -8943,7 +8987,7 @@ + samba_cv_HAVE_DEV64_T=cross + else + cat > conftest.$ac_ext < + main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); } + EOF +-if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_DEV64_T=yes + else +@@ -8976,13 +9020,13 @@ + fi + + echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6 +-echo "configure:8980: checking for struct dirent64" >&5 ++echo "configure:9024: checking for struct dirent64" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_STRUCT_DIRENT64=yes + else +@@ -9015,7 +9059,7 @@ + fi + + echo $ac_n "checking for major macro""... $ac_c" 1>&6 +-echo "configure:9019: checking for major macro" >&5 ++echo "configure:9063: checking for major macro" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9024,7 +9068,7 @@ + samba_cv_HAVE_DEVICE_MAJOR_FN=cross + else + cat > conftest.$ac_ext < + main() { dev_t dev; int i = major(dev); return 0; } + EOF +-if { (eval echo configure:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_DEVICE_MAJOR_FN=yes + else +@@ -9056,7 +9100,7 @@ + fi + + echo $ac_n "checking for minor macro""... $ac_c" 1>&6 +-echo "configure:9060: checking for minor macro" >&5 ++echo "configure:9104: checking for minor macro" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9065,7 +9109,7 @@ + samba_cv_HAVE_DEVICE_MINOR_FN=cross + else + cat > conftest.$ac_ext < + main() { dev_t dev; int i = minor(dev); return 0; } + EOF +-if { (eval echo configure:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_DEVICE_MINOR_FN=yes + else +@@ -9097,7 +9141,7 @@ + fi + + echo $ac_n "checking for makedev macro""... $ac_c" 1>&6 +-echo "configure:9101: checking for makedev macro" >&5 ++echo "configure:9145: checking for makedev macro" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9106,7 +9150,7 @@ + samba_cv_HAVE_MAKEDEV_FN=cross + else + cat > conftest.$ac_ext < + main() { dev_t dev = makedev(1,2); return 0; } + EOF +-if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_MAKEDEV_FN=yes + else +@@ -9138,7 +9182,7 @@ + fi + + echo $ac_n "checking for unsigned char""... $ac_c" 1>&6 +-echo "configure:9142: checking for unsigned char" >&5 ++echo "configure:9186: checking for unsigned char" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9147,12 +9191,12 @@ + samba_cv_HAVE_UNSIGNED_CHAR=cross + else + cat > conftest.$ac_ext < + main() { char c; c=250; exit((c > 0)?0:1); } + EOF +-if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_UNSIGNED_CHAR=yes + else +@@ -9175,13 +9219,13 @@ + fi + + echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6 +-echo "configure:9179: checking for sin_len in sock" >&5 ++echo "configure:9223: checking for sin_len in sock" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9190,7 +9234,7 @@ + struct sockaddr_in sock; sock.sin_len = sizeof(sock); + ; return 0; } + EOF +-if { (eval echo configure:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_SOCK_SIN_LEN=yes + else +@@ -9211,13 +9255,13 @@ + fi + + echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6 +-echo "configure:9215: checking whether seekdir returns void" >&5 ++echo "configure:9259: checking whether seekdir returns void" >&5 + if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9226,7 +9270,7 @@ + return 0; + ; return 0; } + EOF +-if { (eval echo configure:9230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_SEEKDIR_RETURNS_VOID=yes + else +@@ -9247,20 +9291,20 @@ + fi + + echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6 +-echo "configure:9251: checking for __FILE__ macro" >&5 ++echo "configure:9295: checking for __FILE__ macro" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + printf("%s\n", __FILE__); + ; return 0; } + EOF +-if { (eval echo configure:9264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_FILE_MACRO=yes + else +@@ -9281,20 +9325,20 @@ + fi + + echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6 +-echo "configure:9285: checking for __FUNCTION__ macro" >&5 ++echo "configure:9329: checking for __FUNCTION__ macro" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + int main() { + printf("%s\n", __FUNCTION__); + ; return 0; } + EOF +-if { (eval echo configure:9298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_FUNCTION_MACRO=yes + else +@@ -9315,7 +9359,7 @@ + fi + + echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6 +-echo "configure:9319: checking if gettimeofday takes tz argument" >&5 ++echo "configure:9363: checking if gettimeofday takes tz argument" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9324,14 +9368,14 @@ + samba_cv_HAVE_GETTIMEOFDAY_TZ=cross + else + cat > conftest.$ac_ext < + #include + main() { struct timeval tv; exit(gettimeofday(&tv, NULL));} + EOF +-if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_GETTIMEOFDAY_TZ=yes + else +@@ -9354,7 +9398,7 @@ + fi + + echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6 +-echo "configure:9358: checking for C99 vsnprintf" >&5 ++echo "configure:9402: checking for C99 vsnprintf" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9363,7 +9407,7 @@ + samba_cv_HAVE_C99_VSNPRINTF=cross + else + cat > conftest.$ac_ext < +@@ -9385,7 +9429,7 @@ + main() { foo("hello"); } + + EOF +-if { (eval echo configure:9389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_C99_VSNPRINTF=yes + else +@@ -9408,7 +9452,7 @@ + fi + + echo $ac_n "checking for broken readdir""... $ac_c" 1>&6 +-echo "configure:9412: checking for broken readdir" >&5 ++echo "configure:9456: checking for broken readdir" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9417,7 +9461,7 @@ + samba_cv_HAVE_BROKEN_READDIR=cross + else + cat > conftest.$ac_ext < + #include +@@ -9425,7 +9469,7 @@ + if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 && + di->d_name[0] == 0) exit(0); exit(1);} + EOF +-if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_BROKEN_READDIR=yes + else +@@ -9448,13 +9492,13 @@ + fi + + echo $ac_n "checking for utimbuf""... $ac_c" 1>&6 +-echo "configure:9452: checking for utimbuf" >&5 ++echo "configure:9496: checking for utimbuf" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9462,7 +9506,7 @@ + struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf)); + ; return 0; } + EOF +-if { (eval echo configure:9466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UTIMBUF=yes + else +@@ -9486,12 +9530,12 @@ + for ac_func in pututline pututxline updwtmp updwtmpx getutmpx + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:9490: checking for $ac_func" >&5 ++echo "configure:9534: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:9562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -9540,13 +9584,13 @@ + + + echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6 +-echo "configure:9544: checking for ut_name in utmp" >&5 ++echo "configure:9588: checking for ut_name in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9554,7 +9598,7 @@ + struct utmp ut; ut.ut_name[0] = 'a'; + ; return 0; } + EOF +-if { (eval echo configure:9558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_NAME=yes + else +@@ -9575,13 +9619,13 @@ + fi + + echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6 +-echo "configure:9579: checking for ut_user in utmp" >&5 ++echo "configure:9623: checking for ut_user in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9589,7 +9633,7 @@ + struct utmp ut; ut.ut_user[0] = 'a'; + ; return 0; } + EOF +-if { (eval echo configure:9593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_USER=yes + else +@@ -9610,13 +9654,13 @@ + fi + + echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6 +-echo "configure:9614: checking for ut_id in utmp" >&5 ++echo "configure:9658: checking for ut_id in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9624,7 +9668,7 @@ + struct utmp ut; ut.ut_id[0] = 'a'; + ; return 0; } + EOF +-if { (eval echo configure:9628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_ID=yes + else +@@ -9645,13 +9689,13 @@ + fi + + echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6 +-echo "configure:9649: checking for ut_host in utmp" >&5 ++echo "configure:9693: checking for ut_host in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9659,7 +9703,7 @@ + struct utmp ut; ut.ut_host[0] = 'a'; + ; return 0; } + EOF +-if { (eval echo configure:9663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_HOST=yes + else +@@ -9680,13 +9724,13 @@ + fi + + echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6 +-echo "configure:9684: checking for ut_time in utmp" >&5 ++echo "configure:9728: checking for ut_time in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9694,7 +9738,7 @@ + struct utmp ut; time_t t; ut.ut_time = t; + ; return 0; } + EOF +-if { (eval echo configure:9698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_TIME=yes + else +@@ -9715,13 +9759,13 @@ + fi + + echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6 +-echo "configure:9719: checking for ut_tv in utmp" >&5 ++echo "configure:9763: checking for ut_tv in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9729,7 +9773,7 @@ + struct utmp ut; struct timeval tv; ut.ut_tv = tv; + ; return 0; } + EOF +-if { (eval echo configure:9733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_TV=yes + else +@@ -9750,13 +9794,13 @@ + fi + + echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6 +-echo "configure:9754: checking for ut_type in utmp" >&5 ++echo "configure:9798: checking for ut_type in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9764,7 +9808,7 @@ + struct utmp ut; ut.ut_type = 0; + ; return 0; } + EOF +-if { (eval echo configure:9768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_TYPE=yes + else +@@ -9785,13 +9829,13 @@ + fi + + echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6 +-echo "configure:9789: checking for ut_pid in utmp" >&5 ++echo "configure:9833: checking for ut_pid in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9799,7 +9843,7 @@ + struct utmp ut; ut.ut_pid = 0; + ; return 0; } + EOF +-if { (eval echo configure:9803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_PID=yes + else +@@ -9820,13 +9864,13 @@ + fi + + echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6 +-echo "configure:9824: checking for ut_exit in utmp" >&5 ++echo "configure:9868: checking for ut_exit in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9834,7 +9878,7 @@ + struct utmp ut; ut.ut_exit.e_exit = 0; + ; return 0; } + EOF +-if { (eval echo configure:9838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_EXIT=yes + else +@@ -9855,13 +9899,13 @@ + fi + + echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6 +-echo "configure:9859: checking for ut_addr in utmp" >&5 ++echo "configure:9903: checking for ut_addr in utmp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9869,7 +9913,7 @@ + struct utmp ut; ut.ut_addr = 0; + ; return 0; } + EOF +-if { (eval echo configure:9873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UT_UT_ADDR=yes + else +@@ -9891,13 +9935,13 @@ + + if test x$ac_cv_func_pututline = xyes ; then + echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6 +-echo "configure:9895: checking whether pututline returns pointer" >&5 ++echo "configure:9939: checking whether pututline returns pointer" >&5 + if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9905,7 +9949,7 @@ + struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg); + ; return 0; } + EOF +-if { (eval echo configure:9909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_PUTUTLINE_RETURNS_UTMP=yes + else +@@ -9927,13 +9971,13 @@ + fi + + echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6 +-echo "configure:9931: checking for ut_syslen in utmpx" >&5 ++echo "configure:9975: checking for ut_syslen in utmpx" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -9941,7 +9985,7 @@ + struct utmpx ux; ux.ut_syslen = 0; + ; return 0; } + EOF +-if { (eval echo configure:9945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:9989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UX_UT_SYSLEN=yes + else +@@ -9962,7 +10006,7 @@ + fi + + echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6 +-echo "configure:9966: checking for Linux kernel oplocks" >&5 ++echo "configure:10010: checking for Linux kernel oplocks" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -9971,7 +10015,7 @@ + samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross + else + cat > conftest.$ac_ext < +@@ -9985,7 +10029,7 @@ + } + + EOF +-if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes + else +@@ -10008,7 +10052,7 @@ + fi + + echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6 +-echo "configure:10012: checking for kernel change notify support" >&5 ++echo "configure:10056: checking for kernel change notify support" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10017,7 +10061,7 @@ + samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross + else + cat > conftest.$ac_ext < +@@ -10031,7 +10075,7 @@ + } + + EOF +-if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes + else +@@ -10054,7 +10098,7 @@ + fi + + echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6 +-echo "configure:10058: checking for kernel share modes" >&5 ++echo "configure:10102: checking for kernel share modes" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10063,7 +10107,7 @@ + samba_cv_HAVE_KERNEL_SHARE_MODES=cross + else + cat > conftest.$ac_ext < +@@ -10079,7 +10123,7 @@ + } + + EOF +-if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_KERNEL_SHARE_MODES=yes + else +@@ -10105,13 +10149,13 @@ + + + echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6 +-echo "configure:10109: checking for IRIX kernel oplock type definitions" >&5 ++echo "configure:10153: checking for IRIX kernel oplock type definitions" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -10119,7 +10163,7 @@ + oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1; + ; return 0; } + EOF +-if { (eval echo configure:10123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes + else +@@ -10140,7 +10184,7 @@ + fi + + echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6 +-echo "configure:10144: checking for irix specific capabilities" >&5 ++echo "configure:10188: checking for irix specific capabilities" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10149,7 +10193,7 @@ + samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross + else + cat > conftest.$ac_ext < + #include +@@ -10164,7 +10208,7 @@ + } + + EOF +-if { (eval echo configure:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes + else +@@ -10192,13 +10236,13 @@ + # + + echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6 +-echo "configure:10196: checking for int16 typedef included by rpc/rpc.h" >&5 ++echo "configure:10240: checking for int16 typedef included by rpc/rpc.h" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #if defined(HAVE_RPC_RPC_H) +@@ -10208,7 +10252,7 @@ + int16 testvar; + ; return 0; } + EOF +-if { (eval echo configure:10212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:10256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes + else +@@ -10229,13 +10273,13 @@ + fi + + echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6 +-echo "configure:10233: checking for uint16 typedef included by rpc/rpc.h" >&5 ++echo "configure:10277: checking for uint16 typedef included by rpc/rpc.h" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #if defined(HAVE_RPC_RPC_H) +@@ -10245,7 +10289,7 @@ + uint16 testvar; + ; return 0; } + EOF +-if { (eval echo configure:10249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:10293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes + else +@@ -10266,13 +10310,13 @@ + fi + + echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6 +-echo "configure:10270: checking for int32 typedef included by rpc/rpc.h" >&5 ++echo "configure:10314: checking for int32 typedef included by rpc/rpc.h" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #if defined(HAVE_RPC_RPC_H) +@@ -10282,7 +10326,7 @@ + int32 testvar; + ; return 0; } + EOF +-if { (eval echo configure:10286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:10330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes + else +@@ -10303,13 +10347,13 @@ + fi + + echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6 +-echo "configure:10307: checking for uint32 typedef included by rpc/rpc.h" >&5 ++echo "configure:10351: checking for uint32 typedef included by rpc/rpc.h" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #if defined(HAVE_RPC_RPC_H) +@@ -10319,7 +10363,7 @@ + uint32 testvar; + ; return 0; } + EOF +-if { (eval echo configure:10323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:10367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes + else +@@ -10341,13 +10385,13 @@ + + + echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6 +-echo "configure:10345: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5 ++echo "configure:10389: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #ifdef HAVE_SYS_SECURITY_H +@@ -10361,7 +10405,7 @@ + int testvar; + ; return 0; } + EOF +-if { (eval echo configure:10365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:10409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no + else +@@ -10382,16 +10426,16 @@ + fi + + echo $ac_n "checking for test routines""... $ac_c" 1>&6 +-echo "configure:10386: checking for test routines" >&5 ++echo "configure:10430: checking for test routines" >&5 + if test "$cross_compiling" = yes; then + echo "configure: warning: cannot run when cross-compiling" 1>&2 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + echo "$ac_t""yes" 1>&6 + else +@@ -10405,7 +10449,7 @@ + + + echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6 +-echo "configure:10409: checking for ftruncate extend" >&5 ++echo "configure:10453: checking for ftruncate extend" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10414,11 +10458,11 @@ + samba_cv_HAVE_FTRUNCATE_EXTEND=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_FTRUNCATE_EXTEND=yes + else +@@ -10441,7 +10485,7 @@ + fi + + echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6 +-echo "configure:10445: checking for broken getgroups" >&5 ++echo "configure:10489: checking for broken getgroups" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10450,11 +10494,11 @@ + samba_cv_HAVE_BROKEN_GETGROUPS=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_BROKEN_GETGROUPS=yes + else +@@ -10477,7 +10521,7 @@ + fi + + echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6 +-echo "configure:10481: checking whether getpass should be replaced" >&5 ++echo "configure:10525: checking whether getpass should be replaced" >&5 + if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10485,7 +10529,7 @@ + SAVE_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:10546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_REPLACE_GETPASS=yes + else +@@ -10521,7 +10565,7 @@ + fi + + echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6 +-echo "configure:10525: checking for broken inet_ntoa" >&5 ++echo "configure:10569: checking for broken inet_ntoa" >&5 + if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10530,7 +10574,7 @@ + samba_cv_REPLACE_INET_NTOA=cross + else + cat > conftest.$ac_ext < +@@ -10544,7 +10588,7 @@ + strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); } + exit(1);} + EOF +-if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_REPLACE_INET_NTOA=yes + else +@@ -10567,7 +10611,7 @@ + fi + + echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6 +-echo "configure:10571: checking for secure mkstemp" >&5 ++echo "configure:10615: checking for secure mkstemp" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10576,7 +10620,7 @@ + samba_cv_HAVE_SECURE_MKSTEMP=cross + else + cat > conftest.$ac_ext < + #include +@@ -10593,7 +10637,7 @@ + exit(0); + } + EOF +-if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_SECURE_MKSTEMP=yes + else +@@ -10616,7 +10660,7 @@ + fi + + echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6 +-echo "configure:10620: checking for sysconf(_SC_NGROUPS_MAX)" >&5 ++echo "configure:10664: checking for sysconf(_SC_NGROUPS_MAX)" >&5 + if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10625,12 +10669,12 @@ + samba_cv_SYSCONF_SC_NGROUPS_MAX=cross + else + cat > conftest.$ac_ext < + main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); } + EOF +-if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_SYSCONF_SC_NGROUPS_MAX=yes + else +@@ -10653,7 +10697,7 @@ + fi + + echo $ac_n "checking for root""... $ac_c" 1>&6 +-echo "configure:10657: checking for root" >&5 ++echo "configure:10701: checking for root" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10662,11 +10706,11 @@ + samba_cv_HAVE_ROOT=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_ROOT=yes + else +@@ -10694,7 +10738,7 @@ + # look for a method of finding the list of network interfaces + iface=no; + echo $ac_n "checking for iface AIX""... $ac_c" 1>&6 +-echo "configure:10698: checking for iface AIX" >&5 ++echo "configure:10742: checking for iface AIX" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10703,7 +10747,7 @@ + samba_cv_HAVE_IFACE_AIX=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_IFACE_AIX=yes + else +@@ -10735,7 +10779,7 @@ + + if test $iface = no; then + echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6 +-echo "configure:10739: checking for iface ifconf" >&5 ++echo "configure:10783: checking for iface ifconf" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10744,7 +10788,7 @@ + samba_cv_HAVE_IFACE_IFCONF=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_IFACE_IFCONF=yes + else +@@ -10777,7 +10821,7 @@ + + if test $iface = no; then + echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6 +-echo "configure:10781: checking for iface ifreq" >&5 ++echo "configure:10825: checking for iface ifreq" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10786,7 +10830,7 @@ + samba_cv_HAVE_IFACE_IFREQ=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_IFACE_IFREQ=yes + else +@@ -10823,7 +10867,7 @@ + seteuid=no; + if test $seteuid = no; then + echo $ac_n "checking for setresuid""... $ac_c" 1>&6 +-echo "configure:10827: checking for setresuid" >&5 ++echo "configure:10871: checking for setresuid" >&5 + if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10832,7 +10876,7 @@ + samba_cv_USE_SETRESUID=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_USE_SETRESUID=yes + else +@@ -10866,7 +10910,7 @@ + + if test $seteuid = no; then + echo $ac_n "checking for setreuid""... $ac_c" 1>&6 +-echo "configure:10870: checking for setreuid" >&5 ++echo "configure:10914: checking for setreuid" >&5 + if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10875,7 +10919,7 @@ + samba_cv_USE_SETREUID=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_USE_SETREUID=yes + else +@@ -10908,7 +10952,7 @@ + + if test $seteuid = no; then + echo $ac_n "checking for seteuid""... $ac_c" 1>&6 +-echo "configure:10912: checking for seteuid" >&5 ++echo "configure:10956: checking for seteuid" >&5 + if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10917,7 +10961,7 @@ + samba_cv_USE_SETEUID=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:10973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_USE_SETEUID=yes + else +@@ -10950,7 +10994,7 @@ + + if test $seteuid = no; then + echo $ac_n "checking for setuidx""... $ac_c" 1>&6 +-echo "configure:10954: checking for setuidx" >&5 ++echo "configure:10998: checking for setuidx" >&5 + if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -10959,7 +11003,7 @@ + samba_cv_USE_SETUIDX=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:11015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_USE_SETUIDX=yes + else +@@ -10992,7 +11036,7 @@ + + + echo $ac_n "checking for working mmap""... $ac_c" 1>&6 +-echo "configure:10996: checking for working mmap" >&5 ++echo "configure:11040: checking for working mmap" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -11001,11 +11045,11 @@ + samba_cv_HAVE_MMAP=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_MMAP=yes + else +@@ -11028,7 +11072,7 @@ + fi + + echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6 +-echo "configure:11032: checking for ftruncate needs root" >&5 ++echo "configure:11076: checking for ftruncate needs root" >&5 + if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -11037,11 +11081,11 @@ + samba_cv_FTRUNCATE_NEEDS_ROOT=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:11089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_FTRUNCATE_NEEDS_ROOT=yes + else +@@ -11064,7 +11108,7 @@ + fi + + echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6 +-echo "configure:11068: checking for fcntl locking" >&5 ++echo "configure:11112: checking for fcntl locking" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -11073,11 +11117,11 @@ + samba_cv_HAVE_FCNTL_LOCK=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_FCNTL_LOCK=yes + else +@@ -11100,7 +11144,7 @@ + fi + + echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6 +-echo "configure:11104: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5 ++echo "configure:11148: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -11109,11 +11153,11 @@ + samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:11161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes + else +@@ -11138,7 +11182,7 @@ + + + echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6 +-echo "configure:11142: checking for 64 bit fcntl locking" >&5 ++echo "configure:11186: checking for 64 bit fcntl locking" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -11147,7 +11191,7 @@ + samba_cv_HAVE_STRUCT_FLOCK64=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:11219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_STRUCT_FLOCK64=yes + else +@@ -11196,13 +11240,13 @@ + fi + + echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 +-echo "configure:11200: checking for st_blocks in struct stat" >&5 ++echo "configure:11244: checking for st_blocks in struct stat" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -11211,7 +11255,7 @@ + struct stat st; st.st_blocks = 0; + ; return 0; } + EOF +-if { (eval echo configure:11215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:11259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_STAT_ST_BLOCKS=yes + else +@@ -11234,13 +11278,13 @@ + case "$host_os" in + *linux*) + echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6 +-echo "configure:11238: checking for broken RedHat 7.2 system header files" >&5 ++echo "configure:11282: checking for broken RedHat 7.2 system header files" >&5 + if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:11302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no + else +@@ -11277,13 +11321,13 @@ + esac + + echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6 +-echo "configure:11281: checking for broken nisplus include files" >&5 ++echo "configure:11325: checking for broken nisplus include files" >&5 + if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #if defined(HAVE_RPCSVC_NIS_H) +@@ -11293,7 +11337,7 @@ + int i; + ; return 0; } + EOF +-if { (eval echo configure:11297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:11341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no + else +@@ -11317,7 +11361,7 @@ + ################################################# + # check for smbwrapper support + echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6 +-echo "configure:11321: checking whether to use smbwrapper" >&5 ++echo "configure:11365: checking whether to use smbwrapper" >&5 + # Check whether --with-smbwrapper or --without-smbwrapper was given. + if test "${with_smbwrapper+set}" = set; then + withval="$with_smbwrapper" +@@ -11361,7 +11405,7 @@ + ################################################# + # check for the AFS filesystem + echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6 +-echo "configure:11365: checking whether to use AFS" >&5 ++echo "configure:11409: checking whether to use AFS" >&5 + # Check whether --with-afs or --without-afs was given. + if test "${with_afs+set}" = set; then + withval="$with_afs" +@@ -11387,7 +11431,7 @@ + ################################################# + # check for the DFS auth system + echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6 +-echo "configure:11391: checking whether to use DCE/DFS auth" >&5 ++echo "configure:11435: checking whether to use DCE/DFS auth" >&5 + # Check whether --with-dfs or --without-dfs was given. + if test "${with_dfs+set}" = set; then + withval="$with_dfs" +@@ -11412,7 +11456,7 @@ + ################################################# + # check for Kerberos IV auth system + echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6 +-echo "configure:11416: checking whether to use Kerberos IV" >&5 ++echo "configure:11460: checking whether to use Kerberos IV" >&5 + # Check whether --with-krb4 or --without-krb4 was given. + if test "${with_krb4+set}" = set; then + withval="$with_krb4" +@@ -11424,7 +11468,7 @@ + EOF + + echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6 +-echo "configure:11428: checking for dn_expand in -lresolv" >&5 ++echo "configure:11472: checking for dn_expand in -lresolv" >&5 + ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -11432,7 +11476,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lresolv $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -11487,7 +11531,7 @@ + ################################################# + # check for Kerberos 5 auth system + echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6 +-echo "configure:11491: checking whether to use Kerberos 5" >&5 ++echo "configure:11535: checking whether to use Kerberos 5" >&5 + # Check whether --with-krb5 or --without-krb5 was given. + if test "${with_krb5+set}" = set; then + withval="$with_krb5" +@@ -11515,7 +11559,7 @@ + ################################################# + # check for automount support + echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6 +-echo "configure:11519: checking whether to use AUTOMOUNT" >&5 ++echo "configure:11563: checking whether to use AUTOMOUNT" >&5 + # Check whether --with-automount or --without-automount was given. + if test "${with_automount+set}" = set; then + withval="$with_automount" +@@ -11540,7 +11584,7 @@ + ################################################# + # check for smbmount support + echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6 +-echo "configure:11544: checking whether to use SMBMOUNT" >&5 ++echo "configure:11588: checking whether to use SMBMOUNT" >&5 + # Check whether --with-smbmount or --without-smbmount was given. + if test "${with_smbmount+set}" = set; then + withval="$with_smbmount" +@@ -11577,7 +11621,7 @@ + # check for a PAM password database + with_pam_for_crypt=no + echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6 +-echo "configure:11581: checking whether to use PAM password database" >&5 ++echo "configure:11625: checking whether to use PAM password database" >&5 + # Check whether --with-pam or --without-pam was given. + if test "${with_pam+set}" = set; then + withval="$with_pam" +@@ -11603,7 +11647,7 @@ + + # we can't build a pam module if we don't have pam. + echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6 +-echo "configure:11607: checking for pam_get_data in -lpam" >&5 ++echo "configure:11651: checking for pam_get_data in -lpam" >&5 + ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -11611,7 +11655,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lpam $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -11649,7 +11693,7 @@ + ################################################# + # check for pam_smbpass support + echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6 +-echo "configure:11653: checking whether to use pam_smbpass" >&5 ++echo "configure:11697: checking whether to use pam_smbpass" >&5 + # Check whether --with-pam_smbpass or --without-pam_smbpass was given. + if test "${with_pam_smbpass+set}" = set; then + withval="$with_pam_smbpass" +@@ -11691,12 +11735,12 @@ + for ac_func in crypt + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +-echo "configure:11695: checking for $ac_func" >&5 ++echo "configure:11739: checking for $ac_func" >&5 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:11767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" + else +@@ -11745,7 +11789,7 @@ + + if test x"$ac_cv_func_crypt" = x"no"; then + echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 +-echo "configure:11749: checking for crypt in -lcrypt" >&5 ++echo "configure:11793: checking for crypt in -lcrypt" >&5 + ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -11753,7 +11797,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lcrypt $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:11812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -11799,7 +11843,7 @@ + ## + if test $with_pam_for_crypt = no; then + echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6 +-echo "configure:11803: checking for a crypt that needs truncated salt" >&5 ++echo "configure:11847: checking for a crypt that needs truncated salt" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -11808,11 +11852,11 @@ + samba_cv_HAVE_TRUNCATED_SALT=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:11860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + samba_cv_HAVE_TRUNCATED_SALT=no + else +@@ -11850,7 +11894,7 @@ + ################################################# + # check for a TDB password database + echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6 +-echo "configure:11854: checking whether to use TDB SAM database" >&5 ++echo "configure:11898: checking whether to use TDB SAM database" >&5 + # Check whether --with-tdbsam or --without-tdbsam was given. + if test "${with_tdbsam+set}" = set; then + withval="$with_tdbsam" +@@ -11876,7 +11920,7 @@ + ################################################# + # check for a LDAP password database + echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6 +-echo "configure:11880: checking whether to use LDAP SAM database" >&5 ++echo "configure:11924: checking whether to use LDAP SAM database" >&5 + # Check whether --with-ldapsam or --without-ldapsam was given. + if test "${with_ldapsam+set}" = set; then + withval="$with_ldapsam" +@@ -11903,7 +11947,7 @@ + ################################################# + # check for a NISPLUS password database + echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6 +-echo "configure:11907: checking whether to use NISPLUS SAM database" >&5 ++echo "configure:11951: checking whether to use NISPLUS SAM database" >&5 + # Check whether --with-nisplussam or --without-nisplussam was given. + if test "${with_nisplussam+set}" = set; then + withval="$with_nisplussam" +@@ -11931,7 +11975,7 @@ + # smbpasswd SAM is only used if another format + # has not been defined + echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6 +-echo "configure:11935: checking whether to use traditional smbpasswd file" >&5 ++echo "configure:11979: checking whether to use traditional smbpasswd file" >&5 + if test $with_smbpasswd_sam = yes; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +@@ -11953,7 +11997,7 @@ + ################################################# + # check for a NISPLUS_HOME support + echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6 +-echo "configure:11957: checking whether to use NISPLUS_HOME" >&5 ++echo "configure:12001: checking whether to use NISPLUS_HOME" >&5 + # Check whether --with-nisplus-home or --without-nisplus-home was given. + if test "${with_nisplus_home+set}" = set; then + withval="$with_nisplus_home" +@@ -11978,7 +12022,7 @@ + ################################################# + # check for the secure socket layer + echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6 +-echo "configure:11982: checking whether to use SSL" >&5 ++echo "configure:12026: checking whether to use SSL" >&5 + # Check whether --with-ssl or --without-ssl was given. + if test "${with_ssl+set}" = set; then + withval="$with_ssl" +@@ -12052,7 +12096,7 @@ + ################################################# + # check for syslog logging + echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6 +-echo "configure:12056: checking whether to use syslog logging" >&5 ++echo "configure:12100: checking whether to use syslog logging" >&5 + # Check whether --with-syslog or --without-syslog was given. + if test "${with_syslog+set}" = set; then + withval="$with_syslog" +@@ -12077,7 +12121,7 @@ + ################################################# + # check for a shared memory profiling support + echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6 +-echo "configure:12081: checking whether to use profiling" >&5 ++echo "configure:12125: checking whether to use profiling" >&5 + # Check whether --with-profiling-data or --without-profiling-data was given. + if test "${with_profiling_data+set}" = set; then + withval="$with_profiling_data" +@@ -12105,7 +12149,7 @@ + QUOTAOBJS=smbd/noquotas.o + + echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6 +-echo "configure:12109: checking whether to support disk-quotas" >&5 ++echo "configure:12153: checking whether to support disk-quotas" >&5 + # Check whether --with-quotas or --without-quotas was given. + if test "${with_quotas+set}" = set; then + withval="$with_quotas" +@@ -12117,13 +12161,13 @@ + *linux*) + # Check for kernel 2.4.x quota braindamage... + echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6 +-echo "configure:12121: checking for linux 2.4.x quota braindamage.." >&5 ++echo "configure:12165: checking for linux 2.4.x quota braindamage.." >&5 + if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -12135,7 +12179,7 @@ + struct mem_dqblk D; + ; return 0; } + EOF +-if { (eval echo configure:12139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:12183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_linux_2_4_quota_braindamage=yes + else +@@ -12179,7 +12223,7 @@ + # check for experimental utmp accounting + + echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6 +-echo "configure:12183: checking whether to support utmp accounting" >&5 ++echo "configure:12227: checking whether to support utmp accounting" >&5 + # Check whether --with-utmp or --without-utmp was given. + if test "${with_utmp+set}" = set; then + withval="$with_utmp" +@@ -12205,7 +12249,7 @@ + # check for MS Dfs support + + echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6 +-echo "configure:12209: checking whether to support Microsoft Dfs" >&5 ++echo "configure:12253: checking whether to support Microsoft Dfs" >&5 + # Check whether --with-msdfs or --without-msdfs was given. + if test "${with_msdfs+set}" = set; then + withval="$with_msdfs" +@@ -12231,7 +12275,7 @@ + # check for Samba VFS support + + echo $ac_n "checking whether to support the experimental Samba vfs""... $ac_c" 1>&6 +-echo "configure:12235: checking whether to support the experimental Samba vfs" >&5 ++echo "configure:12279: checking whether to support the experimental Samba vfs" >&5 + # Check whether --with-vfs or --without-vfs was given. + if test "${with_vfs+set}" = set; then + withval="$with_vfs" +@@ -12258,9 +12302,9 @@ + # should we build libsmbclient? + + LIBSMBCLIENT_SHARED= +-LIBSMBCLIENT= ++LIBSMBCLIENT_STATIC= + echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6 +-echo "configure:12264: checking whether to build the libsmbclient shared library" >&5 ++echo "configure:12308: checking whether to build the libsmbclient shared library" >&5 + # Check whether --with-libsmbclient or --without-libsmbclient was given. + if test "${with_libsmbclient+set}" = set; then + withval="$with_libsmbclient" +@@ -12268,10 +12312,10 @@ + yes) + if test $BLDSHARED = true; then + LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT +- LIBSMBCLIENT=libsmbclient ++ LIBSMBCLIENT_STATIC=bin/libsmbclient.a + echo "$ac_t""yes" 1>&6 + else +- echo "$ac_t""no shared library support" 1>&6 ++ echo "$ac_t""no static or shared libsmbclient support" 1>&6 + fi + ;; + *) +@@ -12287,14 +12331,14 @@ + ################################################# + # these tests are taken from the GNU fileutils package + echo "checking how to get filesystem space usage" 1>&6 +-echo "configure:12291: checking how to get filesystem space usage" >&5 ++echo "configure:12335: checking how to get filesystem space usage" >&5 + space=no + + # Test for statvfs64. + if test $space = no; then + # SVR4 + echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6 +-echo "configure:12298: checking statvfs64 function (SVR4)" >&5 ++echo "configure:12342: checking statvfs64 function (SVR4)" >&5 + if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -12302,7 +12346,7 @@ + fu_cv_sys_stat_statvfs64=cross + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:12364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + fu_cv_sys_stat_statvfs64=yes + else +@@ -12349,12 +12393,12 @@ + if test $space = no; then + # SVR4 + echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6 +-echo "configure:12353: checking statvfs function (SVR4)" >&5 ++echo "configure:12397: checking statvfs function (SVR4)" >&5 + if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + #include +@@ -12362,7 +12406,7 @@ + struct statvfs fsd; statvfs (0, &fsd); + ; return 0; } + EOF +-if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + fu_cv_sys_stat_statvfs=yes + else +@@ -12387,7 +12431,7 @@ + if test $space = no; then + # DEC Alpha running OSF/1 + echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6 +-echo "configure:12391: checking for 3-argument statfs function (DEC OSF/1)" >&5 ++echo "configure:12435: checking for 3-argument statfs function (DEC OSF/1)" >&5 + if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -12395,7 +12439,7 @@ + fu_cv_sys_stat_statfs3_osf1=no + else + cat > conftest.$ac_ext < +@@ -12408,7 +12452,7 @@ + exit (statfs (".", &fsd, sizeof (struct statfs))); + } + EOF +-if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:12456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + fu_cv_sys_stat_statfs3_osf1=yes + else +@@ -12435,7 +12479,7 @@ + if test $space = no; then + # AIX + echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6 +-echo "configure:12439: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5 ++echo "configure:12483: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5 + if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -12443,7 +12487,7 @@ + fu_cv_sys_stat_statfs2_bsize=no + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:12510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + fu_cv_sys_stat_statfs2_bsize=yes + else +@@ -12489,7 +12533,7 @@ + if test $space = no; then + # SVR3 + echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6 +-echo "configure:12493: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5 ++echo "configure:12537: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5 + if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -12497,7 +12541,7 @@ + fu_cv_sys_stat_statfs4=no + else + cat > conftest.$ac_ext < + #include +@@ -12507,7 +12551,7 @@ + exit (statfs (".", &fsd, sizeof fsd, 0)); + } + EOF +-if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:12555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + fu_cv_sys_stat_statfs4=yes + else +@@ -12534,7 +12578,7 @@ + if test $space = no; then + # 4.4BSD and NetBSD + echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6 +-echo "configure:12538: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5 ++echo "configure:12582: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5 + if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -12542,7 +12586,7 @@ + fu_cv_sys_stat_statfs2_fsize=no + else + cat > conftest.$ac_ext < + #ifdef HAVE_SYS_PARAM_H +@@ -12558,7 +12602,7 @@ + exit (statfs (".", &fsd)); + } + EOF +-if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:12606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + fu_cv_sys_stat_statfs2_fsize=yes + else +@@ -12585,7 +12629,7 @@ + if test $space = no; then + # Ultrix + echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6 +-echo "configure:12589: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 ++echo "configure:12633: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 + if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +@@ -12593,7 +12637,7 @@ + fu_cv_sys_stat_fs_data=no + else + cat > conftest.$ac_ext < + #ifdef HAVE_SYS_PARAM_H +@@ -12613,7 +12657,7 @@ + exit (statfs (".", &fsd) != 1); + } + EOF +-if { (eval echo configure:12617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + fu_cv_sys_stat_fs_data=yes + else +@@ -12646,9 +12690,9 @@ + # file support. + # + echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6 +-echo "configure:12650: checking if large file support can be enabled" >&5 ++echo "configure:12694: checking if large file support can be enabled" >&5 + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++if { (eval echo configure:12709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes + else +@@ -12728,7 +12772,7 @@ + # check for ACL support + + echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6 +-echo "configure:12732: checking whether to support ACLs" >&5 ++echo "configure:12776: checking whether to support ACLs" >&5 + # Check whether --with-acl-support or --without-acl-support was given. + if test "${with_acl_support+set}" = set; then + withval="$with_acl_support" +@@ -12781,7 +12825,7 @@ + ;; + *) + echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 +-echo "configure:12785: checking for acl_get_file in -lacl" >&5 ++echo "configure:12829: checking for acl_get_file in -lacl" >&5 + ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +@@ -12789,7 +12833,7 @@ + ac_save_LIBS="$LIBS" + LIBS="-lacl $LIBS" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:12848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" + else +@@ -12828,13 +12872,13 @@ + fi + + echo $ac_n "checking for ACL support""... $ac_c" 1>&6 +-echo "configure:12832: checking for ACL support" >&5 ++echo "configure:12876: checking for ACL support" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -12842,7 +12886,7 @@ + acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p); + ; return 0; } + EOF +-if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:12890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + samba_cv_HAVE_POSIX_ACLS=yes + else +@@ -12862,13 +12906,13 @@ + EOF + + echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6 +-echo "configure:12866: checking for acl_get_perm_np" >&5 ++echo "configure:12910: checking for acl_get_perm_np" >&5 + if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + + cat > conftest.$ac_ext < + #include +@@ -12876,7 +12920,7 @@ + acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm); + ; return 0; } + EOF +-if { (eval echo configure:12880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++if { (eval echo configure:12924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + samba_cv_HAVE_ACL_GET_PERM_NP=yes + else +@@ -12931,7 +12975,7 @@ + # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS). + + echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6 +-echo "configure:12935: checking whether to build winbind" >&5 ++echo "configure:12979: checking whether to build winbind" >&5 + + # Initially, the value of $host_os decides whether winbind is supported + +@@ -13010,11 +13054,11 @@ + : + else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ++if { (eval echo configure:13062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null + then + echo "configure OK"; + else +@@ -13184,7 +13228,7 @@ + s%@SHLIBEXT@%$SHLIBEXT%g + s%@BLDSHARED@%$BLDSHARED%g + s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g +-s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g ++s%@LIBSMBCLIENT_STATIC@%$LIBSMBCLIENT_STATIC%g + s%@CC@%$CC%g + s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g + s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g +--- samba-2.2.2.cvs20020120.orig/source/configure.in ++++ samba-2.2.2.cvs20020120/source/configure.in +@@ -145,7 +145,7 @@ + AC_SUBST(SHLIBEXT) + AC_SUBST(BLDSHARED) + AC_SUBST(LIBSMBCLIENT_SHARED) +-AC_SUBST(LIBSMBCLIENT) ++AC_SUBST(LIBSMBCLIENT_STATIC) + + # compile with optimization and without debugging by default + CFLAGS="-O ${CFLAGS}" +@@ -340,6 +340,28 @@ + #endif + } + ], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross]) ++ if test x$LINUX_LFS_SUPPORT = xyes ; then ++ AC_TRY_RUN([ ++#include ++#include ++#include ++main() { ++ unsigned int *padding; ++ struct flock foo_lock = {F_WRLCK, SEEK_SET, 0, 1, 0}; ++ int fd = open("/dev/null", O_RDWR); ++ ++ /* Yes, we're depending on the internals of the Linux flock structure ++ here -- but this test is explicitly Linux-specific to begin with. */ ++ padding = (unsigned int *)&foo_lock; ++ padding[1] = 0xffffffff; ++ foo_lock.l_start = 0; ++ if (fcntl(fd, F_SETLK, &foo_lock) < 0) ++ exit(1); ++ ++ exit(0); ++} ++], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross]) ++ fi + CPPFLAGS="$old_CPPFLAGS" + if test x$LINUX_LFS_SUPPORT = xyes ; then + CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" +@@ -2232,7 +2254,7 @@ + # should we build libsmbclient? + + LIBSMBCLIENT_SHARED= +-LIBSMBCLIENT= ++LIBSMBCLIENT_STATIC= + AC_MSG_CHECKING(whether to build the libsmbclient shared library) + AC_ARG_WITH(libsmbclient, + [ --with-libsmbclient Build the libsmbclient shared library (default=no)], +@@ -2240,10 +2262,10 @@ + yes) + if test $BLDSHARED = true; then + LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT +- LIBSMBCLIENT=libsmbclient ++ LIBSMBCLIENT_STATIC=bin/libsmbclient.a + AC_MSG_RESULT(yes) + else +- AC_MSG_RESULT(no shared library support) ++ AC_MSG_RESULT(no static or shared libsmbclient support) + fi + ;; + *) diff --git a/packaging/Debian/debian/patches/loadparm.patch b/packaging/Debian/debian/patches/loadparm.patch new file mode 100644 index 0000000000..d7880a2514 --- /dev/null +++ b/packaging/Debian/debian/patches/loadparm.patch @@ -0,0 +1,78 @@ +--- samba-2.2.2.cvs20020201/source/param/loadparm.c.orig Fri Feb 1 17:03:50 2002 ++++ samba-2.2.2.cvs20020201/source/param/loadparm.c Fri Feb 1 18:45:41 2002 +@@ -1085,26 +1085,26 @@ + case PRINT_AIX: + case PRINT_LPRNT: + case PRINT_LPROS2: +- string_set(&sDefault.szLpqcommand, "lpq -P%p"); +- string_set(&sDefault.szLprmcommand, "lprm -P%p %j"); ++ string_set(&sDefault.szLpqcommand, "lpq -P'%p'"); ++ string_set(&sDefault.szLprmcommand, "lprm -P'%p' %j"); + string_set(&sDefault.szPrintcommand, +- "lpr -r -P%p %s"); ++ "lpr -r -P'%p' %s"); + break; + + case PRINT_LPRNG: + case PRINT_PLP: +- string_set(&sDefault.szLpqcommand, "lpq -P%p"); +- string_set(&sDefault.szLprmcommand, "lprm -P%p %j"); ++ string_set(&sDefault.szLpqcommand, "lpq -P'%p'"); ++ string_set(&sDefault.szLprmcommand, "lprm -P'%p' %j"); + string_set(&sDefault.szPrintcommand, +- "lpr -r -P%p %s"); ++ "lpr -r -P'%p' %s"); + string_set(&sDefault.szQueuepausecommand, +- "lpc stop %p"); ++ "lpc stop '%p'"); + string_set(&sDefault.szQueueresumecommand, +- "lpc start %p"); ++ "lpc start '%p'"); + string_set(&sDefault.szLppausecommand, +- "lpc hold %p %j"); ++ "lpc hold '%p' %j"); + string_set(&sDefault.szLpresumecommand, +- "lpc release %p %j"); ++ "lpc release '%p' %j"); + break; + + case PRINT_CUPS: +@@ -1120,19 +1120,19 @@ + string_set(&Globals.szPrintcapname, "cups"); + #else + string_set(&sDefault.szLpqcommand, +- "/usr/bin/lpstat -o %p"); ++ "/usr/bin/lpstat -o '%p'"); + string_set(&sDefault.szLprmcommand, +- "/usr/bin/cancel %p-%j"); ++ "/usr/bin/cancel '%p-%j'"); + string_set(&sDefault.szPrintcommand, +- "/usr/bin/lp -d %p %s; rm %s"); ++ "/usr/bin/lp -d '%p' %s; rm %s"); + string_set(&sDefault.szLppausecommand, +- "lp -i %p-%j -H hold"); ++ "lp -i '%p-%j' -H hold"); + string_set(&sDefault.szLpresumecommand, +- "lp -i %p-%j -H resume"); ++ "lp -i '%p-%j' -H resume"); + string_set(&sDefault.szQueuepausecommand, +- "/usr/bin/disable %p"); ++ "/usr/bin/disable '%p'"); + string_set(&sDefault.szQueueresumecommand, +- "/usr/bin/enable %p"); ++ "/usr/bin/enable '%p'"); + string_set(&Globals.szPrintcapname, "lpstat"); + #endif /* HAVE_CUPS */ + break; +@@ -1437,7 +1437,10 @@ + else + StrnCpy(ret, s, len); + +- trim_string(ret, "\"", "\""); ++ if (trim_string(ret, "\"", "\"")) { ++ if (strchr(ret,'"') != NULL) ++ StrnCpy(ret, s, len); ++ } + + standard_sub_basic(ret); + return (ret); diff --git a/packaging/Debian/debian/patches/samba.patch b/packaging/Debian/debian/patches/samba.patch new file mode 100644 index 0000000000..be251861cb --- /dev/null +++ b/packaging/Debian/debian/patches/samba.patch @@ -0,0 +1,199 @@ +--- samba-2.2.2.cvs20020120.orig/source/client/smbmount.c ++++ samba-2.2.2.cvs20020120/source/client/smbmount.c +@@ -719,7 +719,7 @@ + *lp = 0; + pstrcpy(password,lp+1); + got_pass = True; +- memset(strchr(opteq+1,'%')+1,'X',strlen(password)); ++ memset(strchr(opteq+1,'%')+1,'\0',strlen(password)); + } + if ((lp=strchr(username,'/'))) { + *lp = 0; +@@ -729,7 +729,7 @@ + !strcmp(opts, "password")) { + pstrcpy(password,opteq+1); + got_pass = True; +- memset(opteq+1,'X',strlen(password)); ++ memset(opteq+1,'\0',strlen(password)); + } else if(!strcmp(opts, "credentials")) { + pstrcpy(credentials,opteq+1); + } else if(!strcmp(opts, "netbiosname")) { +@@ -822,7 +822,7 @@ + *p = 0; + pstrcpy(password,p+1); + got_pass = True; +- memset(strchr(getenv("USER"),'%')+1,'X',strlen(password)); ++ memset(strchr(getenv("USER"),'%')+1,'\0',strlen(password)); + } + strupper(username); + } +--- samba-2.2.2.cvs20020120.orig/source/script/installbin.sh ++++ samba-2.2.2.cvs20020120/source/script/installbin.sh +@@ -11,7 +11,7 @@ + shift + shift + +-for d in $BASEDIR $BINDIR $LIBDIR $VARDIR $BASEDIR/private; do ++for d in $BASEDIR $BINDIR $LIBDIR $VARDIR; do + if [ ! -d $d ]; then + mkdir $d + if [ ! -d $d ]; then +@@ -33,9 +33,11 @@ + chmod $INSTALLPERMS $BINDIR/$p2 + + # this is a special case, mount needs this in a specific location +- if [ $p2 = smbmount ]; then +- ln -sf $BINDIR/$p2 /sbin/mount.smbfs +- fi ++# Commented out for the Debian Samba package. We take care of this ++# important symlink in debian/rules. (peloy@debian.org) ++# if [ $p2 = smbmount ]; then ++# ln -sf $BINDIR/$p2 /sbin/mount.smbfs ++# fi + done + + +--- samba-2.2.2.cvs20020120.orig/source/script/installswat.sh ++++ samba-2.2.2.cvs20020120/source/script/installswat.sh +@@ -48,8 +48,8 @@ + for f in $SRCDIR../docs/htmldocs/*.html; do + FNAME=$SWATDIR/help/`basename $f` + echo $FNAME +- cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? +- chmod 0644 $FNAME ++ ln -s ../../../../doc/samba-doc/htmldocs/`basename $f` $FNAME || echo Cannot install $FNAME. Does $USER have privileges? ++# chmod 0644 $FNAME + done + + # Install "server-side" includes +@@ -63,7 +63,10 @@ + + # Install Using Samba book + +-if [ "x$BOOKDIR" != "x" ]; then ++# For Debian we do not install anything here, we just create a symlink ++# pointing to /usr/share/doc/samba-doc/htmldocs/using_samba/ in ++# debian/rules (peloy@debian.org) ++if /bin/false; then + + # Create directories + +--- samba-2.2.2.cvs20020120.orig/source/web/diagnose.c ++++ samba-2.2.2.cvs20020120/source/web/diagnose.c +@@ -54,6 +54,7 @@ + static struct cli_state cli; + extern struct in_addr loopback_ip; + ++ loopback_ip.s_addr = htonl((127 << 24) + 1); + if (!cli_initialise(&cli)) + return False; + +--- samba-2.2.2.cvs20020120.orig/source/web/startstop.c ++++ samba-2.2.2.cvs20020120/source/web/startstop.c +@@ -37,7 +37,7 @@ + return; + } + +- slprintf(binfile, sizeof(pstring) - 1, "%s/smbd", SBINDIR); ++ slprintf(binfile, sizeof(pstring) - 1, "%s/smbd", "/usr/sbin"); + + become_daemon(); + +@@ -58,7 +58,7 @@ + return; + } + +- slprintf(binfile, sizeof(pstring) - 1, "%s/nmbd", SBINDIR); ++ slprintf(binfile, sizeof(pstring) - 1, "%s/nmbd", "/usr/sbin"); + + become_daemon(); + +--- samba-2.2.2.cvs20020120.orig/source/web/swat.c ++++ samba-2.2.2.cvs20020120/source/web/swat.c +@@ -49,6 +49,19 @@ + #define ENABLE_USER_FLAG "enable_user_flag" + #define RHOST "remote_host" + ++typedef struct html_conversion { ++ char src; ++ char *dest; ++} html_conversion; ++ ++static const html_conversion entities[] = { ++ { '"', """ }, ++ { '&', "&" }, ++ { '<', "<" }, ++ { '>', ">" }, ++ { '\0', NULL }, ++}; ++ + /* we need these because we link to locking*.o */ + void become_root(void) {} + void unbecome_root(void) {} +@@ -77,6 +90,51 @@ + return newstring; + } + ++static char *htmlentities(char *str) ++{ ++ int i,j, destlen = 0; ++ int length = strlen(str); ++ /* Feel free to use a pstring if appropriate -- I haven't ++ checked if it's guaranteed to be long enough, and suspect it ++ isn't. -SRL */ ++ char *dststr = NULL; ++ char *p; ++ ++ for (i = 0; i < length; i++) { ++ for (j = 0; entities[j].src; j++) { ++ if (str[i] == entities[j].src) { ++ destlen += strlen(entities[j].dest); ++ break; ++ } ++ } ++ if (!entities[j].src) { ++ destlen++; ++ } ++ } ++ if (length == destlen) { ++ return(strdup(str)); ++ } ++ p = dststr = malloc(destlen + 1); ++ if (!dststr) { ++ return(NULL); ++ } ++ dststr[destlen] = '\0'; ++ for (i = 0; i < length; i++) { ++ for (j = 0; entities[j].src; j++) { ++ if (str[i] == entities[j].src) { ++ strncpy(p, entities[j].dest, ++ strlen(entities[j].dest)); ++ p += strlen(entities[j].dest); ++ break; ++ } ++ } ++ if (!entities[j].src) { ++ *p++ = str[i]; ++ } ++ } ++ return(dststr); ++} ++ + static char *stripspace(char *str) + { + static char newstring[1024]; +@@ -182,8 +240,12 @@ + + case P_STRING: + case P_USTRING: +- printf("", +- make_parm_name(parm->label), *(char **)ptr); ++ str = htmlentities(*(char **)ptr); ++ printf("", ++ make_parm_name(parm->label), str); ++ if (str != NULL) { ++ free(str); ++ } + printf("", + make_parm_name(parm->label),fix_backslash((char *)(parm->def.svalue))); + break; diff --git a/packaging/Debian/debian/patches/smbadduser.patch b/packaging/Debian/debian/patches/smbadduser.patch new file mode 100644 index 0000000000..9bfb457301 --- /dev/null +++ b/packaging/Debian/debian/patches/smbadduser.patch @@ -0,0 +1,22 @@ +--- samba-2.2.2.cvs20020120.orig/source/script/smbadduser ++++ samba-2.2.2.cvs20020120/source/script/smbadduser +@@ -2,13 +2,14 @@ + # + # smbadduser - Written by Mike Zakharoff + # ++# Customized for Debian by Eloy A. Paris ++# + unalias * +-set path = ($path /usr/local/samba/bin) ++# No need to set a path in Debian ++#set path = ($path /usr/local/samba/bin) + +-set smbpasswd = /usr/local/samba/private/smbpasswd +-#set smbpasswd = /etc/samba.d/smbpasswd +-set user_map = /usr/local/samba/lib/users.map +-#set user_map = /etc/samba.d/smbusers ++set smbpasswd = /etc/samba/smbpasswd ++set user_map = /etc/samba/users.map + # + # Set to site specific passwd command + # diff --git a/packaging/Debian/debian/patches/smbclient-pager.patch b/packaging/Debian/debian/patches/smbclient-pager.patch new file mode 100644 index 0000000000..d600c1bd9c --- /dev/null +++ b/packaging/Debian/debian/patches/smbclient-pager.patch @@ -0,0 +1,11 @@ +--- samba-2.2.2.cvs20020120.orig/source/include/local.h ++++ samba-2.2.2.cvs20020120/source/include/local.h +@@ -105,7 +105,7 @@ + /* the default pager to use for the client "more" command. Users can + override this with the PAGER environment variable */ + #ifndef PAGER +-#define PAGER "more" ++#define PAGER "/usr/bin/pager" + #endif + + /* the size of the uid cache used to reduce valid user checks */ diff --git a/packaging/Debian/debian/patches/smbclient-xfer-speed.patch b/packaging/Debian/debian/patches/smbclient-xfer-speed.patch new file mode 100644 index 0000000000..3ff8b60069 --- /dev/null +++ b/packaging/Debian/debian/patches/smbclient-xfer-speed.patch @@ -0,0 +1,17 @@ +--- samba-2.2.2.cvs20020120/source/client/client.c.orig Wed Jan 23 23:32:44 2002 ++++ samba-2.2.2.cvs20020120/source/client/client.c Wed Jan 23 23:33:50 2002 +@@ -92,10 +92,10 @@ + extern file_info def_finfo; + + /* timing globals */ +-int get_total_size = 0; +-int get_total_time_ms = 0; +-int put_total_size = 0; +-int put_total_time_ms = 0; ++SMB_BIG_UINT get_total_size = 0; ++unsigned int get_total_time_ms = 0; ++SMB_BIG_UINT put_total_size = 0; ++unsigned int put_total_time_ms = 0; + + /* totals globals */ + static double dir_total; diff --git a/packaging/Debian/debian/rules b/packaging/Debian/debian/rules new file mode 100755 index 0000000000..1083a10f46 --- /dev/null +++ b/packaging/Debian/debian/rules @@ -0,0 +1,274 @@ +#!/usr/bin/make -f +# +# Important modifications (introduction of a saved config.cache to +# solve build problems) we introduced in Samba 2.2.1a-5. These +# modification were made by Steve Langasek . +# + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +# Set the host and build architectures for use with config.cache loading, +# cross-building, etc. +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +export DEB_HOST_GNU_TYPE +export DEB_BUILD_GNU_TYPE + +BVARS = SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb + +DESTDIR=`pwd`/debian/samba +SWATDIR=`pwd`/debian/swat +SAMBABOOK=`pwd`/debian/swat + +IVARS = BASEDIR=$(DESTDIR)/usr \ + BINDIR=$(DESTDIR)/usr/bin \ + SBINDIR=$(DESTDIR)/usr/sbin \ + MANDIR=$(DESTDIR)/usr/share/man \ + LIBDIR=$(DESTDIR)/etc/samba \ + VARDIR=$(DESTDIR)/var/state/samba \ + INCLUDEDIR=$(DESTDIR)/usr/include \ + SWATDIR=$(SWATDIR)/usr/share/samba/swat \ + SAMBABOOK=$(SAMBABOOK)/usr/share/samba/swat/using_samba \ + CODEPAGEDIR=$(DESTDIR)/usr/share/samba/codepages + +patch: patch-stamp +patch-stamp: + dh_testdir + if [ ! -f patch-stamp ]; then debian/scripts/patch-source; fi + touch patch-stamp + +unpatch: + dh_testdir + if [ -f patch-stamp ]; then debian/scripts/unpatch-source; fi + rm -f patch-stamp + +configure: patch-stamp configure-stamp +configure-stamp: + dh_testdir + + # Add here commands to configure the package. +# > +# > Does the --with-fhs option work in configure? I tried it with +# > alpha3, but everything was stored in /usr/local. Is that correct? +# > ... +# +# Yes - the default prefix is still /usr/local; --with-fhs just +# changes the default paths for the config, etc. files to match +# the GNU/FHS specs. To get a complete FHS directory spec, use: +# +# ./configure --with-fhs --prefix=/usr --sysconfdir=/etc \ +# --localstatedir=/var + + if [ -f debian/config.cache ]; then \ + cp -f debian/config.cache source/config.cache; \ + fi + +# [ -f source/Makefile ] || (cd source && ./configure --with-fhs --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp) + [ -f source/Makefile ] || (cd source && ./configure \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --with-fhs \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-privatedir=/etc/samba \ + --with-lockdir=/var/state/samba \ + --localstatedir=/var \ + --with-netatalk \ + --with-smbmount \ + --with-pam \ + --with-syslog \ + --with-sambabook \ + --with-utmp \ + --with-readline \ + --with-pam_smbpass \ + --with-libsmbclient) + + touch configure-stamp + +build: patch-stamp configure-stamp build-stamp +build-stamp: + dh_testdir + + # Compile the Samba package first +# $(MAKE) -C source $(BVARS) all smbtorture rpctorture debug2html + $(MAKE) -C source all + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Clean first the Samba package +# -$(MAKE) -C source realclean +# -$(MAKE) -C source clean + -$(MAKE) -C source distclean + + # Delete stuff left after a build that is not deleted by 'make clean' + rm -f source/bin/wbinfo source/bin/winbindd source/bin/rpctorture \ + source/bin/debug2html + + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) -C source install $(IVARS) + + # libsmbclient is installed in usr/bin/. Move to usr/lib/. + mv $(DESTDIR)/usr/bin/libsmbclient.so $(DESTDIR)/usr/lib/libsmbclient.so.0.1 + mv $(DESTDIR)/usr/bin/libsmbclient.a $(DESTDIR)/usr/lib/ + + # This is to comply with policy (the symlink that ldconfig would + # produce must exist in the package). + /sbin/ldconfig -n $(DESTDIR)/usr/lib/ + + # libsmbclient include file is not installed by standard + # 'make install' - do it manually. + $(MAKE) -C source installclientlib $(IVARS) + + # Install other stuff not installed by "make install" + install -m 0755 debian/mksmbpasswd.awk $(DESTDIR)/usr/sbin/mksmbpasswd + install -m 0755 debian/sambaconfig $(DESTDIR)/usr/sbin/ + install -m 0755 source/bin/pam_smbpass.so $(DESTDIR)/lib/security/ + + # This is only temporary, while we create new packages for winbind and friends + install -m 0644 source/nsswitch/libnss_winbind.so $(DESTDIR)/lib/libnss_winbind.so.2 + install -m 0644 source/nsswitch/pam_winbind.so $(DESTDIR)/lib/security/ + + # Create the symlink that will allow us to do "mount -t smbfs ...". + # Create also a symlink that will allow "mount -t smb ..." to + # work too. The symlink is created in $(DESTDIR)/sbin/ but + # will be moved by dh_movefiles to the smbfs package later on. + ln -s /usr/bin/smbmount $(DESTDIR)/sbin/mount.smbfs + ln -s /usr/bin/smbmount $(DESTDIR)/sbin/mount.smb + ln -s smbmount.8 $(DESTDIR)/usr/share/man/man8/mount.smb.8 + ln -s smbmount.8 $(DESTDIR)/usr/share/man/man8/mount.smbfs.8 + + # For CUPS to support printing to samba printers, it's necessary + # to make the following symlink (according to + # Erich Schubert in #109509): + ln -s /usr/bin/smbspool $(DESTDIR)/usr/lib/cups/backend/smb + + # To avoid duplication of a large number of files, the swat package + # does not contain the "Using Samba" book nor the HTML docs. + # Instead, these are provided by the samba-doc package and + # are accessed through symlinks provided in the swat package. + # Here we create the symlink for the book, and the symlinks + # for the HTML files are created by the script installswat.sh. + ln -s ../../../doc/samba-doc/htmldocs/using_samba $(SAMBABOOK)/usr/share/samba/swat/using_samba + + # Install man pages for files without man pages in the upstream sources + install -m 0644 debian/sambaconfig.8 $(DESTDIR)/usr/share/man/man8/sambaconfig.8 + install -m 0644 debian/mksmbpasswd.8 $(DESTDIR)/usr/share/man/man8/mksmbpasswd.8 + + # Delete unwanted stuff leftover from "make install" + + # The smbwrapper package is not being generated anymore, so we must + # delete the related man pages. + rm $(DESTDIR)/usr/share/man/man1/smbsh.1 + + # Install samba-common's conffiles - they'll get moved later to their + # correct place by dh_movefiles. + cp debian/smb.conf $(DESTDIR)/etc/samba/ + cp debian/samba.pamd $(DESTDIR)/etc/pam.d/samba + + dh_movefiles --sourcedir=debian/samba/ + + # Remove empty directories that will never be used. + rmdir $(DESTDIR)/sbin + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: DH_OPTIONS=-i +binary-indep: build install + # Need this version of debhelper for DH_OPTIONS to work. + dh_testversion 1.1.17 + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs -A docs/textdocs/DIAGNOSIS.txt debian/README.build docs/README* docs/Samba-HOWTO-Collection.pdf + # dh_installexamples is not available in Debian Potato... + [ -x /usr/bin/dh_installexamples ] && dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron +# dh_installmanpages +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_compress + dh_fixperms + dh_installdeb +# dh_perl + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +# Pass -a to all debhelper commands in this target to reduce clutter. +binary-arch: DH_OPTIONS=-a +binary-arch: build install + # Need this version of debhelper for DH_OPTIONS to work. + dh_testversion 1.1.17 + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs -A docs/textdocs/DIAGNOSIS.txt debian/README.build docs/README* docs/Samba-HOWTO-Collection.pdf + # dh_installexamples is not available in Debian Potato... + [ -x /usr/bin/dh_installexamples ] && dh_installexamples +# dh_installmenu + # dh_installlogrotate is not available in Debian Potato... + if [ -x /usr/bin/dh_installlogrotate ]; then dh_installlogrotate; else mkdir debian/samba/etc/logrotate.d; cp debian/samba.logrotate debian/samba/etc/logrotate.d/samba; fi +# dh_installemacsen +# dh_installpam + dh_installinit + dh_installcron +# dh_installmanpages +# dh_installinfo + dh_undocumented + dh_installchangelogs + dh_strip + dh_link + dh_compress + dh_fixperms + + # You may want to make some executables suid here. + # The smbmnt and smbumount binaries should be setuid-root. This + # has security implications because these programs haven't had + # a thorough security audit. smbmount _does not_ have to have + # the setuid bit set. In fact, it is a security hole. + chmod u+s debian/smbfs/usr/bin/smbmnt + chmod u+s debian/smbfs/usr/bin/smbumount + + # Set some reasonable default perms for the samba logdir. + chmod 0750 $(DESTDIR)/var/log/samba/ + chown root.adm $(DESTDIR)/var/log/samba/ + + dh_installdeb +# dh_makeshlibs +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/packaging/Debian/debian/rules.old b/packaging/Debian/debian/rules.old new file mode 100644 index 0000000000..ac322185a9 --- /dev/null +++ b/packaging/Debian/debian/rules.old @@ -0,0 +1,194 @@ +#!/usr/bin/make -f +# Made with the iad of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Also some stuff taken from debmake scripts, by Cristopt Lameter. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +BVARS = BASEDIR=/usr \ + LIBDIR=/etc/samba \ + SMB_PASSWD_FILE=/etc/samba/smbpasswd \ + SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb \ + LOCKDIR=/var/samba \ + SWATDIR=/usr/share/samba/swat + +DESTDIR=`pwd`/debian/tmp +SWATDIR=`pwd`/debian/swat +SAMBABOOK=`pwd`/debian/swat + +IVARS = BASEDIR=$(DESTDIR)/usr \ + BINDIR=$(DESTDIR)/usr/bin \ + SBINDIR=$(DESTDIR)/usr/sbin \ + MANDIR=$(DESTDIR)/usr/share/man \ + LIBDIR=$(DESTDIR)/etc/samba \ + VARDIR=$(DESTDIR)/var/samba \ + SWATDIR=$(SWATDIR)/usr/share/samba/swat \ + SAMBABOOK=$(SAMBABOOK)/usr/share/samba/swat/using_samba + +build: build-stamp +build-stamp: + dh_testdir + + # Compile the Samba package first + [ -f source/Makefile ] || (cd source && ./configure --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-pam --with-syslog --with-sambabook --with-utmp) + $(MAKE) -C source $(BVARS) all smbtorture rpctorture debug2html + + # Now compile the old smbfs package + $(MAKE) -C source/smbfs-2.0.x + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + # Clean first the Samba package +# -$(MAKE) -C source realclean + -$(MAKE) -C source distclean +# -$(MAKE) -C source clean + rm -f source/bin/{rpctorture,smbtorture,debug2html} + + # Now clean the old smbfs-2.0.x package + -$(MAKE) -C source/smbfs-2.0.x clean + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) -C source install $(IVARS) + + # Install other stuff not installed by "make install" + install -m 0755 source/script/mksmbpasswd.sh $(DESTDIR)/usr/sbin/mksmbpasswd + install -m 0755 source/bin/smbtorture $(DESTDIR)/usr/bin/ + install -m 0755 debian/sambaconfig $(DESTDIR)/usr/sbin/ + + # Create the symlink that will allow us to do "mount -t smbfs ...". + # Create also a symlink that will allow "mount -t smb ..." to + # work too. The symlink is created in $(DESTDIR)/sbin/ but + # will be moved by dh_movefiles to the smbfs package later on. + ln -s /usr/bin/smbmount $(DESTDIR)/sbin/mount.smbfs + ln -s /usr/bin/smbmount $(DESTDIR)/sbin/mount.smb + + # To avoid duplication of a large number of files, the swat package + # does not contain the "Using Samba" book nor the HTML docs. + # Instead, these are provided by the samba-doc package and + # are accessed through symlinks provided in the swat package. + # Here we create the symlink for the book, and the symlinks + # for the HTML files are created by the script installswat.sh. + ln -s /usr/share/doc/samba-doc/htmldocs/using_samba $(SAMBABOOK)/usr/share/samba/swat/using_samba + + # Install man pages for files without man pages in the upstream dist. + install -m 0644 debian/sambaconfig.8 $(DESTDIR)/usr/share/man/man8/sambaconfig.8 + install -m 0644 debian/addtosmbpass.8 $(DESTDIR)/usr/share/man/man8/addtosmbpass.8 + install -m 0644 debian/mksmbpasswd.8 $(DESTDIR)/usr/share/man/man8/mksmbpasswd.8 + + # Delete unwanted stuff leftover from "make install" + + # smbrun is not longer needed by smbd, so delete its man page + rm $(DESTDIR)/usr/share/man/man1/smbrun.1 + + # The smbwrapper package is not being generated anymore, so we must + # delete the related man pages. + rm $(DESTDIR)/usr/share/man/man1/smbsh.1 + + # We need to rename the SMB mount utilities so they don't have the same + # names as the files in the smbfs package. + mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.2.x + mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.2.x + mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.2.x.8 + mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.2.x.8 + + # These files are not part of the main samba package, move to where they + # belong... + #mv $(DESTDIR)/usr/bin/smbwrapper.so debian/smbwrapper/usr/share/samba/ + + # The smbmnt, smbmount-2.2.x and smbumount-2.2.x binaries must + # be setuid-root. + chmod u+s $(DESTDIR)/usr/bin/smbmnt $(DESTDIR)/usr/bin/smbmount-2.2.x $(DESTDIR)/usr/bin/smbumount-2.2.x + + # Install samba-common's conffiles + cp debian/smb.conf $(DESTDIR)/etc/samba/ + cp debian/samba.pamd $(DESTDIR)/etc/pam.d/samba + + # OK, now it's time to install the smbfs-2.0.2 files + $(MAKE) -C source/smbfs-2.0.x install $(IVARS) + + # Rename the old smbfs utilities to more convenient names + mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.0.x + mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.0.x + mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.0.x.8 + mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.0.x.8 + + # Now install the smbmount and smbumount wrappers and its man pages + install debian/smbmount.sh $(DESTDIR)/usr/bin/smbmount + install debian/smbumount.sh $(DESTDIR)/usr/bin/smbumount + install -m 0644 debian/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount.8 + install -m 0644 debian/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount.8 + + # Install some docs. that go in "unusual" places + cp README-smbmount debian/smbfs/usr/share/doc/smbfs/2.2.x/ + cp source/smbfs-2.0.x/{FAQ,README,smbfs-2.0.2.lsm,Changes} debian/smbfs/usr/share/doc/smbfs/2.0.x/ + + dh_movefiles + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install +# dh_testversion + dh_testdir -i + dh_testroot -i + dh_installdocs -i -A docs/textdocs/DIAGNOSIS.txt + dh_installexamples -i +# dh_installmenu -i +# dh_installemacsen -i +# dh_installinit -i +# dh_installcron -i +# dh_installmanpages -i + dh_undocumented + dh_installchangelogs -i + dh_compress -i +# dh_suidregister -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir -a + dh_testroot -a + dh_installdocs -a -A docs/textdocs/DIAGNOSIS.txt -A debian/README.linux + dh_installexamples -a +# dh_installmenu -a +# dh_installemacsen -a + dh_installinit -a + dh_installcron -a +# dh_installmanpages -a + dh_undocumented + dh_installchangelogs -a + dh_strip -a + dh_compress -a + dh_suidregister -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a +# dh_makeshlibs -a + dh_md5sums -a + dh_builddeb -a + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary diff --git a/packaging/Debian/debian/rules.smbwrapper b/packaging/Debian/debian/rules.smbwrapper new file mode 100644 index 0000000000..e3c72ee47c --- /dev/null +++ b/packaging/Debian/debian/rules.smbwrapper @@ -0,0 +1,172 @@ +#!/usr/bin/make -f +# Made with the iad of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Also some stuff taken from debmake scripts, by Cristopt Lameter. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +BVARS = BASEDIR=/usr \ + LIBDIR=/etc/samba \ + SMB_PASSWD_FILE=/etc/samba/smbpasswd \ + SMBLOGFILE=/var/log/smb NMBLOGFILE=/var/log/nmb \ + LOCKDIR=/var/samba \ + SWATDIR=/usr/share/samba/swat + +DESTDIR=`pwd`/debian/tmp +SWATDIR=`pwd`/debian/swat + +IVARS = BASEDIR=$(DESTDIR)/usr \ + BINDIR=$(DESTDIR)/usr/bin \ + SBINDIR=$(DESTDIR)/usr/sbin \ + MANDIR=$(DESTDIR)/usr/share/man \ + LIBDIR=$(DESTDIR)/etc/samba \ + VARDIR=$(DESTDIR)/var/samba \ + SWATDIR=$(SWATDIR)/usr/share/samba/swat + +build: build-stamp +build-stamp: + dh_testdir + + # Compile the Samba package first + [ -f source/Makefile ] || (cd source && ./configure --prefix=/usr --exec-prefix=/usr --with-netatalk --with-smbmount --with-smbwrapper) + $(MAKE) -C source $(BVARS) all smbtorture rpctorture debug2html + + # Now compile the old smbfs package + $(MAKE) -C source/smbfs-2.0.x + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + # Clean first the Samba package +# -$(MAKE) -C source realclean + -$(MAKE) -C source distclean +# -$(MAKE) -C source clean + rm -f source/bin/{rpctorture,smbtorture,debug2html} + + # Now clean the old smbfs-2.0.x package + -$(MAKE) -C source/smbfs-2.0.x clean + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) -C source install $(IVARS) + + # Install other stuff not installed by "make install" + install -m 0755 source/script/mksmbpasswd.sh $(DESTDIR)/usr/sbin/mksmbpasswd + install -m 0755 source/bin/smbtorture $(DESTDIR)/usr/bin/ + install -m 0755 debian/sambaconfig $(DESTDIR)/usr/sbin/ + install -m 0755 source/smbadduser $(DESTDIR)/usr/sbin/ + + # Install man pages for files without man pages in the upstream dist. + install -m 0644 debian/sambaconfig.8 $(DESTDIR)/usr/share/man/man8/sambaconfig.8 + install -m 0644 debian/addtosmbpass.8 $(DESTDIR)/usr/share/man/man8/addtosmbpass.8 + install -m 0644 debian/mksmbpasswd.8 $(DESTDIR)/usr/share/man/man8/mksmbpasswd.8 + + # Delete unwanted stuff leftover from "make install" + + # smbrun is not longer needed by smbd, so delete its man page + rm $(DESTDIR)/usr/share/man/man1/smbrun.1 + + # We need to rename the SMB mount utilities so they don't have the same + # names as the files in the smbfs package. + mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.2.x + mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.2.x + mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.2.x.8 + mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.2.x.8 + + # These files are not part of the main samba package, move to where they + # belong... + mv $(DESTDIR)/usr/bin/smbwrapper.so debian/smbwrapper/usr/share/samba/ + + # The smbmnt, smbmount-2.2.x and smbumount-2.2.x binaries must + # be setuid-root. + chmod u+s $(DESTDIR)/usr/bin/smbmnt $(DESTDIR)/usr/bin/smbmount-2.2.x $(DESTDIR)/usr/bin/smbumount-2.2.x + + # Install samba-common's conffiles + cp debian/smb.conf $(DESTDIR)/etc/samba/ + + + # OK, now it's time to install the smbfs-2.0.2 files + $(MAKE) -C source/smbfs-2.0.x install $(IVARS) + + # Rename the old smbfs utilities to more convenient names + mv $(DESTDIR)/usr/bin/smbmount $(DESTDIR)/usr/bin/smbmount-2.0.x + mv $(DESTDIR)/usr/bin/smbumount $(DESTDIR)/usr/bin/smbumount-2.0.x + mv $(DESTDIR)/usr/share/man/man8/smbmount.8 $(DESTDIR)/usr/share/man/man8/smbmount-2.0.x.8 + mv $(DESTDIR)/usr/share/man/man8/smbumount.8 $(DESTDIR)/usr/share/man/man8/smbumount-2.0.x.8 + + # Now install the smbmount and smbumount wrappers + install debian/smbmount.sh $(DESTDIR)/usr/bin/smbmount + install debian/smbumount.sh $(DESTDIR)/usr/bin/smbumount + + # Install some docs. that go in "unusual" places + cp README-smbmount debian/smbfs/usr/share/doc/smbfs/2.2.x/ + cp source/smbfs-2.0.x/{FAQ,README,smbfs-2.0.2.lsm,Changes} debian/smbfs/usr/share/doc/smbfs/2.0.x/ + + dh_movefiles + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install +# dh_testversion + dh_testdir -i + dh_testroot -i + dh_installdocs -i -A docs/textdocs/DIAGNOSIS.txt + dh_installexamples -i +# dh_installmenu -i +# dh_installemacsen -i +# dh_installinit -i +# dh_installcron -i +# dh_installmanpages -i + dh_undocumented + dh_installchangelogs -i + dh_compress -i +# dh_suidregister -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir -a + dh_testroot -a + dh_installdocs -a -A docs/textdocs/DIAGNOSIS.txt + dh_installexamples -a +# dh_installmenu -a +# dh_installemacsen -a + dh_installinit -a + dh_installcron -a +# dh_installmanpages -a + dh_undocumented + dh_installchangelogs -a + dh_strip -a + dh_compress -a + dh_suidregister -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a +# dh_makeshlibs -a + dh_md5sums -a + dh_builddeb -a + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary diff --git a/packaging/Debian/debian/samba-common.conffiles b/packaging/Debian/debian/samba-common.conffiles new file mode 100644 index 0000000000..b5703025dd --- /dev/null +++ b/packaging/Debian/debian/samba-common.conffiles @@ -0,0 +1,2 @@ +/etc/samba/smb.conf +/etc/pam.d/samba diff --git a/packaging/Debian/debian/samba-common.files b/packaging/Debian/debian/samba-common.files new file mode 100644 index 0000000000..94f2e25f6a --- /dev/null +++ b/packaging/Debian/debian/samba-common.files @@ -0,0 +1,7 @@ +etc/samba/ +usr/bin/nmblookup +usr/bin/smbpasswd +etc/pam.d/ +usr/share/man/man1/nmblookup.1 +usr/share/man/man8/smbpasswd.8 +usr/share/samba/codepages/ diff --git a/packaging/Debian/debian/samba-common.postrm b/packaging/Debian/debian/samba-common.postrm new file mode 100644 index 0000000000..2cd832b33d --- /dev/null +++ b/packaging/Debian/debian/samba-common.postrm @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ "$1" = purge ]; then + # Remove any files left in /etc/samba/ + rm -Rf /etc/samba/ +fi diff --git a/packaging/Debian/debian/samba-doc.docs b/packaging/Debian/debian/samba-doc.docs new file mode 100644 index 0000000000..68753e54f0 --- /dev/null +++ b/packaging/Debian/debian/samba-doc.docs @@ -0,0 +1,9 @@ +README +docs/Samba-HOWTO-Collection.pdf +docs/THANKS +docs/announce +docs/history +docs/textdocs/ +docs/faq/ +docs/htmldocs/ +docs/Registry/ diff --git a/packaging/Debian/debian/samba-doc.examples b/packaging/Debian/debian/samba-doc.examples new file mode 100644 index 0000000000..e692dd810f --- /dev/null +++ b/packaging/Debian/debian/samba-doc.examples @@ -0,0 +1,3 @@ +examples/ +debian/wins2dns.awk +source/script/smbadduser diff --git a/packaging/Debian/debian/samba.conffiles b/packaging/Debian/debian/samba.conffiles new file mode 100644 index 0000000000..908a791a62 --- /dev/null +++ b/packaging/Debian/debian/samba.conffiles @@ -0,0 +1,3 @@ +/etc/cron.daily/samba +/etc/init.d/samba +/etc/logrotate.d/samba diff --git a/packaging/Debian/debian/samba.cron.daily b/packaging/Debian/debian/samba.cron.daily new file mode 100644 index 0000000000..42fc98d8f6 --- /dev/null +++ b/packaging/Debian/debian/samba.cron.daily @@ -0,0 +1,16 @@ +#!/bin/sh +# +# cron script to save a backup copy of /etc/samba/smbpasswd in /var/backups. +# +# Written by Eloy A. Paris for the Debian project. +# + +BAK=/var/backups + +umask 022 +if cd $BAK; then + # Make sure /etc/samba/smbpasswd exists + if [ -f /etc/samba/smbpasswd ]; then + cmp -s smbpasswd.bak /etc/samba/smbpasswd || cp -p /etc/samba/smbpasswd smbpasswd.bak + fi +fi diff --git a/packaging/Debian/debian/samba.dirs b/packaging/Debian/debian/samba.dirs new file mode 100644 index 0000000000..237603750a --- /dev/null +++ b/packaging/Debian/debian/samba.dirs @@ -0,0 +1,11 @@ +sbin +usr/bin +usr/sbin +var/log/samba +var/state/samba +etc/samba +etc/pam.d +usr/share +usr/share/samba +lib/security +usr/lib/cups/backend diff --git a/packaging/Debian/debian/samba.docs b/packaging/Debian/debian/samba.docs new file mode 100644 index 0000000000..187fdd3405 --- /dev/null +++ b/packaging/Debian/debian/samba.docs @@ -0,0 +1,3 @@ +README +Roadmap +WHATSNEW.txt diff --git a/packaging/Debian/debian/samba.init b/packaging/Debian/debian/samba.init new file mode 100644 index 0000000000..8ac2e97148 --- /dev/null +++ b/packaging/Debian/debian/samba.init @@ -0,0 +1,94 @@ +#!/bin/sh +# +# Start/stops the Samba daemons (nmbd and smbd). +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DEBIAN_CONFIG=/etc/samba/debian_config + +NMBDPID=/var/state/samba/nmbd.pid +SMBDPID=/var/state/samba/smbd.pid + +# clear conflicting settings from the environment +unset TMPDIR + +# Sanity check: see if Samba has been configured on this system. +if [ ! -f $DEBIAN_CONFIG ]; then + echo "The file $DEBIAN_CONFIG does not exist! There is something wrong" + echo "with the installation of Samba on this system. Please re-install" + echo "Samba. I can't continue!!!" + exit 1 +fi + +# Read current Samba configuration +. $DEBIAN_CONFIG + +# the Samba daemons. + +# If Samba is running from inetd then there is nothing to do +if [ "$run_mode" = "from_inetd" ]; then + # Commented out to close bug #26884 (startup message is rather long). I + # have yet to think how to let the user know that if he/she is running + # Samba from inetd, he can't just "/etc/init.d/samba stop" to stop + # the Samba daemons. +# echo "Warning: Samba is not running as daemons. Daemons not restarted/stopped." +# echo "Daemons will start automatically by inetd (if you wanted to start Samba)." +# echo "If you want to stop Samba, get the PID's of all nmbd and smbd processes" +# echo "and send them a SIGTERM signal but keep in mind that inetd could restart them." + exit 0 +fi + +# See if the daemons are there +test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd || exit 0 + +case "$1" in + start) + echo -n "Starting Samba daemons:" + + echo -n " nmbd" + start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- -D + + echo -n " smbd" + start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D + + echo "." + ;; + stop) + echo -n "Stopping Samba daemons:" + + echo -n " nmbd" + start-stop-daemon --stop --quiet --pidfile $NMBDPID + + echo -n " smbd" + start-stop-daemon --stop --quiet --pidfile $SMBDPID + + echo "." + ;; + reload) + echo -n "Reloading /etc/samba/smb.conf (smbd only)" + start-stop-daemon --stop --signal HUP --pidfile $SMBDPID + + echo "." + ;; + restart|force-reload) + echo -n "Restarting Samba daemons:" + + echo -n " nmbd" + start-stop-daemon --stop --quiet --pidfile $NMBDPID + sleep 2 + start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- -D + + echo -n " smbd" + start-stop-daemon --stop --quiet --pidfile $SMBDPID + sleep 2 + start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D + + echo "." + ;; + *) + echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 diff --git a/packaging/Debian/debian/samba.logrotate b/packaging/Debian/debian/samba.logrotate new file mode 100644 index 0000000000..d264ce3d71 --- /dev/null +++ b/packaging/Debian/debian/samba.logrotate @@ -0,0 +1,21 @@ +/var/log/samba/log.smbd { + weekly + missingok + rotate 7 + postrotate + killall -q -HUP smbd || true + endscript + compress + notifempty +} + +/var/log/samba/log.nmbd { + weekly + missingok + rotate 7 + postrotate + killall -q -HUP nmbd || true + endscript + compress + notifempty +} diff --git a/packaging/Debian/debian/samba.pamd b/packaging/Debian/debian/samba.pamd new file mode 100644 index 0000000000..1a5a14c708 --- /dev/null +++ b/packaging/Debian/debian/samba.pamd @@ -0,0 +1,5 @@ +auth required pam_unix.so nullok +account required pam_unix.so +session required pam_unix.so +password required pam_unix.so + diff --git a/packaging/Debian/debian/samba.postinst b/packaging/Debian/debian/samba.postinst new file mode 100644 index 0000000000..5f42cf4b36 --- /dev/null +++ b/packaging/Debian/debian/samba.postinst @@ -0,0 +1,218 @@ +#!/bin/sh +# +# Post-installation script for the Samba package for Debian GNU/Linux +# +# Written by Eloy A. Paris for the Debian project. +# +# The prerm script (run before the postinst) disables Samba in /etc/inetd.conf +# and stops both nmbd and smbd. So, when this script is run we +# know that neither nmbd nor smbd can start. +# + +case "$1" in + configure) + # continue below + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# Take care of the /usr/doc/ to /usr/shar/doc/ migration. +if [ -d /usr/doc -a ! -e /usr/doc/samba -a -d /usr/share/doc/samba ]; then + ln -sf ../share/doc/samba /usr/doc/samba +fi + +# Starting with Samba 2.0.7-4 the location of the WINS database, the browse +# database and other important run-time files are stored in +# /var/state/samba/ rather than in /var/samba/. The following +# code takes care of moving the files in the old directory to +# the new directory. +if [ -d /var/samba/ ]; then + mv /var/samba/* /var/state/samba/ + rmdir /var/samba/ +fi + +# Define some constants... +DEBIAN_CONFIG=/etc/samba/debian_config +CONFIG_VERSION=1 + +# Now some variables... +samba_configured=no + + +if [ -f $DEBIAN_CONFIG ]; then + . $DEBIAN_CONFIG + if [ "$config_version" -ge "$CONFIG_VERSION" ]; then + samba_configured=yes + fi +fi + +# If Samba is configured we don't want to pester the user with +# configuration questions, just tell him that he can reconfigure +# Samba at any time by running /usr/sbin/sambaconfig. +if [ "$samba_configured" = "no" ]; then + # Samba is not configured, go and ask the user the information needed + # to configure it, and configure it! + + # Create Debian specific configuration file + echo "config_version=$CONFIG_VERSION" > $DEBIAN_CONFIG + + # We always run /etc/init.d/samba, even if we run Samba from inetd. + # This script file takes care of handling the conflict of running + # from inetd or as daemons. + update-rc.d samba defaults >/dev/null + + # We want to add these entries to inetd.conf commented out. Otherwise + # UDP traffic could make inetd to start nmbd or smbd right during + # the configuration stage. + update-inetd --add "## netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd" + update-inetd --add "## netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd -a" + + echo "" + echo Samba Configuration + echo ------------------- + echo "The Samba server may be run either as a daemon at startup, or it may be" + echo "run from the inetd meta-daemon upon request. If run as a daemon, the" + echo "server will always be ready, so starting sessions will be faster. If run" + echo "from the inetd meta-daemon some memory will be saved and utilities such" + echo "as the tcpd TCP-wrapper may be used for extra security. If you don't" + echo "know what to do, running from inetd is a safe choice." + echo "" + echo "Run Samba as daemons or from inetd?" + echo -n "Press 'D' to run as daemons or 'I' to run from inetd: [I] " + + read mode + test -n "$mode" || mode="I" + + case "$mode" in + [Dd]*) + echo "Samba will run as daemons. Run sambaconfig to reconfigure" + update-inetd --disable netbios-ssn + update-inetd --disable netbios-ns + echo "run_mode=as_daemons" >> $DEBIAN_CONFIG + ;; + + *) + echo "Samba will run from inetd. Run sambaconfig to reconfigure" + update-inetd --enable netbios-ssn + update-inetd --enable netbios-ns + echo "run_mode=from_inetd" >> $DEBIAN_CONFIG + ;; + esac + + if [ ! -f /etc/samba/smbpasswd ]; then + echo "" + echo "If you are going to use encrypted passwords you need to have a" + echo "separate password file for this (the format is different from " + echo "/etc/passwd). Right now you don't have an /etc/samba/smbpasswd file." + echo "Do you want to generate this new file from your existing" + echo -n "/etc/passwd file? [y/N] " + + read yn + test -n "$yn" || yn="N" + + if [ $yn = y -o $yn = Y ]; then + cat /etc/passwd | /usr/sbin/mksmbpasswd > /etc/samba/smbpasswd + chmod 600 /etc/samba/smbpasswd + echo "" + echo "/etc/samba/smbpasswd now has the same user names as /etc/passwd. However," + echo "you need to run smbpasswd manually to set the password for each user." + echo "" + echo "smbpasswd_created=yes" >> $DEBIAN_CONFIG + else + echo "smbpasswd_created=no" >> $DEBIAN_CONFIG + fi + fi + + echo "" + + # Start Samba: nothing wrong will happen if Samba is running from inetd + # and /etc/init.d/samba is run. However, to simplify things, we + # do not run /etc/init.d/samba if we're running from inetd. + + if [ $mode = d -o $mode = D ]; then + echo -n "Samba will run as daemons - start Samba now? [Y/n] " + read yn + test -n "$yn" || yn="Y" + + case "$yn" in + [Nn]*) + echo "Not started; to start later, do: /etc/init.d/samba start" + echo -n "Press [ENTER] " + read line + ;; + + *) + /etc/init.d/samba start + ;; + esac + else + echo "Since you are running Samba from inetd, the daemons will start" + echo "automatically by inetd when there is traffic on the NetBIOS" + echo "ports." + echo -n "Press [ENTER] " + read line + fi +else # if (samba_configured) ... + # We are here because Samba was already configured... + + # At this point the NetBIOS daemons are disabled in /etc/inetd.conf. + # This is a consequence of what we did in the prerm. If Samba was + # configured to run from inetd we need to enable the entries in + # /etc/inetd.conf. + + # Read current Samba configuration + . $DEBIAN_CONFIG + + if [ "$run_mode" = "from_inetd" ]; then + update-inetd --enable netbios-ssn + update-inetd --enable netbios-ns + fi + + echo "" + echo "Samba was already installed and configured so I skipped the " + echo "configuration questions. You can run the script /usr/sbin/sambaconfig" + echo "at any time to reconfigure Samba. See sambaconfig(8) for more" + echo "details. I will not even ask you if you want to restart Samba," + echo "I will just do it!" + echo "" + + /etc/init.d/samba start +fi # if (samba_configured) ... + +if test "$1" = configure && dpkg --compare-versions "$2" lt 2.0.0final-2 && [ -f /etc/samba/smbpasswd ]; then + + cat << EOF + +*** IMPORTANT *** + +The format of the smbpasswd file (which is used only if you are using +encrypted passwords) is different in Samba 2.0.0 and above. I will +convert it to the new format. + +EOF + + mv /etc/samba/smbpasswd /etc/samba/smbpasswd.old + cat /etc/samba/smbpasswd.old | /usr/bin/convert_smbpasswd \ + > /etc/samba/smbpasswd 2> /dev/null +fi + +# This check is a safety net: the /etc/samba/smbpasswd file must have +# permissions 600. +if [ -f /etc/samba/smbpasswd ]; then + chmod 600 /etc/samba/smbpasswd +fi + +# Do the same check for /var/backup/smbpasswd.bak, just in case. +if [ -f /var/backups/smbpasswd.bak ]; then + chmod 600 /var/backups/smbpasswd.bak +fi + +exit 0 diff --git a/packaging/Debian/debian/samba.postrm b/packaging/Debian/debian/samba.postrm new file mode 100644 index 0000000000..73b2f0d0a1 --- /dev/null +++ b/packaging/Debian/debian/samba.postrm @@ -0,0 +1,26 @@ +#!/bin/sh + +if [ "$1" = purge ]; then + update-rc.d samba remove >/dev/null + + # Remove WINS.DAT, BROWSE.DAT and lock information file + rm -Rf /var/samba/ + + # Remove any files in the old and obsolete /var/lock/samba directory + rm -Rf /var/lock/samba/ + + # Remove files left in /etc/samba/ + rm -Rf /etc/samba/debian_config + rm -Rf /etc/samba/MACHINE.SID + + # Remove log files + rm -f /var/log/[ns]mb* + + # Remove NetBIOS entries from /etc/inetd.conf + update-inetd --remove netbios-ssn + update-inetd --remove netbios-ns +else + # Not purging, do not remove NetBIOS entries from /etc/inetd.conf + update-inetd --disable netbios-ssn + update-inetd --disable netbios-ns +fi diff --git a/packaging/Debian/debian/samba.preinst b/packaging/Debian/debian/samba.preinst new file mode 100644 index 0000000000..6ebefb8fb1 --- /dev/null +++ b/packaging/Debian/debian/samba.preinst @@ -0,0 +1,47 @@ +#!/bin/sh +# +# The purpose of the preinst script for the samba package is to help +# the migration of the conffiles smb.conf and smbpasswd from their +# old location (/etc/) to their new location (/etc/samba/). +# +# Thanks to Ben Pfaff for sharing on debian-devel +# his ideas about how to move conffiles to new locations. +# + +# First see if a smb.conf file currently exists. +test -f /etc/smb.conf || exit 0 + +# Now see if a smb.conf file exists in the new location. +test -e /etc/samba/smb.conf && exit 0 + +# +# Move smb.conf conffile from its old location (/etc/) to its new one +# (/etc/samba). +# +# If conffile exists in old location AND conffile does not exist on new +# location then... +# +if [ -f /etc/smb.conf -a ! -e /etc/samba/smb.conf ]; then + # The new location for the conffile should not exist yet, so we create the + # dir. + mkdir -p /etc/samba + + # Finally, move the conffile to its new location. + mv /etc/smb.conf /etc/samba/smb.conf +fi + +# +# Move smbpasswd conffile from its old location (/etc/) to its new one +# (/etc/samba). +# +# If conffile exists in old location AND conffile does not exist on new +# location then... +# +if [ -f /etc/smbpasswd -a ! -e /etc/samba/smbpasswd ]; then + # The new location for the conffile should not exist yet, so we create the + # dir. + mkdir -p /etc/samba + + # Finally, move the conffile to its new location. + mv /etc/smbpasswd /etc/samba/smbpasswd +fi diff --git a/packaging/Debian/debian/samba.prerm b/packaging/Debian/debian/samba.prerm new file mode 100644 index 0000000000..acd6d087b5 --- /dev/null +++ b/packaging/Debian/debian/samba.prerm @@ -0,0 +1,74 @@ +#!/bin/sh +# +# Pre-removal script for the Samba package for Debian GNU/Linux. +# +# Written by Eloy A. Paris for the Debian project. +# + +DEBIAN_CONFIG=/etc/samba/debian_config + +NMBDPID=/var/state/samba/nmbd.pid +SMBDPID=/var/state/samba/smbd.pid + +# The most important thing the prerm script must do is to stop the Samba +# daemons (nmbd and smbd). Note that this can be tricky since Samba +# can be running from the inetd meta-daemon or as daemons (it's a +# user choice). + +# Before we stop Samba we need to know how it is running (from inetd +# or as daemons). We could source in the debian_config file but it +# is safer to grep /etc/inetd.conf. +if grep -q '^netbios-ns' /etc/inetd.conf; then + # Samba is running from inetd. We need to disable the Samba daemons + # in /etc/inetd.conf before we stop the daemons. Otherwise traffic + # in the NetBIOS ports will make inetd start them again. + # + # Note: user preferences regarding the mode he/she wants Samba to + # be run (inetd or daemons) will be lost next. In the postinst + # we depend on the information present in the debian_config + # file to restore everything back to the way it was. + update-inetd --disable netbios-ssn + update-inetd --disable netbios-ns + + # Now it is safe to stop the daemons... + + # I have just recalled that old versions of nmbd and smbd did not store + # their PID's in /var/samba/state/ (or whatever directory + # was used for this purpose in configure), so I can't use + # --pidfile in start-stop-daemon to stop nmbd or smbd. I + # will handle this by testing first whether the PID file exists. + if [ -f $NMBDPID ]; then + start-stop-daemon --stop --oknodo --user root --name nmbd --quiet --pidfile $NMBDPID + else + start-stop-daemon --stop --oknodo --user root --name nmbd --quiet + fi + + # nmbd must be dead by now, now it's smbd's turn + if [ -f $SMBDPID ]; then + start-stop-daemon --stop --oknodo --user root --name smbd --quiet --pidfile $SMBDPID + else + start-stop-daemon --stop --oknodo --user root --name smbd --quiet + fi +elif [ -x /etc/init.d/samba ]; then # Old Samba packages didn't have a + # /etc/init.d/samba so we better + # check first. + # Samba is running as daemons. No problem here, just stop Samba... + /etc/init.d/samba stop +fi + +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/samba ]; then + rm -f /usr/doc/samba +fi + +# Make sure there are no nmbd or smbd daemons running (security check) +# (as you see this code is commented out - so far I haven't had the need +# to do this sanity check - peloy, Aug. 23, 1998) +#ps -ax | grep nmbd +#if [ $? ... ]; then +# killall -9 nmbd +#fi + +#ps -ax | grep smbd +#if [ $? ... ]; then +# killall -9 smbd +#fi diff --git a/packaging/Debian/debian/sambaconfig b/packaging/Debian/debian/sambaconfig new file mode 100644 index 0000000000..0d35a51967 --- /dev/null +++ b/packaging/Debian/debian/sambaconfig @@ -0,0 +1,130 @@ +#!/bin/sh +# +# Written by Eloy A. Paris for Debian GNU/Linux. +# + +PATH="/usr/sbin:/usr/bin:/sbin:/bin" +DEBIAN_CONFIG=/etc/samba/debian_config + +NMBDPID=/var/state/samba/nmbd.pid +SMBDPID=/var/state/samba/smbd.pid + +if [ ! -f $DEBIAN_CONFIG ]; then + echo "The file $DEBIAN_CONFIG does not exist! There is something wrong" + echo "with the installation of Samba on this system. Please re-install" + echo "Samba." + exit 1 +fi + +# Read current Samba configuration +. $DEBIAN_CONFIG + +reload=1 + +while [ $# -gt 0 ] +do + case "$1" in + --run-from-inetd) + run_from_inetd=1 + shift + ;; + + --run-as-daemons) + run_from_inetd=0 + shift + ;; + --no-reload) + reload=0 + shift + ;; + + *) + echo "Usage: $0 [--run-from-inetd|--run-as-daemons] [no-reload]" >&2 + exit 1 + ;; + esac +done + +# Make sure there are no Samba daemons (nmbd or smbd) running +# + +if [ "$run_mode" = "from_inetd" ]; then + # Samba is running from inetd - need to disable inetd before + # killing the daemons. + update-inetd --disable netbios-ssn + update-inetd --disable netbios-ns + start-stop-daemon --stop --oknodo --user root --name nmbd --quiet --pidfile $NMBDPID + start-stop-daemon --stop --oknodo --user root --name smbd --quiet --pidfile $SMBDPID +else + # Samba is running as daemons + /etc/init.d/samba stop +fi + +if [ "x$run_from_inetd" = "x" ] +then + echo "Run Samba as daemons or from inetd?" + echo -n "Press 'D' for to run as daemons or 'I' to run from inetd: [I] " + + read mode + test -n "$mode" || mode="I" + + case "$mode" in + [Dd]*) + run_from_inetd=0 + ;; + + *) + run_from_inetd=1 + ;; + esac +fi + +if [ "$run_from_inetd" = 1 ]; then + echo "Samba will run from inetd. Run sambaconfig to reconfigure." + echo "" + update-inetd --enable netbios-ssn + update-inetd --enable netbios-ns + run_mode="from_inetd" +else + echo "Samba will run as daemons. Run sambaconfig to reconfigure." + echo "" + update-inetd --disable netbios-ssn + update-inetd --disable netbios-ns + run_mode="as_daemons" +fi + +# Rebuild Debian configuration file (only thing that could have +# changed so far is the variable called "run_mode". + +# Start the Samba daemons (take care of whether the user used the --no-reload +# option and how Samba is running: from inetd or as daemons) +echo "config_version=$config_version" > $DEBIAN_CONFIG +echo "run_mode=$run_mode" >> $DEBIAN_CONFIG +echo "smbpasswd_created=$smbpasswd_created" >> $DEBIAN_CONFIG + +if [ "$reload" = 0 ]; then + echo "Samba will not start (--no-reload parameter provided). Please note" + echo "that if you configured Samba to run from inetd, the Samba daemons" + echo "will start automatically when there is traffic in the NetBIOS ports" +elif [ "$run_from_inetd" = 1 ]; then + echo "The --no-reload parameter was not provided so I assume you want" + echo "to have the Samba daemons started. Since you are running from inetd" + echo "the Samba daemosn will start automatically when there is traffic" + echo "in the NetBIOS ports." +else + echo -n "The --no-reload parameter was not provided, start Samba now? [Y/n] " + read yn + test -n "$yn" || yn="Y" + + case "$yn" in + [Nn]*) + echo "Not started; to start later, do: /etc/init.d/samba start" + echo -n "Press [ENTER] " + read line + ;; + + *) + /etc/init.d/samba start + ;; + esac +fi diff --git a/packaging/Debian/debian/sambaconfig.8 b/packaging/Debian/debian/sambaconfig.8 new file mode 100644 index 0000000000..2a0aaa9aa3 --- /dev/null +++ b/packaging/Debian/debian/sambaconfig.8 @@ -0,0 +1,40 @@ +.TH SAMBACONFIG 8 06-Apr-1998 +.SH NAME +sambaconfig \- configure Samba for Debian systems +.SH SYNOPSIS +sambaconfig [--run-from-inetd|--run-as-daemons] [--no-reload] +.SH DESCRIPTION +.B sambaconfig +is used to simplify the configuration of samba(8) for use on Debian +systems. +.PP +You may run this program to (re)configure samba for your Debian system +at any time. +.PP +Normally +.B sambaconfig +will ask if you want to reload the Samba daemons after making changes to its +configuration. The --no-reload option will avoid this question. Note +that if Samba is running from inetd and --no-reload is not supplied no +questions is asked because Samba will start automatically from inetd +when there is traffic on the NetBIOS ports. +.SH FILES +.TP +/etc/inetd.conf +If the lines that start the NetBIOS daemons nmbd and smbd are +commented out then Samba will start as daemons from /etc/init.d/start +.TP +/etc/init.d/samba +Script that will start/stop/restart Samba when running as daemons +.TP +/etc/samba/smbpasswd +Encrypted passwords file for the Samba daemons +.TP +/etc/samba/debian_config +Debian specific configuration information, it holds the mode in which +Samba is running (from inetd or as daemons). +.SH SEE ALSO +samba(7), nmbd(8), smbd(8) +.SH AUTHOR +Eloy A. Paris (man page based on sendmailconfig's man page +by Robert Leslie ) diff --git a/packaging/Debian/debian/scripts/patch-source b/packaging/Debian/debian/scripts/patch-source new file mode 100755 index 0000000000..a95a002048 --- /dev/null +++ b/packaging/Debian/debian/scripts/patch-source @@ -0,0 +1,7 @@ +#!/bin/sh -e + +for patch in debian/patches/*.patch; do + patch -p1 < $patch +done + +exit 0 diff --git a/packaging/Debian/debian/scripts/unpatch-source b/packaging/Debian/debian/scripts/unpatch-source new file mode 100755 index 0000000000..81d51f7dd4 --- /dev/null +++ b/packaging/Debian/debian/scripts/unpatch-source @@ -0,0 +1,7 @@ +#!/bin/sh -e + +for patch in debian/patches/*.patch; do + patch -p1 -R < $patch +done + +exit 0 diff --git a/packaging/Debian/debian/smb.conf b/packaging/Debian/debian/smb.conf new file mode 100644 index 0000000000..14cc20f49c --- /dev/null +++ b/packaging/Debian/debian/smb.conf @@ -0,0 +1,147 @@ +; +; /etc/samba/smb.conf +; +; Sample configuration file for the Samba suite for Debian GNU/Linux +; +; Please see the manual page for smb.conf for detailed description of +; every parameter. +; + +[global] + printing = bsd + printcap name = /etc/printcap + load printers = yes + guest account = nobody + invalid users = root + +; "security = user" is always a good idea. This will require a Unix account +; in this server for every user accessing the server. + security = user + +; Change this for the workgroup your Samba server will part of + workgroup = WORKGROUP + + server string = %h server (Samba %v) + +; If you want Samba to log though syslog only then set the following +; parameter to 'yes'. Please note that logging through syslog in +; Samba is still experimental. + syslog only = no + +; We want Samba to log a minimum amount of information to syslog. Everything +; should go to /var/log/{smb,nmb} instead. If you want to log through +; syslog you should set the following parameter to something higher. + syslog = 0; + +; This socket options really speed up Samba under Linux, according to my +; own tests. + socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 + +; Passwords are encrypted by default. This way the latest Windows 95 and NT +; clients can connect to the Samba server with no problems. + encrypt passwords = yes + +; It's always a good idea to use a WINS server. If you want this server +; to be the WINS server for your network change the following parameter +; to "yes". Otherwise leave it as "no" and specify your WINS server +; below (note: only one Samba server can be the WINS server). +; Read BROWSING.txt for more details. + wins support = no + +; If this server is not the WINS server then specify who is it and uncomment +; next line. +; wins server = 172.16.0.10 + +; Please read BROWSING.txt and set the next four parameters according +; to your network setup. There is no valid default so they are commented +; out. +; os level = 0 +; domain master = no +; local master = no +; preferred master = no + +; What naming service and in what order should we use to resolve host names +; to IP addresses + name resolve order = lmhosts host wins bcast + +; This will prevent nmbd to search for NetBIOS names through DNS. + dns proxy = no + +; Name mangling options + + preserve case = yes + short preserve case = yes + +; This boolean parameter controlls whether Samba attempts to sync. the Unix +; password with the SMB password when the encrypted SMB password in the +; /etc/samba/smbpasswd file is changed. + unix password sync = false + +; For Unix password sync. to work on a Debian GNU/Linux system, the following +; parameters must be set (thanks to Augustin Luton +; for sending the correct chat script for +; the passwd program in Debian Potato). + passwd program = /usr/bin/passwd %u + passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . + +; The following parameter is useful only if you have the linpopup package +; installed. The samba maintainer and the linpopup maintainer are +; working to ease installation and configuration of linpopup and samba. +; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' & + +; The default maximum log file size is 5 MBytes. That's too big so this +; next parameter sets it to 1 MByte. Currently, Samba rotates log +; files (/var/log/{smb,nmb} in Debian) when these files reach 1000 KBytes. +; A better solution would be to have Samba rotate the log file upon +; reception of a signal, but for now on, we have to live with this. + max log size = 1000 + + obey pam restrictions = yes + +[homes] + comment = Home Directories + browseable = no + +; By default, the home directories are exported read only. Change next +; parameter to "no" if you want to be able to write to them. + read only = yes + +; File creation mask is set to 0700 for security reasons. If you want to +; create files with group=rw permissions, set next parameter to 0775. + create mask = 0700 + +; Directory creation mask is set to 0700 for security reasons. If you want to +; create dirs. with group=rw permissions, set next parameter to 0775. + directory mask = 0700 + +[printers] + comment = All Printers + browseable = no + path = /tmp + printable = yes + public = no + writable = no + create mode = 0700 + +; A sample share for sharing your CD-ROM with others. +;[cdrom] +; comment = Samba server's CD-ROM +; writable = no +; locking = no +; path = /cdrom +; public = yes +; +; The next two parameters show how to auto-mount a CD-ROM when the +; cdrom share is accesed. For this to work /etc/fstab must contain +; an entry like this: +; +; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0 +; +; The CD-ROM gets unmounted automatically after the connection to the +; +; If you don't want to use auto-mounting/unmounting make sure the CD +; is mounted on /cdrom +; +; preexec = /bin/mount /cdrom +; postexec = /bin/umount /cdrom + diff --git a/packaging/Debian/debian/smbclient.files b/packaging/Debian/debian/smbclient.files new file mode 100644 index 0000000000..5a660fc8d4 --- /dev/null +++ b/packaging/Debian/debian/smbclient.files @@ -0,0 +1,9 @@ +usr/bin/smbclient +usr/bin/smbtar +usr/bin/rpcclient +usr/bin/smbspool +usr/share/man/man1/smbclient.1 +usr/share/man/man1/smbtar.1 +usr/share/man/man1/rpcclient.1 +usr/share/man/man8/smbspool.8 +usr/lib/cups/backend/smb diff --git a/packaging/Debian/debian/smbfs.files b/packaging/Debian/debian/smbfs.files new file mode 100644 index 0000000000..870db7d645 --- /dev/null +++ b/packaging/Debian/debian/smbfs.files @@ -0,0 +1,10 @@ +sbin/mount.smbfs +sbin/mount.smb +usr/bin/smbmount +usr/bin/smbumount +usr/bin/smbmnt +usr/share/man/man8/smbmount.8 +usr/share/man/man8/smbumount.8 +usr/share/man/man8/smbmnt.8 +usr/share/man/man8/mount.smb.8 +usr/share/man/man8/mount.smbfs.8 diff --git a/packaging/Debian/debian/smbfs.suid b/packaging/Debian/debian/smbfs.suid new file mode 100644 index 0000000000..9569087fff --- /dev/null +++ b/packaging/Debian/debian/smbfs.suid @@ -0,0 +1,5 @@ +usr/bin/smbmnt +usr/bin/smbmount-2.2.x +usr/bin/smbumount-2.2.x +usr/bin/smbmount-2.0.x +usr/bin/smbumount-2.0.x diff --git a/packaging/Debian/debian/smbwrapper.dirs b/packaging/Debian/debian/smbwrapper.dirs new file mode 100644 index 0000000000..fd727bddf0 --- /dev/null +++ b/packaging/Debian/debian/smbwrapper.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/samba diff --git a/packaging/Debian/debian/smbwrapper.docs b/packaging/Debian/debian/smbwrapper.docs new file mode 100644 index 0000000000..2924e78734 --- /dev/null +++ b/packaging/Debian/debian/smbwrapper.docs @@ -0,0 +1,2 @@ +source/smbwrapper/README +source/smbwrapper/PORTING diff --git a/packaging/Debian/debian/smbwrapper.files b/packaging/Debian/debian/smbwrapper.files new file mode 100644 index 0000000000..08edbead6e --- /dev/null +++ b/packaging/Debian/debian/smbwrapper.files @@ -0,0 +1 @@ +usr/bin/smbsh diff --git a/packaging/Debian/debian/swat.dirs b/packaging/Debian/debian/swat.dirs new file mode 100644 index 0000000000..d5df7df4b8 --- /dev/null +++ b/packaging/Debian/debian/swat.dirs @@ -0,0 +1,2 @@ +usr/sbin +usr/share/samba/swat diff --git a/packaging/Debian/debian/swat.docs b/packaging/Debian/debian/swat.docs new file mode 100644 index 0000000000..afbfcf0c61 --- /dev/null +++ b/packaging/Debian/debian/swat.docs @@ -0,0 +1 @@ +swat/README diff --git a/packaging/Debian/debian/swat.files b/packaging/Debian/debian/swat.files new file mode 100644 index 0000000000..6fed39111b --- /dev/null +++ b/packaging/Debian/debian/swat.files @@ -0,0 +1,2 @@ +usr/sbin/swat +usr/share/man/man8/swat.8 diff --git a/packaging/Debian/debian/swat.postinst b/packaging/Debian/debian/swat.postinst new file mode 100644 index 0000000000..c5ab489044 --- /dev/null +++ b/packaging/Debian/debian/swat.postinst @@ -0,0 +1,23 @@ +#!/bin/sh + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +case "$1" in + configure) + ;; + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + *) + echo "$0: Unknown action \"$1\"" + exit 0 + ;; +esac + +# Set up swat, turned off by default. +update-inetd --group OTHER --add \ + '## swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat' + +if [ -d /usr/doc -a ! -e /usr/doc/swat -a -d /usr/share/doc/swat ]; then + ln -sf ../share/doc/swat /usr/doc/swat +fi diff --git a/packaging/Debian/debian/swat.postrm b/packaging/Debian/debian/swat.postrm new file mode 100644 index 0000000000..e203d2855f --- /dev/null +++ b/packaging/Debian/debian/swat.postrm @@ -0,0 +1,19 @@ +#!/bin/sh + +case "$1" in + purge) + update-inetd --remove '/usr/sbin/swat$' + exit 0 + ;; + remove) + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "$0: unknown action \"$1\"" + exit 0 + ;; +esac + +exit 0 + diff --git a/packaging/Debian/debian/wins2dns.awk b/packaging/Debian/debian/wins2dns.awk new file mode 100644 index 0000000000..176868a115 --- /dev/null +++ b/packaging/Debian/debian/wins2dns.awk @@ -0,0 +1,38 @@ +#!/usr/bin/awk -f +# +# Date: Wed, 26 Aug 1998 10:37:39 -0600 (MDT) +# From: Jason Gunthorpe +# To: samba@packages.debian.org +# Subject: Nifty samba script +# +# Here is a really nifty script I just wrote for samba, it takes the wins +# database in /var/samba/wins and writes out two dns files for it. In this +# way network wide wins clients can get into the dns for use by unix +# machines. +# +# Perhaps this could be included in /usr/doc/examples or somesuch. +# + +BEGIN { + FS="#|\""; +FORWARD="/tmp/wins.hosts" +REVERSE="/tmp/wins.rev" +DOMAIN="ven.ra.rockwell.com" +} +$3 == "00" { + split($4,a," " ); + split(a[2],b,"."); + while (sub(" ","-",$2)); + $2=tolower($2); + if (b[1] == "255") + next; + if (length($2) >= 8) + print $2"\ta\t"a[2] > FORWARD + else + print $2"\t\ta\t"a[2] > FORWARD + print b[4]"."b[3]"\t\tptr\t"$2"."DOMAIN"." > REVERSE +} +END { + system("echo killall -HUP named"); +} + -- cgit From 8d84f070c4611c4e78b3132b7325befab428278b Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 6 Feb 2002 00:56:43 +0000 Subject: no longer need separate build o32 smbwrapper (This used to be commit a9316754c7ef6244e69bec25ca20dad0019f77e1) --- packaging/SGI/mkrelease.sh | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index 7412a02d4f..889dcf1ae8 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -87,19 +87,6 @@ if [ $errstat -ne 0 ]; then fi mv bin/smbd bin/smbd.noquota -echo "===================== Making smbwrapper.32.so =======================" -# cannot use -mips3 with 32 bit shared libraries so reset the ISA variable -# just for this object -ISA= -export ISA -make -P "CFLAGS=-O -g3" bin/smbwrapper.32.so -errstat=$? -if [ $errstat -ne 0 ]; then - echo "Error $errstat building sources\n"; - exit $errstat; -fi -ISA=-mips3 -export ISA echo "===================== Making Regular versions =======================" make -P "CFLAGS=-O -g3" all nsswitch/libnss_wins.so errstat=$? -- cgit From e7944643f7ca84efcb26073792d71f7b35be1f05 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Thu, 7 Feb 2002 20:09:17 +0000 Subject: quite errors about unnecessary const casting - don't build libnss_wins.so (This used to be commit 8ae0abb174aec0c76d6900b08914535d0a2d425c) --- packaging/SGI/mkrelease.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index 889dcf1ae8..1a565a73e7 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -67,7 +67,7 @@ echo Making binaries echo "===================== Making Profile versions =======================" make clean make headers -make -P "CFLAGS=-O -g3 -D WITH_PROFILE" bin/smbd bin/nmbd +make -P "CFLAGS=-O -g3 -woff 1188 -D WITH_PROFILE" bin/smbd bin/nmbd errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building profile sources\n"; @@ -79,7 +79,7 @@ mv bin/nmbd bin/nmbd.profile echo "===================== Making No Quota versions =======================" make clean make headers -make -P "CFLAGS=-O -g3 -D QUOTAOBJS=smbd/noquotas.o" bin/smbd +make -P "CFLAGS=-O -g3 -woff 1188 -D QUOTAOBJS=smbd/noquotas.o" bin/smbd errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building noquota sources\n"; @@ -88,7 +88,7 @@ fi mv bin/smbd bin/smbd.noquota echo "===================== Making Regular versions =======================" -make -P "CFLAGS=-O -g3" all nsswitch/libnss_wins.so +make -P "CFLAGS=-O -g3 -woff 1188" all errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building sources\n"; -- cgit From 590bace59dd024bcd89387160c683c61fcdb60a2 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 10 Mar 2002 21:41:56 +0000 Subject: Initscript from 2.2.4 tree. (This used to be commit d61f3810443a1828ea8c6c6782708f3ddd7caaea) --- packaging/Caldera/OpenLinux/samba.init-lsb | 41 ++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba.init-lsb b/packaging/Caldera/OpenLinux/samba.init-lsb index f14eef648f..615e17b21f 100755 --- a/packaging/Caldera/OpenLinux/samba.init-lsb +++ b/packaging/Caldera/OpenLinux/samba.init-lsb @@ -21,6 +21,10 @@ NAME_S=smbd DAEMON_S=/usr/sbin/$NAME_S NAME_N=nmbd DAEMON_N=/usr/sbin/$NAME_N +NAME_W=winbindd +DAEMON_W=/usr/sbin/$NAME_W + +config_file=/etc/samba.d/smb.conf # Source function library (and set vital variables). . @SVIdir@/functions @@ -36,14 +40,44 @@ status() { return 0 # seems to be up and running } +# this function is dedicated to Jan Terpstra. -- Klaus Singvogel, Sep. 2001. +WinbdConfig() { + # returns 0 if winbindd is not configured, + # and 1 if winbindd is configured. + + local config_file=$1; shift # file to check + + # check if "winbind uid" is set in samba config file + egrep -q '[^#]*winbind uid' $config_file || return 0 + + found=0; + # We also need to check if least one PAM module control file does + # NOT have pam_winbind.so commented out + for i in /etc/pam.d/*; do + if [ ! -f $i ]; then next; fi + egrep -q '[^#]*pam_winbind.so' $i && found=1 && break; + done + + if [ $found != 0 ]; then + # if so, ensure that in /etc/nsswitch.conf we have for + # "passwd", "shadow", "group" an entry for "winbind" + egrep -q '^passwd:.*winbind' /etc/nsswitch.conf && return 1 + egrep -q '^shadow:.*winbind' /etc/nsswitch.conf && return 1 + egrep -q '^group:.*winbind' /etc/nsswitch.conf && return 1 + fi + + return 0 +} + case "$1" in start) [ ! -e $SVIlock ] || exit 0 [ -x $DAEMON_S -a -x $DAEMON_N ] || exit 5 - SVIemptyConfig /etc/samba.d/smb.conf && exit 6 + SVIemptyConfig $config_file && exit 6 echo -n "Starting $SVIsubsys services: " ssd -S -n $NAME_S -x $DAEMON_S -- $OPTIONS_SMB + WinbdConfig $config_file || ssd -S -n $NAME_W -x $DAEMON_W -- $OPTIONS_WINBD ssd -S -n $NAME_N -x $DAEMON_N -- $OPTIONS_NMB ret=$? @@ -55,8 +89,9 @@ case "$1" in [ -e $SVIlock ] || exit 0 echo -n "Stopping $SVIsubsys services: " - ssd -K -p /var/lock/samba.d/$NAME_N.pid -n $NAME_N #-x $DAEMON_N ssd -K -p /var/lock/samba.d/$NAME_S.pid -n $NAME_S #-x $DAEMON_S + ssd -K -p /var/lock/samba.d/$NAME_W.pid -n $NAME_W #-x $DAEMON_W + ssd -K -p /var/lock/samba.d/$NAME_N.pid -n $NAME_N #-x $DAEMON_N ret=$? @@ -73,6 +108,8 @@ case "$1" in reload) echo -n "Reloading $SVIsubsys service configuration: " # nmbd has no config file to reload + ssd -K --signal 1 -p /var/lock/samba.d/$NAME_N.pid -n $NAME_N #-x $DAEMON_N + ssd -K --signal 1 -p /var/lock/samba.d/$NAME_W.pid -n $NAME_W #-x $DAEMON_W ssd -K --signal 1 -p /var/lock/samba.d/$NAME_S.pid -n $NAME_S #-x $DAEMON_S ret=$? echo "." -- cgit From 59361453d993a91e9dfbc0087a8445bf993cb779 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 10 Mar 2002 21:49:04 +0000 Subject: Update to build 3.0.0 alphas (This used to be commit 9c4011d6519b05a311b168f6d48b71bb3680b345) --- packaging/Caldera/OpenLinux/makerpms.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl index 54e207bd8d..1b48cf6be6 100644 --- a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl +++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl @@ -46,8 +46,8 @@ mv -f samba2.spec samba2.spec-nonlsb ln -f samba2.spec-lsb samba3.spec fi if [ $team -ne 0 ]; then - mv -f samba3.spec samba3.spec-lsb - ln -f samba3.spec-team samba3.spec +# mv -f samba3.spec samba3.spec-lsb +# ln -f samba3.spec-team samba3.spec rpm -ba -v samba3.spec else rpm -ba -v --rmsource --clean samba3.spec -- cgit From 54f52525c28a721c928085e0057003d67bb0f318 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Mon, 11 Mar 2002 19:37:01 +0000 Subject: Transient change - not final - don;t want to lose this between systems and testers. NOTE: This is not useable for now. (This used to be commit 0fe968378a94e70c8a7c4b15bf2516ded1edd52c) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index e32dd89d28..fb098d9e8d 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -161,12 +161,27 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-privatedir='$(LIBDIR)' \ --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ --with-swatdir='$(DESTDIR)/usr/share/swat' \ - --with-smbmount --with-pam --without-smbwrapper \ - --with-utmp --with-quotas --with-vfs --with-msdfs \ - --with-profile --with-syslog --with-utmp --with-netatalk \ + --with-smbmount \ + --with-pam \ + --with-pam_smbpass \ + --with-tdbsam \ + --with-ldapsam \ + --with-nisplussam \ + --with-nisplus-home \ + --with-winbind \ + --with-acl-support \ + --without-smbwrapper \ + --with-utmp \ + --with-quotas \ + --with-vfs \ + --with-msdfs \ + --with-profile \ + --with-syslog \ + --with-utmp \ + --with-netatalk \ --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba -make all nsswitch/libnss_wins.so +make all %Install -- cgit From c82ff4c942fb2c5efb7aceaadf374accb5b67d46 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Mon, 11 Mar 2002 21:35:38 +0000 Subject: More temp. changes. - Bear with me, this will soon be resolved. (This used to be commit cb38843ac753992be0c6a109a8de175b73fe7db2) --- packaging/Caldera/OpenLinux/makerpms.sh.tmpl | 18 +++++++++--------- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 28 +++++++++++----------------- 2 files changed, 20 insertions(+), 26 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl index 1b48cf6be6..3b8eda4d5c 100644 --- a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl +++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl @@ -24,27 +24,27 @@ fi # Start preparing the packages... if [ $devel -ne 0 ]; then - ( cd ../../../.. ; chown -R ${USERID}.${GRPID} samba; mv samba samba-PVERSION ) - ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION; mv samba-PVERSION samba ) + ( cd ../../../.. ; chown -R ${USERID}.${GRPID} samba3; mv samba3 samba-PVERSION ) + ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION; mv samba-PVERSION samba3 ) else ( cd ../../../.. ; chown -R ${USERID}.${GRPID} samba-PVERSION ) ( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION ) fi cp -af *.spec *.spec-lsb $SPECDIR -if [ $team -ne 0 ]; then - cp *.spec-team $SPECDIR -fi +#if [ $team -ne 0 ]; then +# cp *.spec-team $SPECDIR +#fi for i in `ls *.patch` do cp $i $SRCDIR/ done # Start building the package cd $SPECDIR -if [ $old -eq 0 ]; then -mv -f samba2.spec samba2.spec-nonlsb -ln -f samba2.spec-lsb samba3.spec -fi +#if [ $old -eq 0 ]; then +#mv -f samba2.spec samba2.spec-nonlsb +#ln -f samba2.spec-lsb samba3.spec +#fi if [ $team -ne 0 ]; then # mv -f samba3.spec samba3.spec-lsb # ln -f samba3.spec-team samba3.spec diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index fb098d9e8d..81ee895f40 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -13,7 +13,7 @@ Summary : Samba SMB client and server. Copyright : Andrew Tridgell, John H Terpstra; GPL Version 2 Packager : Klaus Singvogel -Icon : Caldera-daemon.gif +#Icon : Caldera-daemon.gif URL : http://samba.org/samba Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 @@ -23,7 +23,7 @@ BuildRoot : /tmp/%{Name}-%{Version} Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}.tar.gz #Patch0: %{Name}-%{Version}-smbmount.patch -Patch1: %{Name}-%{Version}-install.patch +#Patch1: %{Name}-%{Version}-install.patch #Patch2: %{Name}-%{Version}-smbconf.patch @@ -43,7 +43,9 @@ Summary : Mount and unmount commands for SMB filesystems (smbfs). Group : Administration/Network Requires : setup >= 2.0-2, tcp_wrappers -Summary : Samba Web Administration Tool. +Summary : Samba Web Adminsitration Tool. + +%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, @@ -53,7 +55,7 @@ in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol. -Samba-2.2 features working NT Domain Control capability and +Samba features working NT Domain Control capability and includes the SWAT (Samba Web Administration Tool) that allows samba's smb.conf file to be remotely managed using your favourite web browser. For the time being this is being @@ -67,10 +69,6 @@ Backup Domain control ability. Please refer to the WHATSNEW.txt document for fixup information. This binary release includes encrypted password support. -Please read the smb.conf file and ENCRYPTION.txt in the -docs directory for implementation details. - -%Description NOTE: Caldera OpenLinux uses PAM which has integrated support for Shadow passwordsand for quotas. Do NOT recompile with the @@ -102,9 +100,9 @@ allowing an administrator to easily look up the effects of any change. %Prep -%setup -n samba -#%%patch0 -p1 -%patch1 -p1 +%setup +#%patch0 -p1 +#%patch1 -p1 #%patch2 -p1 # instead of patch (to help configuration) ... ;^) @@ -142,11 +140,6 @@ done s:/usr/local/etc/:/etc/: + s:/usr/local/:/usr/:; ' -%{fixUP} -vT docs/textdocs/ENCRYPTION.txt -e ' - s:/usr/local/samba/private:%{EtcSamba}:g + - s:mksmbpasswd.sh:mksmbpasswd:g + - s:the Samba source directory:/usr/bin:; -' # End of DirtyHack(TM) @@ -325,5 +318,6 @@ lisa --inetd disable swat $1 %ChangeLog -* Mon Jan 01 1997 ... +* Mon Mar 11 2002 John H Terpstra +- Make this work -- cgit From 879c18397ca68b9968dd96a8c9e61e6ffbee0576 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 12 Mar 2002 01:01:04 +0000 Subject: Still hacking at it. (This used to be commit 153091597cd4f2e26a3aa80c32bba27bc358b0b2) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 36 +++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 81ee895f40..f3f7bf3c76 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -105,16 +105,17 @@ allowing an administrator to easily look up the effects of any change. #%patch1 -p1 #%patch2 -p1 +# The commented out fixUP below should be best known as screwUP! # instead of patch (to help configuration) ... ;^) -%{fixUP} -vbT source/Makefile.in -e ' - s:we don.t use sbindir because we want:if you want : + - s:(the previous releases of Samba):$1, please use: + - s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + - s:/log\.(\S+):/log/samba.d/${1}d: + - s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: + - s:^(LIBS\s*=):AUTH_$1: + - s:((SMBD|SWAT|RPCCLIENT|SMBPASSWD)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: -' +#%{fixUP} -vbT source/Makefile.in -e ' +# s:we don.t use sbindir because we want:if you want : + +# s:(the previous releases of Samba):$1, please use: + +# s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + +# s:/log\.(\S+):/log/samba.d/${1}d: + +# s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: + +# s:^(LIBS\s*=):AUTH_$1: + +# s:((SMBD|SWAT|RPCCLIENT|SMBPASSWD)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: +#' for i in {cvs.,change-}log; do [ ! -f ../$i ] || mv ../$i source; done @@ -145,7 +146,8 @@ done %Build cd source -autoreconf +rm configure +autoconf CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --prefix='$(DESTDIR)/usr' \ @@ -156,14 +158,8 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-swatdir='$(DESTDIR)/usr/share/swat' \ --with-smbmount \ --with-pam \ - --with-pam_smbpass \ --with-tdbsam \ - --with-ldapsam \ - --with-nisplussam \ - --with-nisplus-home \ --with-winbind \ - --with-acl-support \ - --without-smbwrapper \ --with-utmp \ --with-quotas \ --with-vfs \ @@ -174,6 +170,14 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-netatalk \ --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba +# Temp disabled - add later - JHT +# --with-pam_smbpass \ +# --without-smbwrapper \ +# --with-ldapsam \ +# --with-nisplussam \ +# --with-nisplus-home \ +# --with-acl-support \ + make all -- cgit From 82bd0604d0c30bbecab68f76eda7c6021e2a97bd Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 12 Mar 2002 04:17:48 +0000 Subject: Hack, hack, where is my sledge hammer? (This used to be commit b07aa46d83810009d5d690f81cf82932dd67f04c) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 310 +++++++++++++++++++-------- 1 file changed, 225 insertions(+), 85 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index f3f7bf3c76..2265105cb8 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -45,58 +45,130 @@ Requires : setup >= 2.0-2, tcp_wrappers Summary : Samba Web Adminsitration Tool. +%Package -n libsmbclient +Group : System/Network + +Summary : Samba Client Library. + %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 features working NT Domain Control capability and -includes the SWAT (Samba Web Administration Tool) that -allows samba's smb.conf file to be remotely managed using your -favourite web browser. For the time being this is being -enabled on TCP port 901 via inetd. - -Users are advised to use Samba-2.2 as a Windows NT4 -Domain Controller only on networks that do NOT have a Windows -NT Domain Controller. This release does NOT as yet have -Backup Domain control ability. - -Please refer to the WHATSNEW.txt document for fixup information. -This binary release includes encrypted password support. - - -NOTE: Caldera OpenLinux uses PAM which has integrated support -for Shadow passwordsand for quotas. Do NOT recompile with the -SHADOW_PWD option enabled. +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. + +%Description -l de +Samba stellt einen SMB Server zur Verfügung, mit dem Netzwerkdienste für SMB +(auch "Lan Manager" genannt) Clients bereitgestellt werden können. Dies +schließt verschiedene Versionen von MS Windows, OS/2 und andere Linux +Maschinen ein. + +%Description -l es +Samba dispone de un servidor SMB que puede utilizarse para proporcionar +servicios de red a clientes SMB (a veces conocido como "Lan Manager"), +incluyendo varias versiones de MS Windows, OS/2 y otras máquinas Linux. + +%Description -l fr +Samba fournit un serveur SMB qui peut être utilisé pour fournir des services +de réseau aux clients SMB (parfois appelés "Lan Manager"), comportant +diverses versions de MS Windows, OS/2 et d'autres machines Linux. + +%Description -l it +Samba fornisce un server SMB che può essere usato per fornire servizi +di rete a client SMB (talvolta chiamato "Lan Manager"), comprese varie +versioni di MS Windows, OS/2 e altre macchine Linux. + +%Description -l pt +O Samba fornece um servidor de SMB que pode ser usado para fornecer serviços de +rede aos clientes de SMB (denominado por vezes como "Lan Manager"), incluindo +várias versões do Windows, OS/2 e outras máquinas Linux. %Description doc -Documentation on SAMBA. +This package contains extensive SAMBA documentation, including a FAQ, +comprehensive usage documentation, and a number of examples. + +%Description -l de doc +Dieses Paket enthält eine ausführliche SAMBA Dokumentation, inklusive +einer FAQ, umfassender Gebrauchsdokumentation und einer Reihe von +Beispielen. + +%Description -l es doc +Este paquete contiene una extensa documentación sobre SAMBA, incluyendo +FAQ (Preguntas de Uso Frecuente), documentación sobre el uso y algunos +ejemplos. + +%Description -l fr doc +Ce paquetage contient une documentation complète sur Samba, y compris +une FAQ détaillée de son utilisation et un certain nombre d'exemples. + +%Description -l it doc +Questo pacchetto contiene la documentazione su SAMBA tra cui una FAQ +una esaustiva documentazione d'uso e un certo numero di esempi. +%Description -l pt doc +Este pacote contém alguma documentação extensa sobre o SAMBA, incluindo a FAQ, +alguma documentação compreensiva sobre a utilização e alguns exemplos. %Description -n smbfs This package includes the tools necessary to mount filesystems from SMB servers. -Smbmount and smbumount are an interface to the SMB filesystem. Smbfs is -a filesystem which understands the SMB protocol. This is the protocol -Windows for Workgroups, Windows NT or Lan Manager use to talk to each -other. It was inspired by samba, the program by Andrew Tridgell that -turns any unix site into a file server for DOS or Windows clients. See -http://samba.org/samba for this interesting program suite and lots of -more information on SMB and NetBIOS over TCP/IP. There you also find -explanation for conceps like NetBIOS name or share. +%Description -l de -n smbfs +Dieses Paket enthält die nötigen Tools, um Dateisysteme von SMB-Servern +zu mounten. +%Description -l es -n smbfs +este paqeute incluye las herramientas necesarias para montar sistemas de +ficheros de servidores SMB. + +%Description -l fr -n smbfs +Ce paquetage contient les outils nécessaires pour monter des systèmes +de fichiers sur des serveurs SMB. + +%Description -l it -n smbfs +Questo pacchetto contiene gli strumenti necessari per montare filesystem +da server SMB. + +%Description -l pt -n smbfs +Este pacote contém as ferramentas necessárias para montar sistema de +ficheiros de servidores SMB. %Description -n swat -swat allows a Samba administrator to configure the complex smb.conf -file via a Web browser. In addition, a swat configuration page has -help links to all the configurable options in the smb.conf file -allowing an administrator to easily look up the effects of any change. +SWAT allows a Samba administrator to configure the complex smb.conf +file via a Web browser. It also provides links to all the configurable +options in the smb.conf file allowing an administrator to easily look +up the effects of any change. + +%Description -l de -n swat +Mit SWAT kann ein Samba-Administrator die komplexe smb.conf +Datei mit Hilfe eines Web-Browsers konfigurieren. Es stellt auch Links zu +allen konfigurierbaren Optionen in der smb.conf Datei bereit, wodurch ein +Administrator die Auswirkungen einer Änderung leicht nachvollziehen kann. + +%Description -l es -n swat +SWAT permite a un administrador de Samba configurar el complejo fichero +smb.conf mediante una navegador web. También proporciona enlaces a todas las +opciones configurables en el fichero smb.conf, permitiendo al administrador +comprobar fácilmente los efectos de cualquier cambio. + +%Description -l fr -n swat +SWAT permet à un administrateur Samba de configurer le fichier smb.conf +complexe via un navigateur Web. Il fournit également des liens d'aide pour +toutes les options configurables dans le fichier smb.conf permettant à un +administrateur de consulter aisément les effets d'une modification. + +%Description -l it -n swat +SWAT permette ad un amministratore Samba di configurare il complesso file +smb.conf attraverso un browser Web. SWAT ha anche dei link di aiuto per +tutte le opzioni di configurazione del file smb.conf. + +%Description -l pt -n swat +O SWAT permite a um administrador de Samba configurar o complexo ficheiro +smb.conf através de uma interface Web. Fornece também referências para +todas as opções configuraveis no smb.conf, permitindo a um admnistrador +verificar rapidamente o efeite de qualquer alteração. + +%Description -n libsmbclient +SMB Client Library allows for POSIX like SMB client calls providing developers +a clean and stable API for SMB client application development. %Prep @@ -153,6 +225,7 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --prefix='$(DESTDIR)/usr' \ --localstatedir='$(DESTDIR)/var' \ --libdir='$(DESTDIR)%{EtcSamba}' \ + --sbindir='$(DESTDIR)/usr/sbin' \ --with-privatedir='$(LIBDIR)' \ --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ --with-swatdir='$(DESTDIR)/usr/share/swat' \ @@ -168,17 +241,17 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-syslog \ --with-utmp \ --with-netatalk \ + --without-smbwrapper \ + --with-libsmbclient \ + --with-ldapsam \ --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba # Temp disabled - add later - JHT # --with-pam_smbpass \ -# --without-smbwrapper \ -# --with-ldapsam \ -# --with-nisplussam \ # --with-nisplus-home \ # --with-acl-support \ -make all +make all nsswitch/libnss_wins.so torture %Install @@ -186,23 +259,37 @@ make all VVS=packaging/%{Vendor}/%{Dist} mkdir -p $DESTDIR/etc/{{rc.d/init,logrotate,pam}.d,sysconfig/daemons} +mkdir -p $DESTDIR%{EtcSamba}/codepages/src +mkdir -p $DESTDIR/etc/skel/Samba +mkdir -p $DESTDIR/home/samba +mkdir -p $DESTDIR/lib/security +mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} +mkdir -p $DESTDIR%{NKinetdir} +mkdir -p $DESTDIR/{sbin,bin,usr/{sbin,bin}} +mkdir -p $DESTDIR/%{SVIdir} +mkdir -p $DESTDIR/usr/include +mkdir -p $DESTDIR/usr/share/samba/codepages/src +mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs} mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} -mkdir -p $DESTDIR/usr/{share,swat/using_samba} -mkdir -p $DESTDIR/home/samba $DESTDIR%{EtcSamba}/codepages/src $DESTDIR/sbin -make -C source install strip $DESTDIR/usr/bin/smb{mount,mnt,umount} -mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin +#mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin #cp -p source/codepages/codepage_def.??? $DESTDIR%{EtcSamba}/codepages/src # Install the nsswitch library extension file cp -p source/nsswitch/libnss_wins.so $DESTDIR/lib +cp -p source/nsswitch/pam_winbind.so $DESTDIR/lib/security # Make link for wins resolver -cd $DESTDIR/lib -ln -s libnss_wins.so libnss_wins.so.2 -cd $RPM_BUILD_DIR +( cd $DESTDIR/lib; ln -s libnss_wins.so libnss_wins.so.2; cd $RPM_BUILD_DIR ) + +# Add libsmbclient support stuff +install -m 755 source/bin/libsmbclient.so $DESTDIR/usr/lib +install -m 755 source/bin/libsmbclient.a $DESTDIR/usr/lib +ln -s libsmbclient.so $DESTDIR/usr/lib/libsmbclient.so.0 +ln -s libsmbclient.so $DESTDIR/usr/lib/libsmbclient.so.0.1 +install -m 644 source/include/libsmbclient.h $DESTDIR/usr/include cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin @@ -210,28 +297,37 @@ ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample #cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf cp -p $VVS/smbusers $DESTDIR%{EtcSamba} -cp -p $VVS/smbprint $DESTDIR/usr/bin -cp -p $VVS/smbadduser.perl $DESTDIR/usr/sbin/smbadduser -cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/sbin/make_smbpasswd -cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/sbin/convertsmbpasswd -cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/sbin/updatesmbpasswd +#cp -p $VVS/smbprint $DESTDIR/usr/bin +#cp -p $VVS/smbadduser.perl $DESTDIR/usr/sbin/smbadduser +#cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/sbin/make_smbpasswd +#cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/sbin/convertsmbpasswd +#cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/sbin/updatesmbpasswd cp -p $VVS/findsmb $DESTDIR/usr/sbin cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba -for f in testparm testprns; do - ln -s $f $DESTDIR/usr/bin/smb$f - ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 -done -ln -s make_smbcodepage $DESTDIR/usr/sbin/mksmbcodepage -ln -s make_smbpasswd $DESTDIR/usr/sbin/mksmbpasswd -ln -sf convert_smbpasswd $DESTDIR/usr/sbin/convertsmbpasswd +#for f in testparm testprns; do +# ln -s $f $DESTDIR/usr/bin/smb$f +# ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 +#done +#ln -s make_smbcodepage $DESTDIR/usr/sbin/mksmbcodepage +#ln -s make_smbpasswd $DESTDIR/usr/sbin/mksmbpasswd +#ln -sf convert_smbpasswd $DESTDIR/usr/sbin/convertsmbpasswd cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts 127.0.0.1 localhost EoH +# lsb has new way of inetd configuration +cat <$DESTDIR%{NKinetdir}/swat +swat stream tcp nowait.400 root /usr/sbin/tcpd swat +EoI + +pushd $DESTDIR/usr/sbin +rm -f *.so +popd + DOCD="$DESTDIR/%{_defaultdocdir}/samba-%{Version}"; mkdir -p $DOCD ln -sf ../Copyrights/GPL-2.0 $DOCD/COPYING @@ -242,28 +338,59 @@ mv $DOCD/docs/htmldocs/wfw_slip.htm $DOCD/docs/wfw_slip.html rm -rf $DOCD/docs/{htmldocs,manpages,yodldocs} rm -rf $DOCD/examples/{svr4-startup,printing} +rm -rf $DOCD/CVS $DOCD/*/CVS $DOCD/*/*/CVS $DOCD/*/*/*/CVS cp -p swat/README $DOCD/README.swat +# This is the O'Reily Samba Book - on-line +for i in docs/htmldocs/using_samba/*.html +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba +done +for i in docs/htmldocs/using_samba/figs/*.gif +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba/figs +done +for i in docs/htmldocs/using_samba/gifs/*.gif +do +install -m644 $i $DESTDIR/usr/share/swat/using_samba/gifs +done + +%{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;' +%{fixUP} -T $DESTDIR/%{SVIdir} -e 's:\@SVIdir\@:%{SVIdir}:' %{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;' +%{fixUP} -vT $DESTDIR/%{EtcSamba} -e 's:\@samba_home\@:%{LSBservedir}:' %{fixManPages} %{mkLists} -c samba cat << 'EOF' | %{mkLists} -d samba -^/(etc|var|home) config-IGNORED -swat swat -/usr/doc/samba-[^/]+/$ base -/doc/samba- doc +Samba base +/lib/$ base +%{LSBservedir} config-IGNORED +^/(etc|var|home|tmp) config-IGNORED +swat swat +%{_defaultdocdir}/samba-[^/]+/$ base +%{_defaultdocdir}/samba- doc +tmp IGNORED +man IGNORED +/src/$ IGNORED +/usr/private/$ IGNORED @default@ EOF cat << 'EOF' | %{mkLists} -f -a samba -^/etc config-IGNORED -/doc/samba-[^/]+/(COPYING|README$) base -/doc/samba- doc -smb(mount|mnt|umount) smbfs -mount.smbfs smbfs -swat swat +\.old$ IGNORED +Samba/README.txt base +^/etc config-IGNORED +%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base +libnss_* base +pam_* base +%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base +%{_defaultdocdir}/samba- doc +smb(mount|mnt|umount) smbfs +mount.smbfs smbfs +swat swat +libsmbclient* libsmbclient @default@ EOF @@ -273,53 +400,66 @@ EOF %Post -lisa --SysV-init install samba S91 3:4:5 K09 0:1:2:6 - +/usr/lib/LSB/init-install %{Name} %Post -n swat -lisa --inetd install swat stream tcp nowait.400 root /usr/sbin/tcpd swat +%{NKinetdReload} perl -pi -e '$s=1 if /^swat/; print "swat:ALL EXCEPT 127.0.0.1\n" if eof && ! $s' /etc/hosts.deny %PostUn -lisa --SysV-init remove samba $1 +test "$1" = "0" || exit 0 +/usr/lib/LSB/init-remove %{Name} # We want to remove the browse.dat and wins.dat files so they can not # interfer with a new version of samba! -rm -f /var/lock/samba/{browse,wins}.dat +rm -f /var/lock/samba/browse.dat +rm -f /var/lock/samba/{brlock,connections,locking,messages}.tdb +if [ -e /var/lock/samba.d/namelist.debug ]; then + rm -f /var/lock/samba.d/namelist.debug +fi +rm -f /var/lock/samba/unexpected.tdb +rm -f /var/lock/samba/{smbd,nmbd}.pid + +# Note: We MUST keep: +# winbindd_*, sshare_info*, printing*, ntdrivers* %PostUn -n swat -lisa --inetd disable swat $1 +#$no lsb: lisa --inetd disable swat $1 +test "$1" = "0" || exit 0 +%{SVIdir}/inet reload [ -x /usr/sbin/swat ]||perl -ni -e '/^swat\s*\:/||print' /etc/hosts.deny %Files -f files-samba-base %defattr(-,root,root) -%config %attr(755,root,root) /etc/rc.d/init.d/samba +%config %attr(0755,root,root) %{SVIdir}/samba %config %attr(644,root,root) /etc/sysconfig/daemons/samba %config %attr(644,root,root) /etc/pam.d/samba %config %attr(644,root,root) /etc/logrotate.d/samba %config %attr(-,root,root) %{EtcSamba} -%config %attr(755,root,root) /home/samba - %dir %attr(755,root,root) /var/lock/samba.d %dir %attr(755,root,root) /var/log/samba.d %dir %attr(1777,root,root) /var/spool/samba -#%dir %attr(775,root,nobody) /home/samba - +%dir %attr(755,root,root) %{LSBservedir} +%dir %attr(755,root,root) %{LSBservedir}/netlogon +%dir %attr(755,root,root) %{LSBservedir}/profiles +%dir %attr(755,root,root) %{LSBservedir}/Public %Files doc -f files-samba-doc %defattr(-,root,root) - %Files -n smbfs -f files-samba-smbfs %defattr(-,root,root) %Files -n swat -f files-samba-swat %defattr(-,root,root) +%config %attr(644,root,root) %{NKinetdir}/swat +%Files -n libsmbclient -f files-samba-libsmbclient +%defattr(-,root,root) %ChangeLog * Mon Mar 11 2002 John H Terpstra -- cgit From 4ccc894a37266db26f8d924557be6f41f3e7cdef Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 12 Mar 2002 05:28:09 +0000 Subject: Cleaning things up for test deployment. (This used to be commit 675a78d09a693004cf959fd6cec62b6b72c67194) --- packaging/Caldera/OpenLinux/samba.daemon | 1 + packaging/Caldera/OpenLinux/samba.init | 4 + packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl | 506 ----------------------- packaging/Caldera/OpenLinux/samba2.spec.tmpl | 484 ---------------------- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 17 +- 5 files changed, 14 insertions(+), 998 deletions(-) delete mode 100644 packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl delete mode 100644 packaging/Caldera/OpenLinux/samba2.spec.tmpl (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba.daemon b/packaging/Caldera/OpenLinux/samba.daemon index 96683702f5..78c357005e 100644 --- a/packaging/Caldera/OpenLinux/samba.daemon +++ b/packaging/Caldera/OpenLinux/samba.daemon @@ -4,3 +4,4 @@ CONFIGURED="no" ONBOOT="no" OPTIONS_SMB="-D" OPTIONS_NMB="-D" +OPTIONS_WINBD="" diff --git a/packaging/Caldera/OpenLinux/samba.init b/packaging/Caldera/OpenLinux/samba.init index 1b830a1da3..37955e1555 100755 --- a/packaging/Caldera/OpenLinux/samba.init +++ b/packaging/Caldera/OpenLinux/samba.init @@ -7,6 +7,8 @@ NAME_S=smbd DAEMON_S=/usr/sbin/$NAME_S NAME_N=nmbd DAEMON_N=/usr/sbin/$NAME_N +NAME_W=winbindd +DAEMON_W=/usr/sbin/winbindd # Source function library. . /etc/rc.d/init.d/functions @@ -30,6 +32,7 @@ case "$1" in echo -n "Starting $IDENT: " ssd -S -n $NAME_S -x $DAEMON_S -- $OPTIONS_SMB ssd -S -n $NAME_N -x $DAEMON_N -- $OPTIONS_NMB + ssd -S -n $NAME_W -x $DAEMON_W -- $OPTIONS_WINBD echo "." touch $SVIlock @@ -39,6 +42,7 @@ case "$1" in [ -e $SVIlock ] || exit 0 echo -n "Stopping $IDENT: " + ssd -K -p /var/lock/samba.d/$NAME_W.pid -n $NAME_W #-x $DAEMON_W ssd -K -p /var/lock/samba.d/$NAME_N.pid -n $NAME_N #-x $DAEMON_N ssd -K -p /var/lock/samba.d/$NAME_S.pid -n $NAME_S #-x $DAEMON_S diff --git a/packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl b/packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl deleted file mode 100644 index 7a2b921dd5..0000000000 --- a/packaging/Caldera/OpenLinux/samba2.spec-lsb.tmpl +++ /dev/null @@ -1,506 +0,0 @@ -%define Version PVERSION -%define date PRELEASE -%define Vendor Caldera -%define Dist OpenLinux -%define EtcSamba /etc/samba.d -%define LSBservedir /srv/samba - -Name : samba -Version : %{Version} -Release : %{date} -Group : Server/Network - -Summary : Samba SMB client and server. -Summary(de) : Samba SMB Client und Server. -Summary(es) : Cliente y servidor SMB Samba. -Summary(fr) : Client et serveur SMB Samba. -Summary(it) : Client e server SMB. -Summary(pt) : Cliente e servidor SMB Samba. - -Copyright : Andrew Tridgell, John H Terpstra; GPL Version 2 -Packager : Klaus Singvogel -#Icon : Caldera-daemon.gif -URL : http://samba.org/samba - -Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 - - -BuildRoot : /tmp/%{Name}-%{Version} - -Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}.tar.gz -#Patch0: %{Name}-%{Version}-smbmount.patch -#Patch1: %{Name}-%{Version}-install.patch -#Patch2: %{Name}-%{Version}-smbconf.patch - -%Package doc -Group : Server/Network - -Summary : Documentation on SAMBA. -Summary(de) : Die Dokumentation für Samba. -Summary(es) : Documentation de SAMBA. -Summary(fr) : Documentation pour Samba. -Summary(it) : Documentazione su SAMBA. -Summary(pt) : Documentação sobre o SAMBA. - -%Package -n smbfs -Group : System/Network - -Summary : Mount and unmount commands for SMB filesystems (smbfs). -Summary(de) : Mount und unmount für SMB-Dateisysteme (smbfs). -Summary(es) : Comandos de montaje y desmontaje de sistemas de ficheros SMB (smbfs). -Summary(fr) : Commandes pour le montage et le démontage des systèmes de fichiers SMB (smbfs). -Summary(it) : Comandi per montare e smontare i file system SMB (smbfs). -Summary(pt) : Comandos mount e unmount para o sistema de ficheiros SMB (smbfs). - -%Package -n swat -Group : Administration/Network -Requires : setup >= 2.0-2, tcp_wrappers, netkit-base >= 0.17-5 - -Summary : Samba Web Administration Tool. -Summary(de) : Das Samba Web Administrationstool. -Summary(es) : Utilidad de administración Samba. -Summary(fr) : Outil d'administration Internet pour Samba. -Summary(it) : Strumento per l'amministrazione di Samba via Web. -Summary(pt) : Ferramenta Web de administração de Samba (Samba Web Administration Tool). - - -%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. - -%Description -l de -Samba stellt einen SMB Server zur Verfügung, mit dem Netzwerkdienste für SMB -(auch "Lan Manager" genannt) Clients bereitgestellt werden können. Dies -schließt verschiedene Versionen von MS Windows, OS/2 und andere Linux -Maschinen ein. - -%Description -l es -Samba dispone de un servidor SMB que puede utilizarse para proporcionar -servicios de red a clientes SMB (a veces conocido como "Lan Manager"), -incluyendo varias versiones de MS Windows, OS/2 y otras máquinas Linux. - -%Description -l fr -Samba fournit un serveur SMB qui peut être utilisé pour fournir des services -de réseau aux clients SMB (parfois appelés "Lan Manager"), comportant -diverses versions de MS Windows, OS/2 et d'autres machines Linux. - -%Description -l it -Samba fornisce un server SMB che può essere usato per fornire servizi -di rete a client SMB (talvolta chiamato "Lan Manager"), comprese varie -versioni di MS Windows, OS/2 e altre macchine Linux. - -%Description -l pt -O Samba fornece um servidor de SMB que pode ser usado para fornecer serviços de -rede aos clientes de SMB (denominado por vezes como "Lan Manager"), incluindo -várias versões do Windows, OS/2 e outras máquinas Linux. - -%Description doc -This package contains extensive SAMBA documentation, including a FAQ, -comprehensive usage documentation, and a number of examples. - -%Description -l de doc -Dieses Paket enthält eine ausführliche SAMBA Dokumentation, inklusive -einer FAQ, umfassender Gebrauchsdokumentation und einer Reihe von -Beispielen. - -%Description -l es doc -Este paquete contiene una extensa documentación sobre SAMBA, incluyendo -FAQ (Preguntas de Uso Frecuente), documentación sobre el uso y algunos -ejemplos. - -%Description -l fr doc -Ce paquetage contient une documentation complète sur Samba, y compris -une FAQ détaillée de son utilisation et un certain nombre d'exemples. - -%Description -l it doc -Questo pacchetto contiene la documentazione su SAMBA tra cui una FAQ -una esaustiva documentazione d'uso e un certo numero di esempi. - -%Description -l pt doc -Este pacote contém alguma documentação extensa sobre o SAMBA, incluindo a FAQ, -alguma documentação compreensiva sobre a utilização e alguns exemplos. - -%Description -n smbfs -This package includes the tools necessary to mount filesystems from -SMB servers. - -%Description -l de -n smbfs -Dieses Paket enthält die nötigen Tools, um Dateisysteme von SMB-Servern -zu mounten. - -%Description -l es -n smbfs -este paqeute incluye las herramientas necesarias para montar sistemas de -ficheros de servidores SMB. - -%Description -l fr -n smbfs -Ce paquetage contient les outils nécessaires pour monter des systèmes -de fichiers sur des serveurs SMB. - -%Description -l it -n smbfs -Questo pacchetto contiene gli strumenti necessari per montare filesystem -da server SMB. - -%Description -l pt -n smbfs -Este pacote contém as ferramentas necessárias para montar sistema de -ficheiros de servidores SMB. - -%Description -n swat -SWAT allows a Samba administrator to configure the complex smb.conf -file via a Web browser. It also provides links to all the configurable -options in the smb.conf file allowing an administrator to easily look -up the effects of any change. - -%Description -l de -n swat -Mit SWAT kann ein Samba-Administrator die komplexe smb.conf -Datei mit Hilfe eines Web-Browsers konfigurieren. Es stellt auch Links zu -allen konfigurierbaren Optionen in der smb.conf Datei bereit, wodurch ein -Administrator die Auswirkungen einer Änderung leicht nachvollziehen kann. - -%Description -l es -n swat -SWAT permite a un administrador de Samba configurar el complejo fichero -smb.conf mediante una navegador web. También proporciona enlaces a todas las -opciones configurables en el fichero smb.conf, permitiendo al administrador -comprobar fácilmente los efectos de cualquier cambio. - -%Description -l fr -n swat -SWAT permet à un administrateur Samba de configurer le fichier smb.conf -complexe via un navigateur Web. Il fournit également des liens d'aide pour -toutes les options configurables dans le fichier smb.conf permettant à un -administrateur de consulter aisément les effets d'une modification. - -%Description -l it -n swat -SWAT permette ad un amministratore Samba di configurare il complesso file -smb.conf attraverso un browser Web. SWAT ha anche dei link di aiuto per -tutte le opzioni di configurazione del file smb.conf. - -%Description -l pt -n swat -O SWAT permite a um administrador de Samba configurar o complexo ficheiro -smb.conf através de uma interface Web. Fornece também referências para -todas as opções configuraveis no smb.conf, permitindo a um admnistrador -verificar rapidamente o efeite de qualquer alteração. - - -%Prep -%setup -#%patch0 -p1 -#%patch1 -p1 -#%patch2 -p1 - -# instead of patch (to help configuration) ... ;^) -%{fixUP} -vbT source/Makefile.in -e ' - s:we don.t use sbindir because we want:if you want : + - s:(the previous releases of Samba):$1, please use: + - s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + - s:/log\.(\S+):/log/samba.d/${1}d: + - s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: -' -# s:^(LIBS\s*=):AUTH_$1: + -# s:((CLIENT|CUPS|NMBD|SMBD|SWAT|RPCCLIENT|SMBPASSWD|STATUS|TESTPRNS|TESTPARM)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: - -for i in {cvs.,change-}log; do [ ! -f ../$i ] || mv ../$i source; done - -mv swat/help/welcome.html docs -%{fixUP} -vT docs -e ' - s:/usr/local/samba/bin/(smb(client|run)):/usr/bin/$1:g + - s:/usr/local/samba/bin/((s|n)mbd|swat|smbstatus):/usr/sbin/$1:g + - s:/usr/local/samba/var/locks:/var/lock/samba.d: + - s:/usr/local/samba/(var|lib)/log:/var/log/samba.d/smb: + - s:/usr/local/samba/swat:/usr/share/samba/swat:g + - s:/usr/local/samba/lib:%{EtcSamba}:g + - s:/usr/local/samba/printers:/var/spool/samba:g + - s:/usr/local/samba/private/smbpasswd:/usr/bin/smbpasswd:g + - s:/usr/local/samba/netlogon:%{LSBservedir}/netlogon:g; -' -mv docs/welcome.html swat/help -for i in docs/*/smb.conf.5*; do - %{fixUP} -vT $i -e ' - s:users\.map:smbusers:g + - s:SAMBA_INSTALL_DIRECTORY/lib:%{EtcSamba}: + - s:None \(set in compile\)\.:(see above).: + - s:/usr/local/:/usr/:g; - ' -done -%{fixUP} -vT docs/textdocs/Faxing.txt -e ' - s:/usr/local/etc/:/etc/: + - s:/usr/local/:/usr/:; -' -# ENCRYPTION.txt is gone. -%{fixUP} -vT docs/docbook/projdoc/ENCRYPTION.sgml -e ' - s:/usr/local/samba/private:%{EtcSamba}:g + - s:mksmbpasswd.sh:mksmbpasswd:g + - s:the Samba source directory:/usr/bin:; -' - -%{fixUP} -vT docs/htmldocs/make_smbcodepage.1.html -e ' - s:/usr/local/samba:/usr/bin/:g; -' -for i in htmldocs/DOMAIN_MEMBER.html htmldocs/Samba-HOWTO-Collection.html \ - htmldocs/samba-pdc-faq.html htmldocs/samba-pdc-howto.html \ - htmldocs/smbclient.1.html htmldocs/smbd.8.html \ - docbook/projdoc/DOMAIN_MEMBER.sgml docbook/projdoc/DOMAIN_MEMBER.sgml \ - docbook/faq/samba-pdc-faq.sgml docbook/howto/samba-pdc-howto.sgml \ - docbook/manpages/smbclient.1.sgml docbook/manpages/smbd.8.sgml \ - docbook/projdoc/ENCRYPTION.sgml manpages/smbclient.1 manpages/smbd.8 ; do -%{fixUP} -vT docs/$i -e ' - s:/usr/local/samba/private/FOREST.SLEEPY.SID:/var/lock/samba.d/FOREST.SLEEPY.SID: + - s:/usr/local/samba/private:/usr/bin:g + - s:/usr/local/samba/bin:/usr/bin:g + - s:/usr/local/sbin:/usr/sbin:g + - s:/usr/local/src/samba:/usr/src/samba:g ;' -done -%{fixUP} -vT docs/docbook/manpages/make_smbcodepage.1.sgml -e ' - s:/usr/local/samba:/usr/bin:g ; -' -%{fixUP} -vT docs/htmldocs/samba-pdc-faq.html -e ' - s:/usr/local/src:/usr/src:g ; -' -# End of DirtyHack(TM) - - -%Build -cd source -autoreconf - -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ - --with-fhs \ - --prefix='$(DESTDIR)/usr' \ - --localstatedir='$(DESTDIR)/var' \ - --libdir='$(DESTDIR)%{EtcSamba}' \ - --with-privatedir='$(LIBDIR)' \ - --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ - --with-swatdir='$(DESTDIR)/usr/share/swat' \ - --with-sambabook='$(DESTDIR)/usr/share/swat/using_samba' \ - --with-configdir='$(DESTDIR)'%{EtcSamba} \ - --with-codepagedir='$(DESTDIR)'/usr/share/samba/codepages \ - --without-smbwrapper \ - --with-smbmount \ - --with-pam \ - --with-pam_smbpass \ - --with-netatalk \ - --with-quotas \ - --with-utmp \ - --with-syslog - -make LOGFILEBASE=/var/log/samba.d all nsswitch/libnss_wins.so debug2html bin/smbspool - - -%Install -%{mkDESTDIR} -VVS=packaging/%{Vendor}/%{Dist} - -mkdir -p $DESTDIR/etc/{{logrotate,pam}.d,sysconfig/daemons} -mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} -mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs} -mkdir -p $DESTDIR/lib/security -mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} -mkdir -p $DESTDIR/etc/skel/Samba -mkdir -p $DESTDIR/usr/share/samba/codepages/src $DESTDIR/sbin -mkdir -p $DESTDIR/%{SVIdir} - -make LOGFILEBASE=/var/log/samba.d -C source install - -strip $DESTDIR/usr/bin/smb{mnt,umount} -#mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/bin - -cp -p source/codepages/codepage_def.??? $DESTDIR/usr/share/samba/codepages/src - -# Install the nsswitch library extension file -install -m 755 source/nsswitch/libnss_wins.so $DESTDIR/lib/libnss_wins.so.2.0 -# Make link for wins resolver -ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so.2 -ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so - -# install -m 755 source/nsswitch/libnss_winbind.so $DESTDIR/lib/libnss_winbind.so.2.0 -# # Make link for winbind resolver -# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so.2 -# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so - -# install -m 755 source/nsswitch/pam_winbind.so $DESTDIR/lib/security - -# install -m 755 source/bin/wbinfo $DESTDIR/usr/bin - -install -m 755 source/bin/debug2html $DESTDIR/usr/sbin/debug2html - -#lsb: cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba -ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin - -cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample -cp -p $VVS/smb.conf $DESTDIR%{EtcSamba}/smb.conf -cp -p $VVS/smbusers $DESTDIR%{EtcSamba} -cp -p $VVS/smbprint $DESTDIR/usr/bin -#cp -p $VVS/smbadduser.perl $DESTDIR/usr/bin/smbadduser -#cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/bin/make_smbpasswd -#cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/bin/convertsmbpasswd -#cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/bin/updatesmbpasswd -cp -p $VVS/findsmb $DESTDIR/usr/bin -cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba -cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba -cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba -cp -p $VVS/README.home $DESTDIR/etc/skel/Samba/README.txt -cp -p $VVS/README.Public $DESTDIR/%{LSBservedir}/Public/README.txt -cp -p $VVS/README.profiles $DESTDIR/%{LSBservedir}/profiles/README.txt - -# Add PAM smbpass facility -mv $DESTDIR/usr/bin/pam_smbpass.so $DESTDIR/lib/security - -install -m 755 $VVS/samba.init-lsb $DESTDIR/%{SVIdir}/%{Name} - -for f in testparm testprns; do - ln -s $f $DESTDIR/usr/bin/smb$f - ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 -done -#ln -s make_smbcodepage $DESTDIR/usr/bin/mksmbcodepage -#ln -s make_smbpasswd $DESTDIR/usr/bin/mksmbpasswd -#ln -sf convert_smbpasswd $DESTDIR/usr/bin/convertsmbpasswd -ln -s ../usr/bin/smbmnt $DESTDIR/sbin/mount.smbfs - - -cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts - 127.0.0.1 localhost -EoH - -# lsb has new way of inetd configuration -mkdir -p $DESTDIR%{NKinetdir} -cat <$DESTDIR%{NKinetdir}/swat -swat stream tcp nowait.400 root /usr/sbin/tcpd swat -EoI - -# -------------------- Documentation ------------------------------- -DOCD="$DESTDIR/%{_defaultdocdir}/samba-%{Version}"; mkdir -p $DOCD -ln -sf ../Copyrights/GPL-2.0 $DOCD/COPYING -#cp -p README README-smbmount Manifest Read-Manifest-Now $DOCD -cp -p README Manifest Read-Manifest-Now $DOCD -cp -p WHATSNEW.txt Roadmap $DOCD -cp -a docs examples $DOCD - -mv $DOCD/docs/htmldocs/wfw_slip.htm $DOCD/docs/wfw_slip.html - -rm -rf $DOCD/docs/{htmldocs,manpages,yodldocs} -rm -rf $DOCD/examples/{svr4-startup,printing} -rm -rf $DOCD/CVS $DOCD/*/CVS $DOCD/*/*/CVS $DOCD/*/*/*/CVS - -cp -p swat/README $DOCD/README.swat - -# This is the O'Reily Samba Book - on-line -for i in docs/htmldocs/using_samba/*.html -do -install -m644 $i $DESTDIR/usr/share/swat/using_samba -done -for i in docs/htmldocs/using_samba/figs/*.gif -do -install -m644 $i $DESTDIR/usr/share/swat/using_samba/figs -done -for i in docs/htmldocs/using_samba/gifs/*.gif -do -install -m644 $i $DESTDIR/usr/share/swat/using_samba/gifs -done - -# -------------------- Fixing final pathes ------------------------------- - -%{fixUP} -T $DESTDIR/%{SVIdir} -e 's:\@SVIdir\@:%{SVIdir}:' -%{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;' -%{fixUP} -vT $DESTDIR/%{EtcSamba} -e 's:\@samba_home\@:%{LSBservedir}:' - -%{fixManPages} - -%{mkLists} -c samba -cat << 'EOF' | %{mkLists} -d samba -Samba base -%{LSBservedir} config-IGNORED -^/(etc|var|home|tmp) config-IGNORED -swat swat -%{_defaultdocdir}/samba-[^/]+/$ base -%{_defaultdocdir}/samba- doc -tmp IGNORED -man IGNORED -lib/security IGNORED -/src/$ IGNORED -/usr/private/$ IGNORED -@default@ -EOF -cat << 'EOF' | %{mkLists} -f -a samba -\.old$ IGNORED -Samba/README.txt base -^/etc config-IGNORED -%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base -libnss_wins.* base -pam_smbpass.so base -%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base -%{_defaultdocdir}/samba- doc -smb(mount|mnt|umount) smbfs -mount.smbfs smbfs -swat swat -@default@ -EOF - - -%Clean -%{rmDESTDIR} - - -%Post -/usr/lib/LSB/init-install %{Name} - - -%Post -n swat -%{NKinetdReload} -perl -pi -e '$s=1 if /^swat/; - print "swat:ALL EXCEPT 127.0.0.1\n" if eof && ! $s' /etc/hosts.deny - - -%PostUn -test "$1" = "0" || exit 0 -/usr/lib/LSB/init-remove %{Name} -# We want to remove the browse.dat and wins.dat files so they can not -# interfer with a new version of samba! -rm -f /var/lock/samba/browse.dat -rm -f /var/lock/samba/{brlock,connections,locking,messages}.tdb -if [ -e /var/lock/samba.d/namelist.debug ]; then - rm -f /var/lock/samba.d/namelist.debug -fi -rm -f /var/lock/samba/unexpected.tdb -rm -f /var/lock/samba/{smbd,nmbd}.pid - -# Note: We MUST keep: -# winbindd_*, sshare_info*, printing*, ntdrivers* - - -%PostUn -n swat -#$no lsb: lisa --inetd disable swat $1 -test "$1" = "0" || exit 0 -%{SVIdir}/inet reload -[ -x /usr/sbin/swat ]||perl -ni -e '/^swat\s*\:/||print' /etc/hosts.deny - - -%Files -f files-samba-base -%defattr(-,root,root) -%config %attr(0755,root,root) %{SVIdir}/samba -%config %attr(644,root,root) /etc/sysconfig/daemons/samba -%config %attr(644,root,root) /etc/pam.d/samba -%config %attr(644,root,root) /etc/logrotate.d/samba -%config %attr(-,root,root) %{EtcSamba} -%dir %attr(755,root,root) /var/lock/samba.d -%dir %attr(755,root,root) /var/log/samba.d -%dir %attr(1777,root,root) /var/spool/samba -%dir %attr(755,root,root) %{LSBservedir} -%dir %attr(755,root,root) %{LSBservedir}/netlogon -%dir %attr(755,root,root) %{LSBservedir}/profiles -%dir %attr(755,root,root) %{LSBservedir}/Public - - -%Files doc -f files-samba-doc -%defattr(-,root,root) - - -%Files -n smbfs -f files-samba-smbfs -%defattr(-,root,root) - - -%Files -n swat -f files-samba-swat -%defattr(-,root,root) -%config %attr(644,root,root) %{NKinetdir}/swat - -%ChangeLog -* Mon Jan 01 1997 ... -$Id: samba2.spec-lsb.tmpl,v 1.3 2001/06/01 12:33:16 jerry Exp $ diff --git a/packaging/Caldera/OpenLinux/samba2.spec.tmpl b/packaging/Caldera/OpenLinux/samba2.spec.tmpl deleted file mode 100644 index 738b8c41e3..0000000000 --- a/packaging/Caldera/OpenLinux/samba2.spec.tmpl +++ /dev/null @@ -1,484 +0,0 @@ -%define Version PVERSION -%define date PRELEASE -%define Vendor Caldera -%define Dist OpenLinux -%define EtcSamba /etc/samba.d -%define _defaultdocdir /usr/doc -%define LSBservedir /srv/samba - -Name : samba -Version : %{Version} -Release : %{date} -Group : Server/Network - -Summary : Samba SMB client and server. -Summary(de) : Samba SMB Client und Server. -Summary(es) : Cliente y servidor SMB Samba. -Summary(fr) : Client et serveur SMB Samba. -Summary(it) : Client e server SMB. -Summary(pt) : Cliente e servidor SMB Samba. - -Copyright : Andrew Tridgell, John H Terpstra; GPL Version 2 -Packager : Klaus Singvogel -#Icon : Caldera-daemon.gif -URL : http://samba.org/samba - -Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 - - -BuildRoot : /tmp/%{Name}-%{Version} - -Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}.tar.gz -#Patch0: %{Name}-%{Version}-smbmount.patch -#Patch1: %{Name}-%{Version}-install.patch -#Patch2: %{Name}-%{Version}-smbconf.patch - - -%Package doc -Group : Server/Network - -Summary : Documentation on SAMBA. -Summary(de) : Die Dokumentation für Samba. -Summary(es) : Documentation de SAMBA. -Summary(fr) : Documentation pour Samba. -Summary(it) : Documentazione su SAMBA. -Summary(pt) : Documentação sobre o SAMBA. - - -%Package -n smbfs -Group : System/Network - -Summary : Mount and unmount commands for SMB filesystems (smbfs). -Summary(de) : Mount und unmount für SMB-Dateisysteme (smbfs). -Summary(es) : Comandos de montaje y desmontaje de sistemas de ficheros SMB (smbfs). -Summary(fr) : Commandes pour le montage et le démontage des systèmes de fichiers SMB (smbfs). -Summary(it) : Comandi per montare e smontare i file system SMB (smbfs). -Summary(pt) : Comandos mount e unmount para o sistema de ficheiros SMB (smbfs). - - - -%Package -n swat -Group : Administration/Network -Requires : setup >= 2.0-2, tcp_wrappers - -Summary : Samba Web Administration Tool. -Summary(de) : Das Samba Web Administrationstool. -Summary(es) : Utilidad de administración Samba. -Summary(fr) : Outil d'administration Internet pour Samba. -Summary(it) : Strumento per l'amministrazione di Samba via Web. -Summary(pt) : Ferramenta Web de administração de Samba (Samba Web Administration Tool). - - -%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. - -%Description -l de -Samba stellt einen SMB Server zur Verfügung, mit dem Netzwerkdienste für SMB -(auch "Lan Manager" genannt) Clients bereitgestellt werden können. Dies -schließt verschiedene Versionen von MS Windows, OS/2 und andere Linux -Maschinen ein. - -%Description -l es -Samba dispone de un servidor SMB que puede utilizarse para proporcionar -servicios de red a clientes SMB (a veces conocido como "Lan Manager"), -incluyendo varias versiones de MS Windows, OS/2 y otras máquinas Linux. - -%Description -l fr -Samba fournit un serveur SMB qui peut être utilisé pour fournir des services -de réseau aux clients SMB (parfois appelés "Lan Manager"), comportant -diverses versions de MS Windows, OS/2 et d'autres machines Linux. - -%Description -l it -Samba fornisce un server SMB che può essere usato per fornire servizi -di rete a client SMB (talvolta chiamato "Lan Manager"), comprese varie -versioni di MS Windows, OS/2 e altre macchine Linux. - -%Description -l pt -O Samba fornece um servidor de SMB que pode ser usado para fornecer serviços de -rede aos clientes de SMB (denominado por vezes como "Lan Manager"), incluindo -várias versões do Windows, OS/2 e outras máquinas Linux. - -%Description doc -This package contains extensive SAMBA documentation, including a FAQ, -comprehensive usage documentation, and a number of examples. - -%Description -l de doc -Dieses Paket enthält eine ausführliche SAMBA Dokumentation, inklusive -einer FAQ, umfassender Gebrauchsdokumentation und einer Reihe von -Beispielen. - -%Description -l es doc -Este paquete contiene una extensa documentación sobre SAMBA, incluyendo -FAQ (Preguntas de Uso Frecuente), documentación sobre el uso y algunos -ejemplos. - -%Description -l fr doc -Ce paquetage contient une documentation complète sur Samba, y compris -une FAQ détaillée de son utilisation et un certain nombre d'exemples. - -%Description -l it doc -Questo pacchetto contiene la documentazione su SAMBA tra cui una FAQ -una esaustiva documentazione d'uso e un certo numero di esempi. - -%Description -l pt doc -Este pacote contém alguma documentação extensa sobre o SAMBA, incluindo a FAQ, -alguma documentação compreensiva sobre a utilização e alguns exemplos. - -%Description -n smbfs -This package includes the tools necessary to mount filesystems from -SMB servers. - -%Description -l de -n smbfs -Dieses Paket enthält die nötigen Tools, um Dateisysteme von SMB-Servern -zu mounten. - -%Description -l es -n smbfs -este paqeute incluye las herramientas necesarias para montar sistemas de -ficheros de servidores SMB. - -%Description -l fr -n smbfs -Ce paquetage contient les outils nécessaires pour monter des systèmes -de fichiers sur des serveurs SMB. - -%Description -l it -n smbfs -Questo pacchetto contiene gli strumenti necessari per montare filesystem -da server SMB. - -%Description -l pt -n smbfs -Este pacote contém as ferramentas necessárias para montar sistema de -ficheiros de servidores SMB. - -%Description -n swat -SWAT allows a Samba administrator to configure the complex smb.conf -file via a Web browser. It also provides links to all the configurable -options in the smb.conf file allowing an administrator to easily look -up the effects of any change. - -%Description -l de -n swat -Mit SWAT kann ein Samba-Administrator die komplexe smb.conf -Datei mit Hilfe eines Web-Browsers konfigurieren. Es stellt auch Links zu -allen konfigurierbaren Optionen in der smb.conf Datei bereit, wodurch ein -Administrator die Auswirkungen einer Änderung leicht nachvollziehen kann. - -%Description -l es -n swat -SWAT permite a un administrador de Samba configurar el complejo fichero -smb.conf mediante una navegador web. También proporciona enlaces a todas las -opciones configurables en el fichero smb.conf, permitiendo al administrador -comprobar fácilmente los efectos de cualquier cambio. - -%Description -l fr -n swat -SWAT permet à un administrateur Samba de configurer le fichier smb.conf -complexe via un navigateur Web. Il fournit également des liens d'aide pour -toutes les options configurables dans le fichier smb.conf permettant à un -administrateur de consulter aisément les effets d'une modification. - -%Description -l it -n swat -SWAT permette ad un amministratore Samba di configurare il complesso file -smb.conf attraverso un browser Web. SWAT ha anche dei link di aiuto per -tutte le opzioni di configurazione del file smb.conf. - -%Description -l pt -n swat -O SWAT permite a um administrador de Samba configurar o complexo ficheiro -smb.conf através de uma interface Web. Fornece também referências para -todas as opções configuraveis no smb.conf, permitindo a um admnistrador -verificar rapidamente o efeite de qualquer alteração. - - -%Prep -%setup -#%patch0 -p1 -#%patch1 -p1 -#%patch2 -p1 - -# instead of patch (to help configuration) ... ;^) -%{fixUP} -vbT source/Makefile.in -e ' - s:we don.t use sbindir because we want:if you want : + - s:(the previous releases of Samba):$1, please use: + - s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + - s:/log\.(\S+):/log/samba.d/${1}d: + - s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: -' -# s:^(LIBS\s*=):AUTH_$1: + -# s:((CLIENT|CUPS|NMBD|SMBD|SWAT|RPCCLIENT|SMBPASSWD|STATUS|TESTPRNS|TESTPARM)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: - -for i in {cvs.,change-}log; do [ ! -f ../$i ] || mv ../$i source; done - -mv swat/help/welcome.html docs -%{fixUP} -vT docs -e ' - s:/usr/local/samba/bin/(smb(client|run)):/usr/bin/$1:g + - s:/usr/local/samba/bin/((s|n)mbd|swat|smbstatus):/usr/sbin/$1:g + - s:/usr/local/samba/var/locks:/var/lock/samba.d: + - s:/usr/local/samba/(var|lib)/log:/var/log/samba.d/smb: + - s:/usr/local/samba/swat:/usr/share/samba/swat:g + - s:/usr/local/samba/lib:%{EtcSamba}:g + - s:/usr/local/samba/printers:/var/spool/samba:g + - s:/usr/local/samba/private/smbpasswd:/usr/bin/smbpasswd:g + - s:/usr/local/samba/netlogon:%{LSBservedir}/netlogon:g; -' -mv docs/welcome.html swat/help -for i in docs/*/smb.conf.5*; do - %{fixUP} -vT $i -e ' - s:users\.map:smbusers:g + - s:SAMBA_INSTALL_DIRECTORY/lib:%{EtcSamba}: + - s:None \(set in compile\)\.:(see above).: + - s:/usr/local/:/usr/:g; - ' -done -%{fixUP} -vT docs/textdocs/Faxing.txt -e ' - s:/usr/local/etc/:/etc/: + - s:/usr/local/:/usr/:; -' -%{fixUP} -vT docs/docbook/projdoc/ENCRYPTION.sgml -e ' - s:/usr/local/samba/private:%{EtcSamba}:g + - s:mksmbpasswd.sh:mksmbpasswd:g + - s:the Samba source directory:/usr/bin:; -' -%{fixUP} -vT docs/htmldocs/make_smbcodepage.1.html -e ' - s:/usr/local/samba:/usr/bin/:g; -' -for i in htmldocs/DOMAIN_MEMBER.html htmldocs/Samba-HOWTO-Collection.html \ - htmldocs/samba-pdc-faq.html htmldocs/samba-pdc-howto.html \ - htmldocs/smbclient.1.html htmldocs/smbd.8.html \ - docbook/projdoc/DOMAIN_MEMBER.sgml htmldocs/DOMAIN_MEMBER.html \ - docbook/faq/samba-pdc-faq.sgml docbook/howto/samba-pdc-howto.sgml \ - docbook/manpages/smbclient.1.sgml docbook/manpages/smbd.8.sgml \ - docbook/projdoc/ENCRYPTION.sgml manpages/smbclient.1 manpages/smbd.8 ; do -%{fixUP} -vT docs/$i -e ' - s:/usr/local/samba/private/FOREST.SLEEPY.SID:/var/lock/samba.d/FOREST.SLEEPY.SID: + - s:/usr/local/samba/private:/usr/bin:g + - s:/usr/local/samba/bin:/usr/bin:g + - s:/usr/local/sbin:/usr/sbin:g + - s:/usr/local/src/samba:/usr/src/samba:g ;' -done -%{fixUP} -vT docs/docbook/manpages/make_smbcodepage.1.sgml -e ' - s:/usr/local/samba:/usr/bin:g ; -' -%{fixUP} -vT docs/htmldocs/samba-pdc-faq.html -e ' - s:/usr/local/src:/usr/src:g ; -' -# End of DirtyHack(TM) - - -%Build -cd source -autoreconf - -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ - --prefix='$(DESTDIR)/usr' \ - --localstatedir='$(DESTDIR)/var' \ - --libdir='$(DESTDIR)%{EtcSamba}' \ - --with-privatedir='$(LIBDIR)' \ - --with-lockdir='$(DESTDIR)/var/lock/samba.d' \ - --with-swatdir='$(DESTDIR)/usr/share/swat' \ - --with-swatdir='$(DESTDIR)/usr/share/swat' \ - --with-sambabook='$(DESTDIR)/usr/share/swat/using_samba' \ - --with-configdir='$(DESTDIR)'%{EtcSamba} \ - --with-codepagedir='$(DESTDIR)'/usr/share/samba/codepages \ - --without-smbwrapper \ - --with-smbmount \ - --with-pam \ - --with-pam_smbpass \ - --with-netatalk \ - --with-quotas \ - --with-syslog \ - --with-utmp - -make LOGFILEBASE=/var/log/samba.d all -make LOGFILEBASE=/var/log/samba.d nsswitch/libnss_wins.so -make LOGFILEBASE=/var/log/samba.d smbfilter debug2html -make LOGFILEBASE=/var/log/samba.d bin/smbspool - - -%Install -%{mkDESTDIR} -VVS=packaging/%{Vendor}/%{Dist} - -mkdir -p $DESTDIR/etc/{{rc.d/init,logrotate,pam}.d,sysconfig/daemons,skel/Samba} -mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} -mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs} -mkdir -p $DESTDIR/lib/security -mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} -mkdir -p $DESTDIR/usr/share/samba/codepages/src $DESTDIR/sbin - -make -C source install -make LOGFILEBASE=/var/log/samba.d -C source install - -strip $DESTDIR/usr/bin/smb{mnt,umount} -#mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin - -cp -p source/codepages/codepage_def.??? $DESTDIR/usr/share/samba/codepages/src - -# Install the nsswitch library extension file -install -m 755 source/nsswitch/libnss_wins.so $DESTDIR/lib/libnss_wins.so.2.0 -# Make link for wins resolver -ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so.2 -ln -s libnss_wins.so.2.0 $DESTDIR/lib/libnss_wins.so - -# install -m 755 source/nsswitch/libnss_winbind.so $DESTDIR/lib/libnss_winbind.so.2.0 -# # Make link for winbind resolver -# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so.2 -# ln -s libnss_winbind.so.2.0 $DESTDIR/lib/libnss_winbind.so - -# install -m 755 source/nsswitch/pam_winbind.so $DESTDIR/lib/security - -# install -m 755 source/bin/wbinfo $DESTDIR/usr/bin - -for f in debug2html smbfilter smbspool; do - install -m 755 source/bin/$f $DESTDIR/usr/sbin/$f -done - -cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba -ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin - -cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample -cp -p $VVS/smb.conf $DESTDIR%{EtcSamba}/smb.conf -cp -p $VVS/smbusers $DESTDIR%{EtcSamba} -cp -p $VVS/smbprint $DESTDIR/usr/bin -#cp -p $VVS/smbadduser.perl $DESTDIR/usr/bin/smbadduser -#cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/bin/make_smbpasswd -#cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/bin/convertsmbpasswd -#cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/bin/updatesmbpasswd -cp -p $VVS/findsmb $DESTDIR/usr/bin -cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba -cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba -cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba -cp -p $VVS/README.home $DESTDIR/etc/skel/Samba/README.txt -cp -p $VVS/README.Public $DESTDIR/%{LSBservedir}/Public/README.txt -cp -p $VVS/README.profiles $DESTDIR/%{LSBservedir}/profiles/README.txt - -# Add PAM smbpass facility -mv $DESTDIR/usr/bin/pam_smbpass.so $DESTDIR/lib/security - -for f in testparm testprns; do - ln -s $f $DESTDIR/usr/bin/smb$f - ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 -done -ln -s make_smbcodepage $DESTDIR/usr/bin/mksmbcodepage -#ln -s make_smbpasswd $DESTDIR/usr/bin/mksmbpasswd -#ln -sf convert_smbpasswd $DESTDIR/usr/bin/convertsmbpasswd -ln -s ../usr/bin/smbmnt $DESTDIR/sbin/mount.smbfs - -cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts - 127.0.0.1 localhost -EoH - - -DOCD="$DESTDIR/%{_defaultdocdir}/samba-%{Version}"; mkdir -p $DOCD -ln -sf ../Copyrights/GPL-2.0 $DOCD/COPYING -cp -p README README-smbmount Manifest Read-Manifest-Now $DOCD -cp -p WHATSNEW.txt Roadmap $DOCD -cp -a docs examples $DOCD - -mv $DOCD/docs/htmldocs/wfw_slip.htm $DOCD/docs/wfw_slip.html - -rm -rf $DOCD/docs/{htmldocs,manpages,yodldocs} -rm -rf $DOCD/examples/{svr4-startup,printing} -rm -rf $DOCD/CVS $DOCD/*/CVS $DOCD/*/*/CVS $DOCD/*/*/*/CVS - -cp -p swat/README $DOCD/README.swat - -# This is the O'Reily Samba Book - on-line -for i in docs/htmldocs/using_samba/*.html -do -install -m644 $i $DESTDIR/usr/share/swat/using_samba -done -for i in docs/htmldocs/using_samba/figs/*.gif -do -install -m644 $i $DESTDIR/usr/share/swat/using_samba/figs -done -for i in docs/htmldocs/using_samba/gifs/*.gif -do -install -m644 $i $DESTDIR/usr/share/swat/using_samba/gifs -done - -%{fixUP} -vT $DOCD/examples -e 's:/usr/local/bin/:/usr/bin/:g;' -%{fixUP} -vT $DESTDIR/etc/samba.d -e 's:\@samba_home\@:%{LSBservedir}:' - -%{fixManPages} - -%{mkLists} -c samba -cat << 'EOF' | %{mkLists} -d samba -Samba base -%{LSBservedir} config-IGNORED -^/(etc|var|home|tmp) config-IGNORED -swat swat -%{_defaultdocdir}/samba-[^/]+/$ base -%{_defaultdocdir}/samba- doc -tmp IGNORED -man IGNORED -@default@ -EOF -cat << 'EOF' | %{mkLists} -f -a samba -\.old$ IGNORED -Samba/README.txt base -^/etc config-IGNORED -%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base -libnss_wins.so base -%{_defaultdocdir}/samba-[^/]+/(COPYING|README$) base -%{_defaultdocdir}/samba- doc -smb(mount|mnt|umount) smbfs -mount.smbfs smbfs -swat swat -@default@ -EOF - - -%Clean -%{rmDESTDIR} - - -%Post -lisa --SysV-init install samba S91 3:4:5 K09 0:1:2:6 - - -%Post -n swat -lisa --inetd install swat stream tcp nowait.400 root /usr/sbin/tcpd swat -perl -pi -e '$s=1 if /^swat/; - print "swat:ALL EXCEPT 127.0.0.1\n" if eof && ! $s' /etc/hosts.deny - - -%PostUn -lisa --SysV-init remove samba $1 -# We want to remove the browse.dat and wins.dat files so they can not -# interfer with a new version of samba! -rm -f /var/lock/samba/{browse,wins}.dat - - -%PostUn -n swat -lisa --inetd disable swat $1 -[ -x /usr/sbin/swat ]||perl -ni -e '/^swat\s*\:/||print' /etc/hosts.deny - - -%Files -f files-samba-base -%defattr(-,root,root) -%config %attr(755,root,root) /etc/rc.d/init.d/samba -%config %attr(644,root,root) /etc/sysconfig/daemons/samba -%config %attr(644,root,root) /etc/pam.d/samba -%config %attr(644,root,root) /etc/logrotate.d/samba -%config %attr(-,root,root) %{EtcSamba} -%dir %attr(755,root,root) /var/lock/samba.d -%dir %attr(755,root,root) /var/log/samba.d -%dir %attr(1777,root,root) /var/spool/samba -%dir %attr(755,root,root) %{LSBservedir} -%dir %attr(755,root,root) %{LSBservedir}/netlogon -%dir %attr(755,root,root) %{LSBservedir}/profiles -%dir %attr(755,root,root) %{LSBservedir}/Public - - -%Files doc -f files-samba-doc -%defattr(-,root,root) - - -%Files -n smbfs -f files-samba-smbfs -%defattr(-,root,root) - - -%Files -n swat -f files-samba-swat -%defattr(-,root,root) - - -%ChangeLog -* Mon Jan 01 1997 ... -$Id: samba2.spec.tmpl,v 1.3 2001/06/01 12:33:16 jerry Exp $ diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 2265105cb8..d5ecf00784 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -251,7 +251,7 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ # --with-nisplus-home \ # --with-acl-support \ -make all nsswitch/libnss_wins.so torture +make all nsswitch/libnss_wins.so torture smbfs %Install @@ -267,13 +267,18 @@ mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} mkdir -p $DESTDIR%{NKinetdir} mkdir -p $DESTDIR/{sbin,bin,usr/{sbin,bin}} mkdir -p $DESTDIR/%{SVIdir} -mkdir -p $DESTDIR/usr/include +mkdir -p $DESTDIR/usr/{include,lib} mkdir -p $DESTDIR/usr/share/samba/codepages/src mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs} mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} +make -C source install installclientlib installsmbfs strip $DESTDIR/usr/bin/smb{mount,mnt,umount} +# Add links for mount.smbfs +( cd $DESTDIR/sbin; ln -s /usr/bin/smbmount mount.smbfs; \ + ln -s /usr/bin/smbumount umount.smbfs ) + #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin #cp -p source/codepages/codepage_def.??? $DESTDIR%{EtcSamba}/codepages/src @@ -282,14 +287,10 @@ strip $DESTDIR/usr/bin/smb{mount,mnt,umount} cp -p source/nsswitch/libnss_wins.so $DESTDIR/lib cp -p source/nsswitch/pam_winbind.so $DESTDIR/lib/security # Make link for wins resolver -( cd $DESTDIR/lib; ln -s libnss_wins.so libnss_wins.so.2; cd $RPM_BUILD_DIR ) +( cd $DESTDIR/lib; ln -s libnss_wins.so libnss_wins.so.2 ) -# Add libsmbclient support stuff -install -m 755 source/bin/libsmbclient.so $DESTDIR/usr/lib +# Add libsmbclient.a support stuff install -m 755 source/bin/libsmbclient.a $DESTDIR/usr/lib -ln -s libsmbclient.so $DESTDIR/usr/lib/libsmbclient.so.0 -ln -s libsmbclient.so $DESTDIR/usr/lib/libsmbclient.so.0.1 -install -m 644 source/include/libsmbclient.h $DESTDIR/usr/include cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin -- cgit From 8859f627a2efaf1c53852a4014759186a36dfb75 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 12 Mar 2002 06:18:00 +0000 Subject: It builds the RPMS, now for the testing... (This used to be commit 917a5f2cdb861dca1708585f6b7ff51f576ca497) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index d5ecf00784..d041b1470b 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -251,7 +251,7 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ # --with-nisplus-home \ # --with-acl-support \ -make all nsswitch/libnss_wins.so torture smbfs +make all nsswitch/libnss_wins.so torture %Install @@ -272,7 +272,7 @@ mkdir -p $DESTDIR/usr/share/samba/codepages/src mkdir -p $DESTDIR/usr/share/swat/using_samba/{gifs,figs} mkdir -p $DESTDIR/var/{lo{ck,g}/samba.d,spool/samba} -make -C source install installclientlib installsmbfs +make -C source install installclientlib strip $DESTDIR/usr/bin/smb{mount,mnt,umount} # Add links for mount.smbfs -- cgit From cbad04053fc24ac55dd5626659a5fd263a0b16f4 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 12 Mar 2002 06:52:35 +0000 Subject: Update samba.pam from 2.2.4pre branch. Fixups for incorrect man page location by installman.sh - Note: FHS standard for man pages if /usr/share/man/XX where XX is the language mneumonic (This used to be commit e3e0a5aca9593f18e5f218b54641048cd823ac03) --- packaging/Caldera/OpenLinux/samba.pam | 50 ++++++++++++++++++++++++---- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 20 +++-------- 2 files changed, 49 insertions(+), 21 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba.pam b/packaging/Caldera/OpenLinux/samba.pam index 225ab724ec..821c9046a6 100644 --- a/packaging/Caldera/OpenLinux/samba.pam +++ b/packaging/Caldera/OpenLinux/samba.pam @@ -3,9 +3,47 @@ # # The PAM configuration file for the `samba' service # -auth required /lib/security/pam_pwdb.so nullok nodelay # shadow audit -# auth required /lib/security/pam_smbpass.so nodelay -account required /lib/security/pam_pwdb.so audit nodelay -session required /lib/security/pam_pwdb.so nodelay -password required /lib/security/pam_pwdb.so # shadow md5 -#password required /lib/security/pam_smbpass.so nodelay smbconf=/etc/samba.d/smb.conf +# Note: Only one section should be active at a time. +# Uncomment only those features needed. The default is a minimal implementation. +# +# -------------------------------------------------------------------------------- +# This example uses the standard System Files (/etc/passwd,/etc/shadow,/etc/group) +# and uses a very vanila PAM configuration +# +# auth requisite pam_securetty.so +# auth requisite pam_nologin.so +# auth optional pam_env.so +auth required pam_pwdb.so nullok nodelay # audit +account required pam_pwdb.so nodelay # audit +# session required pam_mkhomedir.so +session required pam_pwdb.so nodelay +password required pam_pwdb.so nodelay # shadow md5 audit +# +# -------------------------------------------------------------------------------- +# This example uses PAM smbpass +# +# auth requisite pam_securetty.so +# auth requisite pam_nologin.so +# auth optional pam_env.so +# auth required pam_smbpass.so nodelay +# account required pam_pwdb.so nodelay # audit +# account sufficient pam_winbind.so +# session required pam_mkhomedir.so +# session required pam_pwdb.so nodelay +# password required pam_pwdb.so shadow md5 +# password required pam_smbpass.so nodelay smbconf=/etc/samba.d/smb.conf +# +# -------------------------------------------------------------------------------- +# This example uses PAM WinBind +# +# auth requisite pam_securetty.so +# auth requisite pam_nologin.so +# auth optional pam_env.so +# auth sufficient pam_winbind.so +# auth sufficient pam_pwdb.so shadow nullok use_first_pass +# account required pam_pwdb.so nodelay # audit +# account sufficient pam_winbind.so +# session required pam_mkhomedir.so +# session required pam_pwdb.so nodelay +# password required pam_pwdb.so shadow md5 +# diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index d041b1470b..730c6bdff6 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -296,26 +296,12 @@ cp -p $VVS/samba.init $DESTDIR/etc/rc.d/init.d/samba ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample -#cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf cp -p $VVS/smbusers $DESTDIR%{EtcSamba} -#cp -p $VVS/smbprint $DESTDIR/usr/bin -#cp -p $VVS/smbadduser.perl $DESTDIR/usr/sbin/smbadduser -#cp -p $VVS/make_smbpasswd.perl $DESTDIR/usr/sbin/make_smbpasswd -#cp -p $VVS/convertsmbpasswd.perl $DESTDIR/usr/sbin/convertsmbpasswd -#cp -p $VVS/updatesmbpasswd.perl $DESTDIR/usr/sbin/updatesmbpasswd cp -p $VVS/findsmb $DESTDIR/usr/sbin cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba -#for f in testparm testprns; do -# ln -s $f $DESTDIR/usr/bin/smb$f -# ln -s $f.1 $DESTDIR/usr/man/man1/smb$f.1 -#done -#ln -s make_smbcodepage $DESTDIR/usr/sbin/mksmbcodepage -#ln -s make_smbpasswd $DESTDIR/usr/sbin/mksmbpasswd -#ln -sf convert_smbpasswd $DESTDIR/usr/sbin/convertsmbpasswd - cat <<-'EoH' > $DESTDIR%{EtcSamba}/lmhosts 127.0.0.1 localhost EoH @@ -363,6 +349,10 @@ done %{fixUP} -vT $DESTDIR/%{EtcSamba} -e 's:\@samba_home\@:%{LSBservedir}:' %{fixManPages} +cd $DESTDIR/usr/share/man/lang +cp -a . $DESTDIR/usr/share/man/en +cd .. +rm -rf lang %{mkLists} -c samba cat << 'EOF' | %{mkLists} -d samba @@ -391,7 +381,7 @@ pam_* base smb(mount|mnt|umount) smbfs mount.smbfs smbfs swat swat -libsmbclient* libsmbclient +libsmbclient libsmbclient @default@ EOF -- cgit From fc3d0ca2cd147efb9bd6c883ee06143bc636a58a Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 12 Mar 2002 19:29:16 +0000 Subject: Sorry, forgot to commit this last night. (This used to be commit 8e2f4bb35be5bf5db379c8e047cd2882e26f433e) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 730c6bdff6..0745bce81d 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -349,10 +349,10 @@ done %{fixUP} -vT $DESTDIR/%{EtcSamba} -e 's:\@samba_home\@:%{LSBservedir}:' %{fixManPages} -cd $DESTDIR/usr/share/man/lang -cp -a . $DESTDIR/usr/share/man/en -cd .. -rm -rf lang +( cd $DESTDIR/usr/share/man/lang; \ + cp -a . $DESTDIR/usr/share/man/en; \ + cd ..; \ + rm -rf lang ) %{mkLists} -c samba cat << 'EOF' | %{mkLists} -d samba -- cgit From cf10482c96d70eeeb6345febc8fe351aa4ee34ff Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Wed, 27 Mar 2002 08:54:37 +0000 Subject: Told make to build nsswitch/pam_winbind.so - someone changed the Makefile and not it has to be separately specified, but that's OK. (This used to be commit e87646306f87a6d1e11a082924e15139feacd3eb) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 0745bce81d..ed4339d80f 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -251,7 +251,7 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ # --with-nisplus-home \ # --with-acl-support \ -make all nsswitch/libnss_wins.so torture +make all nsswitch/libnss_wins.so torture nsswitch/pam_winbind.so %Install -- cgit From 0f9de3f1176752977acc0afa0aff281554a460fd Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 29 Mar 2002 21:55:52 +0000 Subject: sync with 2.2 branch (This used to be commit d72d0972bd7e6699ddf39afc71de4ea838cb0816) --- packaging/SGI/smb.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packaging') diff --git a/packaging/SGI/smb.conf b/packaging/SGI/smb.conf index 3448226faa..03f2a4c9f8 100644 --- a/packaging/SGI/smb.conf +++ b/packaging/SGI/smb.conf @@ -93,6 +93,17 @@ ; Printer admin account to allow uploading printer drivers printer admin = lp +; Sample winbindd configuration parameters - uncomment and +; change if necessary for your desired configuration +; winbind uid = 50000-60000 +; winbind gid = 50000-60000 +; winbind separator = + +; winbind cache time = 10 +; password server = * + +; Sample add user command for automatically adding machine accounts +; add user script = /usr/sbin/passmgmt -a -h/dev/null -g20 -s/usr/bin/false %u + [homes] comment = Home Directories browseable = no -- cgit From 010db263003c4385e5df8eb1e27677143f7897db Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 30 Mar 2002 20:28:17 +0000 Subject: Added smbwrapper and everything to build options. (This used to be commit 2744d917e45d795a835073162687d9fab69a8639) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index ed4339d80f..ed88c440ab 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -241,17 +241,19 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-syslog \ --with-utmp \ --with-netatalk \ - --without-smbwrapper \ + --with-smbwrapper \ --with-libsmbclient \ --with-ldapsam \ --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba # Temp disabled - add later - JHT # --with-pam_smbpass \ +# --with-ldapsam \ +# --with-krb5=/usr/athena \ # --with-nisplus-home \ # --with-acl-support \ -make all nsswitch/libnss_wins.so torture nsswitch/pam_winbind.so +make all nsswitch/libnss_wins.so torture nsswitch/pam_winbind.so everything %Install -- cgit From 51c83c80bda599b52039e23753968c0ec3e5e872 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 31 Mar 2002 00:00:21 +0000 Subject: Modified programs installed to /usr/bin and /usr/sbin Note: This is a developmental (read experiemental) SPEC file and NOT for production use. (This used to be commit a4d31b24375fba97e161056cdbda30228ac522d2) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index ed88c440ab..addca4a559 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -281,6 +281,12 @@ strip $DESTDIR/usr/bin/smb{mount,mnt,umount} ( cd $DESTDIR/sbin; ln -s /usr/bin/smbmount mount.smbfs; \ ln -s /usr/bin/smbumount umount.smbfs ) +install -m 755 source/bin/smbfilter $DESTDIR/usr/bin +for i in debug2html talloctort samsync make_printerdef +do + install -m 755 source/bin/$i $DESTDIR/usr/sbin +done + #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin #cp -p source/codepages/codepage_def.??? $DESTDIR%{EtcSamba}/codepages/src @@ -299,7 +305,7 @@ ln -s /etc/rc.d/init.d/samba $DESTDIR/usr/sbin cp -p $VVS/smb.conf.sample $DESTDIR%{EtcSamba}/smb.conf.sample cp -p $VVS/smbusers $DESTDIR%{EtcSamba} -cp -p $VVS/findsmb $DESTDIR/usr/sbin +cp -p $VVS/findsmb $DESTDIR/usr/bin cp -p $VVS/samba.daemon $DESTDIR/etc/sysconfig/daemons/samba cp -p $VVS/samba.pam $DESTDIR/etc/pam.d/samba cp -p $VVS/samba.logrotate $DESTDIR/etc/logrotate.d/samba -- cgit From dcace9f7b61c64d30e7d062c7cf1969c04004833 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 2 Apr 2002 05:54:55 +0000 Subject: merge from 2.2 - build winbindd and libsmbclient (This used to be commit 23f61938b6021effa9de90ab8c97e182ccd8701b) --- packaging/SGI/idb.pl | 17 +++++++++++------ packaging/SGI/mkrelease.sh | 7 ++++--- 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/idb.pl b/packaging/SGI/idb.pl index 8858702b9f..ddbad80356 100755 --- a/packaging/SGI/idb.pl +++ b/packaging/SGI/idb.pl @@ -113,11 +113,7 @@ chdir $curdir; # add my local files to the list of binaries to install @bins = sort byfilename (@sprogs,@progs,@progs1,@progs2,@mprogs,@scripts,@winbind_progs,@winbind_sprogs,("/findsmb","/sambalp","/smbprint")); -# add libnss_wins.so if it was built -if (-e "$SRCDIR/source/nsswitch/libnss_wins.so") { - $libns_wins = "nsswitch/libnss_wins.so"; -} -@nsswitch = sort byfilename (@winbind_lprogs,@winbind_pam_progs,$libns_wins); +@nsswitch = sort byfilename (@winbind_lprogs,@winbind_pam_progs); # get a complete list of all files in the tree chdir "$SRCDIR/"; @@ -141,9 +137,13 @@ chdir $curdir; open(IDB,"> $curdir/$PKG.idb") || die "Unable to open $PKG.idb for output\n"; print IDB "f 0644 root sys etc/config/samba $SRCPFX/packaging/SGI/samba.config $PKG.sw.base config(update)\n"; +print IDB "f 0644 root sys etc/config/winbind $SRCPFX/packaging/SGI/winbindd.config $PKG.sw.base config(update)\n"; print IDB "f 0755 root sys etc/init.d/samba $SRCPFX/packaging/SGI/samba.rc $PKG.sw.base\n"; -print IDB "l 0000 root sys etc/rc0.d/K39samba $SRCPFX/packaging/SGI $PKG.sw.base symval(../init.d/samba)\n"; +print IDB "f 0755 root sys etc/init.d/winbind $SRCPFX/packaging/SGI/winbindd.rc $PKG.sw.base\n"; +print IDB "l 0000 root sys etc/rc0.d/K36winbind $SRCPFX/packaging/SGI $PKG.sw.base symval(../init.d/winbind)\n"; +print IDB "l 0000 root sys etc/rc0.d/K37samba $SRCPFX/packaging/SGI $PKG.sw.base symval(../init.d/samba)\n"; print IDB "l 0000 root sys etc/rc2.d/S81samba $SRCPFX/packaging/SGI $PKG.sw.base symval(../init.d/samba)\n"; +print IDB "l 0000 root sys etc/rc2.d/S82winbind $SRCPFX/packaging/SGI $PKG.sw.base symval(../init.d/winbind)\n"; if ($PKG eq "samba_irix") { print IDB "d 0755 root sys usr/relnotes/samba_irix $SRCPFX/packaging/SGI $PKG.man.relnotes\n"; @@ -219,12 +219,17 @@ while (@docs) { } } +print IDB "d 0755 root sys usr/samba/include $SRCPFX/packaging/SGI $PKG.sw.base\n"; +print IDB "f 0644 root sys usr/samba/include/libsmbclient.h $SRCPFX/source/include/libsmbclient.h $PKG.sw.base\n"; + print IDB "d 0755 root sys usr/samba/lib $SRCPFX/packaging/SGI $PKG.sw.base\n"; print IDB "d 0755 root sys usr/samba/lib/codepages $SRCPFX/packaging/SGI $PKG.sw.base\n"; while (@codepage) { $nextpage = shift @codepage; print IDB "f 0644 root sys usr/samba/lib/codepages/$nextpage $SRCPFX/packaging/SGI/codepages/$nextpage $PKG.sw.base nostrip \n"; } +print IDB "f 0644 root sys usr/samba/lib/libsmbclient.a $SRCPFX/source/bin/libsmbclient.a $PKG.sw.base\n"; +print IDB "f 0644 root sys usr/samba/lib/libsmbclient.so $SRCPFX/source/bin/libsmbclient.so $PKG.sw.base\n"; print IDB "f 0644 root sys usr/samba/lib/smb.conf $SRCPFX/packaging/SGI/smb.conf $PKG.sw.base config(suggest)\n"; print IDB "d 0755 lp sys usr/samba/printer $SRCPFX/packaging/SGI $PKG.sw.base\n"; diff --git a/packaging/SGI/mkrelease.sh b/packaging/SGI/mkrelease.sh index 1a565a73e7..6ba486c673 100755 --- a/packaging/SGI/mkrelease.sh +++ b/packaging/SGI/mkrelease.sh @@ -19,14 +19,14 @@ if [ ! -f ../../source/Makefile ]; then doclean="clean" fi -if [ "$1" = "clean" ]; then +if [ "$1" = "clean" ] || [ "$1" = "cleanonly" ]; then doclean=$1 shift fi export SGI_ABI ISA CC -if [ "$doclean" = "clean" ]; then +if [ "$doclean" = "clean" ] || [ "$doclean" = "cleanonly" ]; then cd ../../source if [ -f Makefile ]; then make distclean @@ -34,6 +34,7 @@ if [ "$doclean" = "clean" ]; then rm -rf bin/*.profile bin/*.noquota cd ../packaging/SGI rm -rf bins catman html codepages swat samba.idb samba.spec + if [ "$doclean" = "cleanonly" ]; then exit 0 ; fi fi # create the catman versions of the manual pages @@ -88,7 +89,7 @@ fi mv bin/smbd bin/smbd.noquota echo "===================== Making Regular versions =======================" -make -P "CFLAGS=-O -g3 -woff 1188" all +make -P "CFLAGS=-O -g3 -woff 1188" all libsmbclient errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat building sources\n"; -- cgit From ee9b3932e22cdd3b15ab30cb60df3a10f9b7e05f Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 7 Apr 2002 21:19:05 +0000 Subject: Updated because I want this for now - NOTE: This will change before release as this is NOT what we need to ship. This is experimental only at this time. (This used to be commit 5c8ceaa4973bb7d82da886e03f24a972d978dcb7) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index addca4a559..a9f43ac07e 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -232,6 +232,8 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-smbmount \ --with-pam \ --with-tdbsam \ + --with-ldapsam \ + --with-krb5=/usr/athena \ --with-winbind \ --with-utmp \ --with-quotas \ @@ -239,21 +241,18 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-msdfs \ --with-profile \ --with-syslog \ - --with-utmp \ --with-netatalk \ --with-smbwrapper \ --with-libsmbclient \ - --with-ldapsam \ --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba # Temp disabled - add later - JHT # --with-pam_smbpass \ -# --with-ldapsam \ -# --with-krb5=/usr/athena \ # --with-nisplus-home \ # --with-acl-support \ make all nsswitch/libnss_wins.so torture nsswitch/pam_winbind.so everything +make tbp/tdbdump tdb/tdbtest tdb/tdbtorture %Install @@ -281,8 +280,14 @@ strip $DESTDIR/usr/bin/smb{mount,mnt,umount} ( cd $DESTDIR/sbin; ln -s /usr/bin/smbmount mount.smbfs; \ ln -s /usr/bin/smbumount umount.smbfs ) -install -m 755 source/bin/smbfilter $DESTDIR/usr/bin -for i in debug2html talloctort samsync make_printerdef +# First install /usr/bin progs +for i in smbfilter make_printerdef debug2html +do + install -m 755 source/bin/$i $DESTDIR/usr/bin +done +# Next install /usr/sbin progs +for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture \ + tdb/tdbdump tdb/tdbtest tdb/tdbtorture do install -m 755 source/bin/$i $DESTDIR/usr/sbin done -- cgit From ec193df790118c9bb3bde3e309c9f66db4517852 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 7 Apr 2002 21:20:32 +0000 Subject: Oops .. last update was committed before saving! Argh! (This used to be commit 90f7d4ac84d0466fc3acce31d8ab360f2ae9002f) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index a9f43ac07e..4b1cb83ab0 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -252,7 +252,7 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ # --with-acl-support \ make all nsswitch/libnss_wins.so torture nsswitch/pam_winbind.so everything -make tbp/tdbdump tdb/tdbtest tdb/tdbtorture +make tbp/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool %Install @@ -287,7 +287,7 @@ do done # Next install /usr/sbin progs for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture \ - tdb/tdbdump tdb/tdbtest tdb/tdbtorture + tdb/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool do install -m 755 source/bin/$i $DESTDIR/usr/sbin done -- cgit From 2b96b4d7c08b48d8cde62a7f6b237137dffa9f74 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 7 Apr 2002 22:21:30 +0000 Subject: Fix pathes. (This used to be commit 729fa66f0e17ece372b64928a8adb42bffa171ec) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 4b1cb83ab0..915cb71a96 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -252,7 +252,7 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ # --with-acl-support \ make all nsswitch/libnss_wins.so torture nsswitch/pam_winbind.so everything -make tbp/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool +make tdb/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool %Install @@ -286,11 +286,15 @@ do install -m 755 source/bin/$i $DESTDIR/usr/bin done # Next install /usr/sbin progs -for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture \ - tdb/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool +for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture do install -m 755 source/bin/$i $DESTDIR/usr/sbin done +for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture + tdb/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool +do + install -m 755 source/$i $DESTDIR/usr/sbin +done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin -- cgit From 3963ecb02f9b522ff0365b70aa8854daecf63d49 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Mon, 8 Apr 2002 20:10:08 +0000 Subject: Fix location of binaries and make sure they get there. Still experimental. (This used to be commit 24bc4e8e2c8f37167edb0e95a518bab6224e330d) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 915cb71a96..d48d860e0b 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -251,8 +251,8 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ # --with-nisplus-home \ # --with-acl-support \ -make all nsswitch/libnss_wins.so torture nsswitch/pam_winbind.so everything -make tdb/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool +make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam_winbind.so everything +(cd tdb; make tdbdump tdbtest tdbtorture tdbtool) %Install @@ -290,10 +290,9 @@ for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture do install -m 755 source/bin/$i $DESTDIR/usr/sbin done -for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture - tdb/tdbdump tdb/tdbtest tdb/tdbtorture tdb/tdbtool +for i in tdbdump tdbtest tdbtorture tdbtool do - install -m 755 source/$i $DESTDIR/usr/sbin + install -m 755 source/tdb/$i $DESTDIR/usr/sbin done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin @@ -302,6 +301,7 @@ done # Install the nsswitch library extension file cp -p source/nsswitch/libnss_wins.so $DESTDIR/lib +cp -p source/nsswitch/libnss_winbind.so $DESTDIR/lib cp -p source/nsswitch/pam_winbind.so $DESTDIR/lib/security # Make link for wins resolver ( cd $DESTDIR/lib; ln -s libnss_wins.so libnss_wins.so.2 ) -- cgit From 9d4f9bda320be9c17f2cf95ecd4d230f6a5283e5 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 1 May 2002 10:05:52 +0000 Subject: Had some environment problem to test the fix, so it would be really appreciated if packagers would be able to test their findsmb utility. This fix is to make findsmb aware that the space a valid NetBIOS name character and to not get only the first part of the name as the NetBIOS name if it contains spaces. Simo. (This used to be commit 58cf23f4da2b36f173fcb6a695ff6798be5c589b) --- packaging/Caldera/OpenLinux/findsmb | 4 ++-- packaging/Caldera/OpenServer/findsmb | 4 ++-- packaging/Caldera/UnixWare/findsmb | 4 ++-- packaging/Mandrake/findsmb | 4 ++-- packaging/PHT/TurboLinux/findsmb | 4 ++-- packaging/RedHat/findsmb | 8 ++++++-- packaging/SGI/findsmb | 4 ++-- 7 files changed, 18 insertions(+), 14 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/findsmb b/packaging/Caldera/OpenLinux/findsmb index 986c248177..f70d18dcbd 100755 --- a/packaging/Caldera/OpenLinux/findsmb +++ b/packaging/Caldera/OpenLinux/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/Caldera/OpenServer/findsmb b/packaging/Caldera/OpenServer/findsmb index bb91c784b8..c87fdb5190 100755 --- a/packaging/Caldera/OpenServer/findsmb +++ b/packaging/Caldera/OpenServer/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/Caldera/UnixWare/findsmb b/packaging/Caldera/UnixWare/findsmb index bb91c784b8..c87fdb5190 100755 --- a/packaging/Caldera/UnixWare/findsmb +++ b/packaging/Caldera/UnixWare/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/Mandrake/findsmb b/packaging/Mandrake/findsmb index 986c248177..f70d18dcbd 100755 --- a/packaging/Mandrake/findsmb +++ b/packaging/Mandrake/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/PHT/TurboLinux/findsmb b/packaging/PHT/TurboLinux/findsmb index 986c248177..f70d18dcbd 100755 --- a/packaging/PHT/TurboLinux/findsmb +++ b/packaging/PHT/TurboLinux/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/RedHat/findsmb b/packaging/RedHat/findsmb index 986c248177..04bc608050 100755 --- a/packaging/RedHat/findsmb +++ b/packaging/RedHat/findsmb @@ -73,7 +73,10 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; +# The Netbios name can contain lot of characters also '<' '>' +# and spaces. The follwing cure inside name space but not +# names starting or ending with spaces + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +106,8 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; +# Same as before for space and characters + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb index a48ec592e8..336ff07c16 100755 --- a/packaging/SGI/findsmb +++ b/packaging/SGI/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; -- cgit From 7a959e81d42bdff1269589b7d17a12ab0b3243be Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 8 May 2002 15:37:14 +0000 Subject: merging some changes from SAMBA_2_2 (This used to be commit e8ede079b5af4187573f1b8ed0d94b6f03cbbd22) --- packaging/RedHat/samba.pamd | 4 +- packaging/RedHat/samba2.spec.tmpl | 212 ++++++++++++++++++++++++-------------- packaging/RedHat/smb.init | 11 +- 3 files changed, 147 insertions(+), 80 deletions(-) (limited to 'packaging') diff --git a/packaging/RedHat/samba.pamd b/packaging/RedHat/samba.pamd index 1b4a93fb19..bf7a5b392c 100644 --- a/packaging/RedHat/samba.pamd +++ b/packaging/RedHat/samba.pamd @@ -1,4 +1,4 @@ -auth required /lib/security/pam_pwdb.so nullok shadow +auth required /lib/security/pam_pwdb.so nullok account required /lib/security/pam_pwdb.so session required /lib/security/pam_pwdb.so -password required /lib/security/pam_pwdb.so +password required /lib/security/pam_pwdb.so # shadow md5 nullok audit diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index c99b912382..0766653c23 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -8,6 +8,7 @@ Source: ftp://samba.org/pub/samba/samba-%{version}.tar.gz Packager: John H Terpstra [Samba-Team] Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils +Provides: samba = %{version}, samba-common = %{version}, samba-client = %{version}, samba-swat = %{version} BuildRoot: /var/tmp/samba Prefix: /usr @@ -43,9 +44,16 @@ for Shadow passwords and quotas. Do NOT recompile with the SHADOW_PWD option enabled %changelog +* Mon May 6 2002 Gerald Carter + - moved findsmb to a standard component in samba's + "make install". Removed from specfile. + +* Sun Oct 14 2001 Andrew Bartlett + - Set SBINDIR for codepage/manpage install, cope with + broken Makefile + * Mon Aug 1 2001 Tim Potter - Install winbind daemon, client programs, nss and pam libraries - - Removed codepage stuff so spec file works with current HEAD branch * Sat Mar 31 2001 Andrew Bartlett - Changed prefix/share/man for _mandir/share/man @@ -158,11 +166,11 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ --with-privatedir=/etc/samba \ --with-fhs \ --with-quotas \ + --with-msdfs \ --with-smbmount \ --with-pam \ --with-syslog \ --with-utmp \ - --with-netatalk \ --with-sambabook=%{prefix}/share/swat/using_samba \ --with-swatdir=%{prefix}/share/swat make -j${NUMCPU} proto @@ -182,8 +190,8 @@ mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin} mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include,using_samba} mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{figs,gifs} mkdir -p $RPM_BUILD_ROOTMANDIR_MACRO -mkdir -p $RPM_BUILD_ROOT/var/lock/samba -mkdir -p $RPM_BUILD_ROOT/var/log/samba +mkdir -p $RPM_BUILD_ROOT/var/cache/samba +mkdir -p $RPM_BUILD_ROOT/var/{log,run}/samba mkdir -p $RPM_BUILD_ROOT/var/spool/samba mkdir -p $RPM_BUILD_ROOT/lib/security @@ -211,19 +219,21 @@ ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb # This allows us to get away without duplicating code that # sombody else can maintain for us. cd source -make LIBDIR=$RPM_BUILD_ROOT/etc/samba \ +make BASEDIR=$RPM_BUILD_ROOT/usr \ + LIBDIR=$RPM_BUILD_ROOT/etc/samba \ + SBINDIR=$RPM_BUILD_ROOT%{prefix}/sbin \ BINDIR=$RPM_BUILD_ROOT%{prefix}/bin \ MANDIR=$RPM_BUILD_ROOTMANDIR_MACRO \ SWATDIR=$RPM_BUILD_ROOT/usr/share/swat \ SAMBABOOK=$RPM_BUILD_ROOT/usr/share/swat/using_samba \ - installman installswat + installman installcp installswat cd .. # Install the nsswitch library extension file install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib # Make link for wins resolver -( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) +( cd $RPM_BUILD_ROOT/lib; ln -sf libnss_wins.so libnss_wins.so.2; ) # Install winbind shared libraries install -m755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib @@ -246,7 +256,6 @@ done # Install the miscellany install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{prefix}/bin -install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba @@ -265,35 +274,74 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig smb off echo "Looking for old /etc/smb.conf..." -if [ -f /etc/smb.conf ]; then +if [ -f /etc/smb.conf -a ! -f /etc/samba/smb.conf ]; then echo "Moving old /etc/smb.conf to /etc/samba/smb.conf" mv /etc/smb.conf /etc/samba/smb.conf fi echo "Looking for old /etc/smbusers..." -if [ -f /etc/smbusers ]; then +if [ -f /etc/smbusers -a ! -f /etc/samba/smbusers ]; then echo "Moving old /etc/smbusers to /etc/samba/smbusers" mv /etc/smbusers /etc/samba/smbusers fi echo "Looking for old /etc/lmhosts..." -if [ -f /etc/lmhosts ]; then +if [ -f /etc/lmhosts -a ! -f /etc/samba/lmhosts ]; then echo "Moving old /etc/lmhosts to /etc/samba/lmhosts" mv /etc/lmhosts /etc/samba/lmhosts fi echo "Looking for old /etc/MACHINE.SID..." -if [ -f /etc/MACHINE.SID ]; then +if [ -f /etc/MACHINE.SID -a ! -f /etc/samba/MACHINE.SID ]; then echo "Moving old /etc/MACHINE.SID to /etc/samba/MACHINE.SID" mv /etc/MACHINE.SID /etc/samba/MACHINE.SID fi echo "Looking for old /etc/smbpasswd..." -if [ -f /etc/smbpasswd ]; then +if [ -f /etc/smbpasswd -a ! -f /etc/samba/smbpasswd ]; then echo "Moving old /etc/smbpasswd to /etc/samba/smbpasswd" mv /etc/smbpasswd /etc/samba/smbpasswd fi +# +# For 2.2.1 we move the tdb files from /var/lock/samba to /var/cache/samba +# to preserve across reboots. +# +echo "Moving tdb files in /var/lock/samba/*.tdb to /var/cache/samba/*.tdb" +for i in /var/lock/samba/*.tdb +do +if [ -f $i ]; then + newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'` + echo "Moving $i to $newname" + mv $i $newname +fi +done + +# Remove the transient tdb files. +if [ -e /var/cache/samba/brlock.tdb ]; then + rm -f /var/cache/samba/brlock.tdb +fi + +if [ -e /var/cache/samba/unexpected.tdb ]; then + rm -f /var/cache/samba/unexpected.tdb +fi + +if [ -e /var/cache/samba/connections.tdb ]; then + rm -f /var/cache/samba/connections.tdb +fi + +if [ -e /var/cache/samba/locking.tdb ]; then + rm -f /var/cache/samba/locking.tdb +fi + +if [ -e /var/cache/samba/messages.tdb ]; then + rm -f /var/cache/samba/messages.tdb +fi + +if [ -d /var/lock/samba ]; then + rm -rf /var/lock/samba +fi + # Add swat entry to /etc/services if not already there. if !( grep ^[:space:]*swat /etc/services > /dev/null ) then echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services @@ -309,7 +357,7 @@ fi # Add swat entry to xinetd.d if needed. if [ -d $RPM_BUILD_ROOT/etc/xinetd.d -a ! -f /etc/xinetd.d/swat ]; then - mv /etc/samba/samba.xinetd /etc/xinetd.d/swat + mv /etc/samba/samba.xinetd /etc/xinetd.d/swat else rm -f /etc/samba/samba.xinetd fi @@ -325,39 +373,41 @@ fi # Create winbind nss client symlink -ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2 +if [ -e /lib/libnss_winbind.so ]; then + ln -sf /lib/libnss_winbind.so /lib/libnss_winbind.so.2 +fi %preun if [ $1 = 0 ] ; then - /sbin/chkconfig --del smb + /sbin/chkconfig --del smb - # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba! - if [ -e /var/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 + # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba! + if [ -e /var/cache/samba/browse.dat ]; then + rm -f /var/cache/samba/browse.dat + fi + if [ -e /var/cache/samba/wins.dat ]; then + rm -f /var/cache/samba/wins.dat + fi # Remove the transient tdb files. - if [ -e /var/lock/samba/brlock.tdb ]; then - rm -f /var/lock/samba/brlock.tdb + if [ -e /var/cache/samba/brlock.tdb ]; then + rm -f /var/cache/samba/brlock.tdb fi - if [ -e /var/lock/samba/unexpected.tdb ]; then - rm -f /var/lock/samba/unexpected.tdb + if [ -e /var/cache/samba/unexpected.tdb ]; then + rm -f /var/cache/samba/unexpected.tdb fi - if [ -e /var/lock/samba/connections.tdb ]; then - rm -f /var/lock/samba/connections.tdb + if [ -e /var/cache/samba/connections.tdb ]; then + rm -f /var/cache/samba/connections.tdb fi - if [ -e /var/lock/samba/locking.tdb ]; then - rm -f /var/lock/samba/locking.tdb + if [ -e /var/cache/samba/locking.tdb ]; then + rm -f /var/cache/samba/locking.tdb fi - if [ -e /var/lock/samba/messages.tdb ]; then - rm -f /var/lock/samba/messages.tdb + if [ -e /var/cache/samba/messages.tdb ]; then + rm -f /var/cache/samba/messages.tdb fi # Remove winbind nss client symlink @@ -376,6 +426,9 @@ if [ $1 = 0 ] ; then if [ -e /var/log/samba ]; then rm -rf /var/log/samba fi + if [ -e /var/cache/samba ]; then + rm -rf /var/cache/samba + fi # Remove swat entries from /etc/inetd.conf and /etc/services cd /etc @@ -403,56 +456,61 @@ if [ $0 != 0 ]; then fi %files +%defattr(-,root,root) %doc README COPYING Manifest Read-Manifest-Now %doc WHATSNEW.txt Roadmap %doc docs %doc swat/README %doc examples -%attr(-,root,root) %{prefix}/sbin/smbd -%attr(-,root,root) %{prefix}/sbin/nmbd -%attr(-,root,root) %{prefix}/sbin/swat -%attr(-,root,root) %{prefix}/sbin/smbmnt -%attr(-,root,root) %{prefix}/sbin/smbmount -%attr(-,root,root) %{prefix}/sbin/smbumount -%attr(-,root,root) %{prefix}/sbin/winbindd -%attr(-,root,root) /sbin/mount.smbfs -%attr(-,root,root) /sbin/mount.smb -%attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh -%attr(-,root,root) %{prefix}/bin/smbclient -%attr(-,root,root) %{prefix}/bin/smbspool -%attr(-,root,root) %{prefix}/bin/rpcclient -%attr(-,root,root) %{prefix}/bin/testparm -%attr(-,root,root) %{prefix}/bin/testprns -%attr(-,root,root) %{prefix}/bin/findsmb -%attr(-,root,root) %{prefix}/bin/smbstatus -%attr(-,root,root) %{prefix}/bin/nmblookup -%attr(-,root,root) %{prefix}/bin/make_printerdef -%attr(-,root,root) %{prefix}/bin/smbpasswd -%attr(-,root,root) %{prefix}/bin/smbtar -%attr(-,root,root) %{prefix}/bin/smbprint -%attr(-,root,root) %{prefix}/bin/smbcontrol -%attr(-,root,root) %{prefix}/bin/smbcacls -%attr(-,root,root) %{prefix}/bin/wbinfo +%{prefix}/sbin/smbd +%{prefix}/sbin/nmbd +%{prefix}/sbin/swat +%{prefix}/sbin/smbmnt +%{prefix}/sbin/smbmount +%{prefix}/sbin/smbumount +%{prefix}/sbin/winbindd +/sbin/mount.smbfs +/sbin/mount.smb +%{prefix}/bin/mksmbpasswd.sh +%{prefix}/bin/smbclient +%{prefix}/bin/smbspool +%{prefix}/bin/rpcclient +%{prefix}/bin/testparm +%{prefix}/bin/testprns +%{prefix}/bin/findsmb +%{prefix}/bin/smbstatus +%{prefix}/bin/nmblookup +%{prefix}/bin/make_smbcodepage +%{prefix}/bin/make_unicodemap +%{prefix}/bin/make_printerdef +%{prefix}/bin/smbpasswd +%{prefix}/bin/smbtar +%{prefix}/bin/smbprint +%{prefix}/bin/smbcontrol +%{prefix}/bin/smbcacls +%{prefix}/bin/wbinfo %attr(755,root,root) /lib/libnss_wins.s* -%attr(-,root,root) %{prefix}/share/swat/help/* -%attr(-,root,root) %{prefix}/share/swat/images/* -%attr(-,root,root) %{prefix}/share/swat/include/header.html -%attr(-,root,root) %{prefix}/share/swat/include/footer.html -%attr(-,root,root) %{prefix}/share/swat/using_samba/* -%attr(-,root,root) %config(noreplace) /etc/samba/lmhosts -%attr(-,root,root) %config(noreplace) /etc/samba/smb.conf -%attr(-,root,root) %config(noreplace) /etc/samba/smbusers -%attr(-,root,root) /etc/samba/samba.stack -%attr(-,root,root) /etc/samba/samba.xinetd -%attr(-,root,root) /etc/rc.d/init.d/smb -%attr(-,root,root) /etc/logrotate.d/samba -%attr(-,root,root) %config(noreplace) /etc/pam.d/samba -%attr(-,root,root) MANDIR_MACRO/man1/* -%attr(-,root,root) MANDIR_MACRO/man5/* -%attr(-,root,root) MANDIR_MACRO/man7/* -%attr(-,root,root) MANDIR_MACRO/man8/* -%attr(755,root,root) %dir /var/lock/samba -%attr(-,root,root) %dir /var/log/samba +%{prefix}/share/swat/help/* +%{prefix}/share/swat/images/* +%{prefix}/share/swat/include/header.html +%{prefix}/share/swat/include/footer.html +%{prefix}/share/swat/using_samba/* +%config(noreplace) /etc/samba/lmhosts +%config(noreplace) /etc/samba/smb.conf +%config(noreplace) /etc/samba/smbusers +/etc/samba/samba.stack +/etc/samba/samba.xinetd +/etc/rc.d/init.d/smb +/etc/logrotate.d/samba +%config(noreplace) /etc/pam.d/samba +MANDIR_MACRO/man1/* +MANDIR_MACRO/man5/* +MANDIR_MACRO/man7/* +MANDIR_MACRO/man8/* +%dir /etc/codepages/* +%attr(755,root,root) %dir /var/cache/samba +%dir /var/log/samba +%dir /var/run/samba %attr(1777,root,root) %dir /var/spool/samba %attr(-,root,root) /lib/libnss_winbind.so %attr(-,root,root) /lib/security/pam_winbind.so diff --git a/packaging/RedHat/smb.init b/packaging/RedHat/smb.init index 260439281a..c43c9a0094 100755 --- a/packaging/RedHat/smb.init +++ b/packaging/RedHat/smb.init @@ -13,8 +13,10 @@ # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 +CONFIG=/etc/samba/smb.conf + # Check that smb.conf exists. -[ -f /etc/samba/smb.conf ] || exit 0 +[ -f $CONFIG ] || exit 0 # See how we were called. case "$1" in @@ -22,6 +24,9 @@ case "$1" in echo -n "Starting SMB services: " daemon smbd -D daemon nmbd -D + if [ "`grep -i 'winbind uid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then + daemon winbindd + fi echo touch /var/lock/subsys/smb ;; @@ -29,12 +34,16 @@ case "$1" in echo -n "Shutting down SMB services: " killproc smbd killproc nmbd + if [ "`ps -ef | grep winbind | grep -v grep`" ]; then + killproc winbindd + fi rm -f /var/lock/subsys/smb echo "" ;; status) status smbd status nmbd + status winbindd ;; restart) echo -n "Restarting SMB services: " -- cgit From 6cb803dd06d32596d2128ad90110e5be4bcfd8a1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 23 May 2002 01:39:28 +0000 Subject: Ensure we kill with -TERM. Jeremy. (This used to be commit 22b0d5da63716028c8f4b61f002493aa67ba189a) --- packaging/RedHat/smb.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/RedHat/smb.init b/packaging/RedHat/smb.init index c43c9a0094..5419b2b9c6 100755 --- a/packaging/RedHat/smb.init +++ b/packaging/RedHat/smb.init @@ -32,8 +32,8 @@ case "$1" in ;; stop) echo -n "Shutting down SMB services: " - killproc smbd - killproc nmbd + killproc smbd -TERM + killproc nmbd -TERM if [ "`ps -ef | grep winbind | grep -v grep`" ]; then killproc winbindd fi -- cgit From 13abfb606f5e248533f4696777ea593d9201f911 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Mon, 3 Jun 2002 05:59:58 +0000 Subject: Add VFS Support (This used to be commit c28343fd033c7a805fad451dca39dfc627cee2c4) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index d48d860e0b..23ebcd879e 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -254,6 +254,15 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam_winbind.so everything (cd tdb; make tdbdump tdbtest tdbtorture tdbtool) +cd ../examples/VFS +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ + --prefix='$(DESTDIR)/usr' \ + --localstatedir='$(DESTDIR)/var' \ + --libdir='$(DESTDIR)%{EtcSamba}' \ + --sbindir='$(DESTDIR)/usr/sbin' +make +cd block +make %Install %{mkDESTDIR} @@ -264,6 +273,7 @@ mkdir -p $DESTDIR%{EtcSamba}/codepages/src mkdir -p $DESTDIR/etc/skel/Samba mkdir -p $DESTDIR/home/samba mkdir -p $DESTDIR/lib/security +mkdir -p $DESTDIR/lib/samba mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} mkdir -p $DESTDIR%{NKinetdir} mkdir -p $DESTDIR/{sbin,bin,usr/{sbin,bin}} @@ -294,6 +304,11 @@ for i in tdbdump tdbtest tdbtorture tdbtool do install -m 755 source/tdb/$i $DESTDIR/usr/sbin done +# Add VFS Modules +for i in audit.so recycle.so block/block.so +do + install -m755 $i $DESTDIR/lib/samba +done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin -- cgit From a8a543778bcfb023c1e4bede8bd46c7300dd975c Mon Sep 17 00:00:00 2001 From: Shirish Kalele Date: Wed, 5 Jun 2002 18:37:15 +0000 Subject: Fix typo. (This used to be commit b874c14a1d3cd333aada5ee93da7a83c24c7b3d6) --- packaging/Solaris/i.swat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/Solaris/i.swat b/packaging/Solaris/i.swat index 047f0e1720..d07d2798d8 100644 --- a/packaging/Solaris/i.swat +++ b/packaging/Solaris/i.swat @@ -33,7 +33,7 @@ EOF if [ ! -z "$PKG_INSTALL_ROOT" ] then - CAT < Date: Mon, 15 Jul 2002 10:35:28 +0000 Subject: updated the 3.0 branch from the head branch - ready for alpha18 (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce) --- packaging/Caldera/OpenLinux/findsmb | 4 +- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 15 ++ packaging/Caldera/OpenServer/findsmb | 4 +- packaging/Caldera/UnixWare/findsmb | 4 +- packaging/Mandrake/findsmb | 4 +- packaging/PHT/TurboLinux/findsmb | 4 +- packaging/RedHat/findsmb | 8 +- packaging/RedHat/samba.pamd | 4 +- packaging/RedHat/samba2.spec.tmpl | 212 +++++++++++++++++---------- packaging/RedHat/smb.init | 15 +- packaging/SGI/findsmb | 4 +- packaging/Solaris/i.swat | 2 +- 12 files changed, 183 insertions(+), 97 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/findsmb b/packaging/Caldera/OpenLinux/findsmb index 986c248177..f70d18dcbd 100755 --- a/packaging/Caldera/OpenLinux/findsmb +++ b/packaging/Caldera/OpenLinux/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index d48d860e0b..23ebcd879e 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -254,6 +254,15 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam_winbind.so everything (cd tdb; make tdbdump tdbtest tdbtorture tdbtool) +cd ../examples/VFS +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ + --prefix='$(DESTDIR)/usr' \ + --localstatedir='$(DESTDIR)/var' \ + --libdir='$(DESTDIR)%{EtcSamba}' \ + --sbindir='$(DESTDIR)/usr/sbin' +make +cd block +make %Install %{mkDESTDIR} @@ -264,6 +273,7 @@ mkdir -p $DESTDIR%{EtcSamba}/codepages/src mkdir -p $DESTDIR/etc/skel/Samba mkdir -p $DESTDIR/home/samba mkdir -p $DESTDIR/lib/security +mkdir -p $DESTDIR/lib/samba mkdir -p $DESTDIR/%{LSBservedir}/{netlogon,profiles,Public} mkdir -p $DESTDIR%{NKinetdir} mkdir -p $DESTDIR/{sbin,bin,usr/{sbin,bin}} @@ -294,6 +304,11 @@ for i in tdbdump tdbtest tdbtorture tdbtool do install -m 755 source/tdb/$i $DESTDIR/usr/sbin done +# Add VFS Modules +for i in audit.so recycle.so block/block.so +do + install -m755 $i $DESTDIR/lib/samba +done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin diff --git a/packaging/Caldera/OpenServer/findsmb b/packaging/Caldera/OpenServer/findsmb index bb91c784b8..c87fdb5190 100755 --- a/packaging/Caldera/OpenServer/findsmb +++ b/packaging/Caldera/OpenServer/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/Caldera/UnixWare/findsmb b/packaging/Caldera/UnixWare/findsmb index bb91c784b8..c87fdb5190 100755 --- a/packaging/Caldera/UnixWare/findsmb +++ b/packaging/Caldera/UnixWare/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/Mandrake/findsmb b/packaging/Mandrake/findsmb index 986c248177..f70d18dcbd 100755 --- a/packaging/Mandrake/findsmb +++ b/packaging/Mandrake/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/PHT/TurboLinux/findsmb b/packaging/PHT/TurboLinux/findsmb index 986c248177..f70d18dcbd 100755 --- a/packaging/PHT/TurboLinux/findsmb +++ b/packaging/PHT/TurboLinux/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/RedHat/findsmb b/packaging/RedHat/findsmb index 986c248177..04bc608050 100755 --- a/packaging/RedHat/findsmb +++ b/packaging/RedHat/findsmb @@ -73,7 +73,10 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; +# The Netbios name can contain lot of characters also '<' '>' +# and spaces. The follwing cure inside name space but not +# names starting or ending with spaces + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +106,8 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; +# Same as before for space and characters + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/RedHat/samba.pamd b/packaging/RedHat/samba.pamd index 1b4a93fb19..bf7a5b392c 100644 --- a/packaging/RedHat/samba.pamd +++ b/packaging/RedHat/samba.pamd @@ -1,4 +1,4 @@ -auth required /lib/security/pam_pwdb.so nullok shadow +auth required /lib/security/pam_pwdb.so nullok account required /lib/security/pam_pwdb.so session required /lib/security/pam_pwdb.so -password required /lib/security/pam_pwdb.so +password required /lib/security/pam_pwdb.so # shadow md5 nullok audit diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index c99b912382..0766653c23 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -8,6 +8,7 @@ Source: ftp://samba.org/pub/samba/samba-%{version}.tar.gz Packager: John H Terpstra [Samba-Team] Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils +Provides: samba = %{version}, samba-common = %{version}, samba-client = %{version}, samba-swat = %{version} BuildRoot: /var/tmp/samba Prefix: /usr @@ -43,9 +44,16 @@ for Shadow passwords and quotas. Do NOT recompile with the SHADOW_PWD option enabled %changelog +* Mon May 6 2002 Gerald Carter + - moved findsmb to a standard component in samba's + "make install". Removed from specfile. + +* Sun Oct 14 2001 Andrew Bartlett + - Set SBINDIR for codepage/manpage install, cope with + broken Makefile + * Mon Aug 1 2001 Tim Potter - Install winbind daemon, client programs, nss and pam libraries - - Removed codepage stuff so spec file works with current HEAD branch * Sat Mar 31 2001 Andrew Bartlett - Changed prefix/share/man for _mandir/share/man @@ -158,11 +166,11 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ --with-privatedir=/etc/samba \ --with-fhs \ --with-quotas \ + --with-msdfs \ --with-smbmount \ --with-pam \ --with-syslog \ --with-utmp \ - --with-netatalk \ --with-sambabook=%{prefix}/share/swat/using_samba \ --with-swatdir=%{prefix}/share/swat make -j${NUMCPU} proto @@ -182,8 +190,8 @@ mkdir -p $RPM_BUILD_ROOT%{prefix}/{bin,sbin} mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/{images,help,include,using_samba} mkdir -p $RPM_BUILD_ROOT%{prefix}/share/swat/using_samba/{figs,gifs} mkdir -p $RPM_BUILD_ROOTMANDIR_MACRO -mkdir -p $RPM_BUILD_ROOT/var/lock/samba -mkdir -p $RPM_BUILD_ROOT/var/log/samba +mkdir -p $RPM_BUILD_ROOT/var/cache/samba +mkdir -p $RPM_BUILD_ROOT/var/{log,run}/samba mkdir -p $RPM_BUILD_ROOT/var/spool/samba mkdir -p $RPM_BUILD_ROOT/lib/security @@ -211,19 +219,21 @@ ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb # This allows us to get away without duplicating code that # sombody else can maintain for us. cd source -make LIBDIR=$RPM_BUILD_ROOT/etc/samba \ +make BASEDIR=$RPM_BUILD_ROOT/usr \ + LIBDIR=$RPM_BUILD_ROOT/etc/samba \ + SBINDIR=$RPM_BUILD_ROOT%{prefix}/sbin \ BINDIR=$RPM_BUILD_ROOT%{prefix}/bin \ MANDIR=$RPM_BUILD_ROOTMANDIR_MACRO \ SWATDIR=$RPM_BUILD_ROOT/usr/share/swat \ SAMBABOOK=$RPM_BUILD_ROOT/usr/share/swat/using_samba \ - installman installswat + installman installcp installswat cd .. # Install the nsswitch library extension file install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib # Make link for wins resolver -( cd $RPM_BUILD_ROOT/lib; ln -s libnss_wins.so libnss_wins.so.2; ) +( cd $RPM_BUILD_ROOT/lib; ln -sf libnss_wins.so libnss_wins.so.2; ) # Install winbind shared libraries install -m755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib @@ -246,7 +256,6 @@ done # Install the miscellany install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{prefix}/bin -install -m755 packaging/RedHat/findsmb $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba @@ -265,35 +274,74 @@ rm -rf $RPM_BUILD_ROOT /sbin/chkconfig smb off echo "Looking for old /etc/smb.conf..." -if [ -f /etc/smb.conf ]; then +if [ -f /etc/smb.conf -a ! -f /etc/samba/smb.conf ]; then echo "Moving old /etc/smb.conf to /etc/samba/smb.conf" mv /etc/smb.conf /etc/samba/smb.conf fi echo "Looking for old /etc/smbusers..." -if [ -f /etc/smbusers ]; then +if [ -f /etc/smbusers -a ! -f /etc/samba/smbusers ]; then echo "Moving old /etc/smbusers to /etc/samba/smbusers" mv /etc/smbusers /etc/samba/smbusers fi echo "Looking for old /etc/lmhosts..." -if [ -f /etc/lmhosts ]; then +if [ -f /etc/lmhosts -a ! -f /etc/samba/lmhosts ]; then echo "Moving old /etc/lmhosts to /etc/samba/lmhosts" mv /etc/lmhosts /etc/samba/lmhosts fi echo "Looking for old /etc/MACHINE.SID..." -if [ -f /etc/MACHINE.SID ]; then +if [ -f /etc/MACHINE.SID -a ! -f /etc/samba/MACHINE.SID ]; then echo "Moving old /etc/MACHINE.SID to /etc/samba/MACHINE.SID" mv /etc/MACHINE.SID /etc/samba/MACHINE.SID fi echo "Looking for old /etc/smbpasswd..." -if [ -f /etc/smbpasswd ]; then +if [ -f /etc/smbpasswd -a ! -f /etc/samba/smbpasswd ]; then echo "Moving old /etc/smbpasswd to /etc/samba/smbpasswd" mv /etc/smbpasswd /etc/samba/smbpasswd fi +# +# For 2.2.1 we move the tdb files from /var/lock/samba to /var/cache/samba +# to preserve across reboots. +# +echo "Moving tdb files in /var/lock/samba/*.tdb to /var/cache/samba/*.tdb" +for i in /var/lock/samba/*.tdb +do +if [ -f $i ]; then + newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'` + echo "Moving $i to $newname" + mv $i $newname +fi +done + +# Remove the transient tdb files. +if [ -e /var/cache/samba/brlock.tdb ]; then + rm -f /var/cache/samba/brlock.tdb +fi + +if [ -e /var/cache/samba/unexpected.tdb ]; then + rm -f /var/cache/samba/unexpected.tdb +fi + +if [ -e /var/cache/samba/connections.tdb ]; then + rm -f /var/cache/samba/connections.tdb +fi + +if [ -e /var/cache/samba/locking.tdb ]; then + rm -f /var/cache/samba/locking.tdb +fi + +if [ -e /var/cache/samba/messages.tdb ]; then + rm -f /var/cache/samba/messages.tdb +fi + +if [ -d /var/lock/samba ]; then + rm -rf /var/lock/samba +fi + # Add swat entry to /etc/services if not already there. if !( grep ^[:space:]*swat /etc/services > /dev/null ) then echo 'swat 901/tcp # Add swat service used via inetd' >> /etc/services @@ -309,7 +357,7 @@ fi # Add swat entry to xinetd.d if needed. if [ -d $RPM_BUILD_ROOT/etc/xinetd.d -a ! -f /etc/xinetd.d/swat ]; then - mv /etc/samba/samba.xinetd /etc/xinetd.d/swat + mv /etc/samba/samba.xinetd /etc/xinetd.d/swat else rm -f /etc/samba/samba.xinetd fi @@ -325,39 +373,41 @@ fi # Create winbind nss client symlink -ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2 +if [ -e /lib/libnss_winbind.so ]; then + ln -sf /lib/libnss_winbind.so /lib/libnss_winbind.so.2 +fi %preun if [ $1 = 0 ] ; then - /sbin/chkconfig --del smb + /sbin/chkconfig --del smb - # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba! - if [ -e /var/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 + # We want to remove the browse.dat and wins.dat files so they can not interfer with a new version of samba! + if [ -e /var/cache/samba/browse.dat ]; then + rm -f /var/cache/samba/browse.dat + fi + if [ -e /var/cache/samba/wins.dat ]; then + rm -f /var/cache/samba/wins.dat + fi # Remove the transient tdb files. - if [ -e /var/lock/samba/brlock.tdb ]; then - rm -f /var/lock/samba/brlock.tdb + if [ -e /var/cache/samba/brlock.tdb ]; then + rm -f /var/cache/samba/brlock.tdb fi - if [ -e /var/lock/samba/unexpected.tdb ]; then - rm -f /var/lock/samba/unexpected.tdb + if [ -e /var/cache/samba/unexpected.tdb ]; then + rm -f /var/cache/samba/unexpected.tdb fi - if [ -e /var/lock/samba/connections.tdb ]; then - rm -f /var/lock/samba/connections.tdb + if [ -e /var/cache/samba/connections.tdb ]; then + rm -f /var/cache/samba/connections.tdb fi - if [ -e /var/lock/samba/locking.tdb ]; then - rm -f /var/lock/samba/locking.tdb + if [ -e /var/cache/samba/locking.tdb ]; then + rm -f /var/cache/samba/locking.tdb fi - if [ -e /var/lock/samba/messages.tdb ]; then - rm -f /var/lock/samba/messages.tdb + if [ -e /var/cache/samba/messages.tdb ]; then + rm -f /var/cache/samba/messages.tdb fi # Remove winbind nss client symlink @@ -376,6 +426,9 @@ if [ $1 = 0 ] ; then if [ -e /var/log/samba ]; then rm -rf /var/log/samba fi + if [ -e /var/cache/samba ]; then + rm -rf /var/cache/samba + fi # Remove swat entries from /etc/inetd.conf and /etc/services cd /etc @@ -403,56 +456,61 @@ if [ $0 != 0 ]; then fi %files +%defattr(-,root,root) %doc README COPYING Manifest Read-Manifest-Now %doc WHATSNEW.txt Roadmap %doc docs %doc swat/README %doc examples -%attr(-,root,root) %{prefix}/sbin/smbd -%attr(-,root,root) %{prefix}/sbin/nmbd -%attr(-,root,root) %{prefix}/sbin/swat -%attr(-,root,root) %{prefix}/sbin/smbmnt -%attr(-,root,root) %{prefix}/sbin/smbmount -%attr(-,root,root) %{prefix}/sbin/smbumount -%attr(-,root,root) %{prefix}/sbin/winbindd -%attr(-,root,root) /sbin/mount.smbfs -%attr(-,root,root) /sbin/mount.smb -%attr(-,root,root) %{prefix}/bin/mksmbpasswd.sh -%attr(-,root,root) %{prefix}/bin/smbclient -%attr(-,root,root) %{prefix}/bin/smbspool -%attr(-,root,root) %{prefix}/bin/rpcclient -%attr(-,root,root) %{prefix}/bin/testparm -%attr(-,root,root) %{prefix}/bin/testprns -%attr(-,root,root) %{prefix}/bin/findsmb -%attr(-,root,root) %{prefix}/bin/smbstatus -%attr(-,root,root) %{prefix}/bin/nmblookup -%attr(-,root,root) %{prefix}/bin/make_printerdef -%attr(-,root,root) %{prefix}/bin/smbpasswd -%attr(-,root,root) %{prefix}/bin/smbtar -%attr(-,root,root) %{prefix}/bin/smbprint -%attr(-,root,root) %{prefix}/bin/smbcontrol -%attr(-,root,root) %{prefix}/bin/smbcacls -%attr(-,root,root) %{prefix}/bin/wbinfo +%{prefix}/sbin/smbd +%{prefix}/sbin/nmbd +%{prefix}/sbin/swat +%{prefix}/sbin/smbmnt +%{prefix}/sbin/smbmount +%{prefix}/sbin/smbumount +%{prefix}/sbin/winbindd +/sbin/mount.smbfs +/sbin/mount.smb +%{prefix}/bin/mksmbpasswd.sh +%{prefix}/bin/smbclient +%{prefix}/bin/smbspool +%{prefix}/bin/rpcclient +%{prefix}/bin/testparm +%{prefix}/bin/testprns +%{prefix}/bin/findsmb +%{prefix}/bin/smbstatus +%{prefix}/bin/nmblookup +%{prefix}/bin/make_smbcodepage +%{prefix}/bin/make_unicodemap +%{prefix}/bin/make_printerdef +%{prefix}/bin/smbpasswd +%{prefix}/bin/smbtar +%{prefix}/bin/smbprint +%{prefix}/bin/smbcontrol +%{prefix}/bin/smbcacls +%{prefix}/bin/wbinfo %attr(755,root,root) /lib/libnss_wins.s* -%attr(-,root,root) %{prefix}/share/swat/help/* -%attr(-,root,root) %{prefix}/share/swat/images/* -%attr(-,root,root) %{prefix}/share/swat/include/header.html -%attr(-,root,root) %{prefix}/share/swat/include/footer.html -%attr(-,root,root) %{prefix}/share/swat/using_samba/* -%attr(-,root,root) %config(noreplace) /etc/samba/lmhosts -%attr(-,root,root) %config(noreplace) /etc/samba/smb.conf -%attr(-,root,root) %config(noreplace) /etc/samba/smbusers -%attr(-,root,root) /etc/samba/samba.stack -%attr(-,root,root) /etc/samba/samba.xinetd -%attr(-,root,root) /etc/rc.d/init.d/smb -%attr(-,root,root) /etc/logrotate.d/samba -%attr(-,root,root) %config(noreplace) /etc/pam.d/samba -%attr(-,root,root) MANDIR_MACRO/man1/* -%attr(-,root,root) MANDIR_MACRO/man5/* -%attr(-,root,root) MANDIR_MACRO/man7/* -%attr(-,root,root) MANDIR_MACRO/man8/* -%attr(755,root,root) %dir /var/lock/samba -%attr(-,root,root) %dir /var/log/samba +%{prefix}/share/swat/help/* +%{prefix}/share/swat/images/* +%{prefix}/share/swat/include/header.html +%{prefix}/share/swat/include/footer.html +%{prefix}/share/swat/using_samba/* +%config(noreplace) /etc/samba/lmhosts +%config(noreplace) /etc/samba/smb.conf +%config(noreplace) /etc/samba/smbusers +/etc/samba/samba.stack +/etc/samba/samba.xinetd +/etc/rc.d/init.d/smb +/etc/logrotate.d/samba +%config(noreplace) /etc/pam.d/samba +MANDIR_MACRO/man1/* +MANDIR_MACRO/man5/* +MANDIR_MACRO/man7/* +MANDIR_MACRO/man8/* +%dir /etc/codepages/* +%attr(755,root,root) %dir /var/cache/samba +%dir /var/log/samba +%dir /var/run/samba %attr(1777,root,root) %dir /var/spool/samba %attr(-,root,root) /lib/libnss_winbind.so %attr(-,root,root) /lib/security/pam_winbind.so diff --git a/packaging/RedHat/smb.init b/packaging/RedHat/smb.init index 260439281a..5419b2b9c6 100755 --- a/packaging/RedHat/smb.init +++ b/packaging/RedHat/smb.init @@ -13,8 +13,10 @@ # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 +CONFIG=/etc/samba/smb.conf + # Check that smb.conf exists. -[ -f /etc/samba/smb.conf ] || exit 0 +[ -f $CONFIG ] || exit 0 # See how we were called. case "$1" in @@ -22,19 +24,26 @@ case "$1" in echo -n "Starting SMB services: " daemon smbd -D daemon nmbd -D + if [ "`grep -i 'winbind uid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then + daemon winbindd + fi echo touch /var/lock/subsys/smb ;; stop) echo -n "Shutting down SMB services: " - killproc smbd - killproc nmbd + killproc smbd -TERM + killproc nmbd -TERM + if [ "`ps -ef | grep winbind | grep -v grep`" ]; then + killproc winbindd + fi rm -f /var/lock/subsys/smb echo "" ;; status) status smbd status nmbd + status winbindd ;; restart) echo -n "Restarting SMB services: " diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb index a48ec592e8..336ff07c16 100755 --- a/packaging/SGI/findsmb +++ b/packaging/SGI/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; diff --git a/packaging/Solaris/i.swat b/packaging/Solaris/i.swat index 047f0e1720..d07d2798d8 100644 --- a/packaging/Solaris/i.swat +++ b/packaging/Solaris/i.swat @@ -33,7 +33,7 @@ EOF if [ ! -z "$PKG_INSTALL_ROOT" ] then - CAT < Date: Wed, 31 Jul 2002 01:02:03 +0000 Subject: Remove VFS module build so RPMs can build for now. (This used to be commit 0c1e759cd3ee70f509fe7ccd30f986f24ad20464) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 23ebcd879e..701dd35073 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -254,15 +254,15 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam_winbind.so everything (cd tdb; make tdbdump tdbtest tdbtorture tdbtool) -cd ../examples/VFS -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ - --prefix='$(DESTDIR)/usr' \ - --localstatedir='$(DESTDIR)/var' \ - --libdir='$(DESTDIR)%{EtcSamba}' \ - --sbindir='$(DESTDIR)/usr/sbin' -make -cd block -make +#cd ../examples/VFS +#CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ +# --prefix='$(DESTDIR)/usr' \ +# --localstatedir='$(DESTDIR)/var' \ +# --libdir='$(DESTDIR)%{EtcSamba}' \ +# --sbindir='$(DESTDIR)/usr/sbin' +#make +#cd block +#make %Install %{mkDESTDIR} @@ -305,10 +305,10 @@ do install -m 755 source/tdb/$i $DESTDIR/usr/sbin done # Add VFS Modules -for i in audit.so recycle.so block/block.so -do - install -m755 $i $DESTDIR/lib/samba -done +#for i in audit.so recycle.so block/block.so +#do +# install -m755 $i $DESTDIR/lib/samba +#done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin -- cgit From 21d26afb2af6ae34219a4286eb7a8896d7e04a3a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 17 Aug 2002 14:15:33 +0000 Subject: sync 3_0 branch with HEAD (This used to be commit 19ab776bf9c91cf4e56887fd7a63d3253b7e36ef) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 23ebcd879e..701dd35073 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -254,15 +254,15 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam_winbind.so everything (cd tdb; make tdbdump tdbtest tdbtorture tdbtool) -cd ../examples/VFS -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ - --prefix='$(DESTDIR)/usr' \ - --localstatedir='$(DESTDIR)/var' \ - --libdir='$(DESTDIR)%{EtcSamba}' \ - --sbindir='$(DESTDIR)/usr/sbin' -make -cd block -make +#cd ../examples/VFS +#CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ +# --prefix='$(DESTDIR)/usr' \ +# --localstatedir='$(DESTDIR)/var' \ +# --libdir='$(DESTDIR)%{EtcSamba}' \ +# --sbindir='$(DESTDIR)/usr/sbin' +#make +#cd block +#make %Install %{mkDESTDIR} @@ -305,10 +305,10 @@ do install -m 755 source/tdb/$i $DESTDIR/usr/sbin done # Add VFS Modules -for i in audit.so recycle.so block/block.so -do - install -m755 $i $DESTDIR/lib/samba -done +#for i in audit.so recycle.so block/block.so +#do +# install -m755 $i $DESTDIR/lib/samba +#done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin -- cgit From f4806920562ae4db7096109754c8f9c83db52d62 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 23 Aug 2002 10:58:44 +0000 Subject: sync with 2.2 branch (This used to be commit 52924c064dc649032619c52e5cc915ca74e3aa10) --- packaging/SGI/winbindd.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packaging') diff --git a/packaging/SGI/winbindd.rc b/packaging/SGI/winbindd.rc index c63944a04d..deb4708c66 100644 --- a/packaging/SGI/winbindd.rc +++ b/packaging/SGI/winbindd.rc @@ -1,7 +1,7 @@ #! /bin/sh # -# winbindd server control +# winbindd control # IS_ON=/etc/chkconfig @@ -21,7 +21,7 @@ fi case $1 in 'start') - if $IS_ON winbindd && test -x $WINBINDD; then + if $IS_ON winbind && test -x $WINBINDD; then $KILLALL -15 winbindd $ECHO "winbindd:\c" $WINBINDD ; $ECHO " winbindd." @@ -33,6 +33,6 @@ case $1 in exit 0 ;; *) - echo "usage: /etc/init.d/winbindd {start|stop}" + echo "usage: /etc/init.d/winbind {start|stop}" ;; esac -- cgit From 9cf3c89ed68e51e9dd08e8975e97361bfbfb5f33 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Fri, 23 Aug 2002 17:01:02 +0000 Subject: Removed samsync (This used to be commit 644a45d493712c12e6318d13f7dd6ef1be5e6b1a) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 701dd35073..7d7da04336 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -296,7 +296,7 @@ do install -m 755 source/bin/$i $DESTDIR/usr/bin done # Next install /usr/sbin progs -for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture +for i in talloctort locktest locktest2 masktest msgtest smbtorture do install -m 755 source/bin/$i $DESTDIR/usr/sbin done -- cgit From 6077a0a551fd66c993bb79f40feb9213b014abc8 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 24 Sep 2002 01:12:11 +0000 Subject: Updated in preparation for samba-3.0.0alpha20 (This used to be commit 05f61b2dc4c120f5303e1a7c85ca8b1409d9a95e) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 7d7da04336..a59ef071b2 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -244,25 +244,23 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-netatalk \ --with-smbwrapper \ --with-libsmbclient \ + --with-acl-support \ --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba # Temp disabled - add later - JHT # --with-pam_smbpass \ # --with-nisplus-home \ -# --with-acl-support \ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam_winbind.so everything (cd tdb; make tdbdump tdbtest tdbtorture tdbtool) -#cd ../examples/VFS -#CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ -# --prefix='$(DESTDIR)/usr' \ -# --localstatedir='$(DESTDIR)/var' \ -# --libdir='$(DESTDIR)%{EtcSamba}' \ -# --sbindir='$(DESTDIR)/usr/sbin' -#make -#cd block -#make +cd ../examples/VFS +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ + --prefix='$(DESTDIR)/usr' \ + --localstatedir='$(DESTDIR)/var' \ + --libdir='$(DESTDIR)%{EtcSamba}' \ + --sbindir='$(DESTDIR)/usr/sbin' +make %Install %{mkDESTDIR} @@ -304,11 +302,12 @@ for i in tdbdump tdbtest tdbtorture tdbtool do install -m 755 source/tdb/$i $DESTDIR/usr/sbin done + # Add VFS Modules -#for i in audit.so recycle.so block/block.so -#do -# install -m755 $i $DESTDIR/lib/samba -#done +for i in audit.so recycle.so netatalk.so skel.so +do + install -m755 $i $DESTDIR/lib/samba +done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin -- cgit From 68e361e72a8d23eaedcddc5a90db0846949d3e8e Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 24 Sep 2002 01:37:05 +0000 Subject: Removed call to configure for VFS modules. (This used to be commit a029d9781d8511eb5eb51568647fbeccde2efed3) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index a59ef071b2..4e9f755edc 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -255,11 +255,11 @@ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam (cd tdb; make tdbdump tdbtest tdbtorture tdbtool) cd ../examples/VFS -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ - --prefix='$(DESTDIR)/usr' \ - --localstatedir='$(DESTDIR)/var' \ - --libdir='$(DESTDIR)%{EtcSamba}' \ - --sbindir='$(DESTDIR)/usr/sbin' +#CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ +# --prefix='$(DESTDIR)/usr' \ +# --localstatedir='$(DESTDIR)/var' \ +# --libdir='$(DESTDIR)%{EtcSamba}' \ +# --sbindir='$(DESTDIR)/usr/sbin' make %Install -- cgit From 0f72389a85699fc0b96f3a6b5f1ad5df41620eda Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Tue, 24 Sep 2002 01:59:08 +0000 Subject: Typos! Fix 'em! (This used to be commit d2976b6872c43e3b5bb9a589e8eaff1a08ad5352) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 4e9f755edc..43e60a2ac0 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -306,7 +306,7 @@ done # Add VFS Modules for i in audit.so recycle.so netatalk.so skel.so do - install -m755 $i $DESTDIR/lib/samba + install -m755 examples/VFS/$i $DESTDIR/lib/samba done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin -- cgit From 28f76a4162afdeda6c1ead6dc99e5b6c0491ad4f Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 25 Sep 2002 15:29:42 +0000 Subject: sync'ing up for 3.0alpha20 release (This used to be commit 4456d5edd9207674d03bf503e8b245e5dc1ca8d8) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 19 +++++++++---------- packaging/SGI/winbindd.rc | 6 +++--- 2 files changed, 12 insertions(+), 13 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 701dd35073..43e60a2ac0 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -244,25 +244,23 @@ CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ --with-netatalk \ --with-smbwrapper \ --with-libsmbclient \ + --with-acl-support \ --with-sambabook=$(DESTDIR)/usr/share/swat/using_samba # Temp disabled - add later - JHT # --with-pam_smbpass \ # --with-nisplus-home \ -# --with-acl-support \ make all nsswitch/libnss_wins.so nsswitch/libnss_winbind.so torture nsswitch/pam_winbind.so everything (cd tdb; make tdbdump tdbtest tdbtorture tdbtool) -#cd ../examples/VFS +cd ../examples/VFS #CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ # --prefix='$(DESTDIR)/usr' \ # --localstatedir='$(DESTDIR)/var' \ # --libdir='$(DESTDIR)%{EtcSamba}' \ # --sbindir='$(DESTDIR)/usr/sbin' -#make -#cd block -#make +make %Install %{mkDESTDIR} @@ -296,7 +294,7 @@ do install -m 755 source/bin/$i $DESTDIR/usr/bin done # Next install /usr/sbin progs -for i in talloctort samsync locktest locktest2 masktest msgtest smbtorture +for i in talloctort locktest locktest2 masktest msgtest smbtorture do install -m 755 source/bin/$i $DESTDIR/usr/sbin done @@ -304,11 +302,12 @@ for i in tdbdump tdbtest tdbtorture tdbtool do install -m 755 source/tdb/$i $DESTDIR/usr/sbin done + # Add VFS Modules -#for i in audit.so recycle.so block/block.so -#do -# install -m755 $i $DESTDIR/lib/samba -#done +for i in audit.so recycle.so netatalk.so skel.so +do + install -m755 examples/VFS/$i $DESTDIR/lib/samba +done #mv $DESTDIR/usr/bin/{make,add,conv}* $DESTDIR/usr/sbin diff --git a/packaging/SGI/winbindd.rc b/packaging/SGI/winbindd.rc index c63944a04d..deb4708c66 100644 --- a/packaging/SGI/winbindd.rc +++ b/packaging/SGI/winbindd.rc @@ -1,7 +1,7 @@ #! /bin/sh # -# winbindd server control +# winbindd control # IS_ON=/etc/chkconfig @@ -21,7 +21,7 @@ fi case $1 in 'start') - if $IS_ON winbindd && test -x $WINBINDD; then + if $IS_ON winbind && test -x $WINBINDD; then $KILLALL -15 winbindd $ECHO "winbindd:\c" $WINBINDD ; $ECHO " winbindd." @@ -33,6 +33,6 @@ case $1 in exit 0 ;; *) - echo "usage: /etc/init.d/winbindd {start|stop}" + echo "usage: /etc/init.d/winbind {start|stop}" ;; esac -- cgit From 496c836576a9851d8701dea34b7697531ed9e83a Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sat, 5 Oct 2002 07:45:57 +0000 Subject: Removed Fax document no longer extant. (This used to be commit 4e2a129ac1b5da7ea1420926f57588b2c4344775) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index 43e60a2ac0..b572672079 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -22,10 +22,6 @@ Requires : libpam >= 0.66, SysVinit-scripts >= 1.04-6 BuildRoot : /tmp/%{Name}-%{Version} Source: ftp://ftp.samba.org/pub/samba/%{Name}-%{Version}.tar.gz -#Patch0: %{Name}-%{Version}-smbmount.patch -#Patch1: %{Name}-%{Version}-install.patch -#Patch2: %{Name}-%{Version}-smbconf.patch - %Package doc Group : Server/Network @@ -173,21 +169,7 @@ a clean and stable API for SMB client application development. %Prep %setup -#%patch0 -p1 -#%patch1 -p1 -#%patch2 -p1 - -# The commented out fixUP below should be best known as screwUP! -# instead of patch (to help configuration) ... ;^) -#%{fixUP} -vbT source/Makefile.in -e ' -# s:we don.t use sbindir because we want:if you want : + -# s:(the previous releases of Samba):$1, please use: + -# s:(SBINDIR\s*=\s*\@)b:# ./configure --sbindir=\\\$(BINDIR)\n${1}sb: + -# s:/log\.(\S+):/log/samba.d/${1}d: + -# s:(PASSWD_PROGRAM\s*=\s*)(/bin):$1/usr$2: + -# s:^(LIBS\s*=):AUTH_$1: + -# s:((SMBD|SWAT|RPCCLIENT|SMBPASSWD)_OBJ\) )(\$\(LDF):$1\$(AUTH_LIBS) $3: -#' + for i in {cvs.,change-}log; do [ ! -f ../$i ] || mv ../$i source; done @@ -209,10 +191,6 @@ for i in docs/*/smb.conf.5*; do s:/usr/local/:/usr/:g; ' done -%{fixUP} -vT docs/textdocs/Faxing.txt -e ' - s:/usr/local/etc/:/etc/: + - s:/usr/local/:/usr/:; -' # End of DirtyHack(TM) -- cgit From e275d14da3de27ab02fce061c44265c2ecefa6ea Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 21 Oct 2002 15:24:16 +0000 Subject: updating from SAMBA_2_2 (This used to be commit f40a8baacb79f28834b4186f386e192651596ce4) --- packaging/RedHat/makerpms.sh.tmpl | 73 +++++++++++++++++++++++++------ packaging/RedHat/smb.init | 17 ++++---- packaging/RedHat/winbind.init | 91 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 159 insertions(+), 22 deletions(-) create mode 100644 packaging/RedHat/winbind.init (limited to 'packaging') diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index 44b89a45ec..0b20785129 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -1,25 +1,52 @@ #!/bin/sh -# Copyright (C) John H Terpstra 1998 +# Copyright (C) John H Terpstra 1998-2002 # Updated for RPM 3 by Jochen Wiedmann, joe@ispsoft.de # Changed for a generic tar file rebuild by abartlet@pcug.org.au +# Changed by John H Terpstra to build on RH7.2 - should also work for earlier versions jht@samba.org + +# The following allows environment variables to override the target directories +# the alternative is to have a file in your home directory calles .rpmmacros +# containing the following: +# %_topdir /home/mylogin/redhat +# +# Note: Under this directory rpm expects to find the same directories that are under the +# /usr/src/redhat directory +# +if [ -x ~/.rpmmacros ]; then + TOPDIR=`awk '/topdir/ {print $2}' < ~/.rpmmacros` + if [ z$TOPDIR <> "z" ]; then + SPECDIR=${TOPDIR}/SPECS + SRCDIR=${TOPDIR}/SOURCES + fi +fi + +SPECDIR=${SPECDIR:-/usr/src/redhat/SPECS} +SRCDIR=${SRCDIR:-/usr/src/redhat/SOURCES} + +# At this point the SPECDIR and SRCDIR vaiables must have a value! + USERID=`id -u` GRPID=`id -g` VERSION='PVERSION' -rm -f ../../samba2.*.spec +RPMVER=`rpm --version | awk '{print $3}'` +echo The RPM Version on this machine is: $RPMVER -case `rpm --version | awk '{print $3}'` in - 2.*) - sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba2.rpm2.spec - cp samba2.rpm2.spec ../../ +case $RPMVER in + 2*) + echo Building for RPM v2.x + sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba.spec + sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2-devel.spec > samba-devel.spec ;; - 3.*) - sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba2.rpm3.spec - cp samba2.rpm3.spec ../../ + 3*) + echo Building for RPM v3.x + sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba.spec + sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2-devel.spec > samba-devel.spec ;; - 4.*) - sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2.spec > samba2.rpm4.spec - cp samba2.rpm4.spec ../../ + 4*) + echo Building for RPM v4.x + sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2.spec > samba.spec + sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2-devel.spec > samba-devel.spec ;; *) echo "Unknown RPM version: `rpm --version`" @@ -29,10 +56,28 @@ esac ( cd ../../source; if [ -f Makefile ]; then make distclean; fi ) ( cd ../../.. ; chown -R ${USERID}.${GRPID} samba-${VERSION} ) -( cd ../../.. ; tar --exclude=CVS -czvf samba-${VERSION}.tar.gz samba-${VERSION}/samba2.*.spec samba-${VERSION} ) -rpm -ta -v ../../../samba-${VERSION}.tar.gz +# We do this to make sure that the package always has the current version in it''s name +if [ z$1 = z"devel" ]; then + (cd ../../.. ; mv samba samba-${VERSION} ) +fi + +( cd ../../.. ; tar --exclude=CVS -czvf ${SRCDIR}/samba-${VERSION}.tar.gz samba-${VERSION} ) +cp -av samba.spec ${SPECDIR} +cp -av samba-devel.spec ${SPECDIR} +if [ z$1 = "zdevel" ]; then + echo Restoring source samba directory name + ( cd ../../.. ; mv samba-${VERSION} samba ) + echo Getting Ready to build Developmental Build + cd ${SPECDIR} + rpm -ba -v samba-devel.spec +else + echo Getting Ready to build release package + cd ${SPECDIR} + rpm -ba -v --clean --rmsource samba.spec +fi +echo Done. diff --git a/packaging/RedHat/smb.init b/packaging/RedHat/smb.init index 5419b2b9c6..f50da2c6b2 100755 --- a/packaging/RedHat/smb.init +++ b/packaging/RedHat/smb.init @@ -24,26 +24,27 @@ case "$1" in echo -n "Starting SMB services: " daemon smbd -D daemon nmbd -D - if [ "`grep -i 'winbind uid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then - daemon winbindd - fi echo touch /var/lock/subsys/smb ;; stop) echo -n "Shutting down SMB services: " - killproc smbd -TERM + + ## we have to get all the smbd process here instead of just the + ## main parent (i.e. killproc) because it can take a long time + ## for an individual process to process a TERM signal + smbdpids=`ps guax | grep smbd | grep -v grep | awk '{print $2}'` + for pid in $smbdpids; do + kill -TERM $pid + done + ## nmbd is ok to kill using killproc() killproc nmbd -TERM - if [ "`ps -ef | grep winbind | grep -v grep`" ]; then - killproc winbindd - fi rm -f /var/lock/subsys/smb echo "" ;; status) status smbd status nmbd - status winbindd ;; restart) echo -n "Restarting SMB services: " diff --git a/packaging/RedHat/winbind.init b/packaging/RedHat/winbind.init new file mode 100644 index 0000000000..291c351df3 --- /dev/null +++ b/packaging/RedHat/winbind.init @@ -0,0 +1,91 @@ +#!/bin/sh +# +# chkconfig: 345 81 45 +# description: Starts and stops the Samba winbind daemon to provide \ +# user and group information from a domain controller to linux. + +# Source function library. +if [ -f /etc/init.d/functions ] ; then + . /etc/init.d/functions +elif [ -f /etc/rc.d/init.d/functions ] ; then + . /etc/rc.d/init.d/functions +else + exit 0 +fi + +# Source networking configuration. +. /etc/sysconfig/network + +# Check that networking is up. +[ ${NETWORKING} = "no" ] && exit 0 + +# Check that smb.conf exists. +[ -f /etc/samba/smb.conf ] || exit 0 + +RETVAL=0 + + +start() { + echo -n "Starting Winbind services: " + RETVAL=1 + if [ "`grep -i 'winbind uid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then + daemon winbindd + RETVAL=$? + fi + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/winbind || \ + RETVAL=1 + return $RETVAL +} +stop() { + echo -n "Shutting down Winbind services: " + RETVAL=1 + if [ "`grep -i 'winbind uid' /etc/samba/smb.conf | egrep -v [\#\;]`" ]; then + killproc winbindd + RETVAL=$? + fi + echo + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/winbind + return $RETVAL +} +restart() { + stop + start +} +reload() { + export TMPDIR="/var/tmp" + echo -n "Checking domain trusts: " + killproc winbindd -HUP + RETVAL=$? + echo + return $RETVAL +} +mdkstatus() { + status winbindd +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + restart + ;; + reload) + reload + ;; + status) + mdkstatus + ;; + condrestart) + [ -f /var/lock/subsys/winbindd ] && restart || : + ;; + *) + echo "Usage: $0 {start|stop|restart|status|condrestart}" + exit 1 +esac + +exit $? -- cgit From e7f8c2e97eb48b622a5222f09f3d10ba59323751 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 21 Oct 2002 15:25:36 +0000 Subject: detect rpm v4.1 (RedHat 8.0) (This used to be commit 67dfc8df154893fcd7ed3ea55e04e2cb350ff972) --- packaging/RedHat/makerpms.sh.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packaging') diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index 0b20785129..aedf421882 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -30,6 +30,7 @@ GRPID=`id -g` VERSION='PVERSION' RPMVER=`rpm --version | awk '{print $3}'` +RPM="rpm" echo The RPM Version on this machine is: $RPMVER case $RPMVER in @@ -43,6 +44,12 @@ case $RPMVER in sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2.spec > samba.spec sed -e "s/MANDIR_MACRO/\%\{prefix\}\/man/g" < samba2-devel.spec > samba-devel.spec ;; + 4.1*) + echo Building for RPM v4.1 + RPM="rpmbuild" + sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2.spec > samba.spec + sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2-devel.spec > samba-devel.spec + ;; 4*) echo Building for RPM v4.x sed -e "s/MANDIR_MACRO/\%\{_mandir\}/g" < samba2.spec > samba.spec -- cgit From 24beb2672a08aa85995df3c85d2a581e506f93d7 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 21 Oct 2002 20:32:12 +0000 Subject: trying to sync with SAMBA_2_2 (This used to be commit e67b9fa1dd579ab3b1a5e2142185ce24e1c27c2b) --- packaging/RedHat/README | 12 ++-- packaging/RedHat/findsmb | 145 -------------------------------------- packaging/RedHat/samba2.spec.tmpl | 113 ++++++++++++++++++----------- 3 files changed, 80 insertions(+), 190 deletions(-) delete mode 100755 packaging/RedHat/findsmb (limited to 'packaging') diff --git a/packaging/RedHat/README b/packaging/RedHat/README index 210248fa35..646b10dbbb 100644 --- a/packaging/RedHat/README +++ b/packaging/RedHat/README @@ -1,11 +1,13 @@ -Preparation Date: Fri Aug 21, 1998 -Preparer: John H Terpstra +Preparer: Gerald Carter -Instructions: Preparing Samba Packages for Red Hat Linux 5.X +Instructions: Preparing Samba Packages for Red Hat Linux =============================================================== -We provide support only for current versions of Red Hat Linux. +We provide support only for the latest stable release of major +branches (e.g 6.2, 7.3, and 8.0). The makerpms.sh script +supports rpm version 2.x, 3.x, and 4.x To produce the RPMS simply type: - sh makerpms.sh + + root# sh makerpms.sh diff --git a/packaging/RedHat/findsmb b/packaging/RedHat/findsmb deleted file mode 100755 index 04bc608050..0000000000 --- a/packaging/RedHat/findsmb +++ /dev/null @@ -1,145 +0,0 @@ -#!/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 { -# The Netbios name can contain lot of characters also '<' '>' -# and spaces. The follwing cure inside name space but not -# names starting or ending with spaces - /(.{1,15})\s+<00>\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 ($_) { -# Same as before for space and characters - /(.{1,15})\s+<00>\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/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 0766653c23..af631a0784 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -4,46 +4,35 @@ Version: PVERSION Release: PRELEASE Copyright: GNU GPL version 2 Group: Networking -Source: ftp://samba.org/pub/samba/samba-%{version}.tar.gz -Packager: John H Terpstra [Samba-Team] +Source: http://download.samba.org/samba/ftp/samba-%{version}.tar.gz +Packager: Gerald Carter [Samba-Team] Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils -Provides: samba = %{version}, samba-common = %{version}, samba-client = %{version}, samba-swat = %{version} +Provides: samba = %{version} +Obsoletes: samba-common, samba-client, samba-swat BuildRoot: /var/tmp/samba Prefix: /usr %description -Samba provides an SMB server which can be used to provide -network services to SMB (sometimes called "Lan Manager") -clients, including various versions of MS Windows, OS/2, -and other Linux machines. Samba also provides some SMB -clients, which complement the built-in SMB filesystem -in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols -and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) -protocol. - -Samba-2.2 features working NT Domain Control capability and -includes the SWAT (Samba Web Administration Tool) that -allows samba's smb.conf file to be remotely managed using your -favourite web browser. For the time being this is being -enabled on TCP port 901 via inetd. - Users are advised to use Samba-2.2 as a Windows NT4 -Domain Controller only on networks that do NOT have a Windows -NT Domain Controller. This release does NOT as yet have -Backup Domain control ability. +Samba provides an SMB/CIFS server which can be used to provide +network file and print services to SMB/CIFS 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. 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 +* Thu Jun 6 2002 Gerald Carter + - add separate winbindd init script + - build and install libsmbclient -NOTE: Red Hat Linux uses PAM which has integrated support -for Shadow passwords and quotas. Do NOT recompile with the -SHADOW_PWD option enabled +* Sun Jun 2 2002 Gerald Carter + - include audit and recycle VFS modules in /usr/lib/samba -%changelog * Mon May 6 2002 Gerald Carter - moved findsmb to a standard component in samba's "make install". Removed from specfile. @@ -150,6 +139,7 @@ SHADOW_PWD option enabled %setup %build +## Build main Samba source cd source %ifarch ia64 @@ -169,15 +159,25 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ --with-msdfs \ --with-smbmount \ --with-pam \ + --with-pam_smbpass \ --with-syslog \ --with-utmp \ --with-sambabook=%{prefix}/share/swat/using_samba \ - --with-swatdir=%{prefix}/share/swat + --with-swatdir=%{prefix}/share/swat \ + --with-libsmbclient make -j${NUMCPU} proto make -j${NUMCPU} all nsswitch/libnss_wins.so make -j${NUMCPU} debug2html make -j${NUMCPU} bin/smbspool +## Build VFS modules +cd ../examples/VFS +CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ + --prefix=%{prefix} \ + --localstatedir=/var +make + + %install rm -rf $RPM_BUILD_ROOT @@ -194,22 +194,25 @@ mkdir -p $RPM_BUILD_ROOT/var/cache/samba mkdir -p $RPM_BUILD_ROOT/var/{log,run}/samba mkdir -p $RPM_BUILD_ROOT/var/spool/samba mkdir -p $RPM_BUILD_ROOT/lib/security +mkdir -p $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs +mkdir -p $RPM_BUILD_ROOT%{prefix}/{lib,include} # Install standard binary files for i in nmblookup smbclient smbpasswd smbstatus testparm testprns \ - make_printerdef rpcclient smbspool smbcacls smbcontrol wbinfo + rpcclient smbspool smbcacls smbcontrol wbinfo smbmnt do -install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin + install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/bin done -for i in mksmbpasswd.sh smbtar + +for i in mksmbpasswd.sh smbtar findsmb do -install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin + install -m755 source/script/$i $RPM_BUILD_ROOT%{prefix}/bin done # Install secure binary files -for i in smbd nmbd swat smbmount smbumount smbmnt debug2html winbindd +for i in smbd nmbd swat smbmount smbumount debug2html winbindd do -install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin + install -m755 source/bin/$i $RPM_BUILD_ROOT%{prefix}/sbin done # we need a symlink for mount to recognise the smb and smbfs filesystem types @@ -221,6 +224,7 @@ ln -sf %{prefix}/sbin/smbmount $RPM_BUILD_ROOT/sbin/mount.smb cd source make BASEDIR=$RPM_BUILD_ROOT/usr \ LIBDIR=$RPM_BUILD_ROOT/etc/samba \ + VARDIR=$RPM_BUILD_ROOT/var \ SBINDIR=$RPM_BUILD_ROOT%{prefix}/sbin \ BINDIR=$RPM_BUILD_ROOT%{prefix}/bin \ MANDIR=$RPM_BUILD_ROOTMANDIR_MACRO \ @@ -229,7 +233,7 @@ make BASEDIR=$RPM_BUILD_ROOT/usr \ installman installcp installswat cd .. -# Install the nsswitch library extension file +# Install the nsswitch wins library install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib # Make link for wins resolver @@ -239,24 +243,43 @@ install -m755 source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/lib install -m755 source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib install -m755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security +# Install pam_smbpass.so +install -m755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security + +# Install the VFS modules +install -m755 examples/VFS/recycle/recycle.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs +install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/etc/samba/ +install -m755 examples/VFS/block/block.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs +install -m644 examples/VFS/block/samba-block.conf $RPM_BUILD_ROOT/etc/samba/ +install -m755 examples/VFS/audit.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs + +# clean out VFS directory since it will get installed as documentation later +(cd examples/VFS; make clean) + +# libsmbclient +install -m 755 source/bin/libsmbclient.so $RPM_BUILD_ROOT%{prefix}/lib/ +install -m 755 source/bin/libsmbclient.a $RPM_BUILD_ROOT%{prefix}/lib/ +install -m 644 source/include/libsmbclient.h $RPM_BUILD_ROOT%{prefix}/include/ + # Install SWAT helper files for i in swat/help/*.html docs/htmldocs/*.html do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/help done for i in swat/images/*.gif do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/images done for i in swat/include/*.html do -install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include + install -m644 $i $RPM_BUILD_ROOT%{prefix}/share/swat/include done # Install the miscellany install -m644 swat/README $RPM_BUILD_ROOT%{prefix}/share/swat install -m755 packaging/RedHat/smbprint $RPM_BUILD_ROOT%{prefix}/bin install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb +install -m755 packaging/RedHat/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind install -m755 packaging/RedHat/smb.init $RPM_BUILD_ROOT%{prefix}/sbin/samba install -m644 packaging/RedHat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba install -m644 packaging/RedHat/smb.conf $RPM_BUILD_ROOT/etc/samba/smb.conf @@ -271,7 +294,9 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add smb +/sbin/chkconfig --add winbind /sbin/chkconfig smb off +/sbin/chkconfig winbind off echo "Looking for old /etc/smb.conf..." if [ -f /etc/smb.conf -a ! -f /etc/samba/smb.conf ]; then @@ -465,7 +490,7 @@ fi %{prefix}/sbin/smbd %{prefix}/sbin/nmbd %{prefix}/sbin/swat -%{prefix}/sbin/smbmnt +%{prefix}/bin/smbmnt %{prefix}/sbin/smbmount %{prefix}/sbin/smbumount %{prefix}/sbin/winbindd @@ -490,6 +515,10 @@ fi %{prefix}/bin/smbcacls %{prefix}/bin/wbinfo %attr(755,root,root) /lib/libnss_wins.s* +%attr(755,root,root) %{prefix}/lib/samba/vfs/*.so +%{prefix}/include/libsmbclient.h +%{prefix}/lib/libsmbclient.a +%{prefix}/lib/libsmbclient.so %{prefix}/share/swat/help/* %{prefix}/share/swat/images/* %{prefix}/share/swat/include/header.html @@ -497,10 +526,13 @@ fi %{prefix}/share/swat/using_samba/* %config(noreplace) /etc/samba/lmhosts %config(noreplace) /etc/samba/smb.conf +%config(noreplace) /etc/samba/recycle.conf +%config(noreplace) /etc/samba/samba-block.conf %config(noreplace) /etc/samba/smbusers /etc/samba/samba.stack /etc/samba/samba.xinetd /etc/rc.d/init.d/smb +/etc/rc.d/init.d/winbind /etc/logrotate.d/samba %config(noreplace) /etc/pam.d/samba MANDIR_MACRO/man1/* @@ -514,3 +546,4 @@ MANDIR_MACRO/man8/* %attr(1777,root,root) %dir /var/spool/samba %attr(-,root,root) /lib/libnss_winbind.so %attr(-,root,root) /lib/security/pam_winbind.so +%attr(-,root,root) /lib/security/pam_smbpass.so -- cgit From bc8779fa7eb194e8eff619b4a770ee8c707532f0 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 21 Oct 2002 21:59:51 +0000 Subject: Initial build for Samba 3.0. Not finished, but at least the makerpms.sh completes successfully. (This used to be commit d7ef8cf8da462a1ea9cf114c7ffd33c9a5c3fd9d) --- packaging/RedHat/makerpms.sh.tmpl | 2 +- packaging/RedHat/samba2.spec.tmpl | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) (limited to 'packaging') diff --git a/packaging/RedHat/makerpms.sh.tmpl b/packaging/RedHat/makerpms.sh.tmpl index aedf421882..4b01e13df3 100644 --- a/packaging/RedHat/makerpms.sh.tmpl +++ b/packaging/RedHat/makerpms.sh.tmpl @@ -69,7 +69,7 @@ if [ z$1 = z"devel" ]; then (cd ../../.. ; mv samba samba-${VERSION} ) fi -( cd ../../.. ; tar --exclude=CVS -czvf ${SRCDIR}/samba-${VERSION}.tar.gz samba-${VERSION} ) +( cd ../../.. ; tar --exclude=CVS -cf - samba-${VERSION} | bzip2 > ${SRCDIR}/samba-${VERSION}.tar.bz2 ) cp -av samba.spec ${SPECDIR} cp -av samba-devel.spec ${SPECDIR} diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index af631a0784..077b1b1fd5 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -4,7 +4,7 @@ Version: PVERSION Release: PRELEASE Copyright: GNU GPL version 2 Group: Networking -Source: http://download.samba.org/samba/ftp/samba-%{version}.tar.gz +Source: http://download.samba.org/samba/ftp/samba-%{version}.tar.bz2 Packager: Gerald Carter [Samba-Team] Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 Prereq: chkconfig fileutils @@ -172,9 +172,6 @@ make -j${NUMCPU} bin/smbspool ## Build VFS modules cd ../examples/VFS -CFLAGS="$RPM_OPT_FLAGS $EXTRA" ./configure \ - --prefix=%{prefix} \ - --localstatedir=/var make @@ -247,11 +244,9 @@ install -m755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security install -m755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security # Install the VFS modules -install -m755 examples/VFS/recycle/recycle.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs -install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/etc/samba/ -install -m755 examples/VFS/block/block.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs -install -m644 examples/VFS/block/samba-block.conf $RPM_BUILD_ROOT/etc/samba/ +install -m755 examples/VFS/recycle.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs install -m755 examples/VFS/audit.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs +install -m755 examples/VFS/netatalk.so $RPM_BUILD_ROOT%{prefix}/lib/samba/vfs # clean out VFS directory since it will get installed as documentation later (cd examples/VFS; make clean) @@ -505,9 +500,6 @@ fi %{prefix}/bin/findsmb %{prefix}/bin/smbstatus %{prefix}/bin/nmblookup -%{prefix}/bin/make_smbcodepage -%{prefix}/bin/make_unicodemap -%{prefix}/bin/make_printerdef %{prefix}/bin/smbpasswd %{prefix}/bin/smbtar %{prefix}/bin/smbprint @@ -526,8 +518,6 @@ fi %{prefix}/share/swat/using_samba/* %config(noreplace) /etc/samba/lmhosts %config(noreplace) /etc/samba/smb.conf -%config(noreplace) /etc/samba/recycle.conf -%config(noreplace) /etc/samba/samba-block.conf %config(noreplace) /etc/samba/smbusers /etc/samba/samba.stack /etc/samba/samba.xinetd @@ -539,7 +529,6 @@ MANDIR_MACRO/man1/* MANDIR_MACRO/man5/* MANDIR_MACRO/man7/* MANDIR_MACRO/man8/* -%dir /etc/codepages/* %attr(755,root,root) %dir /var/cache/samba %dir /var/log/samba %dir /var/run/samba -- cgit From 6ba55f9b279e235752d9cefd37a027c700172c7d Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 21 Oct 2002 23:13:09 +0000 Subject: installcp script is no longer used... (This used to be commit 5c2c02b600790570c2036010cbfd7bed1a1598ae) --- packaging/RedHat/samba2.spec.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 077b1b1fd5..4e38e66517 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -227,7 +227,7 @@ make BASEDIR=$RPM_BUILD_ROOT/usr \ MANDIR=$RPM_BUILD_ROOTMANDIR_MACRO \ SWATDIR=$RPM_BUILD_ROOT/usr/share/swat \ SAMBABOOK=$RPM_BUILD_ROOT/usr/share/swat/using_samba \ - installman installcp installswat + installman installswat cd .. # Install the nsswitch wins library -- cgit From 106ec982d5447b5f23f0bb125a49cebc9915f3d9 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Sun, 27 Oct 2002 00:04:13 +0000 Subject: Remove make_printerdef from binary install process. (This used to be commit 73c28c527d1030d1656362474c14d49581efdbeb) --- packaging/Caldera/OpenLinux/samba3.spec.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/Caldera/OpenLinux/samba3.spec.tmpl b/packaging/Caldera/OpenLinux/samba3.spec.tmpl index b572672079..8bdc4eb0d7 100644 --- a/packaging/Caldera/OpenLinux/samba3.spec.tmpl +++ b/packaging/Caldera/OpenLinux/samba3.spec.tmpl @@ -267,7 +267,7 @@ strip $DESTDIR/usr/bin/smb{mount,mnt,umount} ln -s /usr/bin/smbumount umount.smbfs ) # First install /usr/bin progs -for i in smbfilter make_printerdef debug2html +for i in smbfilter debug2html do install -m 755 source/bin/$i $DESTDIR/usr/bin done -- cgit From a207251c2fb3145201e4bbd770bb0d79c7180eb5 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Wed, 30 Oct 2002 03:50:23 +0000 Subject: Adding Buchan Milne's updates. (This used to be commit d816c35c1d8db343c76a32a6d01952d2c192b092) --- packaging/Mandrake/README | 4 +- packaging/Mandrake/README.mandrake | 117 ++ packaging/Mandrake/makerpms-cvs.sh | 34 + packaging/Mandrake/makerpms.sh.tmpl | 81 +- packaging/Mandrake/samba-2.2.0-buildroot.patch | 15 + packaging/Mandrake/samba-2.2.0-gawk.patch | 11 + packaging/Mandrake/samba-2.2.5-gp-reloc-fix.patch | 12 + packaging/Mandrake/samba-print-pdf.sh | 59 + packaging/Mandrake/samba-slapd-include.conf | 15 + packaging/Mandrake/samba.log | 4 +- packaging/Mandrake/samba.xinetd | 2 +- packaging/Mandrake/samba2.spec.tmpl | 1866 ++++++++++++++++++--- packaging/Mandrake/smb.conf | 236 ++- packaging/Mandrake/smb.init | 9 +- packaging/Mandrake/smbmount-sbin.patch | 15 + packaging/Mandrake/smbw.patch | 10 + packaging/Mandrake/system-auth-winbind.pamd | 17 + packaging/Mandrake/winbind.init | 93 + 18 files changed, 2316 insertions(+), 284 deletions(-) create mode 100644 packaging/Mandrake/README.mandrake create mode 100644 packaging/Mandrake/makerpms-cvs.sh create mode 100644 packaging/Mandrake/samba-2.2.0-buildroot.patch create mode 100644 packaging/Mandrake/samba-2.2.0-gawk.patch create mode 100644 packaging/Mandrake/samba-2.2.5-gp-reloc-fix.patch create mode 100644 packaging/Mandrake/samba-print-pdf.sh create mode 100644 packaging/Mandrake/samba-slapd-include.conf create mode 100644 packaging/Mandrake/smbmount-sbin.patch create mode 100644 packaging/Mandrake/smbw.patch create mode 100644 packaging/Mandrake/system-auth-winbind.pamd create mode 100644 packaging/Mandrake/winbind.init (limited to 'packaging') diff --git a/packaging/Mandrake/README b/packaging/Mandrake/README index 1c5bb30edc..5ccfb1d22b 100644 --- a/packaging/Mandrake/README +++ b/packaging/Mandrake/README @@ -1,7 +1,7 @@ Preparation Date: Sat Apr 14 2001 -Preparer: John H Terpstra +Preparer: Gerald Carter -Instructions: Preparing Samba Packages for Mandrake Linux 7.2 +Instructions: Preparing Samba Packages for Mandrake Linux 8.x =============================================================== We provide support only for current versions of Mandrake Linux. diff --git a/packaging/Mandrake/README.mandrake b/packaging/Mandrake/README.mandrake new file mode 100644 index 0000000000..83920f238f --- /dev/null +++ b/packaging/Mandrake/README.mandrake @@ -0,0 +1,117 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +The Mandrake samba spec file used for packaging for Mandrake and cooker +is now also used by the makerpms.sh script, and you can pass any options +that you would normally pass to rpm via the makerpms.sh script. + +Note that only release after 8.1 support passing options using +"--with