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: bcfb0573311e80dbeff0bb16f2764363
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: %{name}-strbind.patch
18 URL: http://www.powerdns.com/
21 BuildRequires: libstdc++-devel
22 BuildRequires: libpq++-devel
23 BuildRequires: mysql-devel
24 BuildRequires: openldap-devel
25 BuildRequires: rpmbuild(macros) >= 1.202
26 BuildRequires: zlib-devel
28 Requires(pre): /bin/id
29 Requires(pre): /usr/bin/getgid
30 Requires(pre): /usr/sbin/groupadd
31 Requires(pre): /usr/sbin/useradd
32 Requires(post,preun): /sbin/chkconfig
33 Requires(postun): /usr/sbin/groupdel
34 Requires(postun): /usr/sbin/userdel
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Provides: group(djbdns)
42 PowerDNS is a versatile nameserver which supports a large number of
43 different backends ranging from simple zonefiles to relational
44 databases and load balancing/failover algorithms.
47 PowerDNS to wielofunkcyjny serwer nazw posiadaj±cy du¿± liczbê wtyczek
48 od prostych stref (a'la BIND) pocz±wszy, a na relacyjnych bazach
49 danych skoñczywszy oraz zawieraj±cy algorytmy zrównowa¿enia obci±¿enia
50 i prze³±czania w wypadku awarii.
53 Summary: PowerDNS support for custom pipe backend
54 Summary(pl): Wsparcie PowerDNS dla w³asnego mechanizmu przechowywania stref
55 Group: Development/Libraries
57 %description backend-pipe
58 This package allows creation of own backend using simple STDIN/STDOUT
59 API. Example backend script in Perl is provided in package
62 %description backend-pipe -l pl
63 Ten pakiet pozwala na utworzenie w³asnego mechanizmu przechowywania
64 stref za pomoc¹ prostego interfejsu STDIN/STDOUT. Przyk³adowy skrypt w
65 Perlu zosta³ do³±czony do dokumentacji pakietu.
67 %package backend-gpgsql
68 Summary: PowerDNS support for PostgreSQL
69 Summary(pl): Wsparcie PowerDNS dla baz PostgresQL
70 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
84 %description backend-gmysql
85 This package allows zone storage in MySQL relational db tables.
87 %description backend-gmysql -l pl
88 Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
89 relacyjnej bazy danych MySQL.
92 Summary: PowerDNS support for LDAP
93 Summary(pl): Wsparcie PowerDNS dla baz LDAP
94 Group: Development/Libraries
96 %description backend-ldap
97 This package allows zone storage in LDAP directory.
99 %description backend-ldap -l pl
100 Ten pakiet pozwala na przechowywanie danych o strefach w katalogu
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 %groupadd -g 32 djbdns
148 %useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns
151 # dirty hack so the config file is processed correctly, and server does not respawn
152 TMP=`mktemp /tmp/pdns.install-tmp.XXXXXX`
153 sed 's/^ *//' /etc/pdns/pdns.conf > $TMP
154 cp /etc/pdns/pdns.conf /etc/pdns/pdns.conf.rpmsave
155 mv $TMP /etc/pdns/pdns.conf
157 /sbin/chkconfig --add pdns
158 if [ -f /var/lock/subsys/pdns ]; then
159 /etc/rc.d/init.d/pdns restart >&2
161 echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2
165 if [ "$1" = "0" ]; then
166 if [ -f /var/lock/subsys/pdns ]; then
167 /etc/rc.d/init.d/pdns stop
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*