2 +++ Makefile.Linux 1998/04/27 07:49:10
6 +# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux
8 +# Copyright (C) 1996 S.u.S.E. GmbH Fuerth, Germany.
10 +# Please send bug-fixes or comments to feedback@suse.de.
12 +# Author: Florian La Roche <florian@suse.de>
13 +# Volker Lendecke <vl@suse.de>
17 +doc=/usr/doc/packages/samba
23 + make install -C source
26 + rm -rf $(doc)/*.[0-9]
27 + cp -R examples $(doc)
28 + chmod 644 `find $(doc) -type f`
29 + chmod 755 `find $(doc) -type d`
30 + install -m 644 smb.conf /etc/smb.conf
31 + install rc /sbin/init.d/smb
32 + ln -sf ../smb /sbin/init.d/rc2.d/S20smb
33 + ln -sf ../smb /sbin/init.d/rc2.d/K20smb
34 + ln -sf ../smb /sbin/init.d/rc3.d/S20smb
35 + ln -sf ../smb /sbin/init.d/rc3.d/K20smb
36 + mkdir -p /var/adm/fillup-templates
37 + cp rc.config.samba /var/adm/fillup-templates
39 +++ doinst.sh 1998/04/27 07:49:10
42 +# install/doinst.sh - to be done after extraction
44 +# Copyright (c) 1997 S.u.S.E. GmbH Fuerth, Germany.
47 +echo "Updating etc/rc.config..."
48 +if [ -x bin/fillup ] ; then
49 + bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba
51 + echo "ERROR: fillup not found. This should not happen. Please compare"
52 + echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and"
53 + echo "update by hand."
57 +++ rc 1998/04/27 07:49:10
60 +# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
61 +# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
63 +# Author: Bastian Epting, StarDivision GmbH <be@stardivision.de>
64 +# Florian La Roche, <florian@suse.de>
65 +# Volker Lendecke, <vl@suse.de>
70 +test "$START_SMB" = "yes" || exit 0
74 + echo -n "Starting SMB services."
80 + echo -n "Shutting down SMB services."
81 + killproc -TERM /usr/sbin/nmbd
82 + killproc -TERM /usr/sbin/smbd
86 + echo "Usage: $0 {start|stop}"
92 +++ rc.config.samba 1998/04/27 07:49:10
95 +# start samba? ("yes" or "no")
96 +# Windows 95 / NT - File- and Printservices
100 +++ smb.conf 1998/04/27 07:49:10
103 + workgroup = arbeitsgruppe
104 + guest account = nobody
109 + printcap name = /etc/printcap
110 + load printers = yes
112 +; Please uncomment the following entry and replace the
113 +; ip number and netmask with the correct numbers for
114 +; your ethernet interface.
115 +; interfaces = 192.168.1.1/255.255.255.0
117 +; If you want Samba to act as a wins server, please set
118 +; 'wins support = yes'
121 +; If you want Samba to use an existing wins server,
122 +; please uncomment the following line and replace
123 +; the dummy with the wins server's ip number.
124 +; wins server = 192.168.1.1
127 + comment = Heimatverzeichnis
132 +; The following share gives all users access to the Server's CD drive,
133 +; assuming it is mounted under /cd. To enable this share, please remove
134 +; the semicolons before the lines
137 +; comment = Linux CD-ROM
143 + comment = All Printers
151 +++ source/Makefile 1998/04/27 07:49:10
153 ###########################################################################
155 # The base directory for all samba files
156 -BASEDIR = /usr/local/samba
159 # The base manpages directory to put the man pages in
160 # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
161 -MANDIR = /usr/local/man
164 # The directories to put things in. If you use multiple
165 # architectures or share the samba binaries across NFS then
167 # normally only applies to nmbd and smbd
168 # SBINDIR implies a secure binary directory
169 BINDIR = $(BASEDIR)/bin
170 -SBINDIR = $(BASEDIR)/bin
171 -LIBDIR = $(BASEDIR)/lib
172 -VARDIR = $(BASEDIR)/var
173 +SBINDIR = $(BASEDIR)/sbin
174 +LIBDIR = $(BASEDIR)/lib/samba
177 # The permissions to give the executables
180 # Add any optimisation or debugging flags here
181 # add -DSYSLOG for syslog support
186 # You will need to use a ANSI C compiler. This means under SunOS 4 you can't
188 # or in smb.conf (see smb.conf(5))
189 SMBLOGFILE = $(VARDIR)/log.smb
190 NMBLOGFILE = $(VARDIR)/log.nmb
191 -CONFIGFILE = $(LIBDIR)/smb.conf
192 -LMHOSTSFILE = $(LIBDIR)/lmhosts
193 -DRIVERFILE = $(LIBDIR)/printers.def
194 +CONFIGFILE = /etc/smb.conf
195 +LMHOSTSFILE = /etc/lmhosts
196 +DRIVERFILE = /etc/printers.def
197 SMB_PASSWD = $(BINDIR)/smbpasswd
198 -SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
199 -WEB_ROOT = $(BASEDIR)
200 +SMB_PASSWD_FILE = /etc/smbpasswd
203 # the directory where lock files go
204 -LOCKDIR = $(VARDIR)/locks
207 # The directory where code page definition files go
208 CODEPAGEDIR = $(LIBDIR)/codepages
210 # contributed by Andrew.Tridgell@anu.edu.au
211 # add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
212 # right libraries and includes
213 -# FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
214 +FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
217 # Use this for Linux without shadow passwords or for any Linux
218 --- source/includes.h
219 +++ source/includes.h 1998/04/27 07:49:10
225 -#if _LINUX_C_LIB_VERSION_MAJOR < 5
227 -#define crypt pw_encrypt