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: 92489391182dc40012f1de7b2005ea93
10 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
11 # Source1-md5: f183b5bec39e40f8c55c19afc3a3f933
12 Source2: http://downloads.powerdns.com/documentation/%{name}.txt
15 Source5: %{name}.sysconfig
16 Patch0: %{name}-configure.patch
17 #Patch1: http://wiki.powerdns.com/projects/trac/changeset/305?format=diff
18 Patch1: pdns-305.patch
19 #Patch2: http://wiki.powerdns.com/projects/trac/changeset/307?format=diff
20 Patch2: pdns-307.patch
21 URL: http://www.powerdns.com/
24 BuildRequires: libstdc++-devel
25 BuildRequires: libpq++-devel
26 BuildRequires: mysql-devel
27 BuildRequires: openldap-devel
28 BuildRequires: rpmbuild(macros) >= 1.159
29 BuildRequires: zlib-devel
31 Requires(pre): /bin/id
32 Requires(pre): /usr/bin/getgid
33 Requires(pre): /usr/sbin/groupadd
34 Requires(pre): /usr/sbin/useradd
35 Requires(post,preun): /sbin/chkconfig
36 Requires(postun): /usr/sbin/groupdel
37 Requires(postun): /usr/sbin/userdel
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Provides: group(djbdns)
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.
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): Wsparcie PowerDNS dla w³asnego mechanizmu przechowywania stref
58 Group: Development/Libraries
60 %description backend-pipe
61 This package allows creation of own backend using simple STDIN/STDOUT
62 API. Example backend script in Perl is provided in package
65 %description backend-pipe -l pl
66 Ten pakiet pozwala na utworzenie w³asnego mechanizmu przechowywania
67 stref za pomoc¹ prostego interfejsu STDIN/STDOUT. Przyk³adowy skrypt w
68 Perlu zosta³ do³±czony do dokumentacji pakietu.
70 %package backend-gpgsql
71 Summary: PowerDNS support for PostgreSQL
72 Summary(pl): Wsparcie PowerDNS dla baz PostgresQL
73 Group: Development/Libraries
75 %description backend-gpgsql
76 This package allows zone storage in PostgreSQL relational db tables.
78 %description backend-gpgsql -l pl
79 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
80 relacyjnej bazy danych PostgreSQL.
82 %package backend-gmysql
83 Summary: PowerDNS support for MySQL
84 Summary(pl): Wsparcie PowerDNS dla baz MySQL
85 Group: Development/Libraries
87 %description backend-gmysql
88 This package allows zone storage in MySQL relational db tables.
90 %description backend-gmysql -l pl
91 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
92 relacyjnej bazy danych MySQL.
95 Summary: PowerDNS support for LDAP
96 Summary(pl): Wsparcie PowerDNS dla baz LDAP
97 Group: Development/Libraries
99 %description backend-ldap
100 This package allows zone storage in LDAP directory.
102 %description backend-ldap -l pl
103 Ten pakiet pozwala na przechowywanie danych o strefach w katalogu LDAP.
114 CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
116 --libdir=%{_libdir}/%{name} \
117 --sysconfdir=%{_sysconfdir}/%{name} \
118 --with-socketdir=/var/run \
119 --with-dynmodules="gmysql gpgsql pipe ldap" \
123 --with-pgsql-lib=%{_libdir} \
124 --with-pgsql-includes=%{_includedir} \
125 --with-mysql-lib=%{_libdir} \
126 --with-mysql-includes=%{_includedir} \
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT{%{_initrddir},%{_sysconfdir}/%{name},/etc/sysconfig}
137 DESTDIR=$RPM_BUILD_ROOT
139 install %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name}
140 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
141 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
143 # useless - modules are dlopened by *.so
144 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
147 rm -rf $RPM_BUILD_ROOT
150 if [ -n "`/usr/bin/getgid djbdns`" ]; then
151 if [ "`/usr/bin/getgid djbdns`" != "32" ]; then
152 echo "Error: group djbdns doesn't have gid=32. Correct this before installing pdns." 1>&2
156 /usr/sbin/groupadd -g 32 djbdns
158 if [ -n "`/bin/id -u pdns 2>/dev/null`" ]; then
159 if [ "`/bin/id -u pdns`" != "30" ]; then
160 echo "Error: user pdns doesn't have uid=30. Correct this before installing pdns." 1>&2
164 /usr/sbin/useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns 1>&2
168 # dirty hack so the config file is processed correctly, and server does not respawn
169 TMP=`mktemp /tmp/pdns.install-tmp.XXXXXX`
170 sed 's/^ *//g' /etc/pdns/pdns.conf > $TMP
171 cp /etc/pdns/pdns.conf /etc/pdns/pdns.conf.rpmsave
172 mv $TMP /etc/pdns/pdns.conf
174 /sbin/chkconfig --add pdns
175 if [ -f /var/lock/subsys/pdns ]; then
176 /etc/rc.d/init.d/pdns restart >&2
178 echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2
182 if [ "$1" = "0" ]; then
183 if [ -f /var/lock/subsys/pdns ]; then
184 /etc/rc.d/init.d/pdns stop
186 /sbin/chkconfig --del pdns
190 if [ "$1" = "0" ]; then
196 %defattr(644,root,root,755)
197 %doc ChangeLog HACKING INSTALL README TODO WARNING pdns.pdf pdns.txt
198 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/%{name}/%{name}.conf
199 %config(noreplace) %attr(0754,root,root) %{_initrddir}/%{name}
200 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pdns
201 %dir %{_sysconfdir}/%{name}
202 %attr(755,root,root) %{_sbindir}/*
203 %attr(755,root,root) %{_bindir}/*
206 %files backend-gmysql
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
210 %files backend-gpgsql
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*