# TODO:
# - look into other distro specs for valid %descriptions for samba 3
+# - unpackaged man pages for modules that are not built by default,
+# maybe we should build them?
+# /usr/share/man/man8/vfs_cacheprime.8.gz
+# /usr/share/man/man8/vfs_catia.8.gz
+# /usr/share/man/man8/vfs_commit.8.gz
+# /usr/share/man/man8/vfs_extd_audit.8.gz
+# /usr/share/man/man8/vfs_full_audit.8.gz
+# /usr/share/man/man8/vfs_gpfs.8.gz
+# /usr/share/man/man8/vfs_notify_fam.8.gz
+# /usr/share/man/man8/vfs_prealloc.8.gz
+# - linking breakage:
+# libmsrpc.so.0:
+# undefined symbol: smbc_attr_server (./libmsrpc.so.0)
+# maybe more
#
# Conditional build:
%bcond_without ads # without ActiveDirectory support
%bcond_without cups # without CUPS support
-%bcond_without krb5 # without Kerberos5/Heimdal support
+%bcond_without kerberos5 # without Kerberos V support
%bcond_without ldap # without LDAP support
%bcond_without python # without python libs/utils
-# ADS requires krb5 and LDAP
-%if !%{with krb5} || !%{with ldap}
+# ADS requires kerberos5 and LDAP
+%if !%{with kerberos5} || !%{with ldap}
%undefine with_ads
%endif
-%define vscan_version 0.3.6b
+%define vscan_version 0.3.6c-beta4
Summary: SMB server
-Summary(cs.UTF-8): Server SMB
-Summary(da.UTF-8): SMB server
-Summary(de.UTF-8): SMB-Server
-Summary(es.UTF-8): El servidor SMB
-Summary(fi.UTF-8): SMB-palvelin
-Summary(fr.UTF-8): Serveur SMB
-Summary(it.UTF-8): Server SMB
-Summary(ja.UTF-8): Samba SMB サーバー
-Summary(ko.UTF-8): 삼바 SMB 서버
-Summary(pl.UTF-8): Serwer SMB
-Summary(pt_BR.UTF-8): Cliente e servidor SMB
-Summary(ru.UTF-8): SMB клиент и сервер
-Summary(tr.UTF-8): SMB sunucusu
-Summary(uk.UTF-8): SMB клієнт та сервер
-Summary(zh_CN.UTF-8): Samba 客户端和服务器
+Summary(cs.UTF-8): Server SMB
+Summary(da.UTF-8): SMB server
+Summary(de.UTF-8): SMB-Server
+Summary(es.UTF-8): El servidor SMB
+Summary(fi.UTF-8): SMB-palvelin
+Summary(fr.UTF-8): Serveur SMB
+Summary(it.UTF-8): Server SMB
+Summary(ja.UTF-8): Samba SMB サーバー
+Summary(ko.UTF-8): 삼바 SMB 서버
+Summary(pl.UTF-8): Serwer SMB
+Summary(pt_BR.UTF-8): Cliente e servidor SMB
+Summary(ru.UTF-8): SMB клиент и сервер
+Summary(tr.UTF-8): SMB sunucusu
+Summary(uk.UTF-8): SMB клієнт та сервер
+Summary(zh_CN.UTF-8): Samba 客户端和服务器
Name: samba
-Version: 3.0.23d
-Release: 4
+Version: 3.0.25a
+Release: 0.1
Epoch: 1
License: GPL v2
Group: Networking/Daemons
Source0: http://us1.samba.org/samba/ftp/%{name}-%{version}.tar.gz
-# Source0-md5: afe6923d05fed5b5ccab593c7a407cd1
+# Source0-md5: cbd33bb5d904ccd8a294a4019743745d
Source1: smb.init
Source2: %{name}.pamd
Source3: swat.inetd
Source4: %{name}.sysconfig
Source5: %{name}.logrotate
Source6: smb.conf
-Source7: http://dl.sourceforge.net/openantivirus/%{name}-vscan-%{vscan_version}.tar.bz2
-# Source7-md5: 900502ba36b80620229b94e5129bc856
+Source7: http://www.openantivirus.org/download/%{name}-vscan-%{vscan_version}.tar.gz
+# Source7-md5: c40acad9691ef5284a164c024124ca78
Source8: winbind.init
Source9: winbind.sysconfig
Patch0: %{name}-lib64.patch
-Patch1: %{name}-FHS.patch
Patch2: %{name}-c++-nofail.patch
Patch3: %{name}-pthread.patch
Patch4: %{name}-libsmbclient-libnscd_link.patch
+Patch5: %{name}-doc.patch
+Patch6: %{name}-libs-needed.patch
URL: http://www.samba.org/
BuildRequires: acl-devel
BuildRequires: autoconf
BuildRequires: automake
%{?with_cups:BuildRequires: cups-devel >= 1:1.2.0}
BuildRequires: dmapi-devel
-%{?with_krb5:BuildRequires: heimdal-devel >= 0.7}
+%{?with_kerberos5:BuildRequires: krb5-devel}
BuildRequires: iconv
-BuildRequires: libnscd-devel
BuildRequires: libmagic-devel
+BuildRequires: libnscd-devel
BuildRequires: libtool >= 2:1.4d
BuildRequires: ncurses-devel >= 5.2
%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
%endif
BuildRequires: readline-devel >= 4.2
BuildRequires: rpmbuild(macros) >= 1.304
+BuildRequires: sed >= 4.0
BuildRequires: xfsprogs-devel
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%package swat
Summary: Samba Web Administration Tool
-Summary(es.UTF-8): Samba SWAT and Web documentation
-Summary(pl.UTF-8): Narzędzie administracyjne serwisu Samba
-Summary(pt_BR.UTF-8): Samba SWAT e documentação Web
-Summary(ru.UTF-8): Программа конфигурации SMB-сервера Samba
-Summary(uk.UTF-8): Програма конфигурації SMB-сервера Samba
+Summary(pl.UTF-8): Narzędzie administracyjne serwisu Samba
+Summary(pt_BR.UTF-8): Samba SWAT e documentação Web
+Summary(ru.UTF-8): Программа конфигурации SMB-сервера Samba
+Summary(uk.UTF-8): Програма конфигурації SMB-сервера Samba
Group: Networking/Admin
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: inetdaemon
%package client
Summary: Samba client programs
-Summary(es.UTF-8): Cliente SMB de Samba
-Summary(ja.UTF-8): Samba (SMB) クライアントプログラム
-Summary(pl.UTF-8): Klienci serwera Samba
-Summary(pt_BR.UTF-8): Cliente SMB do samba
-Summary(ru.UTF-8): Клиентские программы Samba (SMB)
-Summary(uk.UTF-8): Клієнтські програми Samba (SMB)
+Summary(es.UTF-8): Cliente SMB de Samba
+Summary(ja.UTF-8): Samba (SMB) クライアントプログラム
+Summary(pl.UTF-8): Klienci serwera Samba
+Summary(pt_BR.UTF-8): Cliente SMB do samba
+Summary(ru.UTF-8): Клиентские программы Samba (SMB)
+Summary(uk.UTF-8): Клієнтські програми Samba (SMB)
Group: Applications/Networking
Requires: %{name}-common = %{epoch}:%{version}-%{release}
-%{?with_krb5:Requires: heimdal-libs >= 0.7}
+%{?with_kerberos5:Requires: krb5-libs}
Obsoletes: mount-cifs
Obsoletes: smbfs
%package common
Summary: Files used by both Samba servers and clients
-Summary(es.UTF-8): Common files between samba and samba-clients
-Summary(ja.UTF-8): Samba サーバーとクライアントで使用されるプログラム
-Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samba
-Summary(pt_BR.UTF-8): Arquivos em comum entre samba e samba-clients
-Summary(ru.UTF-8): Файлы, используемые как сервером, так и клиентом Samba
-Summary(uk.UTF-8): Файли, що використовуються як сервером, так і клієнтом Samba
+Summary(ja.UTF-8): Samba サーバーとクライアントで使用されるプログラム
+Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samba
+Summary(pt_BR.UTF-8): Arquivos em comum entre samba e samba-clients
+Summary(ru.UTF-8): Файлы, используемые как сервером, так и клиентом Samba
+Summary(uk.UTF-8): Файли, що використовуються як сервером, так і клієнтом Samba
Group: Networking/Daemons
%description common
%package winbind
Summary: Samba-winbind daemon, utilities and documentation
-Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja
+Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja
Group: Networking/Daemons
Requires(post,preun): /sbin/chkconfig
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%package -n nss_wins
Summary: Name Service Switch service for WINS
-Summary(pl.UTF-8): Usługa Name Service Switch dla WINS
+Summary(pl.UTF-8): Usługa Name Service Switch dla WINS
Group: Base
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%package -n pam-pam_smbpass
Summary: PAM Samba Password Module
-Summary(pl.UTF-8): Moduł PAM smbpass
+Summary(pl.UTF-8): Moduł PAM smbpass
Group: Base
Obsoletes: pam_smbpass
%package -n libsmbclient
Summary: libsmbclient - samba client library
-Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
+Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
Group: Libraries
%description -n libsmbclient
%package -n libsmbclient-devel
Summary: libsmbclient - samba client library
-Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
-Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
+Summary(pl.UTF-8): libsmbclient - biblioteka klienta samby
+Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
Group: Development/Libraries
Requires: libsmbclient = %{epoch}:%{version}-%{release}
%package -n libsmbclient-static
Summary: Static version of libsmbclient - samba client library
-Summary(pl.UTF-8): Statyczna wersja libsmbclient - biblioteki klienta samby
-Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
+Summary(pl.UTF-8): Statyczna wersja libsmbclient - biblioteki klienta samby
+Summary(pt_BR.UTF-8): Ferramentas de desenvolvimento para clientes samba
Group: Development/Libraries
Requires: libsmbclient = %{epoch}:%{version}-%{release}
%package devel
Summary: Header files for Samba
-Summary(pl.UTF-8): Pliki nagłówkowe Samby
+Summary(pl.UTF-8): Pliki nagłówkowe Samby
Group: Development/Libraries
%description devel
%package -n smbget
Summary: A utility for retrieving files using the SMB protocol
-Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB
+Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB
Group: Applications/Networking
%description -n smbget
%package -n cups-backend-smb
Summary: CUPS backend for printing to SMB printers
-Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB
+Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB
Group: Applications/Printing
Requires: %{name}-client = %{epoch}:%{version}-%{release}
Requires: cups >= 1:1.2.0
%package -n python-samba
Summary: Samba python tools and libraries
-Summary(pl.UTF-8): Narzędzia i biblioteki pythona do samby
+Summary(pl.UTF-8): Narzędzia i biblioteki pythona do samby
Group: Applications/Networking
%pyrequires_eq python-libs
%package vfs-audit
Summary: VFS module to audit file access
-Summary(pl.UTF-8): Moduł VFS do monitorowania operacji na plikach
+Summary(pl.UTF-8): Moduł VFS do monitorowania operacji na plikach
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-cap
Summary: VFS module for CAP and samba compatibility
-Summary(pl.UTF-8): Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
+Summary(pl.UTF-8): Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-default_quota
Summary: VFS module to store default quotas in a specified quota record
-Summary(pl.UTF-8): Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
+Summary(pl.UTF-8): Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-expand_msdfs
Summary: VFS module for hosting a Microsoft Distributed File System Tree
-Summary(pl.UTF-8): Moduł VFS obsługi Microsoft Distributed File System
+Summary(pl.UTF-8): Moduł VFS obsługi Microsoft Distributed File System
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-fake_perms
Summary: VFS module to report read-only fires as writable
-Summary(pl.UTF-8): Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
+Summary(pl.UTF-8): Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-netatalk
Summary: VFS module for ease co-existence of samba and netatalk
-Summary(pl.UTF-8): Moduł VFS ułatwiający współpracę serwisów samba i netatalk
+Summary(pl.UTF-8): Moduł VFS ułatwiający współpracę serwisów samba i netatalk
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-recycle
Summary: VFS module to add recycle bin facility to a samba share
-Summary(pl.UTF-8): Moduł VFS dodający możliwość kosza do zasobu samby
+Summary(pl.UTF-8): Moduł VFS dodający możliwość kosza do zasobu samby
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%description vfs-recycle -l pl.UTF-8
Moduł VFS dodający możliwość kosza do zasobu samby.
+%package vfs-readahead
+Summary: VFS module for pre-loading the kernel buffer cache
+Summary(pl.UTF-8): Moduł VFS do wczesnego odczytu danych do bufora cache jądra
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-readahead
+This VFS module detects read requests at multiples of a given offset
+(hex 0x80000 by default) and then tells the kernel via either the
+readahead system call (on Linux) or the posix_fadvise system call to
+pre-fetch this data into the buffer cache.
+
+This module is useful for Windows Vista clients reading data using the
+Windows Explorer program, which asynchronously does multiple file read
+requests at offset boundaries of 0x80000 bytes.
+
+%description vfs-readahead -l pl.UTF-8
+Ten moduł VFS wykrywa żądania odczytu spod wielokrotności podanych
+pozycji (domyślnie 0x80000 szesnastkowo) i instruuje jądro poprzez
+wywołanie systemowe readahead (pod Linuksem) lub posix_fadvise do
+wczesnego odczytu tych danych do bufora cache.
+
+Ten moduł jest przydatny dla klientów Windows Vista odczytujących dane
+przy użyciu programu Windows Explorer, który asynchronicznie wykonuje
+wiele żądań odczytu plików spod pozycji o wielokrotnościach 0x80000
+bajtów.
+
%package vfs-readonly
Summary: VFS module for read-only limitation for specified share
-Summary(pl.UTF-8): Moduł VFS do ograniczania określonego udziału tylko do odczytu
+Summary(pl.UTF-8): Moduł VFS do ograniczania określonego udziału tylko do odczytu
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-shadow_copy
Summary: VFS module to make automatic copy of data in samba share
-Summary(pl.UTF-8): Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
+Summary(pl.UTF-8): Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
%package vfs-vscan-antivir
Summary: On-access virus scanning for samba using AntiVir
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący AntiVir
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący AntiVir
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package vfs-vscan-clamav
Summary: On-access virus scanning for samba using ClamAV
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący ClamAV
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący ClamAV
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: clamav
%package vfs-vscan-fprot
Summary: On-access virus scanning for samba using FPROT
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący FPROT
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący FPROT
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package vfs-vscan-fsav
Summary: On-access virus scanning for samba using F-Secure AntiVirus
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący F-Secure AntiVirus
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący F-Secure AntiVirus
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package vfs-vscan-kavp
Summary: On-access virus scanning for samba using Kaspersky AVP
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Kaspersky AVP
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Kaspersky AVP
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package vfs-vscan-mcafee
Summary: On-access virus scanning for samba using mcafee
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mcafee
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mcafee
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
#Requires: mcafee
%package vfs-vscan-mks
Summary: On-access virus scanning for samba using mks
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mks
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący mks
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: mksd
%package vfs-vscan-openantivirus
Summary: On-access virus scanning for samba using OpenAntivirus
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący OpenAntiVirus
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący OpenAntiVirus
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package vfs-vscan-sophos
Summary: On-access virus scanning for samba using Sophos
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Sophos
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Sophos
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package vfs-vscan-symantec
Summary: On-access virus scanning for samba using Symantec
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Symantec
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Symantec
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package vfs-vscan-trend
Summary: On-access virus scanning for samba using Trend
-Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Trend
+Summary(pl.UTF-8): Skaner antywirusowy online wykorzystujący Trend
Group: Networking/Daemons
Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%package -n openldap-schema-samba
Summary: Samba LDAP schema
-Summary(pl.UTF-8): Schemat LDAP dla samby
+Summary(pl.UTF-8): Schemat LDAP dla samby
Group: Networking/Daemons
Requires(post,postun): sed >= 4.0
Requires: openldap-servers
%package doc-html
Summary: Samba HTML documentation
-Summary(pl.UTF-8): Documentacja samby w formacie HTML
+Summary(pl.UTF-8): Documentacja samby w formacie HTML
Group: Documentation
%description doc-html
%package doc-pdf
Summary: Samba documentation - PDF format
-Summary(pl.UTF-8): Documentacja samby w formacie PDF
+Summary(pl.UTF-8): Documentacja samby w formacie PDF
Group: Documentation
%description doc-pdf
%if "%{_lib}" == "lib64"
%patch0 -p1
%endif
-%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%{__sed} -i 's#%SAMBAVERSION%#%{version}#' docs/htmldocs/index.html
cd examples/VFS
-tar xjf %{SOURCE7}
+tar xzf %{SOURCE7}
mv README{,.vfs}
%build
cd source
%{__libtoolize}
-%{__autoconf}
-
-# Removed options (default or not supported by configure script)
-# --with-mmap \
-# --with-netatalk \
-# --without-smbwrapper \
-# --with-sslinc=%{_prefix} \
-# --with-vfs \
-# --with-tdbsam \
-# %{?with_ipv6:--with-ipv6} \
+%{__autoconf} -I lib/replace
%configure \
--with-rootsbindir=/sbin \
--with-quotas \
--with-readline \
--with-smbmount \
- --with-smbwrapper \
--with-swatdir=%{_datadir}/swat \
--with-syslog \
--with-utmp \
--with-fhs \
%{?with_python:--with-python} \
--with%{!?with_ldap:out}-ldap \
- --with%{!?with_krb5:out}-krb5
+ --with%{!?with_kerberos5:out}-krb5
%{__make} proto
%{__make} everything pam_smbpass bin/smbget bin/mount.cifs bin/vfstest
-cd ../examples/VFS
+cd ../examples
+# TODO: -L, optflags
+%{__make} -C libsmbclient/smbwrapper
+
+cd VFS
%{__autoconf}
%configure \
CFLAGS="%{rpmcflags} -fPIC"
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
- $RPM_BUILD_ROOT{/var/{log,log/archiv,spool}/samba,/var/lib/samba/printing} \
+ $RPM_BUILD_ROOT{/var/{log,log/archive,spool}/samba,/var/lib/samba/printing} \
$RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
$RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome},%{schemadir}}
-cd source
-%{__make} install \
+%{__make} -C source install \
DESTDIR=$RPM_BUILD_ROOT \
CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
-install script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
-cd ..
+install source/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
install source/bin/vfstest $RPM_BUILD_ROOT%{_bindir}
mv $RPM_BUILD_ROOT%{_libdir}/samba/libsmbclient.so $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so.0
-install source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
ln -s libsmbclient.so.0 $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so
+install source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
mv $RPM_BUILD_ROOT%{_libdir}/samba/libmsrpc.so $RPM_BUILD_ROOT%{_libdir}/libmsrpc.so.0
-install source/bin/libmsrpc.a $RPM_BUILD_ROOT%{_libdir}/libmsrpc.a
ln -s libmsrpc.so.0 $RPM_BUILD_ROOT%{_libdir}/libmsrpc.so
+install source/bin/libmsrpc.a $RPM_BUILD_ROOT%{_libdir}/libmsrpc.a
install source/include/libsmbclient.h $RPM_BUILD_ROOT%{_includedir}
+# smbwrapper
+install examples/libsmbclient/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so
+install examples/libsmbclient/smbwrapper/smbsh $RPM_BUILD_ROOT%{_bindir}
+install docs/manpages/smbsh.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
# these are needed to build samba-pdbsql
-install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{smbwrapper,tdb,nsswitch}
+install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{tdb,nsswitch}
cp -a source/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
-cp -a source/smbwrapper/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/smbwrapper
-cp -a source/tdb/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
+cp -a source/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
cp -a source/nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
# vscan modules
%attr(750,root,root) %dir /var/log/samba/cores
%attr(750,root,root) %dir /var/log/samba/cores/smbd
%attr(750,root,root) %dir /var/log/samba/cores/nmbd
-%attr(750,root,root) %dir /var/log/archiv/samba
+%attr(750,root,root) %dir /var/log/archive/samba
%attr(1777,root,root) %dir /var/spool/samba
%if %{with ldap}
%doc examples/LDAP
%attr(755,root,root) %{_bindir}/net
%attr(755,root,root) %{_bindir}/smbmnt
%attr(755,root,root) %{_bindir}/smbmount
+%attr(755,root,root) %{_bindir}/smbsh
%attr(755,root,root) %{_bindir}/smbtree
%attr(755,root,root) %{_bindir}/smbumount
+%attr(755,root,root) %{_libdir}/smbwrapper.so
%{_mandir}/man1/smbtree.1*
%{_mandir}/man8/net.8*
%{_mandir}/man8/smbmnt.8*
%attr(755,root,root) %{_bindir}/testparm
%attr(755,root,root) %{_bindir}/vfstest
%dir %{_libdir}/%{name}
+# how this one is used? SONAME is libsmbsharemodes.so.0
+%attr(755,root,root) %{_libdir}/%{name}/libsmbsharemodes.so
%{_libdir}/%{name}/*.dat
%dir %{_libdir}/%{name}/auth
%attr(755,root,root) %{_libdir}/%{name}/auth/script.so
%{_mandir}/man5/lmhosts.5*
%{_mandir}/man5/smb.conf.5*
%{_mandir}/man8/pdbedit.8*
+%{_mandir}/man8/eventlogadm.8*
+%{_mandir}/man8/idmap_ad.8*
+%{_mandir}/man8/idmap_ldap.8*
+%{_mandir}/man8/idmap_nss.8*
+%{_mandir}/man8/idmap_rid.8*
+%{_mandir}/man8/idmap_tdb.8*
+%{_mandir}/man8/tdbtool.8*
%files swat
%defattr(644,root,root,755)
%lang(tr) %{_datadir}/swat/lang/tr
%lang(de) %{_libdir}/%{name}/de.msg
%{_libdir}/%{name}/en.msg
+%lang(fi) %{_libdir}/%{name}/fi.msg
%lang(fr) %{_libdir}/%{name}/fr.msg
%lang(it) %{_libdir}/%{name}/it.msg
%lang(ja) %{_libdir}/%{name}/ja.msg
%attr(755,root,root) %{_vfsdir}/audit.so
%attr(755,root,root) %{_vfsdir}/extd_audit.so
%attr(755,root,root) %{_vfsdir}/full_audit.so
+%{_mandir}/man8/vfs_audit.8*
%files vfs-cap
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/cap.so
+%{_mandir}/man8/vfs_cap.8*
%files vfs-default_quota
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/default_quota.so
+%{_mandir}/man8/vfs_default_quota.8*
%files vfs-expand_msdfs
%defattr(644,root,root,755)
%files vfs-fake_perms
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/fake_perms.so
+%{_mandir}/man8/vfs_fake_perms.8*
%files vfs-netatalk
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/netatalk.so
+%{_mandir}/man8/vfs_netatalk.8*
+
+%files vfs-readahead
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/readahead.so
+%{_mandir}/man8/vfs_readahead.8*
%files vfs-readonly
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/readonly.so
+%{_mandir}/man8/vfs_readonly.8*
%files vfs-recycle
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/recycle.so
+%{_mandir}/man8/vfs_recycle.8*
%files vfs-shadow_copy
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/shadow_copy.so
+%{_mandir}/man8/vfs_shadow_copy.8*
%files vfs-vscan-antivir
%defattr(644,root,root,755)