Added SuSE packaging files.
[ira/wip.git] / packaging / SuSE / 5.2 / samba-1.9.18p5.dif
1 --- Makefile.Linux
2 +++ Makefile.Linux      1998/04/27 07:49:10
3 @@ -0,0 +1,34 @@
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 +       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
38 --- doinst.sh
39 +++ doinst.sh   1998/04/27 07:49:10
40 @@ -0,0 +1,15 @@
41 +#
42 +# install/doinst.sh - to be done after extraction
43 +#
44 +# Copyright (c) 1997 S.u.S.E. GmbH Fuerth, Germany.
45 +#
46 +#
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
50 +else
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."
54 +fi
55 +
56 --- rc
57 +++ rc  1998/04/27 07:49:10
58 @@ -0,0 +1,32 @@
59 +#! /bin/sh
60 +# Copyright (c) 1996 StarDivision GmbH. All rights reserved.
61 +# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
62 +#
63 +# Author: Bastian Epting, StarDivision GmbH <be@stardivision.de>
64 +#      Florian La Roche, <florian@suse.de>
65 +#      Volker Lendecke, <vl@suse.de>
66 +#
67 +
68 +. /etc/rc.config
69 +
70 +test "$START_SMB" = "yes" || exit 0
71 +
72 +case "$1" in
73 +    start)
74 +        echo -n "Starting SMB services."
75 +        /usr/sbin/nmbd -D
76 +        /usr/sbin/smbd -D
77 +        echo
78 +        ;;
79 +    stop)
80 +        echo -n "Shutting down SMB services."
81 +        killproc -TERM /usr/sbin/nmbd
82 +        killproc -TERM /usr/sbin/smbd
83 +        echo
84 +        ;;
85 +    *)
86 +        echo "Usage: $0 {start|stop}"
87 +        exit 1
88 +esac
89 +
90 +exit 0
91 --- rc.config.samba
92 +++ rc.config.samba     1998/04/27 07:49:10
93 @@ -0,0 +1,5 @@
94 +#
95 +# start samba? ("yes" or "no")
96 +# Windows 95 / NT  -  File- and Printservices
97 +#
98 +START_SMB="no"
99 --- smb.conf
100 +++ smb.conf    1998/04/27 07:49:10
101 @@ -0,0 +1,48 @@
102 +[global]
103 +   workgroup = arbeitsgruppe
104 +   guest account = nobody
105 +   keep alive = 30
106 +   os level = 2
107 +   security = user
108 +   printing = bsd
109 +   printcap name = /etc/printcap
110 +   load printers = yes
111 +
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
116 +   
117 +; If you want Samba to act as a wins server, please set
118 +; 'wins support = yes'
119 +   wins support = no
120 +
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
125 +
126 +[homes]
127 +   comment = Heimatverzeichnis
128 +   browseable = no
129 +   read only = no
130 +   create mode = 0750
131 +
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
135 +;
136 +; [cdrom]
137 +;   comment = Linux CD-ROM
138 +;   path = /cd
139 +;   read only = yes
140 +;   locking = no
141 +
142 +[printers]
143 +   comment = All Printers
144 +   browseable = no
145 +   printable = yes
146 +   public = no
147 +   read only = yes
148 +   create mode = 0700
149 +   directory = /tmp
150 --- source/Makefile
151 +++ source/Makefile     1998/04/27 07:49:10
152 @@ -5,11 +5,11 @@
153  ###########################################################################
154  
155  # The base directory for all samba files
156 -BASEDIR = /usr/local/samba
157 +BASEDIR = /usr
158  
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
162 +MANDIR = /usr/man
163  
164  # The directories to put things in. If you use multiple
165  # architectures or share the samba binaries across NFS then
166 @@ -18,16 +18,16 @@
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
175 +VARDIR = /var/log
176  
177  # The permissions to give the executables
178  INSTALLPERMS = 0755
179  
180  # Add any optimisation or debugging flags here
181  # add -DSYSLOG for syslog support
182 -FLAGS1 = -O
183 +FLAGS1 = -O2
184  LIBS1 = 
185  
186  # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
187 @@ -47,15 +47,15 @@
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
201 +WEB_ROOT = /etc
202  
203  # the directory where lock files go
204 -LOCKDIR = $(VARDIR)/locks
205 +LOCKDIR = /var/lock
206  
207  # The directory where code page definition files go
208  CODEPAGEDIR = $(LIBDIR)/codepages
209 @@ -206,7 +206,7 @@
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
215  # LIBSM = -lshadow
216  
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
220 @@ -244,13 +244,6 @@
221  #define USE_SETFS
222  #endif
223  #endif
224 -#ifdef SHADOW_PWD
225 -#if _LINUX_C_LIB_VERSION_MAJOR < 5
226 -#ifndef crypt
227 -#define crypt pw_encrypt
228 -#endif
229 -#endif
230 -#endif
231  #endif
232  
233  #ifdef SUNOS4