Summary: PowerDNS is a Versatile Database Driven Nameserver Summary(pl): PowerDNS to wielofunkcyjny serwer nazw korzystający z relacyjnych baz danych Name: pdns Version: 2.9.10 Release: 1 License: GPL Group: Networking/Daemons URL: http://www.powerdns.com/ Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz # Source0-md5: a91f15c90f6551fb817cb708e29d5a37 Source1: http://downloads.powerdns.com/documentation/%{name}.pdf # Source1-md5: e82b91120cf66f146283ca138025c9d3 Source2: http://downloads.powerdns.com/documentation/%{name}.txt Source3: %{name}.init Source4: %{name}.conf Source5: %{name}.sysconfig BuildRequires: bison BuildRequires: flex BuildRequires: mysql-devel BuildRequires: postgresql-c++-devel BuildRequires: libstdc++-devel BuildRequires: zlib-devel Requires(pre): /bin/id Requires(pre): /usr/sbin/useradd Requires(pre): /usr/sbin/groupadd Requires(pre): /bin/id Requires(postun): /usr/sbin/userdel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Provides: nameserver pdns powerdns Obsoletes: nameserver pdns powerdns %description PowerDNS is a versatile nameserver which supports a large number of different backends ranging from simple zonefiles to relational databases and load balancing/failover algorithms. %description -l pl PowerDNS to wielofunkcyjny serwer nazw posiadający dużą liczbę wtyczek od prostych stref (a'la BIND) począwszy, a na relacyjnych bazach danych skończywszy oraz zawierający algorytmy zrównoważenia obciążenia i przełączania w wypadku awarii. %package backend-pipe Summary: PowerDNS support for custom pipe backend Summary(pl): Wsparcie PowerDNS dla własnego mechanizmu przechowywania stref Group: Development/Libraries %description backend-pipe This package allows creation of own backend using simple STDIN/STDOUT API. Example backend script in perl is provided in package documentation. %description backend-pipe -l pl Ten pakiet pozwala na utworzenie własnego mechanizmu przechowywania stref za pomocą prostego interfejsu STDIN/STDOUT. Przykładowy skrypt w perlu został dołączony do dokumentacji pakietu. %package backend-pgsql Summary: PowerDNS support for PostgreSQL Summary(pl): Wsparcie PowerDNS dla baz PostgresQL Group: Development/Libraries Requires: postgresql %description backend-pgsql This package allows zone storage in PostgreSQL relational db tables. %description backend-pgsql -l pl Ten pakiet pozwala na przechowywanie danych o strefach w tabelach relacyjnej bazy danych PostgreSQL. %package backend-mysql Summary: PowerDNS support for MySQL Summary(pl): Wsparcie PowerDNS dla baz MySQL Group: Development/Libraries Requires: mysql %description backend-mysql This package allows zone storage in MySQL relational db tables. %description backend-mysql -l pl Ten pakiet pozwala na przechowywanie danych o strefach w tabelach relacyjnej bazy danych MySQL. %package static Summary: PowerDNS static libs Summary(pl): Biblioteki statyczne PowerDNS Group: Development/Libraries %description static Static PowerDNS libraries. %description static -l pl Statyczne biblioteki PowerDNS. %prep %setup -q cp %{SOURCE1} . cp %{SOURCE2} . %build %configure \ --libexecdir=%{_libexecdir} \ --libdir=%{_libdir}/%{name} \ --bindir=%{_sbindir} \ --sbindir=%{_sbindir} \ --sysconfdir=%{_sysconfdir}/%{name} \ --with-socketdir=/var/run \ --with-dynmodules="gmysql gpgsql pipe" \ --with-modules="" \ --with-pgsql-includes=/usr/include \ --enable-mysql \ --enable-pgsql %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR="%{buildroot}" install -d %{buildroot}/%{_initrddir} install -d %{buildroot}/%{_sysconfdir}/%{name} install -d %{buildroot}/etc/sysconfig install %{SOURCE3} %{buildroot}/%{_initrddir}/%{name} install %{SOURCE4} %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf install %{SOURCE5} %{buildroot}/etc/sysconfig/pdns %pre if [ -n "`getgid djbdns`" ]; then if [ "`getgid djbdns`" != "32" ]; then echo "Error: group djbdns doesn't have gid=32. Correct this before installing pdns." 1>&2 exit 1 fi else /usr/sbin/groupadd -g 32 -r -f djbdns fi if [ -n "`id -u pdns 2>/dev/null`" ]; then if [ "`id -u pdns`" != "30" ]; then echo "Error: user pdns doesn't have uid=30. Correct this before installing pdns." 1>&2 exit 1 fi else /usr/sbin/useradd -u 30 -r -d /dev/null -s /bin/false -c "pdns User" -g djbdns pdns 1>&2 fi %post /sbin/chkconfig --add pdns if [ -f %{_localstatedir}/lock/subsys/pdns ]; then /etc/rc.d/init.d/pdns restart >&2 else echo "Run \"/etc/rc.d/init.d/pdns start\" to start pdns." >&2 fi %preun if [ "$1" = "0" ]; then if [ -f %{_localstatedir}/lock/subsys/pdns ]; then /etc/rc.d/init.d/pdns stop fi /sbin/chkconfig --del pdns fi %postun if [ "$1" = "0" ]; then /usr/sbin/userdel pdns fi %clean [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} %files %defattr(644,root,root,755) %doc ChangeLog HACKING INSTALL README TODO WARNING pdns.pdf pdns.txt %config(noreplace) %attr(0600,root,root) %{_sysconfdir}/%{name}/%{name}.conf %config(noreplace) %attr(0754,root,root) %{_initrddir}/%{name} %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pdns %dir %{_sysconfdir}/%{name} %attr(755,root,root) %{_sbindir}/* %{_mandir}/man8/* %files backend-mysql %attr(755,root,root) %{_libdir}/%{name}/*mysql*.so* %attr(644,root,root) %{_libdir}/%{name}/*mysql*.la %files backend-pgsql %attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so* %attr(644,root,root) %{_libdir}/%{name}/*pgsql*.la %files backend-pipe %attr(755,root,root) %{_libdir}/%{name}/*pipe*.so* %attr(644,root,root) %{_libdir}/%{name}/*pipe*.la %files static %attr(644,root,root) %{_libdir}/%{name}/*.a