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 URL: http://www.powerdns.com/
9 Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
10 # Source0-md5: a91f15c90f6551fb817cb708e29d5a37
11 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
12 # Source1-md5: e82b91120cf66f146283ca138025c9d3
13 Source2: http://downloads.powerdns.com/documentation/%{name}.txt
16 Source5: %{name}.sysconfig
20 BuildRequires: mysql-devel
21 BuildRequires: postgresql-c++-devel
22 BuildRequires: libstdc++-devel
23 BuildRequires: zlib-devel
24 Requires(pre): /bin/id
25 Requires(pre): /usr/sbin/useradd
26 Requires(pre): /usr/sbin/groupadd
27 Requires(pre): /bin/id
28 Requires(postun): /usr/sbin/userdel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Provides: nameserver pdns powerdns
31 Obsoletes: nameserver pdns powerdns
34 PowerDNS is a versatile nameserver which supports a large number of
35 different backends ranging from simple zonefiles to relational
36 databases and load balancing/failover algorithms.
39 PowerDNS to wielofunkcyjny serwer nazw posiadaj±cy du¿± liczbê wtyczek
40 od prostych stref (a'la BIND) pocz±wszy, a na relacyjnych bazach danych
41 skoñczywszy oraz zawieraj±cy algorytmy zrównowa¿enia obci±¿enia i
42 prze³±czania w wypadku awarii.
45 Summary: PowerDNS support for custom pipe backend
46 Summary(pl): Wsparcie PowerDNS dla w³asnego mechanizmu przechowywania stref
47 Group: Development/Libraries
49 %description backend-pipe
50 This package allows creation of own backend using simple STDIN/STDOUT
51 API. Example backend script in perl is provided in package documentation.
53 %description backend-pipe -l pl
54 Ten pakiet pozwala na utworzenie w³asnego mechanizmu przechowywania stref
55 za pomoc± prostego interfejsu STDIN/STDOUT. Przyk³adowy skrypt w perlu zosta³
56 do³±czony do dokumentacji pakietu.
58 %package backend-pgsql
59 Summary: PowerDNS support for PostgreSQL
60 Summary(pl): Wsparcie PowerDNS dla baz PostgresQL
61 Group: Development/Libraries
64 %description backend-pgsql
65 This package allows zone storage in PostgreSQL relational db tables.
67 %description backend-pgsql -l pl
68 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
69 relacyjnej bazy danych PostgreSQL.
71 %package backend-mysql
72 Summary: PowerDNS support for MySQL
73 Summary(pl): Wsparcie PowerDNS dla baz MySQL
74 Group: Development/Libraries
77 %description backend-mysql
78 This package allows zone storage in MySQL relational db tables.
80 %description backend-mysql -l pl
81 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
82 relacyjnej bazy danych MySQL.
85 Summary: PowerDNS static libs
86 Summary(pl): Biblioteki statyczne PowerDNS
87 Group: Development/Libraries
90 Static PowerDNS libraries.
92 %description static -l pl
93 Statyczne biblioteki PowerDNS.
104 --libexecdir=%{_libexecdir} \
105 --libdir=%{_libdir}/%{name} \
106 --bindir=%{_sbindir} \
107 --sbindir=%{_sbindir} \
108 --sysconfdir=%{_sysconfdir}/%{name} \
109 --with-socketdir=/var/run \
110 --with-dynmodules="gmysql gpgsql pipe" \
112 --with-pgsql-includes=/usr/include \
119 rm -rf $RPM_BUILD_ROOT
122 DESTDIR="%{buildroot}"
124 install -d %{buildroot}/%{_initrddir}
125 install -d %{buildroot}/%{_sysconfdir}/%{name}
126 install -d %{buildroot}/etc/sysconfig
127 install %{SOURCE3} %{buildroot}/%{_initrddir}/%{name}
128 install %{SOURCE4} %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
129 install %{SOURCE5} %{buildroot}/etc/sysconfig/pdns
132 if [ -n "`getgid djbdns`" ]; then
133 if [ "`getgid djbdns`" != "32" ]; then
134 echo "Error: group djbdns doesn't have gid=32. Correct this before installing pdns." 1>&2
138 /usr/sbin/groupadd -g 32 -r -f djbdns
140 if [ -n "`id -u pdns 2>/dev/null`" ]; then
141 if [ "`id -u pdns`" != "30" ]; then
142 echo "Error: user pdns doesn't have uid=30. Correct this before installing pdns." 1>&2
146 /usr/sbin/useradd -u 30 -r -d /dev/null -s /bin/false -c "pdns User" -g djbdns pdns 1>&2
150 /sbin/chkconfig --add pdns
151 if [ -f %{_localstatedir}/lock/subsys/pdns ]; then
152 /etc/rc.d/init.d/pdns restart >&2
154 echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2
158 if [ "$1" = "0" ]; then
159 if [ -f %{_localstatedir}/lock/subsys/pdns ]; then
160 /etc/rc.d/init.d/pdns stop
162 /sbin/chkconfig --del pdns
166 if [ "$1" = "0" ]; then
167 /usr/sbin/userdel pdns
171 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
174 %defattr(644,root,root,755)
175 %doc ChangeLog HACKING INSTALL README TODO WARNING pdns.pdf pdns.txt
176 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/%{name}/%{name}.conf
177 %config(noreplace) %attr(0754,root,root) %{_initrddir}/%{name}
178 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pdns
179 %dir %{_sysconfdir}/%{name}
180 %attr(755,root,root) %{_sbindir}/*
184 %attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
185 %attr(644,root,root) %{_libdir}/%{name}/*mysql*.la
188 %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
189 %attr(644,root,root) %{_libdir}/%{name}/*pgsql*.la
192 %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
193 %attr(644,root,root) %{_libdir}/%{name}/*pipe*.la
196 %attr(644,root,root) %{_libdir}/%{name}/*.a