1 Summary: PowerDNS is a Versatile Database Driven Nameserver
2 Summary(pl): 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: 7e9a859a5a21996dbf7b31cd61731dbc
10 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
11 # Source1-md5: 72cce8fb180c3a70437187ff0912c2a3
12 Source2: http://downloads.powerdns.com/documentation/%{name}.txt
15 Source5: %{name}.sysconfig
16 Patch0: %{name}-configure.patch
17 URL: http://www.powerdns.com/
20 BuildRequires: libstdc++-devel
21 BuildRequires: libpq++-devel
22 BuildRequires: mysql-devel
23 BuildRequires: openldap-devel
24 BuildRequires: rpmbuild(macros) >= 1.159
25 BuildRequires: zlib-devel
27 Requires(pre): /bin/id
28 Requires(pre): /usr/bin/getgid
29 Requires(pre): /usr/sbin/groupadd
30 Requires(pre): /usr/sbin/useradd
31 Requires(post,preun): /sbin/chkconfig
32 Requires(postun): /usr/sbin/groupdel
33 Requires(postun): /usr/sbin/userdel
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Provides: group(djbdns)
41 PowerDNS is a versatile nameserver which supports a large number of
42 different backends ranging from simple zonefiles to relational
43 databases and load balancing/failover algorithms.
46 PowerDNS to wielofunkcyjny serwer nazw posiadaj±cy du¿± liczbê wtyczek
47 od prostych stref (a'la BIND) pocz±wszy, a na relacyjnych bazach
48 danych skoñczywszy oraz zawieraj±cy algorytmy zrównowa¿enia obci±¿enia
49 i prze³±czania w wypadku awarii.
52 Summary: PowerDNS support for custom pipe backend
53 Summary(pl): Wsparcie PowerDNS dla w³asnego mechanizmu przechowywania stref
54 Group: Development/Libraries
56 %description backend-pipe
57 This package allows creation of own backend using simple STDIN/STDOUT
58 API. Example backend script in Perl is provided in package
61 %description backend-pipe -l pl
62 Ten pakiet pozwala na utworzenie w³asnego mechanizmu przechowywania
63 stref za pomoc¹ prostego interfejsu STDIN/STDOUT. Przyk³adowy skrypt w
64 Perlu zosta³ do³±czony do dokumentacji pakietu.
66 %package backend-gpgsql
67 Summary: PowerDNS support for PostgreSQL
68 Summary(pl): Wsparcie PowerDNS dla baz PostgresQL
69 Group: Development/Libraries
72 %description backend-gpgsql
73 This package allows zone storage in PostgreSQL relational db tables.
75 %description backend-gpgsql -l pl
76 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
77 relacyjnej bazy danych PostgreSQL.
79 %package backend-gmysql
80 Summary: PowerDNS support for MySQL
81 Summary(pl): Wsparcie PowerDNS dla baz MySQL
82 Group: Development/Libraries
85 %description backend-gmysql
86 This package allows zone storage in MySQL relational db tables.
88 %description backend-gmysql -l pl
89 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
90 relacyjnej bazy danych MySQL.
93 Summary: PowerDNS support for LDAP
94 Summary(pl): Wsparcie PowerDNS dla baz LDAP
95 Group: Development/Libraries
98 %description backend-ldap
99 This package allows zone storage in LDAP directory.
101 %description backend-ldap -l pl
102 Ten pakiet pozwala na przechowywanie danych o strefach w katalogu LDAP.
111 CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
113 --libdir=%{_libdir}/%{name} \
114 --sysconfdir=%{_sysconfdir}/%{name} \
115 --with-socketdir=/var/run \
116 --with-dynmodules="gmysql gpgsql pipe ldap" \
120 --with-pgsql-lib=%{_libdir} \
121 --with-pgsql-includes=%{_includedir} \
122 --with-mysql-lib=%{_libdir} \
123 --with-mysql-includes=%{_includedir} \
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT{%{_initrddir},%{_sysconfdir}/%{name},/etc/sysconfig}
134 DESTDIR=$RPM_BUILD_ROOT
136 install %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name}
137 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
138 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
140 # useless - modules are dlopened by *.so
141 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
144 rm -rf $RPM_BUILD_ROOT
147 if [ -n "`/usr/bin/getgid djbdns`" ]; then
148 if [ "`/usr/bin/getgid djbdns`" != "32" ]; then
149 echo "Error: group djbdns doesn't have gid=32. Correct this before installing pdns." 1>&2
153 /usr/sbin/groupadd -g 32 djbdns
155 if [ -n "`/bin/id -u pdns 2>/dev/null`" ]; then
156 if [ "`/bin/id -u pdns`" != "30" ]; then
157 echo "Error: user pdns doesn't have uid=30. Correct this before installing pdns." 1>&2
161 /usr/sbin/useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns 1>&2
165 # dirty hack so the config file is processed correctly, and server does not respawn
166 TMP=`mktemp /tmp/pdns.install-tmp.XXXXXX`
167 sed 's/^ *//g' /etc/pdns/pdns.conf > $TMP
168 cp /etc/pdns/pdns.conf /etc/pdns/pdns.conf.rpmsave
169 mv $TMP /etc/pdns/pdns.conf
171 /sbin/chkconfig --add pdns
172 if [ -f /var/lock/subsys/pdns ]; then
173 /etc/rc.d/init.d/pdns restart >&2
175 echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2
179 if [ "$1" = "0" ]; then
180 if [ -f /var/lock/subsys/pdns ]; then
181 /etc/rc.d/init.d/pdns stop
183 /sbin/chkconfig --del pdns
187 if [ "$1" = "0" ]; then
193 %defattr(644,root,root,755)
194 %doc ChangeLog HACKING INSTALL README TODO WARNING pdns.pdf pdns.txt
195 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/%{name}/%{name}.conf
196 %config(noreplace) %attr(0754,root,root) %{_initrddir}/%{name}
197 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pdns
198 %dir %{_sysconfdir}/%{name}
199 %attr(755,root,root) %{_sbindir}/*
200 %attr(755,root,root) %{_bindir}/*
203 %files backend-gmysql
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
207 %files backend-gpgsql
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*