1 Summary: PowerDNS is a Versatile Database Driven Nameserver
2 Summary(pl.UTF-8): PowerDNS to wielofunkcyjny serwer nazw korzystający z relacyjnych baz danych
7 Group: Networking/Daemons
8 Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
9 # Source0-md5: 27fd39029a80cb9c0bc3037420515d1a
10 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
11 # Source1-md5: 920b1660258fa2f6d6f949f0c60857b4
12 Source2: http://downloads.powerdns.com/documentation/%{name}.txt
15 Source5: %{name}.sysconfig
16 Patch0: %{name}-configure.patch
17 Patch1: %{name}-int16.patch
18 Patch2: %{name}-openldap-2.3.patch
19 URL: http://www.powerdns.com/
21 BuildRequires: boost-devel >= 1.35.0
23 BuildRequires: libpq++-devel
24 BuildRequires: libstdc++-devel
25 BuildRequires: mysql-devel
26 BuildRequires: openldap-devel >= 2.4.6
27 BuildRequires: rpmbuild(macros) >= 1.268
28 BuildRequires: zlib-devel
29 Requires(post): sed >= 4.0
30 Requires(post,preun): /sbin/chkconfig
31 Requires(postun): /usr/sbin/groupdel
32 Requires(postun): /usr/sbin/userdel
33 Requires(pre): /bin/id
34 Requires(pre): /usr/bin/getgid
35 Requires(pre): /usr/sbin/groupadd
36 Requires(pre): /usr/sbin/useradd
38 Provides: group(djbdns)
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 PowerDNS is a versatile nameserver which supports a large number of
46 different backends ranging from simple zonefiles to relational
47 databases and load balancing/failover algorithms.
49 %description -l pl.UTF-8
50 PowerDNS to wielofunkcyjny serwer nazw posiadający dużą liczbę wtyczek
51 od prostych stref (a'la BIND) począwszy, a na relacyjnych bazach
52 danych skończywszy oraz zawierający algorytmy zrównoważenia obciążenia
53 i przełączania w wypadku awarii.
56 Summary: PowerDNS support for custom pipe backend
57 Summary(pl.UTF-8): Wsparcie PowerDNS dla własnego mechanizmu przechowywania stref
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
61 %description backend-pipe
62 This package allows creation of own backend using simple STDIN/STDOUT
63 API. Example backend script in Perl is provided in package
66 %description backend-pipe -l pl.UTF-8
67 Ten pakiet pozwala na utworzenie własnego mechanizmu przechowywania
68 stref za pomocą prostego interfejsu STDIN/STDOUT. Przykładowy skrypt w
69 Perlu został dołączony do dokumentacji pakietu.
71 %package backend-gpgsql
72 Summary: PowerDNS support for PostgreSQL
73 Summary(pl.UTF-8): Wsparcie PowerDNS dla baz PostgresQL
74 Group: Development/Libraries
75 Requires: %{name} = %{version}-%{release}
77 %description backend-gpgsql
78 This package allows zone storage in PostgreSQL relational db tables.
80 %description backend-gpgsql -l pl.UTF-8
81 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
82 relacyjnej bazy danych PostgreSQL.
84 %package backend-gmysql
85 Summary: PowerDNS support for MySQL
86 Summary(pl.UTF-8): Wsparcie PowerDNS dla baz MySQL
87 Group: Development/Libraries
88 Requires: %{name} = %{version}-%{release}
90 %description backend-gmysql
91 This package allows zone storage in MySQL relational db tables.
93 %description backend-gmysql -l pl.UTF-8
94 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
95 relacyjnej bazy danych MySQL.
98 Summary: PowerDNS support for LDAP
99 Summary(pl.UTF-8): Wsparcie PowerDNS dla baz LDAP
100 Group: Development/Libraries
101 Requires: %{name} = %{version}-%{release}
103 %description backend-ldap
104 This package allows zone storage in LDAP directory.
106 %description backend-ldap -l pl.UTF-8
107 Ten pakiet pozwala na przechowywanie danych o strefach w katalogu
119 %if "%{_lib}" == "lib64"
120 %{__sed} -i -e 's/module-dir=\/usr\/lib\/pdns/module-dir=\/usr\/lib64\/pdns/' pdns.conf
124 CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
126 --libdir=%{_libdir}/%{name} \
127 --sysconfdir=%{_sysconfdir}/%{name} \
128 --with-socketdir=/var/run \
129 --with-dynmodules="gmysql gpgsql pipe ldap" \
133 --with-pgsql-lib=%{_libdir} \
134 --with-pgsql-includes=%{_includedir} \
135 --with-mysql-lib=%{_libdir} \
136 --with-mysql-includes=%{_includedir} \
143 rm -rf $RPM_BUILD_ROOT
144 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/%{name},/etc/sysconfig}
147 DESTDIR=$RPM_BUILD_ROOT
149 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
150 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
151 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
153 # useless - modules are dlopened by *.so
154 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
157 rm -rf $RPM_BUILD_ROOT
160 %groupadd -g 32 djbdns
161 %useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns
164 # dirty hack so the config file is processed correctly, and server does not respawn
165 sed -i -e 's/^ *//' /etc/pdns/pdns.conf
167 /sbin/chkconfig --add pdns
168 %service pdns restart
171 if [ "$1" = "0" ]; then
173 /sbin/chkconfig --del pdns
177 if [ "$1" = "0" ]; then
183 %defattr(644,root,root,755)
184 %doc ChangeLog HACKING INSTALL README TODO pdns.pdf pdns.txt
185 %attr(754,root,root) /etc/rc.d/init.d/%{name}
186 %dir %{_sysconfdir}/%{name}
187 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
188 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pdns
189 %attr(755,root,root) %{_sbindir}/*
190 %attr(755,root,root) %{_bindir}/*
191 %dir %{_libdir}/%{name}
194 %files backend-gmysql
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
198 %files backend-gpgsql
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*