]> git.pld-linux.org Git - packages/samba.git/blobdiff - samba.spec
- version 3.0.14a
[packages/samba.git] / samba.spec
index 3750f1c8c9b1dd6e54a6e76faf23212ba4d2e4f4..ab9cdab914675e4735cb63e87a5cd1d2b3fdb2a4 100644 (file)
@@ -1,21 +1,22 @@
 #
 # 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
-# - new package with McAfee vscan - I dunno what to do with daemon
 #
 # Conditional build:
+%bcond_without ads             # without ActiveDirectory support
 %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 ldap            # without LDAP support
+%bcond_without mysql           # without MySQL support
+%bcond_without pgsql           # without PostgreSQL support
 %bcond_without python          # without python libs/utils
-#
-%define                vscan_version 0.3.5
+%bcond_with    ldapsam         # with LDAP SAM 2.2 based auth (instead of smbpasswd)
+
+# ADS requires krb5 and LDAP
+%if %{without krb5} || %{without ldap}
+%undefine      with_ads
+%endif
+%define                vscan_version 0.3.6
 Summary:       SMB server
 Summary(cs):   Server SMB
 Summary(da):   SMB server
@@ -33,13 +34,13 @@ Summary(tr):        SMB sunucusu
 Summary(uk):   SMB Ë̦¤ÎÔ ÔÁ ÓÅÒ×ÅÒ
 Summary(zh_CN):        Samba ¿Í»§¶ËºÍ·þÎñÆ÷
 Name:          samba
-Version:       3.0.6
-Release:       1
+Version:       3.0.14a
+Release:       0.1
 Epoch:         1
 License:       GPL v2
 Group:         Networking/Daemons
-Source0:       http://www.samba.org/samba/ftp/%{name}-%{version}.tar.gz
-# Source0-md5: c8dc06e2bcf63513c2e8d849f6352d8a
+Source0:       http://us1.samba.org/samba/ftp/%{name}-%{version}.tar.gz
+# Source0-md5: ebee37e66a8b5f6fd328967dc09088e8
 Source1:       smb.init
 Source2:       %{name}.pamd
 Source3:       swat.inetd
@@ -47,24 +48,30 @@ Source4:    %{name}.sysconfig
 Source5:       %{name}.logrotate
 Source6:       smb.conf
 Source7:       http://dl.sourceforge.net/openantivirus/%{name}-vscan-%{vscan_version}.tar.bz2
-# Source7-md5: 5f173d549014985d681478897135915b
+# Source7-md5: 68c9d099d942d85e68d96804b26ac788
 Source8:       winbind.init
 Source9:       winbind.sysconfig
 Patch0:                %{name}-statfs-workaround.patch
 Patch1:                %{name}-lib64.patch
-#Patch2:       http://v6web.litech.org/samba/%{name}-2.2.4+IPv6-20020609.diff
+Patch2:                %{name}-setup-python.patch
+Patch3:                %{name}-FHS.patch
+Patch4:                %{name}-case_insensitive_sql_operator.patch
 URL:           http://www.samba.org/
 BuildRequires: acl-devel
 BuildRequires: autoconf
 BuildRequires: automake
 %{?with_cups:BuildRequires:    cups-devel}
 %{?with_krb5:BuildRequires:    heimdal-devel}
+BuildRequires: libmagic-devel
 BuildRequires: libtool >= 2:1.4d
 BuildRequires: libxml2-devel
 %if %{with mysql}
 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.7d
@@ -74,10 +81,12 @@ 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 = %{epoch}:%{version}-%{release}
 Requires:      logrotate
 Requires:      pam >= 0.66
+Obsoletes:     samba-vfs-block
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _vfsdir         %{_libdir}/%{name}/vfs
@@ -85,6 +94,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %if %{with cups}
 %define                cups_serverbin  %{_libdir}/cups
 %endif
+%define                schemadir       /usr/share/openldap/schema
 
 %description
 Samba provides an SMB server which can be used to provide network
@@ -101,8 +111,7 @@ WINS database management.
 
 Please refer to the WHATSNEW.txt document for fixup information. This
 binary release includes encrypted password support. Please read the
-smb.conf file and ENCRYPTION.txt in the docs directory for
-implementation details.
+smb.conf file for implementation details.
 
 %description -l cs
 Samba poskytuje server SMB, který lze pou¾ít pro poskytování sí»ových
@@ -182,9 +191,7 @@ SWAT(Samba Web Administration Tool)
 TCP 901 Æ÷Æ®¸¦ »ç¿ëÇÏ°Ô µÈ´Ù.
 
 ÃÖ±Ù Á¤º¸·Î WHATSNEW.txt ÆÄÀÏÀÇ ¹®¼­¸¦ Âü°íÇϵµ·Ï ÇÑ´Ù. ¹ÙÀ̳ʸ®ÀÇ
-¸±¸®Áî´Â ¾ÏȣȭµÈ Æнº¿öµå¸¦ Á¦°øÇÑ´Ù. ±¸Çö¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ Á¤º¸¸¦ ¾ò±â
-À§ÇØ docs µð·ºÅ丮³»¿¡ Àִ smb.conf ÆÄÀÏ°ú ENCRYPTION.txt ÆÄÀÏÀ»
-Àо´Ù.
+¸±¸®Áî´Â ¾ÏȣȭµÈ Æнº¿öµå¸¦ Á¦°øÇÑ´Ù.
 
 %description -l pl
 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu dostarczenia
@@ -290,6 +297,18 @@ 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
@@ -311,9 +330,9 @@ Summary(pt_BR):     Cliente SMB do samba
 Summary(ru):   ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ Samba (SMB)
 Summary(uk):   ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ Samba (SMB)
 Group:         Applications/Networking
-Requires:      samba-common = %{epoch}:%{version}-%{release}
-Obsoletes:     smbfs
+Requires:      %{name}-common = %{epoch}:%{version}-%{release}
 Obsoletes:     mount-cifs
+Obsoletes:     smbfs
 
 %description client
 Samba-client provides some SMB clients, which complement the build-in
@@ -429,7 +448,7 @@ file.
 
 %description -n pam-pam_smbpass -l pl
 Modu³ PAM, który mo¿e byæ u¿ywany do trzymania pliku smbpasswd (has³a
-Samby) zsynchronizowanego z has³ami unixowymi.
+Samby) zsynchronizowanego z has³ami uniksowymi.
 
 %package -n libsmbclient
 Summary:       libsmbclient - samba client library
@@ -502,6 +521,7 @@ Backend CUPS-a drukuj
 Summary:       Samba python tools and libraries
 Summary(pl):   Narzêdzia i biblioteki pythona do samby
 Group:         Applications/Networking
+%pyrequires_eq python-libs
 
 %description -n python-samba
 Samba python tools and libraries.
@@ -654,6 +674,22 @@ 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-antivir
+Summary:        On-access virus scanning for samba using AntiVir
+Summary(pl):    Skaner antywirusowy online wykorzystuj±cy AntiVir
+Group:          Networking/Daemons
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
+
+%description vfs-vscan-antivir
+A vfs-module for samba to implement on-access scanning using the
+AntiVir antivirus software (which must be installed to use this).
+
+%description vfs-vscan-antivir -l pl
+Modu³ vfs do samby implementuj±cy skaning antywirusowy w czasie
+dostêpu do plików korzystaj±c z oprogramowania antywirusowego AntiVir
+(które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
+
 %package vfs-vscan-clamav
 Summary:       On-access virus scanning for samba using ClamAV
 Summary(pl):   Skaner antywirusowy online wykorzystuj±cy ClamAV
@@ -690,11 +726,11 @@ dost
 
 %package vfs-vscan-fsav
 Summary:       On-access virus scanning for samba using F-Secure AntiVirus
-Summary(pl):   Modu³ VFS dodaj±cy obs³ugê antywirusa 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-kavp
+Obsoletes:     vscan-fsav
 
 %description vfs-vscan-fsav
 A vfs-module for samba to implement on-access scanning using the
@@ -708,7 +744,7 @@ AntiVirus (kt
 
 %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
+Summary(pl):   Skaner antywirusowy online wykorzystuj±cy Kaspersky AVP
 Group:         Networking/Daemons
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Provides:      %{name}-vscan = %{epoch}:%{version}-%{release}
@@ -725,9 +761,27 @@ dost
 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):   Modu³ VFS dodaj±cy obs³ugê antywirusa mks
+Summary(pl):   Skaner antywirusowy online wykorzystuj±cy mks
 Group:         Networking/Daemons
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      mksd
@@ -745,7 +799,7 @@ dost
 
 %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}-%{release}
 Provides:      %{name}-vscan = %{epoch}:%{version}-%{release}
@@ -764,7 +818,7 @@ modu
 
 %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}-%{release}
 Provides:      %{name}-vscan = %{epoch}:%{version}-%{release}
@@ -798,7 +852,7 @@ Symantec (kt
 
 %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}-%{release}
 Provides:      %{name}-vscan = %{epoch}:%{version}-%{release}
@@ -813,13 +867,28 @@ Modu
 dostêpu do plików korzystaj±c z oprogramowania antywirusowego Trend
 (które musi byæ zainstalowane, aby wykorzystaæ ten modu³).
 
+%package -n openldap-schema-samba
+Summary:       Samba LDAP schema
+Summary(pl):   Schemat LDAP dla samby
+Group:         Networking/Daemons
+Requires(post,postun): sed >= 4.0
+Requires:      openldap-servers
+
+%description -n openldap-schema-samba
+This package contains samba.schema for openldap.
+
+%description -n openldap-schema-samba -l pl
+Ten pakiet zawiera schemat samby dla openldap-a.
+
 %prep
 %setup -q
 %patch0 -p1
-%ifarch amd64
+%if "%{_lib}" == "lib64"
 %patch1 -p1
 %endif
-#%{?with_ipv6:%patch2 -p1}
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 cd examples/VFS
 tar xjf %{SOURCE7}
@@ -844,7 +913,7 @@ cd source
        --with-libsmbclient \
        --with-pam \
        --with-pam_smbpass \
-       --with%{!?with_ldap:out}-ads \
+       --with%{!?with_ads:out}-ads \
        --with-privatedir=%{_sysconfdir}/samba \
        --with-quotas \
        --with-readline \
@@ -853,14 +922,14 @@ cd source
        --with-syslog \
        --with-utmp \
        --with-fhs \
-        %{?with_python:--with-python} \
-       --with-expsam=xml,%{?with_mysql:mysql} \
+       %{?with_python:--with-python} \
+       --with-expsam=xml,%{?with_mysql:mysql}%{?with_pgsql:,pgsql} \
        %{?with_ldapsam:--with-ldapsam} \
        --with%{!?with_ldap:out}-ldap \
        --with%{!?with_krb5:out}-krb5
 
 %{__make} proto
-%{__make} everything pam_smbpass bin/smbget client/mount.cifs
+%{__make} everything pam_smbpass bin/smbget client/mount.cifs bin/vfstest
 
 cd ../examples/VFS
 %{__autoconf}
@@ -870,7 +939,7 @@ cd ../examples/VFS
 mv README{,.vfs}
 
 cd samba-vscan-%{vscan_version}
-cp %{_datadir}/automake/config.sub .
+cp -f /usr/share/automake/config.sub .
 %configure
 %{__make} -j1 all
 
@@ -878,7 +947,7 @@ cp %{_datadir}/automake/config.sub .
 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},%{schemadir}}
 
 cd source
 %{__make} install \
@@ -908,6 +977,7 @@ 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/vfstest             $RPM_BUILD_ROOT%{_bindir}
 
 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
@@ -917,7 +987,7 @@ install source/include/libsmbclient.h $RPM_BUILD_ROOT%{_includedir}
 
 # 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,f-secure}/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba
+install examples/VFS/samba-vscan-%{vscan_version}/{antivir,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}
 
@@ -943,6 +1013,12 @@ 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
+
+%if %{with ldap}
+install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -990,6 +1066,41 @@ if [ -f /var/lock/subsys/rc-inetd ]; then
        /etc/rc.d/init.d/rc-inetd reload
 fi
 
+%post -n openldap-schema-samba
+if ! grep -q %{schemadir}/samba.schema /etc/openldap/slapd.conf; then
+       sed -i -e '
+               /^include.*local.schema/{
+                       i\
+include                %{schemadir}/samba.schema
+               }
+
+               # enable dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
+               /^#include.*\(cosine\|inetorgperson\|nis\)\.schema/{
+                       s/^#//
+               }
+       ' /etc/openldap/slapd.conf
+fi
+
+if [ -f /var/lock/subsys/ldap ]; then
+       /etc/rc.d/init.d/ldap restart >&2
+fi
+
+%postun -n openldap-schema-samba
+if [ "$1" = "0" ]; then
+       if grep -q %{schemadir}/samba.schema /etc/openldap/slapd.conf; then
+               sed -i -e '
+               /^include.*\/usr\/share\/openldap\/schema\/samba.schema/d
+
+               # for symmetry it would be nice if we disable enabled schemas in post,
+               # but we really can not do that, it would break something else.
+               ' /etc/openldap/slapd.conf
+       fi
+
+       if [ -f /var/lock/subsys/ldap ]; then
+               /etc/rc.d/init.d/ldap restart >&2 || :
+       fi
+fi
+
 %triggerpostun -- samba < 1.9.18p7
 if [ "$1" != "0" ]; then
        /sbin/chkconfig --add smb
@@ -1010,6 +1121,7 @@ fi
 %attr(755,root,root) %{_bindir}/smbpasswd
 %attr(755,root,root) %{_bindir}/smbcontrol
 %attr(755,root,root) %{_bindir}/tdbbackup
+%attr(755,root,root) %{_bindir}/tdbtool_samba
 
 %dir %{_libdir}/%{name}/pdb
 %dir %{_vfsdir}
@@ -1017,7 +1129,7 @@ fi
 %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*
@@ -1028,16 +1140,18 @@ fi
 %{_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
@@ -1045,6 +1159,12 @@ fi
 %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
@@ -1057,8 +1177,8 @@ fi
 %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
-#%attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/system-auth-winbind*
 %{_mandir}/man8/winbindd*.8*
+%{_mandir}/man8/pam_winbind.8.gz
 %{_mandir}/man1/wbinfo*.1*
 
 %files -n nss_wins
@@ -1091,8 +1211,6 @@ fi
 %{_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*
 
@@ -1101,23 +1219,20 @@ fi
 %doc README Manifest WHATSNEW.txt
 %doc Roadmap docs/*.pdf docs/registry/*
 %doc docs/htmldocs/*.* docs/{history,THANKS}
-%dir %{_libdir}/%{name}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/smb.conf
+%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}
 %{_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
+%attr(755,root,root) %{_bindir}/vfstest
 %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*
@@ -1203,7 +1318,6 @@ fi
 %attr(755,root,root) %{_vfsdir}/extd_audit.so
 %attr(755,root,root) %{_vfsdir}/full_audit.so
 
-
 %files vfs-cap
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/cap.so
@@ -1236,6 +1350,12 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
 
+%files vfs-vscan-antivir
+%defattr(644,root,root,755)
+#%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-antivir.conf
+%attr(755,root,root) %{_vfsdir}/vscan-antivir.so
+
 %files vfs-vscan-clamav
 %defattr(644,root,root,755)
 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
@@ -1260,6 +1380,12 @@ fi
 %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)
@@ -1291,3 +1417,9 @@ fi
 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/samba/vscan-trend.conf
 %attr(755,root,root) %{_vfsdir}/vscan-trend.so
+
+%if %{with ldap}
+%files -n openldap-schema-samba
+%defattr(644,root,root,755)
+%{schemadir}/*.schema
+%endif
This page took 0.050359 seconds and 4 git commands to generate.