5 Summary: PowerDNS is a Versatile Database Driven Nameserver
6 Summary(pl): PowerDNS to wielofunkcyjny serwer nazw korzystaj±cy z relacyjnych baz danych
11 Group: Networking/Daemons
12 URL: http://www.powerdns.com/
13 Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
14 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
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 developement libraries
46 Summary(pl): Biblioteki PowerDNS
47 Group: Development/Libraries
50 Developement libraries for PowerDNS.
52 %description devel -l pl
53 Pliki bibliotek dla PowerDNS.
56 Summary: PowerDNS static libs
57 Summary(pl): Biblioteki statyczne PowerDNS
58 Group: Development/Libraries
61 Static PowerDNS libraries.
63 %description static -l pl
64 Statyczne biblioteki PowerDNS.
73 --libexecdir=%{_libexecdir} \
74 --libdir=%{_libdir}/%{name} \
75 --bindir=%{_sbindir} \
76 --sbindir=%{_sbindir} \
77 --sysconfdir=%{_sysconfdir}/%{name} \
78 --with-socketdir=/var/run \
79 --with-dynmodules="gmysql gpgsql pipe" \
81 --with-pgsql-includes=/usr/include \
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR="%{buildroot}"
93 install -d %{buildroot}/%{_initrddir}
94 install -d %{buildroot}/%{_sysconfdir}/%{name}
95 install -m644 %{SOURCE1} %{buildroot}/%{name}.pdf
96 install -m754 %{SOURCE2} %{buildroot}/%{_initrddir}/%{name}
97 install -m600 %{SOURCE3} %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
100 if [ -n "`getgid djbdns`" ]; then
101 if [ "`getgid djbdns`" != "32" ]; then
102 echo "Error: group djbdns doesn't have gid=32. Correct this before installing pdns." 1>&2
106 /usr/sbin/groupadd -g 32 -r -f djbdns
108 if [ -n "`id -u pdns 2>/dev/null`" ]; then
109 if [ "`id -u pdns`" != "30" ]; then
110 echo "Error: user pdns doesn't have uid=30. Correct this before installing pdns." 1>&2
114 /usr/sbin/useradd -u 30 -r -d /dev/null -s /bin/false -c "pdns User" -g djbdns pdns 1>&2
118 /sbin/chkconfig --add pdns
121 /sbin/chkconfig --del pdns
124 if [ "$1" = "0" ]; then
125 /usr/sbin/userdel pdns
129 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
132 %defattr(644,root,root,755)
133 %doc ChangeLog HACKING INSTALL README TODO WARNING %{name}.pdf
134 %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/%{name}/%{name}.conf
135 %config(noreplace) %attr(0754,root,root) %{_initrddir}/%{name}
136 %dir %{_sysconfdir}%{name}
137 %attr(755,root,root) %{_sbindir}/*
142 %attr(755,root,root) %{_libdir}/%{name}/*.so
143 %attr(644,root,root) %{_libdir}/%{name}/*.la
146 %attr(644,root,root) %{_libdir}/%{name}/*.a