]> git.pld-linux.org Git - packages/samba.git/commitdiff
- added mysql bcond
authorwrobell <wrobell@pld-linux.org>
Thu, 11 Dec 2003 17:35:25 +0000 (17:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added password database subpackages: mysql, xml (samba core package does
  not depend on mysql anymore)
- rel. 0.2

Changed files:
    samba.spec -> 1.169

samba.spec

index ca0b72c1db85a71aca35dbdb2d37dc957888e367..fa42c48bec64c8dc78e988ae45ea586aaa49cb6c 100644 (file)
@@ -7,6 +7,7 @@
 #
 # Conditional build:
 %bcond_without cups            # without CUPS support
+%bcond_without mysql   # without CUPS 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
@@ -31,7 +32,7 @@ Summary(uk):  SMB 
 Summary(zh_CN):        Samba ¿Í»§¶ËºÍ·þÎñÆ÷
 Name:          samba
 Version:       3.0.1rc1
-Release:       0.1
+Release:       0.2
 License:       GPL v2
 Group:         Networking/Daemons
 Source0:       http://www.samba.org/samba/ftp/rc/%{name}-%{version}.tar.bz2
@@ -55,8 +56,10 @@ BuildRequires:       autoconf
 %{?with_krb5:BuildRequires:    heimdal-devel}
 BuildRequires: libtool >= 2:1.4d
 BuildRequires: libxml2-devel
+%if %{with mysql}
 BuildRequires: mysql-devel
 BuildRequires: mysql-extras
+%endif
 BuildRequires: ncurses-devel >= 5.2
 %{?with_ldap:BuildRequires:    openldap-devel}
 BuildRequires: openssl-devel >= 0.9.7
@@ -272,6 +275,22 @@ SWAT - ferramentada Web de configura
 ÄÌÑ ÄÉÓÔÁÎæÊÎÏÇÏ ÁÄͦΦÓÔÒÕ×ÁÎÎÑ ÆÁÊÌÕ smb.conf ÚÁ ÄÏÐÏÍÏÇÏÀ ×ÁÛÏÇÏ
 ÕÌÀÂÌÅÎÏÇÏ Web-ÂÒÁÕÚÅÒÕ.
 
+%package pdb-mysql
+Summary:       Samba MySQL password database plugin
+Group:         Networking/Daemons
+Requires:      %{name} = %{version}
+
+%description pdb-mysql
+Samba MySQL password database plugin.
+
+%package pdb-xml
+Summary:       Samba XML password database plugin
+Group:         Networking/Daemons
+Requires:      %{name} = %{version}
+
+%description pdb-xml
+Samba XML password database plugin.
+
 %package client
 Summary:       Samba client programs
 Summary(es):   Cliente SMB de Samba
@@ -647,7 +666,7 @@ cd source
        --with-utmp \
        --with-vfs \
        --with-fhs \
-       --with-expsam \
+       --with-expsam=xml,%{?with_mysql:mysql} \
        %{?with_ipv6:--with-ipv6} \
         %{?with_ldapsam:--with-ldapsam} \
        %{!?with_ldap:--without-ldap} \
@@ -779,8 +798,8 @@ fi
 
 %attr(755,root,root) /lib/libnss_*
 %attr(755,root,root) /lib/security/pam_winbind.so
-%attr(755,root,root) %{_libdir}/%{name}/pdb/*.so
 
+%dir %{_libdir}/%{name}/pdb
 %dir %{_vfsdir}
 
 %attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/smbusers
@@ -808,6 +827,16 @@ fi
 %attr(0750,root,root) %dir /var/log/archiv/samba
 %attr(1777,root,root) %dir /var/spool/samba
 
+%if %{with mysql}
+%files pdb-mysql
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/pdb/mysql.so
+%endif
+
+%files pdb-xml
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/pdb/xml.so
+
 %files client
 %defattr(644,root,root,755)
 %attr(755,root,root) /sbin/mount.smbfs
This page took 1.202724 seconds and 4 git commands to generate.