1--- Makefile.Linux
2+++ Makefile.Linux	1998/05/06 15:58:42
3@@ -0,0 +1,35 @@
4+#
5+#
6+# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux
7+#
8+# Copyright (C) 1996 S.u.S.E. GmbH Fuerth, Germany.
9+#
10+# Please send bug-fixes or comments to feedback@suse.de.
11+#
12+# Author: Florian La Roche  <florian@suse.de>
13+#         Volker Lendecke   <vl@suse.de>
14+#
15+#
16+
17+doc=/usr/doc/packages/samba
18+
19+compile:
20+	make -C source
21+
22+install:
23+	make install -C source
24+	mkdir -p $(doc)
25+	cp -a docs/* $(doc)
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+	install -m 755 source/mksmbpasswd.sh /usr/bin/mksmbpasswd.sh
33+	ln -sf ../smb /sbin/init.d/rc2.d/S20smb
34+	ln -sf ../smb /sbin/init.d/rc2.d/K20smb
35+	ln -sf ../smb /sbin/init.d/rc3.d/S20smb
36+	ln -sf ../smb /sbin/init.d/rc3.d/K20smb
37+	mkdir -p /var/adm/fillup-templates
38+	cp rc.config.samba /var/adm/fillup-templates
39--- doinst.sh
40+++ doinst.sh	1998/05/06 15:54:52
41@@ -0,0 +1,15 @@
42+#
43+# install/doinst.sh - to be done after extraction
44+#
45+# Copyright (c) 1997 S.u.S.E. GmbH Fuerth, Germany.
46+#
47+#
48+echo "Updating etc/rc.config..."
49+if [ -x bin/fillup ] ; then
50+  bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba
51+else
52+  echo "ERROR: fillup not found. This should not happen. Please compare"
53+  echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and"
54+  echo "update by hand."
55+fi
56+
57--- rc
58+++ rc	1998/05/06 15:54:52
59@@ -0,0 +1,32 @@
60+#! /bin/sh
61+# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
62+# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
63+#
64+# Author: Bastian Epting, StarDivision GmbH <be@stardivision.de>
65+#      Florian La Roche, <florian@suse.de>
66+#      Volker Lendecke, <vl@suse.de>
67+#
68+
69+. /etc/rc.config
70+
71+test "$START_SMB" = "yes" || exit 0
72+
73+case "$1" in
74+    start)
75+        echo -n "Starting SMB services."
76+        /usr/sbin/nmbd -D
77+        /usr/sbin/smbd -D
78+        echo
79+        ;;
80+    stop)
81+        echo -n "Shutting down SMB services."
82+        killproc -TERM /usr/sbin/nmbd
83+        killproc -TERM /usr/sbin/smbd
84+        echo
85+        ;;
86+    *)
87+        echo "Usage: $0 {start|stop}"
88+        exit 1
89+esac
90+
91+exit 0
92--- rc.config.samba
93+++ rc.config.samba	1998/05/06 15:54:52
94@@ -0,0 +1,5 @@
95+#
96+# start samba? ("yes" or "no")
97+# Windows 95 / NT  -  File- and Printservices
98+#
99+START_SMB="no"
100--- smb.conf
101+++ smb.conf	1998/05/06 15:54:52
102@@ -0,0 +1,48 @@
103+[global]
104+   workgroup = arbeitsgruppe
105+   guest account = nobody
106+   keep alive = 30
107+   os level = 2
108+   security = user
109+   printing = bsd
110+   printcap name = /etc/printcap
111+   load printers = yes
112+
113+; Please uncomment the following entry and replace the 
114+; ip number and netmask with the correct numbers for
115+; your ethernet interface.
116+;   interfaces = 192.168.1.1/255.255.255.0
117+   
118+; If you want Samba to act as a wins server, please set
119+; 'wins support = yes'
120+   wins support = no
121+
122+; If you want Samba to use an existing wins server,
123+; please uncomment the following line and replace
124+; the dummy with the wins server's ip number.
125+;   wins server = 192.168.1.1
126+
127+[homes]
128+   comment = Heimatverzeichnis
129+   browseable = no
130+   read only = no
131+   create mode = 0750
132+
133+; The following share gives all users access to the Server's CD drive,
134+; assuming it is mounted under /cd. To enable this share, please remove
135+; the semicolons before the lines
136+;
137+; [cdrom]
138+;   comment = Linux CD-ROM
139+;   path = /cd
140+;   read only = yes
141+;   locking = no
142+
143+[printers]
144+   comment = All Printers
145+   browseable = no
146+   printable = yes
147+   public = no
148+   read only = yes
149+   create mode = 0700
150+   directory = /tmp
151--- source/Makefile
152+++ source/Makefile	1998/05/06 15:54:52
153@@ -5,11 +5,11 @@
154 ###########################################################################
155 
156 # The base directory for all samba files
157-BASEDIR = /usr/local/samba
158+BASEDIR = /usr
159 
160 # The base manpages directory to put the man pages in
161 # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
162-MANDIR = /usr/local/man
163+MANDIR = /usr/man
164 
165 # The directories to put things in. If you use multiple
166 # architectures or share the samba binaries across NFS then
167@@ -18,16 +18,16 @@
168 #       normally only applies to nmbd and smbd
169 #       SBINDIR implies a secure binary directory
170 BINDIR = $(BASEDIR)/bin
171-SBINDIR = $(BASEDIR)/bin
172-LIBDIR = $(BASEDIR)/lib
173-VARDIR = $(BASEDIR)/var
174+SBINDIR = $(BASEDIR)/sbin
175+LIBDIR = $(BASEDIR)/lib/samba
176+VARDIR = /var/log
177 
178 # The permissions to give the executables
179 INSTALLPERMS = 0755
180 
181 # Add any optimisation or debugging flags here
182 # add -DSYSLOG for syslog support
183-FLAGS1 = -O
184+FLAGS1 = -O2
185 LIBS1 = 
186 
187 # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
188@@ -47,15 +47,15 @@
189 # or in smb.conf (see smb.conf(5))
190 SMBLOGFILE = $(VARDIR)/log.smb
191 NMBLOGFILE = $(VARDIR)/log.nmb
192-CONFIGFILE = $(LIBDIR)/smb.conf
193-LMHOSTSFILE = $(LIBDIR)/lmhosts
194-DRIVERFILE = $(LIBDIR)/printers.def
195+CONFIGFILE = /etc/smb.conf
196+LMHOSTSFILE = /etc/lmhosts
197+DRIVERFILE = /etc/printers.def
198 SMB_PASSWD = $(BINDIR)/smbpasswd
199-SMB_PASSWD_FILE = $(BASEDIR)/private/smbpasswd
200-WEB_ROOT = $(BASEDIR)
201+SMB_PASSWD_FILE = /etc/smbpasswd
202+WEB_ROOT = /etc
203 
204 # the directory where lock files go
205-LOCKDIR = $(VARDIR)/locks
206+LOCKDIR = /var/lock
207 
208 # The directory where code page definition files go
209 CODEPAGEDIR = $(LIBDIR)/codepages
210@@ -206,7 +206,7 @@
211 # contributed by Andrew.Tridgell@anu.edu.au
212 # add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
213 # right libraries and includes
214-# FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
215+FLAGSM = -DLINUX -DSHADOW_PWD -DFAST_SHARE_MODES
216 # LIBSM = -lshadow
217 
218 # Use this for Linux without shadow passwords or for any Linux
219--- source/includes.h
220+++ source/includes.h	1998/05/06 15:54:52
221@@ -244,13 +244,6 @@
222 #define USE_SETFS
223 #endif
224 #endif
225-#ifdef SHADOW_PWD
226-#if _LINUX_C_LIB_VERSION_MAJOR < 5
227-#ifndef crypt
228-#define crypt pw_encrypt
229-#endif
230-#endif
231-#endif
232 #endif
233 
234 #ifdef SUNOS4
235