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: a8aa0b47b3c4f05468b7e664caacb8d1
10 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
11 # Source1-md5: b7700d89540645c30e5cb3aeb739e6e0
12 Source2: http://downloads.powerdns.com/documentation/%{name}.txt
15 Source5: %{name}.sysconfig
16 URL: http://www.powerdns.com/
19 BuildRequires: libpq++-devel
20 BuildRequires: libstdc++-devel
21 BuildRequires: mysql-devel
22 BuildRequires: zlib-devel
24 Requires(pre): /bin/id
25 Requires(pre): /usr/sbin/useradd
26 Requires(pre): /usr/sbin/groupadd
27 Requires(post,preun): /sbin/chkconfig
28 Requires(postun): /usr/sbin/userdel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 PowerDNS is a versatile nameserver which supports a large number of
37 different backends ranging from simple zonefiles to relational
38 databases and load balancing/failover algorithms.
41 PowerDNS to wielofunkcyjny serwer nazw posiadaj±cy du¿± liczbê wtyczek
42 od prostych stref (a'la BIND) pocz±wszy, a na relacyjnych bazach danych
43 skoñczywszy oraz zawieraj±cy algorytmy zrównowa¿enia obci±¿enia i
44 prze³±czania w wypadku awarii.
47 Summary: PowerDNS support for custom pipe backend
48 Summary(pl): Wsparcie PowerDNS dla w³asnego mechanizmu przechowywania stref
49 Group: Development/Libraries
51 %description backend-pipe
52 This package allows creation of own backend using simple STDIN/STDOUT
53 API. Example backend script in perl is provided in package documentation.
55 %description backend-pipe -l pl
56 Ten pakiet pozwala na utworzenie w³asnego mechanizmu przechowywania stref
57 za pomoc± prostego interfejsu STDIN/STDOUT. Przyk³adowy skrypt w perlu zosta³
58 do³±czony do dokumentacji pakietu.
60 %package backend-pgsql
61 Summary: PowerDNS support for PostgreSQL
62 Summary(pl): Wsparcie PowerDNS dla baz PostgresQL
63 Group: Development/Libraries
66 %description backend-pgsql
67 This package allows zone storage in PostgreSQL relational db tables.
69 %description backend-pgsql -l pl
70 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
71 relacyjnej bazy danych PostgreSQL.
73 %package backend-mysql
74 Summary: PowerDNS support for MySQL
75 Summary(pl): Wsparcie PowerDNS dla baz MySQL
76 Group: Development/Libraries
79 %description backend-mysql
80 This package allows zone storage in MySQL relational db tables.
82 %description backend-mysql -l pl
83 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
84 relacyjnej bazy danych MySQL.
93 --libdir=%{_libdir}/%{name} \
94 --sysconfdir=%{_sysconfdir}/%{name} \
95 --with-socketdir=/var/run \
96 --with-dynmodules="gmysql gpgsql pipe" \
98 --with-pgsql-includes=/usr/include \
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT{%{_initrddir},%{_sysconfdir}/%{name},/etc/sysconfig}
110 DESTDIR=$RPM_BUILD_ROOT
112 install %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name}
113 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
114 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
116 # useless - modules are dlopened by *.so
117 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
120 rm -rf $RPM_BUILD_ROOT
123 if [ -n "`getgid djbdns`" ]; then
124 if [ "`getgid djbdns`" != "32" ]; then
125 echo "Error: group djbdns doesn't have gid=32. Correct this before installing pdns." 1>&2
129 /usr/sbin/groupadd -g 32 -r -f djbdns
131 if [ -n "`id -u pdns 2>/dev/null`" ]; then
132 if [ "`id -u pdns`" != "30" ]; then
133 echo "Error: user pdns doesn't have uid=30. Correct this before installing pdns." 1>&2
137 /usr/sbin/useradd -u 30 -r -d /dev/null -s /bin/false -c "pdns User" -g djbdns pdns 1>&2
141 /sbin/chkconfig --add pdns
142 if [ -f /var/lock/subsys/pdns ]; then
143 /etc/rc.d/init.d/pdns restart >&2
145 echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2
149 if [ "$1" = "0" ]; then
150 if [ -f /var/lock/subsys/pdns ]; then
151 /etc/rc.d/init.d/pdns stop
153 /sbin/chkconfig --del pdns
157 if [ "$1" = "0" ]; then
158 /usr/sbin/userdel pdns
162 %defattr(644,root,root,755)
163 %doc ChangeLog HACKING INSTALL README TODO WARNING pdns.pdf pdns.txt
164 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/%{name}/%{name}.conf
165 %config(noreplace) %attr(0754,root,root) %{_initrddir}/%{name}
166 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pdns
167 %dir %{_sysconfdir}/%{name}
168 %attr(755,root,root) %{_sbindir}/*
169 %attr(755,root,root) %{_bindir}/*
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*