]> git.pld-linux.org Git - packages/samba.git/commitdiff
- 1st try of samba-pdb-pgsql
authoradasi <adasi@pld-linux.org>
Mon, 27 Sep 2004 22:53:29 +0000 (22:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- not tested

Changed files:
    samba.spec -> 1.226

samba.spec

index c98478b802a95c691ee9243bafd0e03dbdc95807..b45df91316645a22d8f9c5cff6fe3b95cd6bdc9e 100644 (file)
@@ -9,6 +9,7 @@
 # Conditional build:
 %bcond_without cups            # without CUPS support
 %bcond_without mysql           # without MySQL support
+%bcond_without pgsql   # without PostgreSQL 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
@@ -34,7 +35,7 @@ Summary(uk):  SMB 
 Summary(zh_CN):        Samba ¿Í»§¶ËºÍ·þÎñÆ÷
 Name:          samba
 Version:       3.0.7
-Release:       1
+Release:       1.1
 Epoch:         1
 License:       GPL v2
 Group:         Networking/Daemons
@@ -66,6 +67,9 @@ BuildRequires:        libxml2-devel
 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
@@ -291,6 +295,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
@@ -856,7 +872,7 @@ cd source
        --with-utmp \
        --with-fhs \
         %{?with_python:--with-python} \
-       --with-expsam=xml,%{?with_mysql:mysql} \
+       --with-expsam=xml,%{?with_mysql:mysql}%{?with_pgsql:,pgsql} \
        %{?with_ldapsam:--with-ldapsam} \
        --with%{!?with_ldap:out}-ldap \
        --with%{!?with_krb5:out}-krb5
@@ -1050,6 +1066,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
This page took 0.152421 seconds and 4 git commands to generate.