trying to get HEAD building again. If you want the code
[kamenim/samba-autobuild/.git] / packaging / Mandrake / samba2.spec.tmpl
1 # Note that this file exists in Mandrake packaging cvs (as samba3.spec)
2 # and samba cvs (as packaging/Mandrake/samba2.spec.tmpl).
3 # Keep in mind that any changes should take both locations into account
4 # Considerable effort has gone into making this possible, so that only
5 # one spec file is maintained, please don't break it.
6 # It should be possible, without any changes to this file, to build
7 # binary packages on most recent Mandrake releases:
8 # 1)from official source releases, using 'cd packaging/Mandrake; sh makerpms.sh'
9 # 2)from cvs snapshots, using 'cd packaging/Mandrake; sh makerpms-cvs.sh <ver>'
10 # 3)using official source releases and updated Mandrake packaging, by
11 #   'rpm -ba samba.spec'
12 # As such, any sources or patches used in a build from a samba release or
13 # cvs should be submitted for inclusion in samba cvs.
14
15 %define pkg_name        samba
16 %define ver             3.0.0beta2
17 %define rel             3mdk
18 %define vscanver        0.3.3beta1
19 %define libsmbmajor     0
20
21 # Version and release replaced by samba-team at release from samba cvs
22 %define pversion PVERSION
23 %define prelease PRELEASE
24
25 #Check to see if p(version|release) has been replaced (1 if replaced)
26 %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
27 %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi)
28
29 %if %have_pversion
30 %define source_ver      %{pversion}
31 %global _unpackaged_files_terminate_build       0
32 %global _missing_doc_files_terminate_build      0
33 %else
34 %define source_ver      %{ver}
35 %endif
36
37 # We might have a prerelease:
38 %define have_pre %(echo %source_ver|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}')
39 %if %have_pre
40 %define pre_ver %(perl -e '$name="%source_ver"; print ($name =~ /(.*?)[a-z]/);')
41 %define pre_pre %(echo %source_ver|sed -e 's/%pre_ver//g')
42 %endif
43
44 # Check to see if we are running a build from a tarball release from samba.org
45 # (%have_pversion) If so, disable vscan, unless explicitly requested
46 # (--with vscan).
47 %define build_vscan     1
48 %if %have_pversion
49 %define build_vscan     0
50 %{?_with_vscan: %define build_vscan 1}
51 %endif
52
53 # We now do detection of the Mandrake release we are building on:
54 #%define build_cooker %(if [ `awk '{print $3}' /etc/mandrake-release` = "Cooker" ];then echo 1; else echo 0; fi)
55 #%define build_cooker %(if [[ `cat /etc/mandrake-release|grep Cooker` ]];then echo 1; else echo 0; fi)
56 %define build_mdk92 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.2 ];then echo 1; else echo 0; fi)
57 %define build_mdk91 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.1 ];then echo 1; else echo 0; fi)
58 %define build_mdk90 %(if [ `awk '{print $4}' /etc/mandrake-release` = 9.0 ];then echo 1; else echo 0; fi)
59 %define build_mdk82 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.2 ];then echo 1; else echo 0; fi)
60 %define build_mdk81 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.1 ];then echo 1; else echo 0; fi)
61 %define build_mdk80 %(if [ `awk '{print $4}' /etc/mandrake-release` = 8.0 ];then echo 1; else echo 0; fi)
62 %define build_mdk72 %(if [ `awk '{print $4}' /etc/mandrake-release` = 7.2 ];then echo 1; else echo 0; fi)
63 %define build_non_default 0
64
65 # Default options
66 %define build_system    0
67 %define build_acl       1
68 %define build_winbind   1
69 %define build_wins      1
70 %define build_ldap      0
71 %define build_ads       1
72 %define build_scanners  0
73 # CUPS supports functionality for 'printcap name = cups' (9.0 and later):
74 %define build_cupspc    0
75
76 # Set defaults for each version
77 %if %build_mdk92
78 %define build_cupspc    1
79 %endif
80
81 %if %build_mdk91
82 %define build_cupspc    1
83 %endif
84
85 %if %build_mdk90
86 %endif
87
88 %if %build_mdk82
89 %endif
90
91 %if %build_mdk81
92 %define build_winbind   0
93 %define build_wins      0
94 %endif
95
96 %if %build_mdk80
97 %define build_acl       0
98 %define build_winbind   0
99 %define build_wins      0
100 %define build_ads       0
101 %endif
102
103 %if %build_mdk72
104 %define build_acl       0
105 %define build_winbind   0
106 %define build_wins      0
107 %define build_ads       0
108 %endif
109
110
111 # Allow commandline option overrides (borrowed from Vince's qmail srpm):
112 # To use it, do rpm [-ba|--rebuild] --with 'xxx'
113 # Check if the rpm was built with the defaults, otherwise we inform the user
114 %define build_non_default 0
115 %{?_with_system: %{expand: %%global build_system 1}}
116 %{?_without_system: %{expand: %%global build_system 0}}
117 %{?_with_acl: %{expand: %%global build_acl 1}}
118 %{?_with_acl: %{expand: %%global build_non_default 1}}
119 %{?_without_acl: %{expand: %%global build_acl 0}}
120 %{?_without_acl: %{expand: %%global build_non_default 1}}
121 %{?_with_winbind: %{expand: %%global build_winbind 1}}
122 %{?_with_winbind: %{expand: %%global build_non_default 1}}
123 %{?_without_winbind: %{expand: %%global build_winbind 0}}
124 %{?_without_winbind: %{expand: %%global build_non_default 1}}
125 %{?_with_wins: %{expand: %%global build_wins 1}}
126 %{?_with_wins: %{expand: %%global build_non_default 1}}
127 %{?_without_wins: %{expand: %%global build_wins 0}}
128 %{?_without_wins: %{expand: %%global build_non_default 1}}
129 %{?_with_ldap: %{expand: %%global build_ldap 1}}
130 %{?_with_ldap: %{expand: %%global build_non_default 1}}
131 %{?_without_ldap: %{expand: %%global build_ldap 0}}
132 %{?_without_ldap: %{expand: %%global build_non_default 1}}
133 %{?_with_ads: %{expand: %%global build_ads 1}}
134 %{?_with_ads: %{expand: %%global build_non_default 1}}
135 %{?_without_ads: %{expand: %%global build_ads 0}}
136 %{?_without_ads: %{expand: %%global build_non_default 1}}
137 %{?_with_scanners: %{expand: %%global build_scanners 1}}
138 %{?_with_scanners: %{expand: %%global build_non_default 1}}
139
140 # As if that weren't enough, we're going to try building with antivirus
141 # support as an option also
142 %define build_fprot     0
143 %define build_kaspersky 0
144 %define build_mks       0
145 %define build_openav    0
146 %define build_sophos    0
147 %define build_symantec  0
148 %define build_trend 0
149 %if %build_vscan && %build_scanners
150 #These can be enabled here by default
151 # (kaspersky requires their library present)
152 %define build_fprot     1
153 %define build_mks       1
154 %define build_openav    1
155 %define build_sophos    1
156 %define build_trend     1
157 %endif
158 %if %build_vscan
159 %{?_with_fprot: %{expand: %%global build_fprot 1}}
160 %{?_with_kaspersky: %{expand: %%global build_kaspersky 1}}
161 %{?_with_mks: %{expand: %%global build_mks 1}}
162 %{?_with_openav: %{expand: %%global build_openav 1}}
163 %{?_with_sophos: %{expand: %%global build_sophos 1}}
164 #%{?_with_symantec: %{expand: %%global build_symantec 1}}
165 %{?_with_trend: %{expand: %%global build_trend 1}}
166 %global vscandir samba-vscan-%{vscanver}
167 %endif
168 %global vfsdir examples.bin/VFS
169
170 #Standard texts for descriptions:
171 %define message_bugzilla() %(echo -e -n "Please file bug reports for this package at Mandrake bugzilla \\n(http://qa.mandrakesoft.com) under the product name %{1}")
172 %define message_system %(echo -e -n "NOTE: This is a prerelease of samba-%{samba_major}, not intended for production\\n use. Rather these packages are provided, parallel installable\\nwith samba-2.2.x, for testing purposes")
173
174 %ifarch alpha
175 %define build_expsam xml
176 %else
177 %define build_expsam mysql,xml
178 %endif
179
180 #Workaround missing macros in 8.x:
181 %{!?perl_vendorlib: %{expand: %%global perl_vendorlib %{perl_sitearch}/../}}
182
183 # Determine whether this is the system samba or not.
184 %if %build_system
185 %define samba_major     %{nil}
186 %else
187 %define samba_major     3
188 %endif
189
190 Summary: Samba SMB server.
191 Name: %{pkg_name}%{samba_major}
192
193 %if %have_pre
194 Version: %{pre_ver}
195 %else
196 Version: %{source_ver}
197 %endif
198
199 %if %have_prelease && !%have_pre
200 Release: 1.%{prelease}mdk
201 %endif
202 %if %have_prelease && %have_pre
203 Release: 0.%{pre_pre}.%{prelease}mdk
204 %endif
205 %if !%have_prelease && !%have_pre
206 Release: %{rel}
207 %endif
208 %if !%have_prelease && %have_pre
209 Release: 0.%{pre_pre}.%{rel}
210 %endif
211
212 License: GPL
213 Group: System/Servers
214 Source: ftp://samba.org/pub/samba/samba-%{source_ver}.tar.bz2
215 URL:    http://www.samba.org
216 Source1: samba.log
217 Source3: samba.xinetd
218 Source4: swat_48.png.bz2
219 Source5: swat_32.png.bz2
220 Source6: swat_16.png.bz2
221 Source7: README.%{name}-mandrake-rpm
222 %if %build_vscan
223 Source8: samba-vscan-%{vscanver}.tar.bz2
224 %endif
225 Source10: samba-print-pdf.sh.bz2
226 Patch1: smbw.patch.bz2
227 Patch2: samba-2.2.0-gawk.patch.bz2
228 Patch3: samba-2.2.0-buildroot.patch.bz2
229 Patch4: samba-3.0-smbmount-sbin.patch.bz2
230 %if !%have_pversion
231 # Version specific patches: current version
232 Patch100: samba-3.0.0beta2-mandrake-packaging.patch.bz2
233 %else
234 # Version specific patches: upcoming version
235 %endif
236 # Limbo patches (applied to prereleases, but not preleases, ie destined for
237 # samba CVS)
238 %if %have_pversion && %have_pre
239 %endif
240 Requires: pam >= 0.64, samba-common = %{version}
241 BuildRequires: pam-devel readline-devel libncurses-devel popt-devel
242 BuildRequires: libxml2-devel
243 %ifnarch alpha
244 BuildRequires: mysql-devel
245 %endif
246 %if %build_acl
247 BuildRequires: libacl-devel
248 %endif
249 %if %build_mdk72
250 BuildRequires: cups-devel
251 %else
252 BuildRequires: libcups-devel
253 %endif
254 BuildRequires: libldap-devel
255 %if %build_ads
256 BuildRequires: libldap-devel krb5-devel
257 %endif
258 BuildRoot: %{_tmppath}/%{name}-root
259 Prefix: /usr
260 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
261 Prereq: fileutils sed /bin/grep
262
263 %description
264 Samba provides an SMB server which can be used to provide
265 network services to SMB (sometimes called "Lan Manager")
266 clients, including various versions of MS Windows, OS/2,
267 and other Linux machines. Samba also provides some SMB
268 clients, which complement the built-in SMB filesystem
269 in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
270 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
271 protocol.
272
273 Samba-3.0 features working NT Domain Control capability and
274 includes the SWAT (Samba Web Administration Tool) that
275 allows samba's smb.conf file to be remotely managed using your
276 favourite web browser. For the time being this is being
277 enabled on TCP port 901 via xinetd. SWAT is now included in
278 it's own subpackage, samba-swat.
279
280 Please refer to the WHATSNEW.txt document for fixup information.
281 This binary release includes encrypted password support.
282
283 Please read the smb.conf file and ENCRYPTION.txt in the
284 docs directory for implementation details.
285 %if %have_pversion
286 %message_bugzilla samba3
287 %endif 
288 %if !%build_system
289 %message_system
290 %endif
291 %if %build_non_default
292 WARNING: This RPM was built with command-line options. Please
293 see README.%{name}-mandrake-rpm in the documentation for
294 more information.
295 %endif
296
297 %package server
298 URL:    http://www.samba.org
299 Summary: Samba (SMB) server programs.
300 Requires: %{name}-common = %{version}
301 PreReq:         rpm-helper
302 Group: Networking/Other
303 %if %build_system
304 Provides: samba
305 Obsoletes: samba
306 Provides:  samba-server-ldap
307 Obsoletes: samba-server-ldap
308 Provides:  samba3-server
309 Obsoletes: samba3-server
310 %else
311 #Provides: samba-server
312 %endif
313
314 %description server
315 Samba-server provides a SMB server which can be used to provide
316 network services to SMB (sometimes called "Lan Manager")
317 clients. Samba uses NetBIOS over TCP/IP (NetBT) protocols
318 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame)
319 protocol.
320
321 Samba-3.0 features working NT Domain Control capability and
322 includes the SWAT (Samba Web Administration Tool) that
323 allows samba's smb.conf file to be remotely managed using your
324 favourite web browser. For the time being this is being
325 enabled on TCP port 901 via xinetd. SWAT is now included in
326 it's own subpackage, samba-swat.
327
328 Please refer to the WHATSNEW.txt document for fixup information.
329 This binary release includes encrypted password support.
330
331 Please read the smb.conf file and ENCRYPTION.txt in the
332 docs directory for implementation details.
333 %if %have_pversion
334 %message_bugzilla samba3-server
335 %endif
336 %if !%build_system
337 %message_system
338 %endif
339
340 %package client
341 URL:    http://www.samba.org
342 Summary: Samba (SMB) client programs.
343 Group: Networking/Other
344 Requires: %{name}-common = %{version}
345 %if %build_system
346 Provides:  samba3-client
347 Obsoletes: samba3-client
348 Obsoletes: smbfs
349 %else
350 #Provides: samba-client
351 %endif
352
353 %description client
354 Samba-client provides some SMB clients, which complement the built-in
355 SMB filesystem in Linux. These allow the accessing of SMB shares, and
356 printing to SMB printers.
357 %if %have_pversion
358 %message_bugzilla samba3-client
359 %endif
360 %if !%build_system
361 %message_system
362 %endif
363
364 %package common
365 URL:    http://www.samba.org
366 Summary: Files used by both Samba servers and clients.
367 Group: System/Servers
368 %if %build_system
369 Provides:  samba-common-ldap
370 Obsoletes: samba-common-ldap
371 Provides:  samba3-common
372 Obsoletes: samba3-common
373 %else
374 #Provides: samba-common
375 %endif
376
377 %description common
378 Samba-common provides files necessary for both the server and client
379 packages of Samba.
380 %if %have_pversion
381 %message_bugzilla samba3-common
382 %endif
383 %if !%build_system
384 %message_system
385 %endif
386
387 %package doc
388 URL:    http://www.samba.org
389 Summary: Documentation for Samba servers and clients.
390 Group: System/Servers
391 Requires: %{name}-common = %{version}
392 %if %build_system
393 Obsoletes: samba3-doc
394 Provides:  samba3-doc
395 %else
396 #Provides: samba-doc
397 %endif
398
399 %description doc
400 Samba-doc provides documentation files for both the server and client
401 packages of Samba.
402 %if %have_pversion
403 %message_bugzilla samba3-doc
404 %endif
405 %if !%build_system
406 %message_system
407 %endif
408
409 %package swat
410 URL:    http://www.samba.org
411 Summary: The Samba Web Administration Tool.
412 Requires: %{name}-server = %{version}
413 Requires: xinetd
414 Group: System/Servers
415 %if %build_system
416 Provides:  samba-swat-ldap
417 Obsoletes: samba-swat-ldap
418 Provides:  samba3-swat
419 Obsoletes: samba3-swat
420 %else
421 #Provides: samba-swat
422 %endif
423
424 %description swat
425 SWAT (the Samba Web Administration Tool) allows samba's smb.conf file
426 to be remotely managed using your favourite web browser. For the time
427 being this is being enabled on TCP port 901 via xinetd. Note that
428 SWAT does not use SSL encryption, nor does it preserve comments in
429 your smb.conf file. Webmin uses SSL encryption by default, and
430 preserves comments in configuration files, even if it does not display
431 them, and is therefore the preferred method for remotely managing
432 Samba.
433 %if %have_pversion
434 %message_bugzilla samba3-swat
435 %endif
436 %if !%build_system
437 %message_system
438 %endif
439
440 %if %build_winbind
441 %package winbind
442 URL:    http://www.samba.org
443 Summary: Samba-winbind daemon, utilities and documentation
444 Group: System/Servers
445 Requires: %{name}-common = %{version}
446 %description winbind
447 Provides the winbind daemon and testing tools to allow authentication 
448 and group/user enumeration from a Windows or Samba domain controller.
449 %endif
450 %if %have_pversion
451 %message_bugzilla samba3-winbind
452 %endif
453 %if !%build_system
454 %message_system
455 %endif
456
457 %if %build_wins
458 %package -n nss_wins%{samba_major}
459 URL:    http://www.samba.org
460 Summary: Name Service Switch service for WINS
461 Group: System/Servers
462 Requires: %{name}-common = %{version}
463 PreReq: glibc
464 %description -n nss_wins%{samba_major}
465 Provides the libnss_wins shared library which resolves NetBIOS names to 
466 IP addresses.
467 %endif
468 %if %have_pversion
469 %message_bugzilla nss_wins3
470 %endif
471 %if !%build_system
472 %message_system
473 %endif
474
475 %if %{?_without_test:0}%{!?_without_test:1}
476 %package test
477 URL:    http://www.samba.org
478 Summary: Debugging and benchmarking tools for samba
479 Group: System/Servers
480 Requires: %{name}-common = %{version}
481 %endif
482 %if %build_system && %{?_without_test:0}%{!?_without_test:1}
483 Provides:  samba3-test samba3-debug
484 Obsoletes: samba3-test samba3-debug
485 %else
486 Provides: samba-test samba3-debug
487 Obsoletes: samba3-debug
488 %endif
489 %if %{?_without_test:0}%{!?_without_test:1}
490
491 %description test
492 This package provides tools for benchmarking samba, and debugging
493 the correct operation of tools against smb servers.
494 %endif
495
496 %if %build_system
497 %package -n libsmbclient%{libsmbmajor}
498 URL:            http://www.samba.org
499 Summary:        SMB Client Library
500 Group:          System/Libraries
501 Provides:       libsmbclient
502
503 %description -n libsmbclient%{libsmbmajor}
504 This package contains the SMB client library, part of the samba
505 suite of networking software, allowing other software to access
506 SMB shares.
507 %endif
508 %if %have_pversion && %build_system
509 %message_bugzilla libsmbclient%{libsmbmajor}
510 %endif
511
512 %if %build_system
513 %package -n libsmbclient%{libsmbmajor}-devel
514 URL:            http://www.samba.org
515 Summary:        SMB Client Library Development files
516 Group:          System/Libraries
517 Provides:       libsmbclient-devel
518
519 %description -n libsmbclient%{libsmbmajor}-devel
520 This package contains the development files for the SMB client
521 library, part of the samba suite of networking software, allowing
522 the development of other software to access SMB shares.
523 %endif
524 %if %have_pversion && %build_system
525 %message_bugzilla libsmbclient%{libsmbmajor}-devel
526 %endif
527
528 %if %build_system
529 %package -n libsmbclient%{libsmbmajor}-static-devel
530 URL:            http://www.samba.org
531 Summary:        SMB Client Static Library Development files
532 Group:          System/Libraries
533 Provides:       libsmbclient-static-devel = %{version}-%{release}
534 Requires:       libsmbclient%{libsmbmajor}-devel = %{version}-%{release}
535
536 %description -n libsmbclient%{libsmbmajor}-static-devel
537 This package contains the static development files for the SMB
538 client library, part of the samba suite of networking software,
539 allowing the development of other software to access SMB shares.
540 %endif
541 %if %have_pversion && %build_system
542 %message_bugzilla libsmbclient%{libsmbmajor}-devel
543 %endif
544
545 #%package passdb-ldap
546 #URL:           http://www.samba.org
547 #Summary:       Samba password database plugin for MySQL
548 #Group:         System/Libraries
549 #
550 #%description passdb-ldap
551 #The passdb-ldap package for samba provides a password database
552 #backend allowing samba to store account details in an LDAP
553 #database
554 #_if %have_pversion
555 #_message_bugzilla samba3-passdb-ldap
556 #_endif
557 #_if !%build_system
558 #_message_system
559 #_endif
560
561 %ifnarch alpha
562 %package passdb-mysql
563 URL:            http://www.samba.org
564 Summary:        Samba password database plugin for MySQL
565 Group:          System/Libraries
566
567 %description passdb-mysql
568 The passdb-mysql package for samba provides a password database
569 backend allowing samba to store account details in a MySQL
570 database
571 %endif
572 %ifnarch alpha && %have_pversion
573 %message_bugzilla samba3-passdb-mysql
574 %endif
575 %ifnarch alpha && !%build_system
576 %message_system
577 %endif
578
579 %package passdb-xml
580 URL:            http://www.samba.org
581 Summary:        Samba password database plugin for XML files
582 Group:          System/Libraries
583
584 %description passdb-xml
585 The passdb-xml package for samba provides a password database
586 backend allowing samba to store account details in XML files.
587 %if %have_pversion
588 %message_bugzilla samba3-passdb-xml
589 %endif
590 %if !%build_system
591 %message_system
592 %endif
593
594 #Antivirus packages:
595 %if %build_fprot
596 %package vscan-fprot
597 Summary: On-access virus scanning for samba using FPROT
598 Group: System/Servers
599 Requires: %{name}-server = %{version}
600 Provides: %{name}-vscan
601 Autoreq: 0
602 %description vscan-fprot
603 A vfs-module for samba to implement on-access scanning using the
604 FPROT antivirus software (which must be installed to use this).
605 %endif
606
607 %if %build_kaspersky
608 %package vscan-kaspersky
609 Summary: On-access virus scanning for samba using Kaspersky
610 Group: System/Servers
611 Requires: %{name}-server = %{version}
612 Provides: %{name}-vscan
613 Autoreq: 0
614 %description vscan-kaspersky
615 A vfs-module for samba to implement on-access scanning using the
616 Kaspersky antivirus software (which must be installed to use this).
617 %endif
618
619 %if %build_mks
620 %package vscan-mks
621 Summary: On-access virus scanning for samba using MKS
622 Group: System/Servers
623 Requires: %{name}-server = %{version}
624 Provides: %{name}-vscan
625 Autoreq: 0
626 %description vscan-mks
627 A vfs-module for samba to implement on-access scanning using the
628 MKS antivirus software (which must be installed to use this).
629 %endif
630
631 %if %build_openav
632 %package vscan-openav
633 Summary: On-access virus scanning for samba using OpenAntivirus
634 Group: System/Servers
635 Requires: %{name}-server = %{version}
636 Provides: %{name}-vscan
637 Autoreq: 0
638 %description vscan-openav
639 A vfs-module for samba to implement on-access scanning using the
640 OpenAntivirus antivirus software (which must be installed to use this).
641 %endif
642
643 %if %build_sophos
644 %package vscan-sophos
645 Summary: On-access virus scanning for samba using Sophos
646 Group: System/Servers
647 Requires: %{name}-server = %{version}
648 Provides: %{name}-vscan
649 Autoreq: 0
650 %description vscan-sophos
651 A vfs-module for samba to implement on-access scanning using the
652 Sophos antivirus software (which must be installed to use this).
653 %endif
654
655 %if %build_symantec
656 %package vscan-symantec
657 Summary: On-access virus scanning for samba using Symantec
658 Group: System/Servers
659 Requires: %{name}-server = %{version}
660 Provides: %{name}-vscan
661 Autoreq: 0
662 %description vscan-symantec
663 A vfs-module for samba to implement on-access scanning using the
664 Symantec antivirus software (which must be installed to use this).
665 %endif
666
667 %if %build_trend
668 %package vscan-trend
669 Summary: On-access virus scanning for samba using Trend
670 Group: System/Servers
671 Requires: %{name}-server = %{version}
672 Provides: %{name}-vscan
673 Autoreq: 0
674 %description vscan-trend
675 A vfs-module for samba to implement on-access scanning using the
676 Trend antivirus software (which must be installed to use this).
677 %endif
678
679 %prep
680
681 # Allow users to query build options with --with options:
682 #%define opt_status(%1) %(echo %{1})
683 %if %{?_with_options:1}%{!?_with_options:0}
684 %define opt_status(%{1})        %(if [ %{1} -eq 1 ];then echo enabled;else echo disabled;fi)
685 #exit 1
686 %{error: }
687 %{error:Build options available are:}
688 %{error:--with[out] system   Build as the system samba package [or as samba3]}
689 %{error:--with[out] acl      Build with support for file ACLs          - %opt_status %build_acl}
690 %{error:--with[out] winbind  Build with Winbind support                - %opt_status %build_winbind}
691 %{error:--with[out] wins     Build with WINS name resolution support   - %opt_status %build_wins}
692 %{error:--with[out] ldap     Build with legacy (samba2) LDAP support   - %opt_status %build_ldap}
693 %{error:--with[out] ads      Build with Active Directory support       - %opt_status %build_ads}
694 %{error:--with[out] scanners Enable on-access virus scanners           - %opt_status %build_scanners}
695 %{error: }
696 %else
697 %{error: }
698 %{error: This rpm has build options available, use --with options to see them}
699 %{error: }
700 %endif
701
702 %if %{?_with_options:1}%{!?_with_options:0} && %build_scanners
703 %{error:--with scanners enables fprot,mks,openav,sophos and trend by default}
704 %{error: }
705 %{error:To enable others (requires development libraries for the scanner):}
706 %{error:--with kaspersky     Enable on-access scanning with Kaspersky  - %opt_status %build_kaspersky}
707 %{error: }
708 %endif
709
710 %if %{?_with_options:1}%{!?_with_options:0}
711 clear
712 exit 1
713 %endif
714
715
716 %if %build_non_default
717 RPM_EXTRA_OPTIONS="\
718 %{?_with_system: --with system}\
719 %{?_without_system: --without system}\
720 %{?_with_acl: --with acl}\
721 %{?_without_acl: --without acl}\
722 %{?_with_winbind: --with winbind}\
723 %{?_without_winbind: --without winbind}\
724 %{?_with_wins: --with wins}\
725 %{?_without_wins: --without wins}\
726 %{?_with_ldap: --with ldap}\
727 %{?_without_ldap: --without ldap}\
728 %{?_with_ads: --with ads}\
729 %{?_without_ads: --without ads}\
730 %{?_with_scanners: --with scanners}\
731 %{?_without_scanners: --without scanners}\
732 "
733 echo "Building a non-default rpm with the following command-line arguments:"
734 echo "$RPM_EXTRA_OPTIONS"
735 echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7}
736 echo "an identical rpm, you need to supply the following options">>%{SOURCE7}
737 echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7}
738 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
739 %else
740 echo "This rpm was built with default options">%{SOURCE7}
741 echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7}
742 %endif
743
744 %if %build_vscan
745 %setup -q -a 8 -n %{pkg_name}-%{source_ver}
746 %else
747 %setup -q -n %{pkg_name}-%{source_ver}
748 %endif
749 #%patch111 -p1
750 %patch1 -p1 -b .smbw
751 %patch2 -p1 -b .gawk
752 %patch3 -p1 -b .buildroot
753 %patch4 -p1 -b .sbin
754 # Version specific patches: current version
755 %if !%have_pversion
756 echo "Applying patches for current version: %{ver}"
757 %patch100 -p1 -b .mdk
758 %else
759 # Version specific patches: upcoming version
760 echo "Applying patches for new versions: %{pversion}"
761 %endif
762
763 # Limbo patches
764 %if %have_pversion && %have_pre
765 echo "Appling patches which should only be applied to prereleases"
766 %endif
767
768 # Fix quota compilation in glibc>2.3
769 %if %build_mdk91 || %build_mdk92
770 #grep "<linux/quota.h>" source/smbd/quotas.c >/dev/null && \
771 perl -pi -e 's@<linux/quota.h>@<sys/quota.h>@' source/smbd/quotas.c
772 %endif
773
774 cp %{SOURCE7} .
775
776 # Make a copy of examples so that we have a clean one for doc:
777 cp -a examples examples.bin
778
779 %if %build_vscan
780 cp -a %{vscandir} %{vfsdir}
781 #fix stupid directory names:
782 mv %{vfsdir}/%{vscandir}/openantivirus %{vfsdir}/%{vscandir}/oav
783 %endif
784 # Inline replacement of config dir
785 for av in fprot kaspersky mks oav sophos trend; do
786         [ -e %{vfsdir}/%{vscandir}/$av/vscan-$av.h ] && perl -pi -e \
787         's,^#define PARAMCONF "/etc/samba,#define PARAMCONF "/etc/%{name},' \
788         %{vfsdir}/%{vscandir}/$av/vscan-$av.h
789 done
790 #Inline edit vscan header:
791 perl -pi -e 's/^# define SAMBA_VERSION_MAJOR 2/# define SAMBA_VERSION_MAJOR 3/g' %{vfsdir}/%{vscandir}/include/vscan-global.h
792
793 # Edit some files when not building system samba:
794 %if !%build_system
795 perl -pi -e 's/%{pkg_name}/%{name}/g' source/auth/pampass.c
796 %endif
797
798 %build
799 #%serverbuild
800 (cd source
801 CFLAGS="$RPM_OPT_FLAGS"
802 # Don't use --with-fhs now, since it overrides libdir, it sets configdir, 
803 # lockdir,piddir logfilebase,privatedir and swatdir
804 %configure      --prefix=%{_prefix} \
805                 --sysconfdir=/etc/%{name} \
806                 --localstatedir=/var \
807                 --libdir=%{_libdir}/%{name} \
808                 --with-privatedir=/etc/%{name} \
809                 --with-lockdir=/var/cache/%{name} \
810                 --with-piddir=/var/run/%{name} \
811                 --with-swatdir=%{_datadir}/swat%{samba_major} \
812                 --with-configdir=/etc/%{name} \
813                 --with-logfilebase=/var/log/%{name} \
814 %if !%build_ads
815                 --with-ads=no   \
816 %endif
817                 --with-automount \
818                 --with-smbmount \
819                 --with-pam \
820                 --with-pam_smbpass \
821 %if %build_ldap
822                 --with-ldapsam \
823 %endif
824                 --with-tdbsam \
825                 --with-syslog \
826                 --with-quotas \
827                 --with-utmp \
828                 --with-manpages-langs=en \
829 %if %build_acl
830                 --with-acl-support      \
831 %endif
832                 --disable-mysqltest \
833                 --with-expsam=%build_expsam \
834                 --program-suffix=%{samba_major} 
835 #               --with-shared-modules=pdb_ldap,idmap_ldap \
836 #               --with-manpages-langs=en,ja,pl  \
837 #_if !%build_system
838 #                --with-smbwrapper \
839 #_endif         
840 #               --with-nisplussam \
841 #                --with-fhs \
842
843 #Fix the make file so we don't create debug information on 9.2
844 %if %build_mdk92
845 perl -pi -e 's/-g //g' Makefile
846 %endif
847
848 make proto_exists
849 %make   all libsmbclient smbfilter wins modules %{!?_without_test: torture debug2html} bin/editreg
850
851
852 # Build VFS modules (experimental)
853 #cd ../%vfsdir
854 #_configure     --prefix=%{prefix} \
855 #               --mandir=%{prefix}/share/man
856 #make
857 #make CFLAGS="$RPM_OPT_FLAGS -I../../source -I../../source/include -I../../source/ubiqx \
858 #       -I../../source/smbwrapper -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
859 )
860
861 # Build mkntpasswd in examples/LDAP/ for smbldaptools
862 #(
863 #cd examples.bin/LDAP/smbldap-tools/mkntpwd
864 #make
865 #)
866
867 # Build antivirus vfs objects:
868 %if %build_fprot
869 echo -e "\n\nBuild antivirus VFS modules\n\n"
870 echo "Building fprot"
871 (cd %{vfsdir}/%{vscandir}/fprot;make)
872 %endif
873 %if %build_kaspersky
874 echo "Building Kaspersky"
875 (cd %{vfsdir}/%{vscandir}/kavp
876     perl -p -i -e "s|/usr/local/|/usr/|g" Makefile.KAV4
877     make -f Makefile.KAV4
878 )
879 %endif
880 %if %build_mks
881 echo "Building mks"
882 (cd %{vfsdir}/%{vscandir}/mks;make)
883 %endif
884 %if %build_openav
885 echo "Building OpenAntivirus"
886 (cd %{vfsdir}/%{vscandir}/oav;make)
887 %endif
888 %if %build_sophos
889 echo "building sophos"
890 (cd %{vfsdir}/%{vscandir}/sophos;make)
891 %endif
892 %if %build_symantec
893 echo "Building symantec"
894 (cd %{vfsdir}/%{vscandir}/symantec;make)
895 %endif
896 %if %build_trend
897 echo "Building Trend"
898 (cd %{vfsdir}/%{vscandir}/trend;make)
899 %endif
900
901 %install
902 rm -rf $RPM_BUILD_ROOT
903 mkdir -p $RPM_BUILD_ROOT
904
905 #Ensure all docs are readable
906 chmod a+r docs -R
907
908 # Any entries here mean samba makefile is *really* broken:
909 mkdir -p $RPM_BUILD_ROOT/etc/%{name}
910 mkdir -p $RPM_BUILD_ROOT/%{_datadir}
911 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
912
913 (cd source
914 make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}/%{name} install installclientlib installmodules)
915
916 install -m755 source/bin/editreg %{buildroot}/%{_bindir}
917
918 #need to stay
919 mkdir -p $RPM_BUILD_ROOT/sbin
920 mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,xinetd.d}
921 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
922 mkdir -p $RPM_BUILD_ROOT/var/cache/%{name}
923 mkdir -p $RPM_BUILD_ROOT/var/log/%{name}
924 mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
925 mkdir -p $RPM_BUILD_ROOT/var/spool/%{name}
926 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/{netlogon,profiles,printers}
927 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
928 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/%{name}/codepages/src
929 mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
930 mkdir -p $RPM_BUILD_ROOT%{_libdir}
931 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs
932 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts
933
934 #smbwrapper and pam_winbind not handled by make, pam_smbpass.so doesn't build
935 #install -m 755 source/bin/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper%{samba_major}.so
936 install -m 755 source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security/pam_smbpass%{samba_major}.so
937 install -m 755 source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security/pam_winbind%{samba_major}.so
938
939 install -m755 source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
940
941 # smbsh forgotten
942 #install -m 755 source/bin/smbsh $RPM_BUILD_ROOT%{_bindir}/
943
944 # Install VFS modules
945 #install -m755 %vfsdir/audit.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
946 #for i in block recycle
947 #do
948 # install -m755 %vfsdir/$i/$i.so $RPM_BUILD_ROOT/%{_libdir}/samba/vfs
949 #done
950
951 # Antivirus support:
952 #       mkdir -p $RPM_BUILD_ROOT%{_libdir}/samba/vfs/vscan
953         for av in fprot kavp mks oav sophos symantec trend; do
954                 if [ -d %{vfsdir}/%{vscandir}/$av -a -e %{vfsdir}/%{vscandir}/$av/vscan-$av*.so ];then
955                         cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.so \
956                                 $RPM_BUILD_ROOT%{_libdir}/%{name}/vfs/
957                         cp %{vfsdir}/%{vscandir}/$av/vscan-$av*.conf \
958                                 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
959                 fi
960         done
961         
962 #libnss_* not handled by make:
963 # Install the nsswitch library extension file
964 for i in wins winbind; do
965   install -m755 source/nsswitch/libnss_${i}.so $RPM_BUILD_ROOT/%{_lib}/libnss_${i}%{samba_major}.so
966 done
967 # Make link for wins and winbind resolvers
968 ( cd $RPM_BUILD_ROOT/%{_lib}; ln -s libnss_wins%{samba_major}.so libnss_wins%{samba_major}.so.2; ln -s libnss_winbind%{samba_major}.so libnss_winbind%{samba_major}.so.2)
969
970 %if %{?_without_test:0}%{!?_without_test:1}
971 for i in smbtorture msgtest masktest locktest locktest2 nsstest vfstest debug2html;do
972   install -m755 source/bin/$i $RPM_BUILD_ROOT/%{_bindir}
973 done
974 %endif
975
976 # Install other stuff
977
978 #        install -m644 examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/etc/samba/
979         install -m644 packaging/Mandrake/smbusers $RPM_BUILD_ROOT/etc/%{name}/smbusers
980         install -m755 packaging/Mandrake/smbprint $RPM_BUILD_ROOT/%{_bindir}
981         #install -m755 packaging/RedHat/smbadduser $RPM_BUILD_ROOT/usr/bin
982         install -m755 packaging/Mandrake/findsmb $RPM_BUILD_ROOT/%{_bindir}
983         install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/etc/rc.d/init.d/smb%{samba_major}
984         install -m755 packaging/Mandrake/smb.init $RPM_BUILD_ROOT/%{_sbindir}/%{name}
985         install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind%{samba_major}
986 #       install -m755 packaging/Mandrake/wrepld.init $RPM_BUILD_ROOT/etc/rc.d/init.d/wrepld%{samba_major}
987         install -m755 packaging/Mandrake/winbind.init $RPM_BUILD_ROOT/%{_sbindir}/winbind%{samba_major}
988         install -m644 packaging/Mandrake/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/%{name}
989         install -m644 packaging/Mandrake/system-auth-winbind.pamd $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
990 #
991         install -m644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
992 #       install -m644 packaging/Mandrake/samba-slapd-include.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/samba-slapd.include
993
994 # Install smbldap-tools scripts:
995 #for i in examples/LDAP/smbldap-tools/*.pl; do
996 #       install -m 750 $i $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
997 #done
998
999 #install -m 750 examples/LDAP/smbldap-tools/smbldap_tools.pm $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
1000
1001 # The conf file 
1002 #install -m 640 examples/LDAP/smbldap-tools/smbldap_conf.pm $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
1003
1004 # Link both smbldap*.pm into vendor-perl (any better ideas?)
1005 #mkdir -p %{buildroot}/%{perl_vendorlib}
1006 #ln -s %{_sysconfdir}/%{name}/smbldap_conf.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
1007 #ln -s %{_datadir}/%{name}/scripts/smbldap_tools.pm $RPM_BUILD_ROOT/%{perl_vendorlib}
1008
1009 #mkntpwd
1010 #install -m750 examples.bin/LDAP/smbldap-tools/mkntpwd/mkntpwd %{buildroot}/%{_sbindir}
1011
1012 # Samba smbpasswd migration script:
1013 install -m700 examples/LDAP/export_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
1014 install -m700 examples/LDAP/import_smbpasswd.pl $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
1015 install -m755 examples/LDAP/convertSambaAccount $RPM_BUILD_ROOT/%{_datadir}/%{name}/scripts/
1016
1017
1018
1019 # make a conf file for winbind from the default one:
1020         cat packaging/Mandrake/smb.conf|sed -e  's/^;  winbind/  winbind/g;s/^;  obey pam/  obey pam/g; s/^;   printer admin = @"D/   printer admin = @"D/g;s/^;   password server = \*/   password server = \*/g;s/^;  template/  template/g; s/^   security = user/   security = domain/g' > packaging/Mandrake/smb-winbind.conf
1021         install -m644 packaging/Mandrake/smb-winbind.conf $RPM_BUILD_ROOT/etc/%{name}/smb-winbind.conf
1022
1023 # Some inline fixes for smb.conf for non-winbind use
1024 install -m644 packaging/Mandrake/smb.conf $RPM_BUILD_ROOT/etc/%{name}/smb.conf
1025 cat packaging/Mandrake/smb.conf | \
1026 sed -e 's/^;   printer admin = @adm/   printer admin = @adm/g' >$RPM_BUILD_ROOT/etc/%{name}/smb.conf
1027 %if %build_cupspc
1028 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/etc/%{name}/smb.conf
1029 perl -pi -e 's/printcap name = lpstat/printcap name = cups/g' $RPM_BUILD_ROOT/etc/%{name}/smb-winbind.conf
1030 %endif
1031
1032 # Link smbmount to /sbin/mount.smb and /sbin/mount.smbfs
1033 #I don't think it's possible for make to do this ...
1034 (cd $RPM_BUILD_ROOT/sbin
1035         ln -s ..%{_bindir}/smbmount%{samba_major} mount.smb%{samba_major}
1036         ln -s ..%{_bindir}/smbmount%{samba_major} mount.smbfs%{samba_major}
1037 )
1038         echo 127.0.0.1 localhost > $RPM_BUILD_ROOT/etc/%{name}/lmhosts
1039
1040 # Link smbspool to CUPS (does not require installed CUPS)
1041
1042         mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend
1043         ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT/%{_libdir}/cups/backend/smb%{samba_major}
1044
1045 # xinetd support
1046
1047         mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
1048         install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
1049
1050 # menu support
1051
1052 mkdir -p $RPM_BUILD_ROOT%{_menudir}
1053 cat > $RPM_BUILD_ROOT%{_menudir}/%{name}-swat << EOF
1054 ?package(%{name}-swat):\
1055 command="gnome-moz-remote http://localhost:901/" \
1056 needs="gnome" \
1057 icon="swat%{samba_major}.png" \
1058 section="Configuration/Networking" \
1059 title="Samba Configuration (SWAT)" \
1060 longtitle="The Swat Samba Administration Tool"
1061 ?package(%{name}-swat):\
1062 command="sh -c '\$BROWSER http://localhost:901/'" \ 
1063 needs="x11" \
1064 icon="swat%{samba_major}.png" \
1065 section="Configuration/Networking" \
1066 title="Samba Configuration (SWAT)" \
1067 longtitle="The Swat Samba Administration Tool"
1068 EOF
1069
1070 mkdir -p $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} $RPM_BUILD_ROOT%{_miconsdir}
1071
1072 bzcat %{SOURCE4} > $RPM_BUILD_ROOT%{_liconsdir}/swat%{samba_major}.png
1073 bzcat %{SOURCE5} > $RPM_BUILD_ROOT%{_iconsdir}/swat%{samba_major}.png
1074 bzcat %{SOURCE6} > $RPM_BUILD_ROOT%{_miconsdir}/swat%{samba_major}.png
1075
1076 bzcat %{SOURCE10}> $RPM_BUILD_ROOT%{_datadir}/%{name}/scripts/print-pdf
1077
1078 # Fix configs when not building system samba:
1079 %if !%build_system
1080 # Work around non-existent but claimed --program-suffix support :-(
1081 for dir in %{_sbindir} %{_bindir};do
1082     FILES=`find %{buildroot}$dir -type f |grep -v "\."|grep -v %{samba_major}$`
1083     for OLD in $FILES; do
1084         NEW=`echo ${OLD}%{samba_major}`
1085         mv $OLD $NEW
1086     done
1087 done
1088 # And the man pages too:
1089 FILES=`find %{buildroot}%{_mandir} -type f `
1090 for OLD in $FILES; do
1091     BASE=`perl -e '$name="'${OLD}'"; print "",($name =~ /(.*?)\.[0-9]/), "\n";'`
1092     EXT=`echo $OLD|sed -e 's,'${BASE}',,g'`
1093     NEW=`echo ${BASE}%{samba_major}${EXT}`
1094     mv $OLD $NEW
1095 done            
1096 # Replace paths in config files and init scripts:
1097 for i in smb winbind;do
1098         perl -pi -e 's,/subsys/'$i',/subsys/'$i'%{samba_major},g' $RPM_BUILD_ROOT/etc/rc.d/init.d/${i}%{samba_major}
1099 done
1100 for i in /etc/%{name}/smb.conf /etc/rc.d/init.d/smb%{samba_major} %{_sbindir}/%{name} /etc/rc.d/init.d/winbind%{samba_major} %{_sbindir}/winbind%{samba_major} /etc/logrotate.d/%{name} /etc/xinetd.d/swat%{samba_major} /etc/rc.d/init.d/wrepld%{samba_major}; do
1101         perl -pi -e 's,/%{pkg_name},/%{name},g; s,smbd,%{_sbindir}/smbd%{samba_major},g; s,nmbd,%{_sbindir}/nmbd%{samba_major},g; s,winbindd,%{_sbindir}/winbindd%{samba_major},g; s,/usr/sbin/swat,%{_sbindir}/swat%{samba_major},g;s,wrepld,%{_sbindir}/wrepld%{samba_major},g' $RPM_BUILD_ROOT/$i;
1102 done
1103 # Fix pam files
1104 perl -pi -e 's/winbind/winbind%{samba_major}/g' $RPM_BUILD_ROOT/etc/pam.d/system-auth-winbind%{samba_major}
1105 # Fix xinetd file for swat:
1106 perl -pi -e 's,/usr/sbin,%{_sbindir},g' $RPM_BUILD_ROOT/etc/xinetd.d/swat%{samba_major}
1107 %endif
1108
1109 #Clean up unpackaged files:
1110 for i in %{_bindir}/pam_smbpass.so %{_bindir}/smbwrapper.so;do
1111 rm -f %{buildroot}/$i
1112 done
1113
1114 %clean
1115 rm -rf $RPM_BUILD_ROOT
1116
1117 %post server
1118
1119 %_post_service smb%{samba_major}
1120 #%_post_service wrepld%{samba_major}
1121
1122 # Add a unix group for samba machine accounts
1123 groupadd -frg 421 machines
1124
1125 # Migrate tdb's from /var/lock/samba (taken from official samba spec file):
1126 for i in /var/lock/samba/*.tdb
1127 do
1128 if [ -f $i ]; then
1129         newname=`echo $i | sed -e's|var\/lock\/samba|var\/cache\/samba|'`
1130         echo "Moving $i to $newname"
1131         mv $i $newname
1132 fi
1133 done
1134
1135 # Remove the transient tdb files (modified from version in off. samba spec:
1136 for TDB in brlock unexpected locking messages; do
1137         if [ -e /var/cache/%{name}/$TDB.tdb ]; then
1138                 rm -f /var/cache/%{name}/$TDB.tdb;
1139         fi;
1140 done
1141
1142 if [ -d /var/lock/samba ]; then
1143         rm -rf /var/lock/samba
1144 fi
1145
1146 %post common
1147 # Basic migration script for pre-2.2.1 users,
1148 # since smb config moved from /etc to /etc/samba
1149
1150 # Let's create a proper /etc/samba/smbpasswd file
1151 [ -f /etc/%{name}/smbpasswd ] || {
1152         echo "Creating password file for samba..."
1153         touch /etc/%{name}/smbpasswd
1154 }
1155
1156 # And this too, in case we don't have smbd to create it for us
1157 [ -f /var/cache/%{name}/unexpected.tdb ] || {
1158         touch /var/cache/%{name}/unexpected.tdb
1159 }
1160
1161 # Let's define the proper paths for config files
1162 perl -pi -e 's/(\/etc\/)(smb)/\1%{name}\/\2/' /etc/%{name}/smb.conf
1163
1164 # Let's replace lpstat with cups in older smb.conf:
1165 %if %build_cupspc
1166 echo "Updating samba printing configuration if necessary..."
1167 perl -pi -e 's/= lpstat/= cups/' /etc/%{name}/smb.conf
1168 %endif
1169
1170 # Fix the logrotate.d file from smb and nmb to smbd and nmbd
1171 if [ -f /etc/logrotate.d/samba ]; then
1172         perl -pi -e 's/smb /smbd /' /etc/logrotate.d/samba
1173         perl -pi -e 's/nmb /nmbd /' /etc/logrotate.d/samba
1174 fi
1175
1176 # And not loose our machine account SID
1177 [ -f /etc/MACHINE.SID ] && mv -f /etc/MACHINE.SID /etc/%{name}/ ||:
1178
1179 %if %build_winbind
1180 %post winbind
1181 if [ $1 = 1 ]; then
1182     /sbin/chkconfig winbind%{samba_major} on
1183     cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1184     cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1185     for i in passwd group;do
1186         grep ^$i /etc/nsswitch.conf |grep -v 'winbind%{samba_major}' >/dev/null
1187         if [ $? = 0 ];then
1188             echo "Adding a winbind%{samba_major} entry to the $i section of /etc/nsswitch.conf"
1189             awk '/^'$i'/ {print $0 " winbind%{samba_major}"};!/^'$i'/ {print}' /etc/nsswitch.conf.rpmtemp >/etc/nsswitch.conf;
1190             cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmtemp
1191         else
1192             echo "$i entry found in /etc/nsswitch.conf"
1193         fi
1194     done
1195     if [ -f /etc/nsswitch.conf.rpmtemp ];then rm -f /etc/nsswitch.conf.rpmtemp;fi
1196 fi
1197
1198 %preun winbind
1199 if [ $1 = 0 ]; then
1200         echo "Removing winbind%{samba_major} entries from /etc/nsswitch.conf"
1201         perl -pi -e 's/ winbind%{samba_major}//' /etc/nsswitch.conf
1202
1203         /sbin/chkconfig winbind%{samba_major} reset
1204 fi
1205 %endif %build_winbind
1206
1207 %if %build_wins
1208 %post -n nss_wins%{samba_major}
1209 if [ $1 = 1 ]; then
1210     cp -af /etc/nsswitch.conf /etc/nsswitch.conf.rpmsave
1211     grep '^hosts' /etc/nsswitch.conf |grep -v 'wins%{samba_major}' >/dev/null
1212     if [ $? = 0 ];then
1213         echo "Adding a wins entry to the hosts section of /etc/nsswitch.conf"
1214         awk '/^hosts/ {print $0 " wins%{samba_major}"};!/^hosts/ {print}' /etc/nsswitch.conf.rpmsave >/etc/nsswitch.conf;
1215     else
1216         echo "wins entry found in /etc/nsswitch.conf"
1217     fi
1218 #    else
1219 #        echo "Upgrade, leaving nsswitch.conf intact"
1220 fi
1221
1222 %preun -n nss_wins%{samba_major}
1223 if [ $1 = 0 ]; then
1224         echo "Removing wins entry from /etc/nsswitch.conf"
1225         perl -pi -e 's/ wins%{samba_major}//' /etc/nsswitch.conf
1226 #else
1227 #       echo "Leaving /etc/nsswitch.conf intact"
1228 fi
1229 %endif %build_wins
1230
1231 %preun server
1232
1233 %_preun_service smb%{samba_major}
1234 #%_preun_service wrepld%{samba_major}
1235
1236 if [ $1 = 0 ] ; then
1237 #    /sbin/chkconfig --level 35 smb reset
1238 # Let's not loose /var/cache/samba
1239
1240 #    for i in browse.dat wins.dat brlock.tdb unexpected.tdb connections.tdb \
1241 #locking.tdb messages.tdb;do
1242 #        if [ -e /var/cache/samba/$i ]; then
1243 #                mv -f /var/cache/samba/$i /var/cache/samba/$i.BAK
1244 #        fi;
1245 #    done
1246     if [ -d /var/log/%{name} ]; then
1247       rm -rf /var/log/%{name}/*
1248     fi
1249     if [ -d /var/cache/%{name} ]; then
1250       mv -f /var/cache/%{name} /var/cache/%{name}.BAK
1251     fi
1252 fi
1253
1254 %post swat
1255 if [ -f /var/lock/subsys/xinetd ]; then
1256         service xinetd reload >/dev/null 2>&1 || :
1257 fi
1258 %update_menus
1259
1260 %postun swat
1261
1262 # Remove swat entry from xinetd
1263 if [ $1 = 0 -a -f /etc/xinetd.conf ] ; then
1264 rm -f /etc/xinetd.d/swat%{samba_major}
1265         service xinetd reload &>/dev/null || :
1266 fi
1267
1268 if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
1269
1270 %clean_menus
1271
1272 %triggerpostun -- samba < 1.9.18p7
1273
1274 if [ $1 != 0 ]; then
1275     /sbin/chkconfig --level 35 smb on
1276 fi
1277
1278 %triggerpostun -- samba < 2.0.5a-3, samba >= 2.0.0
1279
1280 if [ $1 != 0 ]; then
1281         [ ! -d /var/lock/samba ] && mkdir -m 0755 /var/lock/samba ||:
1282         [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba ||:
1283         [ -f /etc/inetd.conf ] && chmod 644 /etc/services /etc/inetd.conf ||:
1284 fi
1285
1286 %files server
1287 %defattr(-,root,root)
1288 #%attr(-,root,root) /sbin/*
1289 %{_sbindir}/%{name}
1290 %{_sbindir}/smbd%{samba_major}
1291 %{_sbindir}/nmbd%{samba_major}
1292 #%{_sbindir}/wrepld%{samba_major}
1293 %{_bindir}/smbcontrol%{samba_major}
1294 #%{_sbindir}/mkntpwd
1295 %{_bindir}/smbstatus%{samba_major}
1296 %{_bindir}/pdbedit%{samba_major}
1297 %{_bindir}/tdbbackup%{samba_major}
1298 %{_bindir}/profiles%{samba_major}
1299 %{_bindir}/editreg%{samba_major}
1300 %attr(755,root,root) /%{_lib}/security/pam_smbpass*
1301 %dir %{_libdir}/%{name}/vfs
1302 %{_libdir}/%{name}/vfs/*.so
1303 %dir %{_libdir}/%{name}/pdb
1304
1305 #/usr/share/swat
1306 %attr(-,root,root) %config(noreplace) /etc/%{name}/smbusers
1307 %attr(-,root,root) %config %{_initrddir}/smb%{samba_major}
1308 #%attr(-,root,root) %config %{_initrddir}/wrepld%{samba_major}
1309 %attr(-,root,root) %config(noreplace) /etc/logrotate.d/%{name}
1310 %attr(-,root,root) %config(noreplace) /etc/pam.d/%{name}
1311 #%attr(-,root,root) %config(noreplace) /etc/%{name}/samba-slapd.include
1312 %{_mandir}/man1/smbstatus*.1*
1313 %{_mandir}/man5/smbpasswd*.5*
1314 %{_mandir}/man7/samba*.7*
1315 %{_mandir}/man8/smbd*.8*
1316 %{_mandir}/man8/nmbd*.8*
1317 %{_mandir}/man8/pdbedit*.8*
1318 %{_mandir}/man1/smbcontrol*.1*
1319 %{_mandir}/man8/tdbbackup*.8*
1320 %{_mandir}/man1/profiles*.1*
1321 %{_mandir}/man1/editreg*.1*
1322 %attr(775,root,root) %dir %{_localstatedir}/%{name}/netlogon
1323 %attr(775,root,root) %dir %{_localstatedir}/%{name}/profiles
1324 %attr(775,root,root) %dir %{_localstatedir}/%{name}/printers
1325 %attr(1777,root,root) %dir /var/spool/%{name}
1326 %dir %{_datadir}/%{name}
1327 %dir %{_datadir}/%{name}/scripts
1328 %attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
1329 #%attr(0750,root,root) %{_datadir}/%{name}/scripts/smbldap*.pl
1330 #%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smbldap_conf.pm
1331 #%attr(0644,root,root) %{_datadir}/%{name}/scripts/smbldap_tools.pm
1332 #%{perl_vendorlib}/*.pm
1333 %attr(0700,root,root) %{_datadir}/%{name}/scripts/*port_smbpasswd.pl
1334 %attr(0755,root,root) %{_datadir}/%{name}/scripts/convertSambaAccount
1335
1336
1337 %files doc
1338 %defattr(-,root,root)
1339 %doc README COPYING Manifest Read-Manifest-Now
1340 %doc WHATSNEW.txt Roadmap
1341 %doc README.%{name}-mandrake-rpm
1342 %doc docs
1343 %doc examples
1344 %doc swat/README
1345 %attr(-,root,root) %{_datadir}/swat%{samba_major}/using_samba/*
1346
1347 %files swat
1348 %defattr(-,root,root)
1349 %config(noreplace) /etc/xinetd.d/swat%{samba_major}
1350 #%attr(-,root,root) /sbin/*
1351 %{_sbindir}/swat%{samba_major}
1352 %{_menudir}/%{name}-swat
1353 %{_miconsdir}/*.png
1354 %{_liconsdir}/*.png
1355 %{_iconsdir}/*.png
1356 %attr(-,root,root) %{_datadir}/swat%{samba_major}/help/*
1357 %attr(-,root,root) %{_datadir}/swat%{samba_major}/images/*
1358 %attr(-,root,root) %{_datadir}/swat%{samba_major}/include/*
1359 %lang(ja) %{_datadir}/swat%{samba_major}/lang/ja
1360 %lang(tr) %{_datadir}/swat%{samba_major}/lang/tr
1361 %{_mandir}/man8/swat*.8*
1362
1363 %files client
1364 %defattr(-,root,root)
1365 %ifnarch alpha
1366 /sbin/mount.smb%{samba_major}
1367 /sbin/mount.smbfs%{samba_major}
1368 %attr(755,root,root) %{_bindir}/smbmount%{samba_major}
1369 %attr(4755,root,root) %{_bindir}/smbumount%{samba_major}
1370 %attr(4755,root,root) %{_bindir}/smbmnt%{samba_major}
1371 %{_mandir}/man8/smbmnt*.8*
1372 %{_mandir}/man8/smbmount*.8*
1373 %{_mandir}/man8/smbumount*.8*
1374 %else
1375 %exclude %{_bindir}/smb*m*nt%{samba_major}
1376 %exclude %{_mandir}/man8/smb*m*nt*.8*
1377 %endif
1378 %{_bindir}/nmblookup%{samba_major}
1379 %{_bindir}/findsmb%{samba_major}
1380 %{_bindir}/smbclient%{samba_major}
1381 %{_bindir}/smbprint%{samba_major}
1382 %{_bindir}/smbtar%{samba_major}
1383 %{_bindir}/smbspool%{samba_major}
1384 # Link of smbspool to CUPS
1385 /%{_libdir}/cups/backend/smb%{samba_major}
1386 /%{_mandir}/man1/nmblookup*.1*
1387 /%{_mandir}/man1/findsmb*.1*
1388 /%{_mandir}/man1/smbclient*.1*
1389 /%{_mandir}/man1/smbtar*.1*
1390 /%{_mandir}/man8/smbspool*.8*
1391
1392 %files common
1393 %defattr(-,root,root)
1394 %dir /var/cache/%{name}
1395 %dir /var/log/%{name}
1396 %dir /var/run/%{name}
1397 #%{_bindir}/make_smbcodepage
1398 #%{_bindir}/make_unicodemap
1399 %{_bindir}/testparm%{samba_major}
1400 %{_bindir}/testprns%{samba_major}
1401 #%{_bindir}/make_printerdef
1402 %{_bindir}/rpcclient%{samba_major}
1403 #%{_bindir}/smbsh%{samba_major}
1404 %{_bindir}/smbpasswd%{samba_major}
1405 %{_bindir}/smbcacls%{samba_major}
1406 %{_bindir}/smbcquotas%{samba_major}
1407 %{_bindir}/net%{samba_major}
1408 %{_bindir}/smbtree%{samba_major}
1409 %{_bindir}/ntlm_auth%{samba_major}
1410 #%{_libdir}/smbwrapper%{samba_major}.so
1411 %dir %{_libdir}/%{name}
1412 %{_libdir}/%{name}/*.dat
1413 #%{_libdir}/%{name}/lowcase.dat
1414 #%{_libdir}/%{name}/valid.dat
1415 %dir %{_sysconfdir}/%{name}
1416 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb.conf
1417 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb-winbind.conf
1418 %attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/lmhosts
1419 %dir %{_localstatedir}/%{name}
1420 %attr(-,root,root) %{_localstatedir}/%{name}/codepages
1421 #%{_mandir}/man1/make_smbcodepage*.1*
1422 #%{_mandir}/man1/make_unicodemap*.1*
1423 %{_mandir}/man1/testparm*.1*
1424 %{_mandir}/man1/rpcclient*.1*
1425 %{_mandir}/man1/testprns*.1*
1426 %{_mandir}/man5/smb.conf*.5*
1427 %{_mandir}/man5/lmhosts*.5*
1428 %{_mandir}/man8/smbpasswd*.8*
1429 %{_mandir}/man1/smbcacls*.1*
1430 %{_mandir}/man1/smbcquotas*.1*
1431 %{_mandir}/man8/net*.8*
1432 %{_mandir}/man1/smbtree*.1*
1433 %{_mandir}/man1/ntlm_auth*.1*
1434 %{_mandir}/man7/Samba*.7*
1435
1436 %if %build_winbind
1437 %files winbind
1438 %defattr(-,root,root)
1439 %{_sbindir}/winbindd%{samba_major}
1440 %{_sbindir}/winbind%{samba_major}
1441 %{_bindir}/wbinfo%{samba_major}
1442 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1443 %attr(755,root,root) /%{_lib}/libnss_winbind%{samba_major}*
1444 %attr(-,root,root) %config /etc/rc.d/init.d/winbind%{samba_major}
1445 %attr(-,root,root) %config(noreplace) /etc/pam.d/system-auth-winbind*
1446 %{_mandir}/man8/winbindd*.8*
1447 %{_mandir}/man1/wbinfo*.1*
1448 %endif
1449
1450 %if %build_wins
1451 %files -n nss_wins%{samba_major}
1452 %defattr(-,root,root)
1453 %attr(755,root,root) /%{_lib}/libnss_wins%{samba_major}.so*
1454 %endif
1455
1456 %if %{?_without_test:0}%{!?_without_test:1}
1457 %files test
1458 %defattr(-,root,root)
1459 %{_bindir}/debug2html%{samba_major}
1460 %{_bindir}/smbtorture%{samba_major}
1461 %{_bindir}/msgtest%{samba_major}
1462 %{_bindir}/masktest%{samba_major}
1463 %{_bindir}/locktest%{samba_major}
1464 %{_bindir}/locktest2%{samba_major}
1465 %{_bindir}/nsstest%{samba_major}
1466 %{_bindir}/vfstest%{samba_major}
1467 %{_mandir}/man1/vfstest%{samba_major}*.1*
1468 %else
1469 %exclude %{_mandir}/man1/vfstest%{samba_major}*.1*
1470 %endif
1471
1472 %if %build_system
1473 %files -n libsmbclient%{libsmbmajor}
1474 %defattr(-,root,root)
1475 %{_libdir}/libsmbclient.so*
1476 %else
1477 %exclude %{_libdir}/libsmbclient.so*
1478 %endif
1479
1480 %if %build_system
1481 %files -n libsmbclient%{libsmbmajor}-devel
1482 %defattr(-,root,root)
1483 %{_includedir}/*
1484 %else
1485 %exclude %{_includedir}/*
1486 %endif
1487
1488 %if %build_system
1489 %files -n libsmbclient%{libsmbmajor}-static-devel
1490 %defattr(-,root,root)
1491 %{_libdir}/libsmbclient.a
1492 %else
1493 %exclude %{_libdir}/libsmbclient.a
1494 %endif
1495
1496 #%files passdb-ldap
1497 #%defattr(-,root,root)
1498 #%{_libdir}/%{name}/*/*ldap.so
1499
1500 %ifnarch alpha
1501 %files passdb-mysql
1502 %defattr(-,root,root)
1503 %{_libdir}/%{name}/pdb/*mysql.so
1504 %endif
1505
1506 %files passdb-xml
1507 %defattr(-,root,root)
1508 %{_libdir}/%{name}/pdb/*xml.so
1509
1510 #Files for antivirus support:
1511 %if %build_fprot
1512 %files vscan-fprot
1513 %defattr(-,root,root)
1514 %{_libdir}/%{name}/vfs/vscan-fprotd.so
1515 %config(noreplace) %{_sysconfdir}/%{name}/vscan-fprotd.conf
1516 %doc %{vfsdir}/%{vscandir}/INSTALL
1517 %endif
1518
1519 %if %build_kaspersky
1520 %files vscan-kaspersky
1521 %defattr(-,root,root)
1522 %{_libdir}/%{name}/vfs/vscan-kavp.so
1523 %config(noreplace) %{_sysconfdir}/%{name}/vscan-kavp.conf
1524 %doc %{vfsdir}/%{vscandir}/INSTALL
1525 %endif
1526
1527 %if %build_mks
1528 %files vscan-mks
1529 %defattr(-,root,root)
1530 %{_libdir}/%{name}/vfs/vscan-mksd.so
1531 %config(noreplace) %{_sysconfdir}/%{name}/vscan-mks*.conf
1532 %doc %{vfsdir}/%{vscandir}/INSTALL
1533 %endif
1534
1535 %if %build_openav
1536 %files vscan-openav
1537 %defattr(-,root,root)
1538 %{_libdir}/%{name}/vfs/vscan-oav.so
1539 %config(noreplace) %{_sysconfdir}/%{name}/vscan-oav.conf
1540 %doc %{vfsdir}/%{vscandir}/INSTALL
1541 %endif
1542
1543 %if %build_sophos
1544 %files vscan-sophos
1545 %defattr(-,root,root)
1546 %{_libdir}/%{name}/vfs/vscan-sophos.so
1547 %config(noreplace) %{_sysconfdir}/%{name}/vscan-sophos.conf
1548 %doc %{vfsdir}/%{vscandir}/INSTALL
1549 %endif
1550
1551 %if %build_symantec
1552 %files vscan-symantec
1553 %defattr(-,root,root)
1554 %{_libdir}/%{name}/vfs/vscan-symantec.so
1555 %config(noreplace) %{_sysconfdir}/%{name}/vscan-symantec.conf
1556 %doc %{vfsdir}/%{vscandir}/INSTALL
1557 %endif
1558
1559 %if %build_trend
1560 %files vscan-trend
1561 %defattr(-,root,root)
1562 %{_libdir}/%{name}/vfs/vscan-trend.so
1563 %config(noreplace) %{_sysconfdir}/%{name}/vscan-trend.conf
1564 %doc %{vfsdir}/%{vscandir}/INSTALL
1565 %endif
1566
1567 %exclude %{_mandir}/man1/smbsh*.1*
1568
1569 %changelog
1570 * Mon Jul 14 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta2.3mdk
1571 - place non-conditional excludes at the end of files list, to prevent causing
1572   rpm in Mandrake <=8.2 from segfaulting when processing files.
1573 - Update default config  
1574
1575 * Wed Jul 02 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta2.2mdk
1576 - 3.0.0beta2
1577 - manually build editreg
1578 - Add some new man pages
1579
1580 * Tue Jun 10 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta1.3mdk
1581 - add provision for passdb-ldap subpackage (it doesn't build like that yet)
1582 - avoid debugging info on cooker/9.2 for the moment
1583 - We probably don't need to autoconf (and can thus build on 8.1)
1584 - We can probably build without kerberos support (and thus on 8.0)
1585 - Don't require mysql-devel on alpha's (maybe we want to be able to disable
1586   mysql support for other arches?)
1587 - We shouldn't need to specifically add openssl to include path, since ssl
1588   support is deprecated.
1589 - png icons, change menu title to not conflict with ksambaplugin  
1590 - update to samba-vscan-0.3.3beta1, but it still does not build the vscan
1591   modules.
1592 - add -static-devel package
1593 - Add buildrequires for lib packages that are picked up if installed
1594   (ncurses, popt) in an attempt to get slbd to build samba3
1595 - Fix default config (P100)
1596
1597 * Sun Jun 08 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0.0-0.beta1.2mdk
1598 - Get packages into cooker (klama doesn't want to build this package ..)
1599 - samba-vscan-0.3.2b
1600
1601 * Fri Jun 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.2mdk
1602 - Rename debug package to test and other fixes for rpm-4.2
1603 - prepare for beta1
1604
1605 * Wed Apr 30 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.1mdk
1606 - Remove some files removed upstream
1607 - In builds from source, don't terminate on missing docs or unpackaged files
1608   (if only we could do it for other missing files ...)
1609
1610 * Mon Apr 28 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha24.0mdk
1611 - Reenable debug package by (--without debug to not build it), fixed post-a23
1612 - Add bugzilla note for builds from source (also intended for packages made
1613   available on samba FTP site) at samba team request
1614 - Fix build from CVS (run autogen.sh, pass options to all rpm commands)
1615 - Appease distriblint, but not much to be done about /usr/share/swat3/ since
1616   samba-doc owns some subdirs, and samba-swat others, and they can be installed
1617   independantly.
1618 - Apply kaspersky vscan build fix from samba2  
1619 - Final for alpha24
1620
1621 * Wed Apr 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.3mdk
1622 - Small fixes in preparation for testing as system samba
1623 - Make debug package optional (--with debug) since it's often broken
1624 - Add support for 9.2 (including in-line smbd quota patch for glibc2.3)
1625 - Add --with options option, which will just show you the available options and exit
1626
1627 * Sun Apr 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha23.2mdk
1628 - Alpha23
1629 - buildrequire autconf2.5
1630 - samba-vscan 0.3.2a
1631 - Remove patch 102 (upstreamed)
1632
1633 * Thu Mar 06 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha22.2mdk
1634 - Alpha22
1635 - Add profiles binary to server and ntlm_auth to common
1636 - smbwrapper and torture target broken (only in 9.0?)
1637 - remove unused source 2
1638
1639 * Tue Mar 04 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.4mdk
1640 - Don't provide samba-{server,client,common} when not system samba (bug #2617)
1641 - Don't build libsmbclient packages when not system samba
1642 - Fix conflict between samba-server and samba3-server (pam_smbpass)
1643 - Fix smbwrapper (from 2.2.7a-5mdk for bug #2356)
1644 - Fix codepage/charset example (bug #1574)
1645
1646 * Thu Jan 23 2003 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.3mdk
1647 - samba-vscan 0.3.1 (and make it build again), including required inline edits
1648 - Make all vscan packages provide samba(3)-vscan
1649 - Build all vscan except kav (requires kaspersky lib) with --with-scanners
1650 - Add vscan-(scanner).conf files
1651 - Explicitly add ldapsam for 2.2 compatability when building --with ldap,
1652   default build now uses new ldap passdb backend (ie you always get ldap)
1653 - Enable (experimental) tdb passdb backend
1654 - Fix file ownership conflicts between server and common
1655 - Cleanup configure, to match order of --help
1656 - Fix libdir location, was being overridden by --with-fhs
1657 - Split off a libsmbclient and -devel package
1658 - Add wins replication init script (patch 102)
1659 - Workaround passdb/pdb_xml.c not compiling
1660 - Workaround missing install targets for smbsh/smbwrapper.so in cvs
1661 - Inline patch smbd/quotas.c for Mandrake >9.0
1662
1663 * Wed Nov 27 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha21.2mdk
1664 - Remove patch 20,21,22,23,25,26 (upstream)
1665 - New destdir patch from cvs (18)
1666 - package installed but non-packaged files
1667 - new debug subpackage for vfstest and related files (it was that or nuke the 
1668   manpage ;-))
1669 - use _libdir for libdir instead of _sysconfdir
1670 - Update samba-vscan (untested)
1671
1672 * Mon Oct 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.3mdk
1673 - Fix mount.smbfs3 pointing to smbmount not in package
1674 - Remove unnecessary lines from install (now done by make)
1675 - Build with ldap and ads on all releases by default
1676 - Put av-stuff back
1677
1678 * Mon Oct 21 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.2mdk
1679 - When not building as system samba, avoid conflicting with system samba
1680 - Macro-ize as much as possible for above (aka finish cleanups)
1681 - Fix paths in init scripts and logrotate and xinetd
1682 - Fix provides and obsoletes so as to provide samba, but not obsolete
1683   current stable until we have a stable release (when it's the system samba).
1684 - Add warnings to descriptions when not system samba.
1685 - This is now parallel installable with the normal samba release, for easy
1686   testing. It shouldn't touch existing installations. Of course, only
1687   one samba at a time on the same interface!
1688
1689 * Sat Sep 28 2002 Buchan Milne <bgmilne@linux-mandrake.com> 3.0-0.alpha20.1mdk
1690 - Merge with 2.2.6pre2.2mdk
1691 - Detect alpha- and beta-, along with pre-releases
1692
1693 * Tue Feb 05 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.1mdk
1694 - Sync with 2.2.3-2mdk (new --without options, detect when 
1695   building for a different distribution.
1696
1697 * Mon Feb 04 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha14-0.0mdk
1698 - Sync with 2.2.2-10mdk, which added build-time options --with ldap,
1699   winbind, acl, wins, mdk72, mdk80, mdk81, mdk82, cooker. Added
1700   warning in description if built with these options.
1701
1702 * Wed Jan 23 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.2mdk
1703 - Added if's for build_ads, which hopefully will add Active Directory
1704   Support (by request).
1705
1706 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.1mdk
1707 - More syncing with 2.2 rpm (post and postun scripts)
1708 - Testing without ldap
1709
1710 * Thu Jan 17 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha13-0.0mdk
1711 - 3.0-alpha13
1712 - Fixed installman.sh patch.
1713
1714 * Wed Jan 09 2002 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.1mdk
1715 - Fixed %post and %preun for nss_wins, added %post and %preun for
1716   samba-winbind (chkconfig and winbind entries in nsswitch.conf)
1717
1718 * Sun Dec 23 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha12-0.0mdk
1719 - 3.0-alpha12
1720 - Sync up with changes made in 2.2.2 to support Mandrake 8.0, 7.2
1721 - Added new subpackage for swat
1722 - More if's for ldap.
1723
1724 * Thu Dec 20 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-alpha11-0.0mdk
1725 - 3.0-alpha11
1726
1727 * Wed Dec 19 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha10-0.0mdk
1728 - 3.0-alpha10
1729
1730 * Tue Dec 18 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha9-0.0mdk
1731 - 3.0-alpha9
1732
1733 * Mon Dec 17 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.1mdk
1734 - Added net command to %files common, pdbedit and smbgroupedit to
1735   %files, s/%{prefix}\/bin/%{_bindir}/ (the big cleanup).
1736   Added patch to smb.init from 2.2.2 (got missed with 3.0-alpha1 patches)
1737
1738 * Sun Dec 16 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha8-0.0mdk
1739 - Patch for installman.sh to handle lang=en correctly (p24)
1740 - added --with-manpages-langs=en,ja,pl (translated manpages), but there
1741   aren't any manpages for these languages yet ... so we still
1742   need %dir and %doc entries for them ...
1743 - patch (p25) to configure.in to support more than 2 languages.
1744 - addtosmbpass seems to have returned for now, but make_* have disappeared!
1745
1746 * Fri Dec 14 2001 Buchan Milne <bgmilne@cae.co.za> 3.0alpha6-0.0mdk
1747 - DESTDIR patch for Makefile.in (p23), remove a lot of %%install scripts
1748   this forces move of smbcontrol and smbmnt to %{prefix}/bin
1749   removed --with-pam_smbpass as it doesn't compile.
1750
1751 * Thu Dec 06 2001 Buchan Milne <bgmilne@cae.co.za> 3.0-0.0alpha1mdk
1752 - Samba 3.0alpha1 released (we missed Samba 3.0alpha0!)
1753 - Redid smbmount-sbin patch and smb.conf patch (20), removed xfs quota patch 
1754   (applied upstream), removed ook-patch (codepage directory totally different).
1755 - Added winbind.init (21) and system-auth-winbind.pamd (22). Patches 20-23 
1756   should be applied upstream before 3.0 ships ...
1757
1758 * Wed Dec 05 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-6mdk
1759 - fixed typo in system-auth-winbind.pamd (--Thanks J. Gluck).
1760 - fixed %post xxx problem (smb not started in chkconfig --Thanks Viet & B. Kenworthy).
1761
1762 * Fri Nov 23 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-5mdk
1763 - Had to remove the network recycle bin patch: it seems to mess up 
1764   file deletion from windows (files appear to be "already in use")
1765
1766 * Tue Nov 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-4mdk
1767 - added network recycle bin patch:
1768   <http://www.amherst.edu/~bbstone/howto/samba.html>
1769 - added "recycle bin = .recycled" parameter in smb.conf [homes].
1770 - fixed winbind/nss_wins perms (oh no I don't own that stuff ;o)
1771
1772 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-3mdk
1773 - added %build 8.0 and 7.2, for tweakers to play around.
1774 - changed configure options:
1775   . removed --with-mmap, --with-netatalk (obsolete).
1776   . added --with-msdfs, --with-vfs (seems stable, but still need testing).
1777
1778 * Mon Nov 12 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-2mdk
1779 - rebuilt with winbind and nss_wins enabled.
1780
1781 * Wed Oct 31 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-1mdk
1782 - Rebuilt on cooker.
1783
1784 * Wed Oct 31 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.992mdk
1785 - Patch for smb.conf to fix incorrect lpq command, typo in winbind,
1786   and add sample linpopup command. Added print driver directories.
1787 - New XFS quota patch (untested!, samba runs, but do quotas work? We
1788   can't check yet since the kernel doesn't seem to support XFS quotas!)
1789
1790 * Fri Oct 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.2-0.99mdk
1791 - New samba.spec, almost ready for winbind operations. OLA for Buchan Milne
1792   Who did a tremendous integration work on 2.2.2.
1793   Rebuild on cooker, please test XFS (ACLs and quotas) again...
1794   
1795 * Mon Oct 15 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.9mdk
1796 - Samba-2.2.2. released! Use %defines to determine which subpackages
1797   are built and which Mandrake release we are buiding on/for (hint: define 
1798   build_mdk81 1 for Mandrake 8.1 updates)
1799
1800 * Sun Oct 14 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011014mdk
1801 - %post and %postun for nss_wins
1802
1803 * Wed Oct 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011010mdk
1804 - New CVS snapshot, /etc/pam.d/system-auth-winbind added
1805   with configuration to allow easy winbind setup.
1806   
1807 * Sun Oct 7 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011007mdk
1808 - Added new package nss_wins and moved smbpasswd to common (required by
1809   winbind).
1810
1811 * Sat Oct 6 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011006mdk
1812 - Added new package winbind.
1813
1814 * Mon Oct 1 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20011001mdk
1815 - Removed patch to smb init.d file (applied in cvs)
1816
1817 * Sun Sep 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010930mdk
1818 - Added winbind init script, which still needs to check for running nmbd.
1819
1820 * Thu Sep 27 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.2-0.20010927mdk
1821 - Built from samba-2.2.2-pre cvs, added winbindd, wbinfo, nss_winbind and 
1822   pam_winbind, moved pam_smbpass from samba-common to samba. We still
1823   need a start-up script for winbind, or need to modify existing one.
1824   
1825 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-15mdk
1826 - Enabled acl support (XFS acls now supported by kernel-2.4.8-21mdk thx Chmou)
1827   Added smbd patch to support XFS quota (Nathan Scott)
1828   
1829 * Mon Sep 10 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-14mdk
1830 - Oops! smbpasswd created in wrong directory...
1831
1832 * Tue Sep 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-13mdk
1833 - Removed a wrong comment in smb.conf.
1834   Added creation of smbpasswd during install.
1835
1836 * Mon Aug 27 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-12mdk
1837 - really less verbose %%post
1838
1839 * Sat Aug 25 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1a-11mdk
1840 - Fix shared libs in /usr/bin silliness.
1841
1842 * Thu Aug 23 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-10mdk
1843 - less verbose %%post
1844
1845 * Wed Aug 22 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-9mdk
1846 - Added smbcacls (missing in %files), modification to smb.conf: ([printers]
1847   is still needed, even with point-and-print!, user add script should
1848   use name and not gid, since we may not get the gid . New script for
1849   putting manpages in place (still need to be added in %files!). Moved
1850   smbcontrol to sbin and added it and its man page to %files.
1851
1852 * Wed Aug 22 2001 Pixel <pixel@mandrakesoft.com> 2.2.1a-8mdk
1853 - cleanup /var/lib/samba/codepage/src
1854
1855 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-7mdk
1856 - moved codepage generation to %%install and codepage dir to /var/lib/samba
1857
1858 * Tue Aug 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-6mdk
1859 - /lib/* was in both samba and samba-common
1860   Introducing samba-doc: "alas, for the sake of thy modem, shalt thou remember
1861   when Samba was under the Megabyte..."
1862
1863 * Fri Aug 03 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-5mdk
1864 - Added "the gc touch" to smbinit through the use of killall -0 instead of
1865   grep cupsd | grep -v grep (too many greps :o)
1866
1867 * Wed Jul 18 2001 Stefan van der Eijk <stefan@eijk.nu> 2.2.1a-4mdk
1868 - BuildRequires: libcups-devel
1869 - Removed BuildRequires: openssl-devel
1870
1871 * Fri Jul 13 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1a-3mdk
1872 - replace chkconfig --add/del with --level 35 on/reset.
1873
1874 * Fri Jul 13 2001 Geoffrey Lee <snailtalk@mandrakesoft.cm> 2.2.1a-2mdk
1875 - Replace discription s/inetd/xinetd/, we all love xinetd, blah.
1876
1877 * Thu Jul 12 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1a-1mdk
1878 - Bugfix release. Fixed add user script, added print$ share and printer admin
1879   We need to test interaction of new print support with CUPS, but printer
1880   driver uploads should work.
1881
1882 * Wed Jul 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-17mdk
1883 - fixed smb.conf a bit, rebuilt on cooker.
1884
1885 * Tue Jul 10 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-16mdk
1886 - Finally, samba 2.2.1 has actually been release. At least we were ready!
1887   Cleaned up smb.conf, and added some useful entries for domain controlling.
1888   Migrated changes made in samba's samba2.spec for 2.2.1  to this file.
1889   Added groupadd command in post to create a group for samba machine accounts.
1890   (We should still check the postun, samba removes pam, logs and cache)
1891
1892 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-15mdk
1893 - fixed smbwrapper compile options.
1894
1895 * Tue Jun 26 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-14mdk
1896 - added LFS support.
1897   added smbwrapper support (smbsh)
1898
1899 * Wed Jun 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-13mdk
1900 - /sbin/mount.smb and /sbin/mount.smbfs now point to the correct location
1901   of smbmount (/usr/bin/smbmount)
1902
1903 * Tue Jun 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-12mdk
1904 - smbmount and smbumount are now in /usr/bin and SUID.
1905   added ||: to triggerpostun son you don't get error 1 anymore when rpm -e
1906   Checked the .bz2 sources with file *: everything is OK now (I'm so stupid ;o)!
1907
1908 * Tue Jun 19 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.2.1-11mdk
1909 - s/Copyright/License/;
1910 - Stop Sylvester from pretending .gz source to be .bz2 source via filename
1911   aka really bzip2 the source.
1912
1913 * Mon Jun 18 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-10mdk
1914 - changed Till's startup script modifications: now samba is being reloaded
1915   automatically 1 minute after it has started (same reasons as below in 9mdk)
1916   added _post_ and _preun_ for service smb
1917   fixed creation of /var/lib/samba/{netlogon,profiles} (%dir was missing)
1918
1919 * Thu Jun 14 2001 Till Kamppeter <till@mandrakesoft.com> 2.2.1-9mdk
1920 - Modified the Samba startup script so that in case of CUPS being used as
1921   printing system Samba only starts when the CUPS daemon is ready to accept
1922   requests. Otherwise the CUPS queues would not appear as Samba shares.
1923
1924 * Mon Jun 11 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-8mdk
1925 - patched smbmount.c to have it call smbmnt in sbin (thanks Seb).
1926
1927 * Wed May 30 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-7mdk
1928 - put SWAT menu icons back in place.
1929
1930 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-6mdk
1931 - OOPS! fixed smbmount symlinks
1932
1933 * Mon May 28 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-5mdk
1934 - removed inetd postun script, replaced with xinetd.
1935   updated binary list (smbcacls...)
1936   cleaned samba.spec
1937
1938 * Mon May 28 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-4mdk
1939 - Changed configure options to point to correct log and codepage directories,
1940   added crude script to fix logrotate file for new log file names, updated
1941   patches to work with current CVS.
1942
1943 * Thu May 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-3mdk
1944 - Cleaned and updated the %files section.
1945
1946 * Sat May 19 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.1-2mdk
1947 - Moved all samba files from /etc to /etc/samba (Thanks DomS!).
1948   Fixed fixinit patch (/etc/samba/smb.conf)
1949
1950 * Fri May 18 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.1-1mdk
1951 - Now use packaging/Mandrake/smb.conf, removed unused and obsolete
1952   patches, moved netlogon and profile shares to /var/lib/samba in the
1953   smb.conf to match the spec file. Added configuration for ntlogon to
1954   smb.conf. Removed pam-foo, fixinit and makefilepath patches. Removed
1955   symlink I introduced in 2.2.0-1mdk
1956
1957 * Thu May 3 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-5mdk
1958 - Added more configure options. Changed Description field (thx John T).
1959
1960 * Wed Apr 25 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-4mdk
1961 - moved netlogon and profiles to /var/lib/samba by popular demand ;o)
1962
1963 * Tue Apr 24 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-3mdk
1964 - moved netlogon and profiles back to /home.
1965
1966 * Fri Apr 20 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.2.0-2mdk
1967 - fixed post inetd/xinetd script&
1968
1969 * Thu Apr 19 2001 Buchan Milne <bgmilne@cae.co.za> 2.2.0-1mdk
1970 - Upgrade to 2.2.0. Merged most of 2.0.7-25mdk's patches (beware
1971   nasty "ln -sf samba-%{ver} ../samba-2.0.7" hack to force some patches
1972   to take. smbadduser and addtosmbpass seem to have disappeared. Moved
1973   all Mandrake-specific files to packaging/Mandrake and made patches
1974   from those shipped with samba. Moved netlogon to /home/samba and added
1975   /home/samba/profiles. Added winbind,smbfilter and debug2html to make command.
1976
1977 * Thu Apr 12 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 2.0.7-25mdk
1978 - Fix menu entry and provide separate menu entry for GNOME
1979   (nautilus doesn't support HTTP authentication yet)
1980 - Add icons in package
1981
1982 * Fri Mar 30 2001 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-24mdk
1983 - use new server macros
1984
1985 * Wed Mar 21 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-23mdk
1986 - check whether /etc/inetd.conf exists (upgrade) or not (fresh install).
1987
1988 * Thu Mar 15 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-22mdk
1989 - spec cosmetics, added '-r' option to lpr-cups command line so files are
1990   removed from /var/spool/samba after printing.
1991
1992 * Tue Mar 06 2001 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-21mdk
1993 - merged last rh patches.
1994
1995 * Thu Nov 23 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-20mdk
1996 - removed dependencies on cups and cups-devel so one can install samba without using cups
1997 - added /home/netlogon
1998
1999 * Mon Nov 20 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-19mdk
2000 - Changed default print command in /etc/smb.conf, so that the Windows
2001   driver of the printer has to be used on the client.
2002 - Fixed bug in smbspool which prevented from printing from a
2003   Linux-Samba-CUPS client to a Windows server through the guest account.
2004
2005 * Mon Oct 16 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-18mdk
2006 - Moved "smbspool" (Samba client of CUPS) to the samba-client package
2007
2008 * Sat Oct 7 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 2.0.7-17mdk
2009 - Added RedHat's "quota" patch to samba-glibc21.patch.bz2, this fixes
2010   quota related compile problems on the alpha.
2011
2012 * Wed Oct 4 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-16mdk
2013 - Fixed 'guest ok = ok' flag in smb.conf
2014
2015 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-15mdk
2016 - Allowed guest account to print in smb.conf
2017 - added swat icon in menu
2018
2019 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-14mdk
2020 - Removed rh ssl patch and --with-ssl flag: not appropriate for 7.2
2021
2022 * Tue Oct 3 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-13mdk
2023 - Changed fixinit patch.
2024 - Changed smb.conf for better CUPS configuration.
2025 - Thanks Fred for doing this ---vvv.
2026
2027 * Tue Oct  3 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-12mdk
2028 - menu entry for web configuration tool.
2029 - merge with rh: xinetd + ssl + pam_stack.
2030 - Added smbadduser rh-bugfix w/o relocation of config-files.
2031
2032 * Mon Oct  2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.0.7-11mdk
2033 - added build requires on cups-devel and pam-devel.
2034
2035 * Mon Oct  2 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-10mdk
2036 - Fixed smb.conf entry for CUPS: "printcap name = lpstat", "lpstats" was
2037   wrong.
2038
2039 * Mon Sep 25 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-9mdk
2040 - Cosmetic changes to make rpmlint more happy
2041
2042 * Wed Sep 11 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-8mdk
2043 - added linkage to the using_samba book in swat
2044
2045 * Fri Sep 01 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-7mdk
2046 - Added CUPS support to smb.conf
2047 - Added internationalization options to smb.conf [Global]
2048
2049 * Wed Aug 30 2000 Till Kamppeter <till@mandrakesoft.com> 2.0.7-6mdk
2050 - Put "smbspool" to the files to install
2051
2052 * Wed Aug 30 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-5mdk
2053 - Did some cleaning in the patches
2054
2055 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-4mdk
2056 - relocated man pages from /usr/man to /usr/share/man for compatibility reasons
2057
2058 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-3mdk
2059 - added make_unicodemap and build of unicode_map.$i in the spec file
2060
2061 * Fri Jul 28 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-2mdk
2062 - renamed /etc/codepage/codepage.$i into /etc/codepage/unicode_map.$i to fix smbmount bug.
2063
2064 * Fri Jul 07 2000 Sylvestre Taburet <staburet@mandrakesoft.com> 2.0.7-1mdk
2065 - 2.0.7
2066
2067 * Wed Apr 05 2000 Francis Galiegue <fg@mandrakesoft.com> 2.0.6-4mdk
2068
2069 - Titi sucks, does not put versions in changelog
2070 - Fixed groups for -common and -client
2071 - /usr/sbin/samba is no config file
2072
2073 * Thu Mar 23 2000 Thierry Vignaud <tvignaud@mandrakesoft.com>
2074 - fix buggy post install script (pixel)
2075
2076 * Fri Mar 17 2000 Francis Galiegue <francis@mandrakesoft.com> 2.0.6-2mdk
2077
2078 - Changed group according to 7.1 specs
2079 - Some spec file changes
2080 - Let spec-helper do its job
2081
2082 * Thu Nov 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2083 - 2.0.6.
2084
2085 * Tue Nov  2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2086 - Merge with rh changes.
2087 - Split in 3 packages.
2088
2089 * Fri Aug 13 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
2090 - corrected a bug with %post (the $1 parameter is "1" in case of
2091   a first install, not "0". That parameter is the number of packages
2092   of the same name that will exist after running all the steps if nothing
2093   is removed; so it is "1" after first isntall, "2" for a second install
2094   or an upgrade, and "0" for a removal)
2095
2096 * Wed Jul 28 1999 Pablo Saratxaga <pablo@@mandrakesoft.com>
2097 - made smbmnt and smbumount suid root, and only executable by group 'smb'
2098   add to 'smb' group any user that should be allowed to mount/unmount
2099   SMB shared directories
2100
2101 * Fri Jul 23 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2102 - 2.0.5a (bug security fix).
2103
2104 * Wed Jul 21 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
2105 - 2.0.5
2106 - cs/da/de/fi/fr/it/tr descriptions/summaries
2107
2108 * Sun Jun 13 1999 Bernhard Rosenkränzer <bero@mandrakesoft.com>
2109 - 2.0.4b
2110 - recompile on a system that works ;)
2111
2112 * Wed Apr 21 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
2113 - Mandrake adaptations.
2114 - Bzip2 man-pages.
2115
2116 * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
2117 - add a mount.smb to make smb mounting a little easier.
2118 - smb filesystems apparently do not work on alpha. Oops.
2119
2120 * Thu Mar 25 1999 Bill Nottingham <notting@redhat.com>
2121 - always create codepages
2122
2123 * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
2124 - logrotate changes
2125
2126 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
2127 - auto rebuild in the new build environment (release 3)
2128
2129 * Fri Mar 19 1999 Preston Brown <pbrown@redhat.com>
2130 - updated init script to use graceful restart (not stop/start)
2131
2132 * Tue Mar  9 1999 Bill Nottingham <notting@redhat.com>
2133 - update to 2.0.3
2134
2135 * Thu Feb 18 1999 Bill Nottingham <notting@redhat.com>
2136 - update to 2.0.2
2137
2138 * Mon Feb 15 1999 Bill Nottingham <notting@redhat.com>
2139 - swat swat
2140
2141 * Tue Feb  9 1999 Bill Nottingham <notting@redhat.com>
2142 - fix bash2 breakage in post script
2143
2144 * Fri Feb  5 1999 Bill Nottingham <notting@redhat.com>
2145 - update to 2.0.0
2146
2147 * Mon Oct 12 1998 Cristian Gafton <gafton@redhat.com>
2148 - make sure all binaries are stripped
2149
2150 * Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
2151 - update to 1.9.18p10.
2152 - fix %triggerpostun.
2153
2154 * Tue Jul 07 1998 Erik Troan <ewt@redhat.com>
2155 - updated postun triggerscript to check $0
2156 - clear /etc/codepages from %preun instead of %postun
2157
2158 * Mon Jun 08 1998 Erik Troan <ewt@redhat.com>
2159 - made the %postun script a tad less agressive; no reason to remove
2160   the logs or lock file (after all, if the lock file is still there,
2161   samba is still running)
2162 - the %postun and %preun should only exectute if this is the final
2163   removal
2164 - migrated %triggerpostun from Red Hat's samba package to work around
2165   packaging problems in some Red Hat samba releases
2166
2167 * Sun Apr 26 1998 John H Terpstra <jht@samba.anu.edu.au>
2168 - minor tidy up in preparation for release of 1.9.18p5
2169 - added findsmb utility from SGI package
2170
2171 * Wed Mar 18 1998 John H Terpstra <jht@samba.anu.edu.au>
2172 - Updated version and codepage info.
2173 - Release to test name resolve order
2174
2175 * Sat Jan 24 1998 John H Terpstra <jht@samba.anu.edu.au>
2176 - Many optimisations (some suggested by Manoj Kasichainula <manojk@io.com>
2177 - Use of chkconfig in place of individual symlinks to /etc/rc.d/init/smb
2178 - Compounded make line
2179 - Updated smb.init restart mechanism
2180 - Use compound mkdir -p line instead of individual calls to mkdir
2181 - Fixed smb.conf file path for log files
2182 - Fixed smb.conf file path for incoming smb print spool directory
2183 - Added a number of options to smb.conf file
2184 - Added smbadduser command (missed from all previous RPMs) - Doooh!
2185 - Added smbuser file and smb.conf file updates for username map