-
-#
-# todo:
-# - create pdb (i.e. xml, mysql) subpackages
#
-
+# TODO:
+# - fix Summary and Description for python-samba package
+# - look into other distro specs for valid %descriptions for samba 3
+# - review configure options
+# - fix broken --without ldap, test functionality with other bconds
+# - check tdbtool (with tdb.spec)
#
# Conditional build:
-%bcond_without cups # without CUPS support
-%bcond_without mysql # without MySQL support
-%bcond_with ldapsam # with LDAP SAM 2.2 based auth (instead of smbpasswd)
-%bcond_with ipv6 # with IPv6 support
-%bcond_without ldap # without LDAP support
-%bcond_without krb5 # without Kerberos5/Heimdal support
+%bcond_without ads # without ActiveDirectory support
+%bcond_without cups # without CUPS support
+%bcond_without krb5 # without Kerberos5/Heimdal support
+%bcond_without ldap # without LDAP support
+%bcond_without mysql # without MySQL support
+%bcond_without pgsql # without PostgreSQL support
+%bcond_without python # without python libs/utils
+%bcond_with ldapsam # with LDAP SAM 2.2 based auth (instead of smbpasswd)
+#%bcond_with ipv6 # with IPv6 support
#
-%define vscan_version 0.3.4
+# ADS requires krb5 and LDAP
+%if %{without krb5} || %{without ldap}
+%undefine with_ads
+%endif
+%define vscan_version 0.3.5
Summary: SMB server
Summary(cs): Server SMB
Summary(da): SMB server
Summary(uk): SMB Ë̦¤ÎÔ ÔÁ ÓÅÒ×ÅÒ
Summary(zh_CN): Samba ¿Í»§¶ËºÍ·þÎñÆ÷
Name: samba
-Version: 3.0.1
+Version: 3.0.10
+Release: 1
Epoch: 1
-Release: 0.1
License: GPL v2
Group: Networking/Daemons
-Source0: http://www.samba.org/samba/ftp/%{name}-%{version}.tar.bz2
-# Source0-md5: 2a3d494f139ab7402d8902b0e68c463f
+Source0: http://us1.samba.org/samba/ftp/%{name}-%{version}.tar.gz
+# Source0-md5: b19fd86d3c11a1b43f75a5988cd9ceeb
Source1: smb.init
Source2: %{name}.pamd
Source3: swat.inetd
Source5: %{name}.logrotate
Source6: smb.conf
Source7: http://dl.sourceforge.net/openantivirus/%{name}-vscan-%{vscan_version}.tar.bz2
-# Source7-md5: acbcb28cff080dcf2ee732b7f2c0f949
-Source8: http://aramin.net/~undefine/%{name}-vscan-clamav-0.2.tar.bz2
-# Source8-md5: 8d425d1e287bdf9d343b6ae4b1c9e842
+# Source7-md5: 5f173d549014985d681478897135915b
+Source8: winbind.init
+Source9: winbind.sysconfig
Patch0: %{name}-statfs-workaround.patch
-#Patch1: http://v6web.litech.org/samba/%{name}-2.2.4+IPv6-20020609.diff
+Patch1: %{name}-lib64.patch
+Patch2: %{name}-setup-python.patch
+Patch3: %{name}-FHS.patch
+Patch4: %{name}-case_insensitive_sql_operator.patch
+Patch5: %{name}-3_0_9-printing.patch
+#Patch6: http://v6web.litech.org/samba/%{name}-2.2.4+IPv6-20020609.diff
URL: http://www.samba.org/
BuildRequires: acl-devel
BuildRequires: autoconf
+BuildRequires: automake
%{?with_cups:BuildRequires: cups-devel}
%{?with_krb5:BuildRequires: heimdal-devel}
BuildRequires: libtool >= 2:1.4d
BuildRequires: mysql-devel
BuildRequires: mysql-extras
%endif
+%if %{with pgsql}
+BuildRequires: postgresql-devel
+%endif
BuildRequires: ncurses-devel >= 5.2
%{?with_ldap:BuildRequires: openldap-devel}
-BuildRequires: openssl-devel >= 0.9.7
+BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: pam-devel > 0.66
BuildRequires: popt-devel
BuildRequires: readline-devel >= 4.2
BuildRequires: xfsprogs-devel
+%{?with_python:BuildRequires: python-devel}
PreReq: rc-scripts
+PreReq: setup >= 2.4.6-7
Requires(post,preun): /sbin/chkconfig
-Requires: %{name}-common = %{version}
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: logrotate
Requires: pam >= 0.66
+Obsoletes: samba-vfs-block
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/samba
-%define _vfsdir /usr/lib/%{name}/vfs
-%define _localstatedir %{_var}/log/samba
+%define _vfsdir %{_libdir}/%{name}/vfs
%define _sambahome /home/services/samba
%if %{with cups}
-%define cups_serverbin %(cups-config --serverbin)
+%define cups_serverbin %{_libdir}/cups
%endif
%description
ÕÌÀÂÌÅÎÏÇÏ WEB-ÂÒÏÕÚÅÒÁ. ðÏËÉ ÝÏ ×¦Î ÄÏÚ×ÏÌÅÎÉÊ ÞÅÒÅÚ inetd ÎÁ
TCP-ÐÏÒÔÕ 901.
-%package -n swat
+%package swat
Summary: Samba Web Administration Tool
Summary(es): Samba SWAT and Web documentation
Summary(pl): Narzêdzie administracyjne serwisu Samba
Summary(ru): ðÒÏÇÒÁÍÍÁ ËÏÎÆÉÇÕÒÁÃÉÉ SMB-ÓÅÒ×ÅÒÁ Samba
Summary(uk): ðÒÏÇÒÁÍÁ ËÏÎÆÉÇÕÒÁæ§ SMB-ÓÅÒ×ÅÒÁ Samba
Group: Networking/Admin
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: inetdaemon
Requires: rc-inetd >= 0.8.2
-Provides: samba-swat
-Obsoletes: samba-swat
+Obsoletes: swat
-%description -n swat
+%description swat
swat allows a Samba administrator to configure the complex smb.conf
file via a Web browser. In addition, a swat configuration page has
help links to all the configurable options in the smb.conf file
allowing an administrator to easily look up the effects of any change.
-%description -n swat -l pl
+%description swat -l pl
swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy
przegl±darki WWW.
-%description -n swat -l pt_BR
+%description swat -l pt_BR
SWAT - ferramentada Web de configuração do Samba.
-%description -n swat -l ru
+%description swat -l ru
ðÁËÅÔ samba-swat ×ËÌÀÞÁÅÔ ÎÏ×ÙÊ SWAT (Samba Web Administration Tool),
ÄÌÑ ÕÄÁÌÅÎÎÏÇÏ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ ÆÁÊÌÁ smb.conf ÐÒÉ ÐÏÍÏÝÉ ×ÁÛÅÇÏ
ÌÀÂÉÍÏÇÏ Web-ÂÒÁÕÚÅÒÁ.
-%description -n swat -l uk
+%description swat -l uk
ðÁËÅÔ samba-swat ͦÓÔÉÔØ ÎÏ×ÉÊ SWAT (Samba Web Administration Tool),
ÄÌÑ ÄÉÓÔÁÎæÊÎÏÇÏ ÁÄͦΦÓÔÒÕ×ÁÎÎÑ ÆÁÊÌÕ smb.conf ÚÁ ÄÏÐÏÍÏÇÏÀ ×ÁÛÏÇÏ
ÕÌÀÂÌÅÎÏÇÏ Web-ÂÒÁÕÚÅÒÕ.
Summary: Samba MySQL password database plugin
Summary(pl): Wtyczka Samby do przechowywania hase³ w bazie MySQL
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description pdb-mysql
Samba MySQL password database plugin.
%description pdb-mysql -l pl
Wtyczka Samby do przechowywania hase³ w bazie MySQL.
+%package pdb-pgsql
+Summary: Samba PostgreSQL password database plugin
+Summary(pl): Wtyczka Samby do przechowywania hase³ w bazie PostgreSQL
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description pdb-pgsql
+Samba MySQL password database plugin.
+
+%description pdb-pgsql -l pl
+Wtyczka Samby do przechowywania hase³ w bazie MySQL.
+
%package pdb-xml
Summary: Samba XML password database plugin
Summary(pl): Wtyczka Samby do przechowywania hase³ w bazie XML
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description pdb-xml
Samba XML password database plugin.
Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ Samba (SMB)
Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ Samba (SMB)
Group: Applications/Networking
-Requires: samba-common = %{epoch}:%{version}
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
+Obsoletes: mount-cifs
Obsoletes: smbfs
%description client
Samba-common ͦÓÔÉÔØ ÆÁÊÌÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÂÏÔÉ ÑË Ë̦¤ÎÔÁ, ÔÁË ¦
ÓÅÒ×ÅÒÁ Samba.
+%package winbind
+Summary: Samba-winbind daemon, utilities and documentation
+Summary(pl): Demon samba-winbind, narzêdzia i dokumentacja
+Group: Networking/Daemons
+Requires(post,preun): /sbin/chkconfig
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
+
+%description winbind
+Provides the winbind daemon and testing tools to allow authentication
+and group/user enumeration from a Windows or Samba domain controller.
+
+%description winbind -l pl
+Pakiet zawiera demona winbind oraz narzêdzia testowe. Umo¿liwia
+uwierzytelnianie i wyliczanie grup/u¿ytkowników z kontrolera domeny
+Windows lub Samba.
+
+%package -n nss_wins
+Summary: Name Service Switch service for WINS
+Summary(pl): Us³uga Name Service Switch dla WINS
+Group: Base
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
+
+%description -n nss_wins
+Provides the libnss_wins shared library which resolves NetBIOS names
+to IP addresses.
+
+%description -n nss_wins -l pl
+Biblioteka dzielona libnss_wins rozwi±zuj±ca nazwy NetBIOS na adresy
+IP.
+
%package -n pam-pam_smbpass
Summary: PAM Samba Password Module
Summary(pl): Modu³ PAM smbpass
file.
%description -n pam-pam_smbpass -l pl
-Modu³ PAMa, który mo¿e byæ u¿ywany do trzymania pliku smbpasswd (has³a
-Samby) zsynchronizowanego z has³ami unixowymi.
+Modu³ PAM, który mo¿e byæ u¿ywany do trzymania pliku smbpasswd (has³a
+Samby) zsynchronizowanego z has³ami uniksowymi.
%package -n libsmbclient
Summary: libsmbclient - samba client library
Summary(pl): libsmbclient - biblioteka klienta samby
Summary(pt_BR): Ferramentas de desenvolvimento para clientes samba
Group: Development/Libraries
-Requires: libsmbclient = %{epoch}:%{version}
+Requires: libsmbclient = %{epoch}:%{version}-%{release}
%description -n libsmbclient-devel
Header files for libsmbclient.
Summary(pl): Statyczna wersja libsmbclient - biblioteki klienta samby
Summary(pt_BR): Ferramentas de desenvolvimento para clientes samba
Group: Development/Libraries
-Requires: libsmbclient = %{epoch}:%{version}
+Requires: libsmbclient = %{epoch}:%{version}-%{release}
%description -n libsmbclient-static
Static libsmbclient library.
%description -n libsmbclient-static -l pl
Statyczna biblioteka libsmbclient.
+%package -n smbget
+Summary: A utility for retrieving files using the SMB protocol
+Summary(pl): Narzêdzie do pobierania plików protoko³em SMB
+Group: Applications/Networking
+
+%description -n smbget
+wget-like utility for download files over SMB.
+
+%description -n smbget -l pl
+Narzêdzie podobne do wgeta do pobierania plików protoko³em SMB
+u¿ywanym w sieciach MS Windows.
+
%package -n cups-backend-smb
Summary: CUPS backend for printing to SMB printers
Summary(pl): Backend CUPS-a drukuj±cy na drukarkach SMB
Group: Applications/Printing
-Requires: %{name}-client = %{epoch}:%{version}
+Requires: %{name}-client = %{epoch}:%{version}-%{release}
Requires: cups
%description -n cups-backend-smb
%description -n cups-backend-smb -l pl
Backend CUPS-a drukuj±cy na drukarkach SMB.
+%package -n python-samba
+Summary: Samba python tools and libraries
+Summary(pl): Narzêdzia i biblioteki pythona do samby
+Group: Applications/Networking
+
+%description -n python-samba
+Samba python tools and libraries.
+
+%description -n python-samba -l pl
+Narzêdzia i biblioteki pythona do samby.
+
%package vfs-audit
Summary: VFS module to audit file access
Summary(pl): Modu³ VFS do monitorowania operacji na plikach
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description vfs-audit
A simple module to audit file access to the syslog facility. The
otwarcie/utworzenie/zmiana nazwy katalogu, otwarcie/zamknêcie/zmiana
nazwy/skasowania/zmiana praw plików.
-%package vfs-block
-Summary: VFS module to block access to files
-Summary(pl): Modu³y VFS do blokowania dostêpu do plików
+%package vfs-cap
+Summary: VFS module for CAP and samba compatibility
+Summary(pl): Modu³ VFS zgodno¶ci z CAP (Columbia AppleTalk Program)
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
-%description vfs-block
-Sample module by Ronald Kuetemeier <ronald@kuetemeier.com> to block
-named symbolic link following. Note: Config file is in
-/etc/samba/samba-block.conf .
+%description vfs-cap
+Convert an incoming Shift-JIS character to the 3 byte hex
+representation used by the Columbia AppleTalk Program (CAP), i.e. :AB.
+This is used for compatibility between Samba and CAP.
-%description vfs-block -l pl
-Przyk³adowy modu³ stworzony przez Ronald Kuetemeier
-<ronald@kuetemeier.com> do blokowania dostêpu do plików wskazywanych
-przez linki symboliczne. Plik konfiguracyjny w
-/etc/samba/samba-block.conf .
+%description vfs-cap -l pl
+Zamienia znaki kodowane Shift-JIS do trzybajowej szestnastkowej
+reprezentacji u¿ywanej przez program Columbia AppleTalk Program (CAP).
+
+%package vfs-default_quota
+Summary: VFS module to store default quotas in a specified quota record
+Summary(pl): Modu³ VFS do zapisywania domy¶lnych limitów w okre¶lonym rekordzie
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-default_quota
+This VFS modules stores default quotas in a specified quota record.
+
+%description vfs-default_quota -l pl
+Ten modu³ VFS zapisuje domy¶lne limity (quoty) w okre¶lonym rekordzie
+limitów.
+
+%package vfs-expand_msdfs
+Summary: VFS module for hosting a Microsoft Distributed File System Tree
+Summary(pl): Modu³ VFS obs³ugi Microsoft Distributed File System
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-expand_msdfs
+A VFS module for hosting a Microsoft Distributed File System Tree.
+
+The Distributed File System (DFS) provides a means of separating the
+logical view of files and directories that users see from the actual
+physical locations of these resources on the network. It allows for
+higher availability, smoother storage expansion, load balancing, and
+so on.
+
+%description vfs-expand_msdfs -l pl
+Modu³ VFS do udostêpniania drzewa systemu plików Microsoft Distributed
+File System.
+
+Distributed File System (DFS) umo¿liwia rozdzielanie logicznego widoku
+plików i katalogów widocznych przez u¿ytkowników z fizycznego
+umiejscowienia tych zasobów w sieci. Pozwala to na wy¿sz± dostêpno¶æ,
+p³ynniejsze powiêkszanie przestrzeni, rozdzielanie obci±¿enia itp.
+
+%package vfs-fake_perms
+Summary: VFS module to report read-only fires as writable
+Summary(pl): Modu³ VFS udaj±cy, ¿e pliki tylko do odczytu s± zapisywalne
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-fake_perms
+This module allow Roaming Profile files and directories to be set (on
+the Samba server under UNIX) as read only. This module will, if
+installed on the Profiles share, report to the client that the Profile
+files and directories are writeable. This satisfies the client even
+though the files will never be overwritten as the client logs out or
+shuts down.
+
+%description vfs-fake_perms -l pl
+Ten modu³ pozwala na ustawienie plików i katalogów z wêdruj±cych
+profili (Roaming Profiles) jako tylko do odczytu. Modu³ ten w
+przypadku zainstalowania na udziale z profilami bêdzie zg³asza³
+klientom, ¿e pliki i katalogi z profilu s± zapisywane. To wystarczy
+klientom pomimo, ¿e pliki nie zostan± nigdy nadpisane przy logowaniu
+lub wylogowywaniu klienta.
+
+%package vfs-netatalk
+Summary: VFS module for ease co-existence of samba and netatalk
+Summary(pl): Modu³ VFS u³atwiaj±cy wspó³pracê serwisów samba i netatalk
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-netatalk
+Package contains a netatalk VFS module for ease co-existence of Samba
+and netatalk file sharing services.
+
+%description vfs-netatalk -l pl
+Pakiet zawiera modu³ VFS netatalk umo¿liwiaj±cy wspó³pracê us³ug samba
+i netatalk przy udostêpnianiu zasobów.
%package vfs-recycle
Summary: VFS module to add recycle bin facility to a samba share
Summary(pl): Modu³ VFS dodaj±cy mo¿liwo¶æ kosza do zasobu samby
Group: Networking/Daemons
-Requires: %{name} = %%{epoch}:{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description vfs-recycle
VFS module to add recycle bin facility to a samba share.
%description vfs-recycle -l pl
Modu³ VFS dodaj±cy mo¿liwo¶æ kosza do zasobu samby.
+%package vfs-readonly
+Summary: VFS module for read-only limitation for specified share
+Summary(pl): Modu³ VFS do ograniczania okre¶lonego udzia³u tylko do odczytu
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-readonly
+This module performs a read-only limitation for specified share (or
+all of them if it is loaded in a [global] section) based on period
+definition in smb.conf.
+
+%description vfs-readonly -l pl
+Ten modu³ wprowadza ograniczenie tylko do odczytu dla okre¶lonego
+udzia³u (lub wszystkich, je¶li jest wczytywany w sekcji [global]) w
+oparciu o definicje okresów w smb.conf.
+
+%package vfs-shadow_copy
+Summary: VFS module to make automatic copy of data in samba share
+Summary(pl): Modu³ VFS do tworzenia automatycznych kopii danych w zasobach samby
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description vfs-shadow_copy
+VFS module to make automatic copy of data in samba share.
+
+%description vfs-shadow_copy -l pl
+Modu³ VFS do tworzenia automatycznych kopii danych w zasobach samby.
+
%package vfs-vscan-clamav
Summary: On-access virus scanning for samba using ClamAV
Summary(pl): Skaner antywirusowy online wykorzystuj±cy ClamAV
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: clamav
-Provides: %{name}-vscan = %{version}-%{release}
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
%description vfs-vscan-clamav
-A vfs-module for samba to implement on-access scanning using the ClamAV
-antivirus software (which must be installed to use this).
+A vfs-module for samba to implement on-access scanning using the
+ClamAV antivirus software (which must be installed to use this).
%description vfs-vscan-clamav -l pl
Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
-dostêpu do plików korzystaj±c z oprogramowania antywirusowego
-ClamAV (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
+dostêpu do plików korzystaj±c z oprogramowania antywirusowego ClamAV
+(które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
%package vfs-vscan-fprot
Summary: On-access virus scanning for samba using FPROT
Summary(pl): Skaner antywirusowy online wykorzystuj±cy FPROT
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
-Provides: %{name}-vscan = %{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
Obsoletes: vscan-fprot
%description vfs-vscan-fprot
%description vfs-vscan-fprot -l pl
Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
+dostêpu do plików korzystaj±c z oprogramowania antywirusowego FPROT
+(które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
+
+%package vfs-vscan-fsav
+Summary: On-access virus scanning for samba using F-Secure AntiVirus
+Summary(pl): Skaner antywirusowy online wykorzystuj±cy F-Secure AntiVirus
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
+Obsoletes: vscan-fsav
+
+%description vfs-vscan-fsav
+A vfs-module for samba to implement on-access scanning using the
+F-Secure AntiVirus antivirus software (which must be installed to use
+this).
+
+%description vfs-vscan-fsav -l pl
+Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
+dostêpu do plików korzystaj±c z oprogramowania antywirusowego F-Secure
+AntiVirus (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
+
+%package vfs-vscan-kavp
+Summary: On-access virus scanning for samba using Kaspersky AVP
+Summary(pl): Skaner antywirusowy online wykorzystuj±cy Kaspersky AVP
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
+Obsoletes: vscan-kavp
+
+%description vfs-vscan-kavp
+A vfs-module for samba to implement on-access scanning using the
+Kaspersky AVP antivirus software (which must be installed to use
+this).
+
+%description vfs-vscan-kavp -l pl
+Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
dostêpu do plików korzystaj±c z oprogramowania antywirusowego
-FPROT (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
+Kaspersky AVP (które musi byæ zainstalowane, aby wykorzystaæ ten
+modu³).
+
+%package vfs-vscan-mcafee
+Summary: On-access virus scanning for samba using mcafee
+Summary(pl): Skaner antywirusowy online wykorzystuj±cy mcafee
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+#Requires: mcafee
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
+Obsoletes: vscan-mcafee
+
+%description vfs-vscan-mcafee
+A vfs-module for samba to implement on-access scanning using the mcafee
+antivirus software (which must be installed to use this).
+
+%description vfs-vscan-mcafee -l pl
+Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
+dostêpu do plików korzystaj±c z oprogramowania antywirusowego mcafee
+(które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
+
+%package vfs-vscan-mks
+Summary: On-access virus scanning for samba using mks
+Summary(pl): Skaner antywirusowy online wykorzystuj±cy mks
+Group: Networking/Daemons
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: mksd
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
+Obsoletes: vscan-mks
+
+%description vfs-vscan-mks
+A vfs-module for samba to implement on-access scanning using the mks
+antivirus software (which must be installed to use this).
+
+%description vfs-vscan-mks -l pl
+Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
+dostêpu do plików korzystaj±c z oprogramowania antywirusowego mks
+(które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
%package vfs-vscan-openantivirus
Summary: On-access virus scanning for samba using OpenAntivirus
-Summary(pl): Modu³ VFS dodaj±cy obs³ugê antywirusa OpenAntiVirus
+Summary(pl): Skaner antywirusowy online wykorzystuj±cy OpenAntiVirus
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
-Provides: %{name}-vscan = %{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
Obsoletes: vscan-openantivirus
%description vfs-vscan-openantivirus
%package vfs-vscan-sophos
Summary: On-access virus scanning for samba using Sophos
-Summary(pl): Modu³ VFS dodaj±cy obs³ugê antywirusa Sophos
+Summary(pl): Skaner antywirusowy online wykorzystuj±cy Sophos
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
-Provides: %{name}-vscan = %{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
Obsoletes: vscan-sophos
%description vfs-vscan-sophos
Summary: On-access virus scanning for samba using Symantec
Summary(pl): Skaner antywirusowy online wykorzystuj±cy Symantec
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
Obsoletes: vscan-symantec
%package vfs-vscan-trend
Summary: On-access virus scanning for samba using Trend
-Summary(pl): Modu³ VFS dodaj±cy obs³ugê antywirusa Trend
+Summary(pl): Skaner antywirusowy online wykorzystuj±cy Trend
Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
-Provides: %{name}-vscan = %{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Provides: %{name}-vscan = %{epoch}:%{version}-%{release}
Obsoletes: vscan-trend
%description vfs-vscan-trend
dostêpu do plików korzystaj±c z oprogramowania antywirusowego Trend
(które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
-%package vfs-vscan-mks
-Summary: On-access virus scanning for samba using mks
-Summary(pl): Modu³ VFS dodaj±cy obs³ugê antywirusa mks
-Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
-Requires: mksd
-Provides: %{name}-vscan = %{version}-%{release}
-Obsoletes: vscan-mks
-
-%description vfs-vscan-mks
-A vfs-module for samba to implement on-access scanning using the mks
-antivirus software (which must be installed to use this).
-
-%description vfs-vscan-mks -l pl
-Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
-dostêpu do plików korzystaj±c z oprogramowania antywirusowego mks
-(które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
-
-%package vfs-vscan-kavp
-Summary: On-access virus scanning for samba using Kaspersky AVP
-Summary(pl): Modu³ VFS dodaj±cy obs³ugê antywirusa Kaspersky AVP
-Group: Networking/Daemons
-Requires: %{name} = %{epoch}:%{version}
-Provides: %{name}-vscan = %{version}-%{release}
-Obsoletes: vscan-kavp
-
-%description vfs-vscan-kavp
-A vfs-module for samba to implement on-access scanning using the
-Kaspersky AVP antivirus software (which must be installed to use
-this).
-
-%description vfs-vscan-kavp -l pl
-Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
-dostêpu do plików korzystaj±c z oprogramowania antywirusowego
-Kaspersky AVP (które musi byæ zainstalowane, aby wykorzystaæ ten
-modu³).
-
%prep
%setup -q
%patch0 -p1
-#%{?with_ipv6:%patch1 -p1}
+%ifarch amd64
+%patch1 -p1
+%endif
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+#%{?with_ipv6:%patch6 -p1}
cd examples/VFS
tar xjf %{SOURCE7}
-#cd %{name}-vscan-%{vscan_version}
-#tar xjf %{SOURCE8}
%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} \
+
%configure \
--with-acl-support \
--with-automount \
--with-libsmbclient \
- --with-lockdir=/var/lock/samba \
- --with-mmap \
- --with-netatalk \
- --without-smbwrapper \
--with-pam \
- --with-piddir=/var/run \
- --with-privatedir=%{_sysconfdir} \
- --with-configdir=%{_sysconfdir} \
+ --with-pam_smbpass \
+ --with%{!?with_ads:out}-ads \
+ --with-privatedir=%{_sysconfdir}/samba \
--with-quotas \
--with-readline \
--with-smbmount \
- --with-sslinc=%{_prefix} \
--with-swatdir=%{_datadir}/swat \
--with-syslog \
--with-utmp \
- --with-vfs \
--with-fhs \
- --with-expsam=xml,%{?with_mysql:mysql} \
- %{?with_ipv6:--with-ipv6} \
+ %{?with_python:--with-python} \
+ --with-expsam=xml,%{?with_mysql:mysql}%{?with_pgsql:,pgsql} \
%{?with_ldapsam:--with-ldapsam} \
- %{!?with_ldap:--without-ldap} \
- %{?with_krb5:--with-krb5} \
- %{!?with_krb5:--without-krb5}
+ --with%{!?with_ldap:out}-ldap \
+ --with%{!?with_krb5:out}-krb5
-%{__make} everything pam_smbpass
+%{__make} proto
+%{__make} everything pam_smbpass bin/smbget client/mount.cifs
cd ../examples/VFS
%{__autoconf}
-%configure
+%configure \
+ CFLAGS="%{rpmcflags} -fPIC"
%{__make}
mv README{,.vfs}
cd samba-vscan-%{vscan_version}
+cp -f /usr/share/automake/config.sub .
%configure
-%{__make} oav sophos fprotd trend icap mksd kavp clamav
+%{__make} -j1 all
%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/{lock,log,log/archiv,spool}/samba \
- $RPM_BUILD_ROOT{/sbin,/lib/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome}}
+ $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome}}
cd source
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}
+ CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
install script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
cd ..
install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
-install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/smb.conf
-
-install source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/lib/libnss_winbind.so.2
-install source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/lib/security
-install source/bin/pam_smbpass.so $RPM_BUILD_ROOT/lib/security
+install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
+install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
+install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/winbind
+
+install source/client/mount.cifs $RPM_BUILD_ROOT/sbin/mount.cifs
+install source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
+ln -s libnss_winbind.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
+install source/nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
+ln -s libnss_wins.so.2 $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
+install source/nsswitch/pam_winbind.so $RPM_BUILD_ROOT/%{_lib}/security
+install source/bin/pam_smbpass.so $RPM_BUILD_ROOT/%{_lib}/security
install source/bin/wbinfo $RPM_BUILD_ROOT%{_bindir}
+install source/bin/smbget $RPM_BUILD_ROOT%{_bindir}
-#install source/bin/libsmbclient.so $RPM_BUILD_ROOT/lib/libsmbclient.so.0
-mv $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so.0
+mv $RPM_BUILD_ROOT%{_libdir}/samba/libsmbclient.so $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so.0
+mv $RPM_BUILD_ROOT%{_libdir}/samba/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
ln -s libsmbclient.so.0 $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so
install source/include/libsmbclient.h $RPM_BUILD_ROOT%{_includedir}
-# przyk³adowe modu³y VFS
-#install examples/VFS/{*.so,block/*.so,recycle/*.so} $RPM_BUILD_ROOT%{_vfsdir}
-#install examples/VFS/block/samba-block.conf examples/VFS/recycle/recycle.conf $RPM_BUILD_ROOT/%{_sysconfdir}
-
-# modu³y vscan
+# vscan modules
install examples/VFS/samba-vscan-%{vscan_version}/*.so $RPM_BUILD_ROOT%{_vfsdir}
-install examples/VFS/samba-vscan-%{vscan_version}/{clamav,fprot,icap,kaspersky,mks,openantivirus,sophos,trend}/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
+install examples/VFS/samba-vscan-%{vscan_version}/{clamav,fprot,icap,kaspersky,mks,openantivirus,sophos,trend,f-secure,nai}/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba
touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
-echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/lmhosts
+echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
%if %{with cups}
install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
%endif
-> $RPM_BUILD_ROOT%{_libdir}/smbusers
+> $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
> $RPM_BUILD_ROOT/etc/security/blacklist.samba
rm -f docs/faq/*.{sgml,txt}
rm -f docs/htmldocs/*.[0-9].html
+# we have this utility in tdb package
+rm -f $RPM_BUILD_ROOT{%{_bindir}/tdbdump,%{_mandir}/man8/tdbdump.8*}
+
+# python stuff
+%if %{with python}
+install -d $RPM_BUILD_ROOT%{py_sitedir}
+cp -R source/build/lib.*/samba $RPM_BUILD_ROOT%{py_sitedir}
+%endif
+
+mv $RPM_BUILD_ROOT%{_bindir}/tdbtool $RPM_BUILD_ROOT%{_bindir}/tdbtool_samba
+
%clean
rm -rf $RPM_BUILD_ROOT
/sbin/chkconfig --del smb
fi
-%post -n swat
+%post winbind
+/sbin/chkconfig --add winbind
+if [ -r /var/lock/subsys/winbind ]; then
+ /etc/rc.d/init.d/winbind restart >&2
+else
+ echo "Run \"/etc/rc.d/init.d/winbind start\" to start Winbind daemon."
+fi
+
+%preun winbind
+if [ "$1" = "0" ]; then
+ if [ -r /var/lock/subsys/winbind ]; then
+ /etc/rc.d/init.d/winbind stop >&2
+ fi
+ /sbin/chkconfig --del winbind
+fi
+
+%post swat
if [ -f /var/lock/subsys/rc-inetd ]; then
/etc/rc.d/init.d/rc-inetd reload 1>&2
else
echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
fi
-%postun -n swat
+%postun swat
if [ -f /var/lock/subsys/rc-inetd ]; then
/etc/rc.d/init.d/rc-inetd reload
fi
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/nmbd
%attr(755,root,root) %{_sbindir}/smbd
-%attr(755,root,root) %{_sbindir}/winbindd
%attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
%attr(755,root,root) %{_bindir}/smbstatus
%attr(755,root,root) %{_bindir}/smbpasswd
%attr(755,root,root) %{_bindir}/smbcontrol
%attr(755,root,root) %{_bindir}/tdbbackup
-%attr(755,root,root) %{_bindir}/tdbdump
-
-%attr(755,root,root) /lib/libnss_*
-%attr(755,root,root) /lib/security/pam_winbind.so
+%attr(755,root,root) %{_bindir}/tdbtool_samba
%dir %{_libdir}/%{name}/pdb
%dir %{_vfsdir}
-%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/smbusers
+%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/smbusers
%attr(754,root,root) /etc/rc.d/init.d/smb
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
-%attr(640,root,root) /etc/logrotate.d/samba
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/samba
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/samba
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
%{_mandir}/man1/smbstatus.1*
%{_mandir}/man8/smbd.8*
%{_mandir}/man8/smbpasswd.8*
%{_mandir}/man8/pdbedit.8*
-%{_mandir}/man8/winbindd.8*
%{_mandir}/man8/tdbbackup.8*
%dir %{_sambahome}
%dir /var/lock/samba
%ghost /var/lock/samba/*
-%attr(0750,root,root) %dir /var/log/samba
-%attr(0750,root,root) %dir /var/log/archiv/samba
+%attr(750,root,root) %dir /var/log/samba
+%attr(750,root,root) %dir /var/log/archiv/samba
%attr(1777,root,root) %dir /var/spool/samba
+%if %{with ldap}
+%doc examples/LDAP
+%endif
%if %{with mysql}
%files pdb-mysql
%attr(755,root,root) %{_libdir}/%{name}/pdb/mysql.so
%endif
+%if %{with pgsql}
+%files pdb-pgsql
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/pdb/pgsql.so
+%endif
+
%files pdb-xml
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/pdb/xml.so
+%files winbind
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/winbindd
+%attr(755,root,root) %{_bindir}/wbinfo
+%attr(755,root,root) /%{_lib}/security/pam_winbind*
+%attr(755,root,root) /%{_lib}/libnss_winbind*
+%attr(754,root,root) /etc/rc.d/init.d/winbind
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/winbind
+%{_mandir}/man8/winbindd*.8*
+%{_mandir}/man1/wbinfo*.1*
+
+%files -n nss_wins
+%defattr(644,root,root,755)
+%attr(755,root,root) /%{_lib}/libnss_wins*
+
%files client
%defattr(644,root,root,755)
%attr(755,root,root) /sbin/mount.smbfs
+%attr(755,root,root) /sbin/mount.cifs
%attr(755,root,root) %{_bindir}/smbmount
%attr(755,root,root) %{_bindir}/smbmnt
%attr(755,root,root) %{_bindir}/smbumount
%{_mandir}/man8/smbmnt.8*
%{_mandir}/man8/smbmount.8*
%{_mandir}/man8/smbumount.8*
+%{_mandir}/man8/mount.cifs.8*
%attr(755,root,root) %{_bindir}/nmblookup
%attr(755,root,root) %{_bindir}/smbclient
%attr(755,root,root) %{_bindir}/smbtar
%{_mandir}/man1/smbsh.1*
%attr(755,root,root) %{_bindir}/rpcclient
%{_mandir}/man1/rpcclient.1*
-%attr(755,root,root) %{_bindir}/wbinfo
-%{_mandir}/man1/wbinfo.1*
%attr(755,root,root) %{_bindir}/findsmb
%{_mandir}/man1/findsmb.1*
%files common
%defattr(644,root,root,755)
%doc README Manifest WHATSNEW.txt
-%doc Roadmap docs/faq docs/Registry/*
+%doc Roadmap docs/*.pdf docs/registry/*
%doc docs/htmldocs/*.* docs/{history,THANKS}
+%dir %{_sysconfdir}/samba
+%attr(664,root,fileshare) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/smb.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/lmhosts
%dir %{_libdir}/%{name}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smb.conf
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lmhosts
%{_libdir}/%{name}/*.dat
-#%attr(755,root,root) %{_bindir}/make_smbcodepage
-#%attr(755,root,root) %{_bindir}/make_unicodemap
%attr(755,root,root) %{_bindir}/testparm
%attr(755,root,root) %{_bindir}/testprns
%attr(755,root,root) %{_bindir}/ntlm_auth
%attr(755,root,root) %{_bindir}/smbcquotas
%attr(755,root,root) %{_bindir}/profiles
%attr(755,root,root) %{_bindir}/pdbedit
-#%attr(755,root,root) %{_bindir}/make_printerdef
%dir %{_libdir}/%{name}/charset
%attr(755,root,root) %{_libdir}/%{name}/charset/*.so
-#%{_mandir}/man1/make_smbcodepage.1*
-#%{_mandir}/man1/make_unicodemap.1*
%{_mandir}/man1/editreg.1*
%{_mandir}/man1/testparm.1*
%{_mandir}/man1/testprns.1*
%{_mandir}/man1/vfstest.1*
%{_mandir}/man1/log2pcap.1*
-%{_mandir}/man8/mount.c*.*
%{_mandir}/man5/smb.conf.5*
%{_mandir}/man5/lmhosts.5*
-%files -n swat
+%files swat
%defattr(644,root,root,755)
#%doc swat/README* swat/help/*
%doc swat/help/*
%attr(755,root,root) %{_sbindir}/swat
-%{_datadir}/swat
-%{_mandir}/man8/swat.8*
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/swat
+%dir %{_datadir}/swat
+%{_datadir}/swat/help
+%{_datadir}/swat/images
+%{_datadir}/swat/include
+%dir %{_datadir}/swat/lang
%lang(ja) %{_datadir}/swat/lang/ja
%lang(tr) %{_datadir}/swat/lang/tr
+%{_datadir}/swat/using_samba
%lang(de) %{_libdir}/%{name}/de.msg
-%lang(en) %{_libdir}/%{name}/en.msg
+%{_libdir}/%{name}/en.msg
%lang(fr) %{_libdir}/%{name}/fr.msg
%lang(it) %{_libdir}/%{name}/it.msg
%lang(ja) %{_libdir}/%{name}/ja.msg
%lang(nl) %{_libdir}/%{name}/nl.msg
%lang(pl) %{_libdir}/%{name}/pl.msg
%lang(tr) %{_libdir}/%{name}/tr.msg
+%{_mandir}/man8/swat.8*
+
+%if %{with python}
+%files -n python-samba
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/samba
+%attr(755,root,root) %{py_sitedir}/samba/*.so
+%{py_sitedir}/samba/*.py
+%doc source/python/{README,gprinterdata,gtdbtool,gtkdictbrowser.py}
+%doc source/python/examples
+%endif
%files -n pam-pam_smbpass
%defattr(644,root,root,755)
%doc source/pam_smbpass/{CHAN*,README,TODO} source/pam_smbpass/samples
-%attr(755,root,root) /lib/security/pam_smbpass.so
+%attr(755,root,root) /%{_lib}/security/pam_smbpass.so
%files -n libsmbclient
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%{_libdir}/libsmbclient.a
+%files -n smbget
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/smbget
+%{_mandir}/man1/smbget.1*
+%{_mandir}/man5/smbgetrc.5*
+
%if %{with cups}
%files -n cups-backend-smb
%defattr(644,root,root,755)
%files vfs-audit
%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/audit.so
-#te ni¿ej chwilowo tutaj
+%attr(755,root,root) %{_vfsdir}/extd_audit.so
+%attr(755,root,root) %{_vfsdir}/full_audit.so
-%attr(755,root,root) %{_vfsdir}/[d-n]*.so
+%files vfs-cap
+%defattr(644,root,root,755)
%attr(755,root,root) %{_vfsdir}/cap.so
-%attr(755,root,root) %{_vfsdir}/readonly.so
-#%files vfs-block
-#%defattr(644,root,root,755)
-#%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba-block.conf
-#%attr(755,root,root) %{_vfsdir}/block.so
+%files vfs-default_quota
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/default_quota.so
+
+%files vfs-expand_msdfs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/expand_msdfs.so
+
+%files vfs-fake_perms
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/fake_perms.so
+
+%files vfs-netatalk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/netatalk.so
+
+%files vfs-readonly
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/readonly.so
%files vfs-recycle
%defattr(644,root,root,755)
-#%doc examples/VFS/recycle/README
-#%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/recycle.conf
%attr(755,root,root) %{_vfsdir}/recycle.so
+%files vfs-shadow_copy
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_vfsdir}/shadow_copy.so
+
%files vfs-vscan-clamav
%defattr(644,root,root,755)
#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-clamav.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-clamav.conf
%attr(755,root,root) %{_vfsdir}/vscan-clamav.so
%files vfs-vscan-fprot
%defattr(644,root,root,755)
#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-fprotd.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-fprotd.conf
%attr(755,root,root) %{_vfsdir}/vscan-fprotd.so
+%files vfs-vscan-fsav
+%defattr(644,root,root,755)
+#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-fsav.conf
+%attr(755,root,root) %{_vfsdir}/vscan-fsav.so
+
+%files vfs-vscan-kavp
+%defattr(644,root,root,755)
+#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-kavp.conf
+%attr(755,root,root) %{_vfsdir}/vscan-kavp.so
+
+%files vfs-vscan-mcafee
+%defattr(644,root,root,755)
+#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-mcdaemon.conf
+%attr(755,root,root) %{_vfsdir}/vscan-mcdaemon.so
+
+%ifarch %{ix86}
+%files vfs-vscan-mks
+%defattr(644,root,root,755)
+#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-mks32.conf
+%attr(755,root,root) %{_vfsdir}/vscan-mksd.so
+%endif
+
%files vfs-vscan-openantivirus
%defattr(644,root,root,755)
#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-oav.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-oav.conf
%attr(755,root,root) %{_vfsdir}/vscan-oav.so
%files vfs-vscan-sophos
%defattr(644,root,root,755)
#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-sophos.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-sophos.conf
%attr(755,root,root) %{_vfsdir}/vscan-sophos.so
%files vfs-vscan-symantec
%defattr(644,root,root,755)
#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-icap.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-icap.conf
%attr(755,root,root) %{_vfsdir}/vscan-icap.so
%files vfs-vscan-trend
%defattr(644,root,root,755)
#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-trend.conf
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-trend.conf
%attr(755,root,root) %{_vfsdir}/vscan-trend.so
-
-%ifarch %{ix86}
-%files vfs-vscan-mks
-%defattr(644,root,root,755)
-#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-mks32.conf
-%attr(755,root,root) %{_vfsdir}/vscan-mksd.so
-%endif
-
-%files vfs-vscan-kavp
-%defattr(644,root,root,755)
-#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vscan-kavp.conf
-%attr(755,root,root) %{_vfsdir}/vscan-kavp.so