Summary: PowerDNS is a Versatile Database Driven Nameserver
Summary(pl.UTF-8): PowerDNS to wielofunkcyjny serwer nazw korzystający z relacyjnych baz danych
Name: pdns
-Version: 2.9.21
-Release: 3
+Version: 3.3
+Release: 1
License: GPL
Group: Networking/Daemons
Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
-# Source0-md5: a0d650dd1489ed46b36dfcc1d73653af
+# Source0-md5: 73932211fe9895e02dc60713fe12c005
Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
-# Source1-md5: 1d6eb4a46e3c32e298c1f5ee1b458134
+# Source1-md5: cb69cd9655e4cb319c66adb2c733314d
Source2: http://downloads.powerdns.com/documentation/%{name}.txt
Source3: %{name}.init
Source4: %{name}.conf
Source5: %{name}.sysconfig
-Patch0: %{name}-configure.patch
+Patch0: configure.ac.patch
Patch1: %{name}-int16.patch
Patch2: %{name}-openldap-2.3.patch
URL: http://www.powerdns.com/
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake
BuildRequires: bison
BuildRequires: boost-devel >= 1.35.0
BuildRequires: flex
BuildRequires: libpq++-devel
BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: lua51-devel
BuildRequires: mysql-devel
BuildRequires: openldap-devel >= 2.4.6
BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
+BuildRequires: sqlite3-devel
BuildRequires: zlib-devel
Requires(post): sed >= 4.0
Requires(post,preun): /sbin/chkconfig
%package backend-pipe
Summary: PowerDNS support for custom pipe backend
-Summary(pl.UTF-8): Wsparcie PowerDNS dla własnego mechanizmu przechowywania stref
+Summary(pl.UTF-8): Obsługa własnego mechanizmu przechowywania stref dla PowerDNS-a
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%package backend-gpgsql
Summary: PowerDNS support for PostgreSQL
-Summary(pl.UTF-8): Wsparcie PowerDNS dla baz PostgresQL
+Summary(pl.UTF-8): Obsługa baz PostgreSQL dla PowerDNS-a
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%package backend-gmysql
Summary: PowerDNS support for MySQL
-Summary(pl.UTF-8): Wsparcie PowerDNS dla baz MySQL
+Summary(pl.UTF-8): Obsługa baz MySQL dla PowerDNS-a
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
relacyjnej bazy danych MySQL.
+%package backend-gsqlite3
+Summary: PowerDNS support for SQLite 3
+Summary(pl.UTF-8): Obsługa baz SQLite 3 dla PowerDNS-a
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description backend-gsqlite3
+This package allows zone storage in SQLite 3 relational db tables.
+
+%description backend-gsqlite3 -l pl.UTF-8
+Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
+relacyjnej bazy danych SQLite 3.
+
%package backend-ldap
Summary: PowerDNS support for LDAP
-Summary(pl.UTF-8): Wsparcie PowerDNS dla baz LDAP
+Summary(pl.UTF-8): Obsługa LDAP dla PowerDNS-a
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%patch2 -p1
cp %{SOURCE1} .
cp %{SOURCE2} .
+cp %{SOURCE4} .
+
+%if "%{_lib}" != "lib"
+%{__sed} -i -e 's/module-dir=\/usr\/lib\/pdns/module-dir=\/usr\/%{_lib}\/pdns/' pdns.conf
+%endif
%build
CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
+%{__libtoolize}
+%{__aclocal} -I .
+%{__autoconf}
+%{__automake}
%configure \
--libdir=%{_libdir}/%{name} \
--sysconfdir=%{_sysconfdir}/%{name} \
- --with-socketdir=/var/run \
- --with-dynmodules="gmysql gpgsql pipe ldap" \
- --with-modules="" \
- --enable-mysql \
- --enable-pgsql \
- --with-pgsql-lib=%{_libdir} \
+ --disable-static \
+ --with-lua \
--with-pgsql-includes=%{_includedir} \
- --with-mysql-lib=%{_libdir} \
+ --with-pgsql-lib=%{_libdir} \
--with-mysql-includes=%{_includedir} \
- --enable-ldap \
- --disable-static
+ --with-mysql-lib=%{_libdir} \
+ --with-dynmodules="gsqlite3 gmysql gpgsql pipe ldap" \
+ --with-modules="" \
+ --with-socketdir=/var/run
%{__make}
%files
%defattr(644,root,root,755)
-%doc ChangeLog HACKING INSTALL README TODO pdns.pdf pdns.txt
+%doc HACKING INSTALL README TODO pdns.pdf pdns.txt
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%dir %{_sysconfdir}/%{name}
%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
+%files backend-gsqlite3
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/*sqlite3*.so*
+
%files backend-pipe
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*