summaryrefslogtreecommitdiff
path: root/packaging/SuSE/5.2/samba-1.9.18p5.dif
blob: 575ed917ca1efa3719e969488c25df4edac31551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
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  <florian@suse.de>
+#         Volker Lendecke   <vl@suse.de>
+#
+#
+
+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 <be@stardivision.de>
+#      Florian La Roche, <florian@suse.de>
+#      Volker Lendecke, <vl@suse.de>
+#
+
+. /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