Revert "v3-4-ctdb: Do not do any logrotation"
[obnox/samba-ctdb.git] / packaging / RHEL-CTDB / samba.spec.tmpl
1 %define initdir %{_sysconfdir}/rc.d/init.d
2 %define auth %(test -f /etc/pam.d/system-auth && echo /etc/pam.d/system-auth || echo)
3
4 Summary: Samba SMB client and server
5 Vendor: Samba Team
6 Packager: Samba Team <samba@samba.org>
7 Name:         samba
8 Version:      PVERSION
9 Release:      1GITHASH
10 Epoch:        0
11 License: GNU GPL version 3
12 Group: System Environment/Daemons
13 URL: http://www.samba.org/
14
15 Source: samba-%{version}.tar.bz2
16
17 # Don't depend on Net::LDAP
18 Source998: filter-requires-samba.sh
19 Source999: setup.tar.bz2
20
21 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
22 Prereq: fileutils sed /etc/init.d
23
24 Requires: pam >= 0.64 %{auth} 
25 Requires: samba-common = %{version}-%{release}
26 Requires: logrotate >= 3.4 initscripts >= 5.54-1
27 Provides: samba = %{version}
28
29 Prefix: /usr
30 BuildRoot: %{_tmppath}/%{name}-%{version}-root
31 BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-devel, krb5-devel, cups-devel, ctdb, e2fsprogs-devel
32 # requirements for building the man pages:
33 BuildRequires: libxslt, docbook-utils, docbook-style-xsl
34
35 # Working around perl dependency problem from docs
36 %define __perl_requires %{SOURCE998}
37
38 # rpm screws up the arch lib dir when using --target on RHEL5
39 %ifarch i386 i486 i586 i686 ppc s390
40 %define _libarch lib
41 %else
42 %define _libarch %_lib
43 %endif
44
45 %define _libarchdir /usr/%{_libarch}
46
47 %define numcpu  %(grep "^processor" /proc/cpuinfo |wc -l | sed -e 's/^0$/1/')
48
49 %description
50 Samba is the protocol by which a lot of PC-related machines share
51 files, printers, and other information (such as lists of available
52 files and printers). The Windows NT, OS/2, and Linux operating systems
53 support this natively, and add-on packages can enable the same thing
54 for DOS, Windows, VMS, UNIX of all kinds, MVS, and more. This package
55 provides an SMB server that can be used to provide network services to
56 SMB (sometimes called "Lan Manager") clients. Samba uses NetBIOS over
57 TCP/IP (NetBT) protocols and does NOT need the NetBEUI (Microsoft Raw
58 NetBIOS frame) protocol.
59
60
61 ######################################################################
62 %package client
63 Summary: Samba (SMB) client programs.
64 Group: Applications/System
65 Requires: samba-common = %{version}-%{release}
66 Obsoletes: smbfs
67 Provides: samba-client = %{version}-%{release}
68
69 %description client
70 The samba-client package provides some SMB clients to compliment the
71 built-in SMB filesystem in Linux. These clients allow access of SMB
72 shares and printing to SMB printers.
73
74
75 #######################################################################
76 %package common
77 Summary: Files used by both Samba servers and clients.
78 Group: Applications/System
79 Provides: samba-common = %{version}-%{release}
80
81 %description common
82 Samba-common provides files necessary for both the server and client
83 packages of Samba.
84
85
86 #######################################################################
87 %package swat
88 Summary: The Samba SMB server configuration program.
89 Group: Applications/System
90 Requires: samba = %{version} xinetd
91 Provides: samba-swat = %{version}-%{release}
92
93 %description swat
94 The samba-swat package includes the new SWAT (Samba Web Administration
95 Tool), for remotely managing Samba's smb.conf file using your favorite
96 Web browser.
97
98 %ifarch x86_64 ppc64
99 %package winbind-32bit
100 Summary:        Samba winbind compatibility package for 32bit apps on 64bit archs
101 Group:          Applications/System
102
103 %description winbind-32bit
104 Compatibility package for 32 bit apps on 64 bit architecures
105 %endif
106
107
108 #######################################################################
109 %package doc
110 Summary:      Samba Documentation
111 Group:        Documentation/Other
112 Provides:     samba-doc = %{version}-%{release}
113 Prereq:       /usr/bin/find /bin/rm /usr/bin/xargs
114
115 %description doc
116 The samba-doc package includes the HTML versions of the Samba manpages
117 utilized by SWAT as well as the HTML and PDF version of "Using Samba",
118 "Samba By Example", and "The Official Samba HOWTO and Reference Guide".
119
120
121 #######################################################################
122
123 %prep
124 %setup -q
125
126 # setup the vendor files (init scripts, etc...)
127 %setup -T -D -a 999 -n samba-%{version} -q
128
129 %build
130
131 /bin/cp setup/filter-requires-samba.sh %{SOURCE998}
132
133 cd source3
134 # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
135
136 ## check for ccache
137 if ccache -h >/dev/null 2>&1 ; then
138         CC="ccache gcc"
139 else
140         CC="gcc"
141 fi
142
143 export CC
144
145 ## always run autogen.sh
146 ./autogen.sh
147
148
149 ##
150 ## build the files for the winbind-32bit compat package
151 ## and copy them to a safe location
152 ##
153 %ifarch x86_64 ppc64
154
155 # a directory to store the 32bit compatibility modules for later install
156 %define _32bit_tmp_dir %{_tmppath}/%{name}-%{version}-32bit
157
158 CC_SAVE="$CC"
159 CC="$CC -m32"
160
161 CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -m32" ./configure \
162         --prefix=%{_prefix} \
163         --localstatedir=/var \
164         --with-configdir=%{_sysconfdir}/samba \
165         --with-libdir=/usr/lib/samba \
166         --with-pammodulesdir=/lib/security \
167         --with-lockdir=/var/lib/samba \
168         --with-logfilebase=/var/log/samba \
169         --with-mandir=%{_mandir} \
170         --with-piddir=/var/run \
171         --with-privatedir=%{_sysconfdir}/samba \
172         --disable-cups \
173         --with-acl-support \
174         --with-ads \
175         --with-automount \
176         --with-fhs \
177         --with-pam_smbpass \
178         --with-libsmbclient \
179         --with-libsmbsharemodes \
180         --without-smbwrapper \
181         --with-pam \
182         --with-quotas \
183         --with-syslog \
184         --with-utmp \
185         --with-cluster-support \
186         --with-ctdb=/usr/include \
187         --without-ldb \
188         --without-dnsupdate \
189         --with-aio-support \
190         --disable-merged-build
191
192 make showlayout
193
194 ## check for gcc 3.4 or later
195 CC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
196 CC_MAJOR=`echo ${CC_VERSION} | cut -d. -f 1`
197 CC_MINOR=`echo ${CC_VERSION} | cut -d. -f 2`
198 if [ ${CC_MAJOR} -ge 3 ]; then
199         if [ ${CC_MAJOR} -gt 3 -o ${CC_MINOR} -ge 4 ]; then
200                 make pch
201         fi
202 fi
203
204 make -j%{numcpu} %{?_smp_mflags} \
205         nss_modules pam_modules
206
207 rm -rf %{_32bit_tmp_dir}
208 mkdir %{_32bit_tmp_dir}
209
210 mv ../nsswitch/libnss_winbind.so %{_32bit_tmp_dir}/
211 mv bin/pam_winbind.so %{_32bit_tmp_dir}/
212 mv bin/libtalloc.so* %{_32bit_tmp_dir}/
213 mv bin/libtdb.so* %{_32bit_tmp_dir}/
214 mv bin/libwbclient.so* %{_32bit_tmp_dir}/
215
216 make clean
217
218 CC="$CC_SAVE"
219
220 %endif
221
222 CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./configure \
223         --prefix=%{_prefix} \
224         --localstatedir=/var \
225         --with-configdir=%{_sysconfdir}/samba \
226         --libdir=%{_libarchdir} \
227         --with-modulesdir=%{_libarchdir}/samba \
228         --with-pammodulesdir=%{_libarch}/security \
229         --with-lockdir=/var/lib/samba \
230         --with-logfilebase=/var/log/samba \
231         --with-mandir=%{_mandir} \
232         --with-piddir=/var/run \
233         --with-privatedir=%{_sysconfdir}/samba \
234         --with-sambabook=%{_datadir}/swat/using_samba \
235         --with-swatdir=%{_datadir}/swat \
236         --disable-cups \
237         --with-acl-support \
238         --with-ads \
239         --with-automount \
240         --with-fhs \
241         --with-pam_smbpass \
242         --with-libsmbclient \
243         --with-libsmbsharemodes \
244         --without-smbwrapper \
245         --with-pam \
246         --with-quotas \
247         --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2,vfs_gpfs,vfs_tsmsm \
248         --with-syslog \
249         --with-utmp \
250         --with-cluster-support \
251         --with-ctdb=/usr/include \
252         --without-ldb \
253         --without-dnsupdate \
254         --with-aio-support\
255         --disable-merged-build
256
257 make showlayout
258
259 ## check for gcc 3.4 or later
260 CC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
261 CC_MAJOR=`echo ${CC_VERSION} | cut -d. -f 1`
262 CC_MINOR=`echo ${CC_VERSION} | cut -d. -f 2`
263 if [ ${CC_MAJOR} -ge 3 ]; then
264         if [ ${CC_MAJOR} -gt 3 -o ${CC_MINOR} -ge 4 ]; then
265                 make pch
266         fi
267 fi
268
269
270 make -j %{numcpu} %{?_smp_mflags} \
271         everything modules pam_smbpass
272
273 # check that desired suppor has been compiled into smbd:
274 export LD_LIBRARY_PATH=./bin
275 for test in HAVE_POSIX_ACLS HAVE_LDAP HAVE_KRB5 HAVE_GPFS CLUSTER_SUPPORT
276 do
277         if ! $(./bin/smbd -b | grep -q $test ) ; then
278                 echo "ERROR: '$test' is not in smbd. Build stopped."
279                 exit 1;
280         fi
281 done
282
283 cd ..
284
285 # try and build the manpages
286 #
287 # NOTE: some (older) versions the docbook XSL style sheets
288 # are missing some definitions that are required for building
289 # the manual pages (e.g. list-indent).
290 #
291 # This applies in particular to the version 1.69 of
292 # docbook-style-xsl that is shipped with RHEL 5.
293 # We therefore use checked in precompiled manpages
294 # if the docs build fails.
295 #
296 ./release-scripts/build-manpages-nogit || tar xjf packaging/RHEL-CTDB/manpages.tar.bz2
297
298 # Remove some permission bits to avoid to many dependencies
299 find examples docs -type f | xargs -r chmod -x
300
301 %install
302 # Clean up in case there is trash left from a previous build
303 rm -rf $RPM_BUILD_ROOT
304
305 # Create the target build directory hierarchy
306 mkdir -p $RPM_BUILD_ROOT%{_datadir}/swat/{help,include,using_samba/{figs,gifsa}}
307 mkdir -p $RPM_BUILD_ROOT%{_includedir}
308 mkdir -p $RPM_BUILD_ROOT%{_initrddir}
309 mkdir -p $RPM_BUILD_ROOT{%{_libarchdir},%{_includedir}}
310 mkdir -p $RPM_BUILD_ROOT%{_libarchdir}/samba/{auth,charset,idmap,vfs,pdb}
311 mkdir -p $RPM_BUILD_ROOT/%{_libarch}/security
312 mkdir -p $RPM_BUILD_ROOT/lib/security
313 mkdir -p $RPM_BUILD_ROOT%{_mandir}
314 mkdir -p $RPM_BUILD_ROOT%{_prefix}/{bin,sbin}
315 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
316 mkdir -p $RPM_BUILD_ROOT/sbin
317 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{logrotate.d,pam.d,samba}
318 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,logrotate.d}
319 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
320 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{samba,sysconfig}
321 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
322 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/winbindd_privileged
323 mkdir -p $RPM_BUILD_ROOT/var/{log,run/winbindd,spool}/samba
324 mkdir -p $RPM_BUILD_ROOT/%{_libarchdir}/krb5/plugins/libkrb5
325
326 cd source3
327 make DESTDIR=$RPM_BUILD_ROOT \
328         install
329
330 make DESTDIR=$RPM_BUILD_ROOT \
331         install-dbwrap_tool install-dbwrap_torture
332 cd ..
333
334 # NSS winbind support
335 install -m 755 nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_libarch}/libnss_winbind.so.2
336 ( cd $RPM_BUILD_ROOT/%{_libarch};
337   ln -sf libnss_winbind.so.2  libnss_winbind.so )
338 #
339 # do not install libnss_wins.so in order to reduce dependencies
340 # (we do not need it for the samba-ctdb scenario)
341 #
342 #install -m 755 nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_libarch}/libnss_wins.so
343 # ( cd $RPM_BUILD_ROOT/%{_libarch}; ln -sf libnss_wins.so  libnss_wins.so.2 )
344
345 cp -p source3/bin/winbind_krb5_locator.so ${RPM_BUILD_ROOT}/%{_libarchdir}/krb5/plugins/libkrb5
346
347 # install files for winbind-32bit package
348 %ifarch x86_64 ppc64
349
350 install -m 755 %{_32bit_tmp_dir}/libnss_winbind.so ${RPM_BUILD_ROOT}/lib/libnss_winbind.so.2
351 ( cd ${RPM_BUILD_ROOT}/lib; ln -sf libnss_winbind.so.2  libnss_winbind.so )
352
353 mv %{_32bit_tmp_dir}/libtalloc* ${RPM_BUILD_ROOT}/usr/lib
354 mv %{_32bit_tmp_dir}/libtdb* ${RPM_BUILD_ROOT}/usr/lib
355 mv %{_32bit_tmp_dir}/libwbclient* ${RPM_BUILD_ROOT}/usr/lib
356 mv %{_32bit_tmp_dir}/pam_winbind.so ${RPM_BUILD_ROOT}/lib/security
357
358 rm -rf %{_32bit_tmp_dir}
359
360 %endif
361
362 ## cleanup
363 /bin/rm -rf $RPM_BUILD_ROOT/usr/lib*/samba/security
364
365 # Install the miscellany
366 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
367
368 install -m644 setup/samba.log $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/samba
369 install -m644 setup/swat $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/swat
370 install -m644 setup/samba.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/samba
371 install -m755 setup/smb.init $RPM_BUILD_ROOT%{initdir}/smb
372 install -m755 setup/winbind.init $RPM_BUILD_ROOT%{initdir}/winbind
373 install -m644 setup/samba.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/samba
374 install -m755 setup/smbprint $RPM_BUILD_ROOT%{_bindir}
375 install -m644 setup/smbusers $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
376 install -m644 setup/smb.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
377 install -m755 source3/bin/mount.cifs $RPM_BUILD_ROOT/sbin/mount.cifs
378 install -m755 source3/bin/umount.cifs $RPM_BUILD_ROOT/sbin/umount.cifs
379 install -m755 source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_bindir}
380
381 /bin/rm $RPM_BUILD_ROOT%{_sbindir}/*mount.cifs
382
383 ln -s ../..%{initdir}/smb  $RPM_BUILD_ROOT%{_sbindir}/samba
384 ln -s ../..%{initdir}/winbind  $RPM_BUILD_ROOT%{_sbindir}/winbind
385
386 # Remove "*.old" files
387 find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
388
389
390 ##
391 ## Clean out man pages for tools not installed here
392 ##
393 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1*
394 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smbsh.1*
395 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/vfstest.1*
396
397
398 %clean
399 rm -rf $RPM_BUILD_ROOT
400
401 %post
402 ## deal with an upgrade from a broken 3.0.21b RPM
403 if [ "$1" -eq "2" ]; then
404         if [ -d /var/cache/samba ]; then
405                 for file in `ls /var/cache/samba/*tdb`; do
406                         /bin/cp -up $file /var/lib/samba/`basename $file`
407                 done
408                 mkdir -p /var/lib/samba/eventlog
409                 for file in `ls /var/cache/samba/eventlog/*tdb`; do
410                         /bin/cp -up $file /var/lib/samba/eventlog/`basename $file`
411                 done
412                 /bin/mv /var/cache/samba /var/cache/samba.moved
413         fi
414 fi
415
416 if [ "$1" -ge "1" ]; then
417         /sbin/service smb condrestart >/dev/null 2>&1 || :
418 fi
419
420 %preun
421 if [ $1 = 0 ] ; then
422     /sbin/service smb stop >/dev/null 2>&1 || :
423     /sbin/chkconfig --del smb
424     # rm -rf /var/log/samba/* /var/lib/samba/*
425 fi
426 exit 0
427
428 #%postun
429
430 %post swat
431 # Add swat entry to /etc/services if not already there.
432 if [ ! "`grep ^\s**swat /etc/services`" ]; then
433         echo 'swat        901/tcp     # Add swat service used via inetd' >> /etc/services
434 fi
435
436 %post common
437 /sbin/ldconfig
438
439 if [ "$1" -ge "1" ]; then
440         /sbin/service winbind condrestart >/dev/null 2>&1 || :
441 fi
442
443 %preun common
444 if [ $1 = 0 ] ; then
445     /sbin/service winbind stop >/dev/null 2>&1 || :
446     /sbin/chkconfig --del winbind
447 fi
448 exit 0
449
450 %postun common 
451 /sbin/ldconfig
452
453 #######################################################################
454 ## Files section                                                     ##
455 #######################################################################
456
457 %files
458 %defattr(-,root,root)
459
460 %config(noreplace) %{_sysconfdir}/sysconfig/samba
461 %config(noreplace) %{_sysconfdir}/samba/smbusers
462 %attr(755,root,root) %config %{initdir}/smb
463 %config(noreplace) %{_sysconfdir}/logrotate.d/samba
464 %config(noreplace) %{_sysconfdir}/pam.d/samba
465
466 %attr(0755,root,root) %dir /var/log/samba
467 %attr(0755,root,root) %dir /var/lib/samba
468 %attr(1777,root,root) %dir /var/spool/samba
469
470 %{_sbindir}/samba
471
472 %{_sbindir}/smbd
473 %{_sbindir}/nmbd
474
475 %{_bindir}/mksmbpasswd.sh
476 %{_bindir}/smbcontrol
477 %{_bindir}/smbstatus
478 %{_bindir}/tdbbackup
479 %{_bindir}/tdbtool
480 %{_bindir}/tdbdump
481 %{_bindir}/eventlogadm
482
483 %{_libarchdir}/samba/auth/script.so
484 %{_libarchdir}/samba/vfs/acl_tdb.so
485 %{_libarchdir}/samba/vfs/acl_xattr.so
486 %{_libarchdir}/samba/vfs/aio_fork.so
487 %{_libarchdir}/samba/vfs/audit.so
488 %{_libarchdir}/samba/vfs/cap.so
489 %{_libarchdir}/samba/vfs/default_quota.so
490 %{_libarchdir}/samba/vfs/dirsort.so
491 %{_libarchdir}/samba/vfs/expand_msdfs.so
492 %{_libarchdir}/samba/vfs/extd_audit.so
493 %{_libarchdir}/samba/vfs/fake_perms.so
494 %{_libarchdir}/samba/vfs/fileid.so
495 %{_libarchdir}/samba/vfs/full_audit.so
496 %{_libarchdir}/samba/vfs/gpfs.so
497 %{_libarchdir}/samba/vfs/gpfs_prefetch.so
498 %{_libarchdir}/samba/vfs/netatalk.so
499 %{_libarchdir}/samba/vfs/preopen.so
500 %{_libarchdir}/samba/vfs/readahead.so
501 %{_libarchdir}/samba/vfs/readonly.so
502 %{_libarchdir}/samba/vfs/recycle.so
503 %{_libarchdir}/samba/vfs/shadow_copy.so
504 %{_libarchdir}/samba/vfs/shadow_copy2.so
505 %{_libarchdir}/samba/vfs/smb_traffic_analyzer.so
506 %{_libarchdir}/samba/vfs/streams_depot.so
507 %{_libarchdir}/samba/vfs/streams_xattr.so
508 %{_libarchdir}/samba/vfs/syncops.so
509 %{_libarchdir}/samba/vfs/time_audit.so
510 %{_libarchdir}/samba/vfs/tsmsm.so
511 %{_libarchdir}/samba/vfs/xattr_tdb.so
512
513
514 %{_mandir}/man1/smbcontrol.1*
515 %{_mandir}/man1/smbstatus.1*
516 %{_mandir}/man1/vfstest.1*
517 %{_mandir}/man5/smbpasswd.5*
518 %{_mandir}/man7/samba.7*
519 %{_mandir}/man8/nmbd.8*
520 %{_mandir}/man8/pdbedit.8*
521 %{_mandir}/man8/smbd.8*
522 %{_mandir}/man8/tdbbackup.8*
523 %{_mandir}/man8/tdbdump.8*
524 %{_mandir}/man8/tdbtool.8*
525 %{_mandir}/man8/eventlogadm.8*
526 %{_mandir}/man8/vfs_*.8*
527
528
529 ##########
530
531 %files doc
532 %defattr(-,root,root)
533 %doc README
534 %doc COPYING
535 %doc Manifest 
536 %doc WHATSNEW.txt
537 %doc Roadmap
538 %doc docs-xml/archives/THANKS
539 %doc docs-xml/archives/history
540 %doc docs-xml/registry
541 %doc examples/autofs
542 %doc examples/LDAP
543 %doc examples/libsmbclient
544 %doc examples/misc
545 %doc examples/printer-accounting
546 %doc examples/printing
547
548 ##########
549
550 %files swat
551 %defattr(-,root,root)
552 %config(noreplace) %{_sysconfdir}/xinetd.d/swat
553 %dir %{_datadir}/swat
554 %{_datadir}/swat/*
555 %{_sbindir}/swat
556 %{_mandir}/man8/swat.8*
557 %attr(755,root,root) %{_libarchdir}/samba/*.msg
558
559 ##########
560
561 %files client
562 %defattr(-,root,root)
563 /sbin/mount.cifs
564 /sbin/umount.cifs
565
566 %{_sbindir}/cifs.upcall
567
568 %{_bindir}/rpcclient
569 %{_bindir}/smbcacls
570 %{_bindir}/findsmb
571 %{_bindir}/nmblookup
572 %{_bindir}/smbget
573 %{_bindir}/smbclient
574 %{_bindir}/smbprint
575 %{_bindir}/smbspool
576 %{_bindir}/smbtar
577 %{_bindir}/smbtree
578 %{_bindir}/sharesec
579
580 %{_mandir}/man8/mount.cifs.8.*
581 %{_mandir}/man8/umount.cifs.8.*
582 %{_mandir}/man8/cifs.upcall.8*
583 %{_mandir}/man8/smbspool.8*
584 %{_mandir}/man1/smbget.1*
585 %{_mandir}/man5/smbgetrc.5*
586 %{_mandir}/man1/findsmb.1*
587 %{_mandir}/man1/nmblookup.1*
588 %{_mandir}/man1/rpcclient.1*
589 %{_mandir}/man1/smbcacls.1*
590 %{_mandir}/man1/smbclient.1*
591 %{_mandir}/man1/smbtar.1*
592 %{_mandir}/man1/smbtree.1*
593 %{_mandir}/man1/sharesec.1*
594
595 ##########
596
597 %files common
598 %defattr(-,root,root)
599 %dir %{_sysconfdir}/samba
600 %dir %{_libarchdir}/samba
601 %dir %{_libarchdir}/samba/charset
602 %config(noreplace) %{_sysconfdir}/samba/smb.conf
603 %config(noreplace) %{_sysconfdir}/samba/lmhosts
604 %attr(755,root,root) %config %{initdir}/winbind
605
606 %attr(755,root,root) /%{_libarch}/libnss_winbind.so
607 %attr(755,root,root) /%{_libarch}/libnss_winbind.so.2
608 %attr(755,root,root) /%{_libarch}/security/pam_winbind.so
609 %attr(755,root,root) /%{_libarch}/security/pam_smbpass.so
610 /usr/share/locale/*/LC_MESSAGES/pam_winbind.mo
611
612 %{_libarchdir}/samba/charset/CP437.so
613 %{_libarchdir}/samba/charset/CP850.so
614 %{_libarchdir}/samba/idmap/ad.so
615 %{_libarchdir}/samba/idmap/rid.so
616 %{_libarchdir}/samba/idmap/tdb2.so
617 %{_libarchdir}/samba/lowcase.dat
618 %{_libarchdir}/samba/nss_info/rfc2307.so
619 %{_libarchdir}/samba/nss_info/sfu.so
620 %{_libarchdir}/samba/nss_info/sfu20.so
621 %{_libarchdir}/samba/upcase.dat
622 %{_libarchdir}/samba/valid.dat
623
624 %{_includedir}/libsmbclient.h
625 %{_libarchdir}/libsmbclient.*
626 %{_includedir}/smb_share_modes.h
627 %{_libarchdir}/libsmbsharemodes.so
628 %{_libarchdir}/libsmbsharemodes.so.0
629
630 %{_includedir}/netapi.h
631 %{_includedir}/wbclient.h
632 %{_includedir}/talloc.h
633 %{_includedir}/tdb.h
634 %{_libarchdir}/libnetapi.so
635 %{_libarchdir}/libnetapi.so.0
636 %{_libarchdir}/libtalloc.so
637 %{_libarchdir}/libtalloc.so.1
638 %{_libarchdir}/libtdb.so
639 %{_libarchdir}/libtdb.so.1
640 %{_libarchdir}/libwbclient.so
641 %{_libarchdir}/libwbclient.so.0
642
643 %{_libarchdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
644
645 %{_sbindir}/winbind
646
647 %{_sbindir}/winbindd
648 %{_bindir}/testparm
649 %{_bindir}/smbpasswd
650 %{_bindir}/profiles
651 %{_bindir}/net
652 %{_bindir}/ldbadd
653 %{_bindir}/ldbdel
654 %{_bindir}/ldbedit
655 %{_bindir}/ldbmodify
656 %{_bindir}/ldbsearch
657 %{_bindir}/ldbrename
658 %{_bindir}/wbinfo
659 %{_bindir}/ntlm_auth
660 %{_bindir}/pdbedit
661 %{_bindir}/smbcquotas
662 %{_bindir}/dbwrap_tool
663 %{_bindir}/dbwrap_torture
664
665 %{_mandir}/man1/ntlm_auth.1*
666 %{_mandir}/man1/profiles.1*
667 %{_mandir}/man1/smbcquotas.1*
668 %{_mandir}/man1/testparm.1*
669 %{_mandir}/man5/smb.conf.5*
670 %{_mandir}/man5/lmhosts.5*
671 %{_mandir}/man8/smbpasswd.8*
672 %{_mandir}/man1/wbinfo.1*
673 %{_mandir}/man8/winbindd.8*
674 %{_mandir}/man8/net.8*
675 %{_mandir}/man8/pam_winbind.8*
676 %{_mandir}/man7/libsmbclient.7*
677 %{_mandir}/man1/ldbadd.1*
678 %{_mandir}/man1/ldbdel.1*
679 %{_mandir}/man1/ldbedit.1*
680 %{_mandir}/man1/ldbmodify.1*
681 %{_mandir}/man1/ldbsearch.1*
682 %{_mandir}/man1/ldbrename.1*
683 %{_mandir}/man7/winbind_krb5_locator.7*
684 %{_mandir}/man8/idmap_*.8*
685
686 %ifarch x86_64 ppc64
687 %files winbind-32bit
688 %attr(755,root,root) /lib/libnss_winbind.so
689 %attr(755,root,root) /lib/libnss_winbind.so.2
690 %attr(755,root,root) /usr/lib/libtalloc.so
691 %attr(755,root,root) /usr/lib/libtalloc.so.1
692 %attr(755,root,root) /usr/lib/libtdb.so
693 %attr(755,root,root) /usr/lib/libtdb.so.1
694 %attr(755,root,root) /usr/lib/libwbclient.so
695 %attr(755,root,root) /usr/lib/libwbclient.so.0
696 %attr(755,root,root) /lib/security/pam_winbind.so
697 %endif
698
699
700
701 %changelog
702 * Fri Jan 16 2004 Gerald (Jerry) Carter <jerry@samba,org>
703 - Removed ChangeLog entries since they are kept in CVS
704
705
706