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: 33b20ef1b767f93297101f2aa09e99ed
10 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
11 # Source1-md5: 3ce3a16df5d91ceab75dea8307b35f2c
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
22 BuildRequires: boost-ref-devel
24 BuildRequires: libpq++-devel
25 BuildRequires: libstdc++-devel
26 BuildRequires: mysql-devel
27 BuildRequires: openldap-devel >= 2.3.0
28 BuildRequires: rpmbuild(macros) >= 1.268
29 BuildRequires: zlib-devel
30 Requires(post): sed >= 4.0
31 Requires(post,preun): /sbin/chkconfig
32 Requires(postun): /usr/sbin/groupdel
33 Requires(postun): /usr/sbin/userdel
34 Requires(pre): /bin/id
35 Requires(pre): /usr/bin/getgid
36 Requires(pre): /usr/sbin/groupadd
37 Requires(pre): /usr/sbin/useradd
39 Provides: group(djbdns)
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 PowerDNS is a versatile nameserver which supports a large number of
47 different backends ranging from simple zonefiles to relational
48 databases and load balancing/failover algorithms.
50 %description -l pl.UTF-8
51 PowerDNS to wielofunkcyjny serwer nazw posiadający dużą liczbę wtyczek
52 od prostych stref (a'la BIND) począwszy, a na relacyjnych bazach
53 danych skończywszy oraz zawierający algorytmy zrównoważenia obciążenia
54 i przełączania w wypadku awarii.
57 Summary: PowerDNS support for custom pipe backend
58 Summary(pl.UTF-8): Wsparcie PowerDNS dla własnego mechanizmu przechowywania stref
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
62 %description backend-pipe
63 This package allows creation of own backend using simple STDIN/STDOUT
64 API. Example backend script in Perl is provided in package
67 %description backend-pipe -l pl.UTF-8
68 Ten pakiet pozwala na utworzenie własnego mechanizmu przechowywania
69 stref za pomocą prostego interfejsu STDIN/STDOUT. Przykładowy skrypt w
70 Perlu został dołączony do dokumentacji pakietu.
72 %package backend-gpgsql
73 Summary: PowerDNS support for PostgreSQL
74 Summary(pl.UTF-8): Wsparcie PowerDNS dla baz PostgresQL
75 Group: Development/Libraries
76 Requires: %{name} = %{version}-%{release}
78 %description backend-gpgsql
79 This package allows zone storage in PostgreSQL relational db tables.
81 %description backend-gpgsql -l pl.UTF-8
82 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
83 relacyjnej bazy danych PostgreSQL.
85 %package backend-gmysql
86 Summary: PowerDNS support for MySQL
87 Summary(pl.UTF-8): Wsparcie PowerDNS dla baz MySQL
88 Group: Development/Libraries
89 Requires: %{name} = %{version}-%{release}
91 %description backend-gmysql
92 This package allows zone storage in MySQL relational db tables.
94 %description backend-gmysql -l pl.UTF-8
95 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
96 relacyjnej bazy danych MySQL.
99 Summary: PowerDNS support for LDAP
100 Summary(pl.UTF-8): Wsparcie PowerDNS dla baz LDAP
101 Group: Development/Libraries
102 Requires: %{name} = %{version}-%{release}
104 %description backend-ldap
105 This package allows zone storage in LDAP directory.
107 %description backend-ldap -l pl.UTF-8
108 Ten pakiet pozwala na przechowywanie danych o strefach w katalogu
120 CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
122 --libdir=%{_libdir}/%{name} \
123 --sysconfdir=%{_sysconfdir}/%{name} \
124 --with-socketdir=/var/run \
125 --with-dynmodules="gmysql gpgsql pipe ldap" \
129 --with-pgsql-lib=%{_libdir} \
130 --with-pgsql-includes=%{_includedir} \
131 --with-mysql-lib=%{_libdir} \
132 --with-mysql-includes=%{_includedir} \
139 rm -rf $RPM_BUILD_ROOT
140 install -d $RPM_BUILD_ROOT{%{_initrddir},%{_sysconfdir}/%{name},/etc/sysconfig}
143 DESTDIR=$RPM_BUILD_ROOT
145 install %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name}
146 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
147 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
149 # useless - modules are dlopened by *.so
150 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
153 rm -rf $RPM_BUILD_ROOT
156 %groupadd -g 32 djbdns
157 %useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns
160 # dirty hack so the config file is processed correctly, and server does not respawn
161 sed -i -e 's/^ *//' /etc/pdns/pdns.conf
163 /sbin/chkconfig --add pdns
164 %service pdns restart
167 if [ "$1" = "0" ]; then
169 /sbin/chkconfig --del pdns
173 if [ "$1" = "0" ]; then
179 %defattr(644,root,root,755)
180 %doc ChangeLog HACKING INSTALL README TODO pdns.pdf pdns.txt
181 %attr(754,root,root) %{_initrddir}/%{name}
182 %dir %{_sysconfdir}/%{name}
183 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
184 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pdns
185 %attr(755,root,root) %{_sbindir}/*
186 %attr(755,root,root) %{_bindir}/*
189 %files backend-gmysql
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
193 %files backend-gpgsql
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*