|
|
473c30f |
Summary: A modern, advanced and high performance authoritative-only nameserver
|
|
|
473c30f |
Name: pdns
|
|
|
473c30f |
Version: 2.9.20
|
|
|
473c30f |
Release: 5%{?dist}
|
|
|
473c30f |
|
|
|
473c30f |
Group: System Environment/Daemons
|
|
|
473c30f |
License: GPL
|
|
|
473c30f |
URL: http://powerdns.com
|
|
|
473c30f |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
473c30f |
Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
|
|
|
473c30f |
Patch0: %{name}-fixinit.patch
|
|
|
473c30f |
Patch1: %{name}-avoid-version.patch
|
|
|
473c30f |
|
|
|
473c30f |
BuildRequires: boost-devel, chrpath
|
|
|
473c30f |
Provides: powerdns = %{version}-%{release}
|
|
|
473c30f |
|
|
|
473c30f |
%description
|
|
|
473c30f |
The PowerDNS Nameserver is a modern, advanced and high performance
|
|
|
473c30f |
authoritative-only nameserver. It is written from scratch and conforms
|
|
|
473c30f |
to all relevant DNS standards documents.
|
|
|
473c30f |
Furthermore, PowerDNS interfaces with almost any database.
|
|
|
473c30f |
|
|
|
473c30f |
%package backend-mysql
|
|
|
473c30f |
Summary: MySQL backend for %{name}
|
|
|
473c30f |
Group: System Environment/Daemons
|
|
|
473c30f |
Requires: %{name} = %{version}-%{release}
|
|
|
473c30f |
BuildRequires: mysql-devel
|
|
|
473c30f |
|
|
|
473c30f |
%package backend-postgresql
|
|
|
473c30f |
Summary: PostgreSQL backend for %{name}
|
|
|
473c30f |
Group: System Environment/Daemons
|
|
|
473c30f |
Requires: %{name} = %{version}-%{release}
|
|
|
473c30f |
BuildRequires: postgresql-devel
|
|
|
473c30f |
|
|
|
473c30f |
%package backend-pipe
|
|
|
473c30f |
Summary: Pipe backend for %{name}
|
|
|
473c30f |
Group: System Environment/Daemons
|
|
|
473c30f |
Requires: %{name} = %{version}-%{release}
|
|
|
473c30f |
|
|
|
473c30f |
%package backend-geo
|
|
|
473c30f |
Summary: Geo backend for %{name}
|
|
|
473c30f |
Group: System Environment/Daemons
|
|
|
473c30f |
Requires: %{name} = %{version}-%{release}
|
|
|
473c30f |
|
|
|
473c30f |
%package backend-ldap
|
|
|
473c30f |
Summary: LDAP backend for %{name}
|
|
|
473c30f |
Group: System Environment/Daemons
|
|
|
473c30f |
Requires: %{name} = %{version}-%{release}
|
|
|
473c30f |
BuildRequires: openldap-devel
|
|
|
473c30f |
|
|
|
473c30f |
%description backend-mysql
|
|
|
473c30f |
This package contains the gmysql backend for %{name}
|
|
|
473c30f |
|
|
|
473c30f |
%description backend-postgresql
|
|
|
473c30f |
This package contains the gpgsql backend for %{name}
|
|
|
473c30f |
|
|
|
473c30f |
%description backend-pipe
|
|
|
473c30f |
This package contains the pipe backend for %{name}
|
|
|
473c30f |
|
|
|
473c30f |
%description backend-geo
|
|
|
473c30f |
This package contains the geo backend for %{name}
|
|
|
473c30f |
It allows different answers to DNS queries coming from different
|
|
|
473c30f |
IP address ranges or based on the geographic location
|
|
|
473c30f |
|
|
|
473c30f |
%description backend-ldap
|
|
|
473c30f |
This package contains the ldap backend for %{name}
|
|
|
473c30f |
|
|
|
473c30f |
|
|
|
473c30f |
%prep
|
|
|
473c30f |
%setup -q
|
|
|
473c30f |
%patch0 -p1 -b .fixinit
|
|
|
473c30f |
%patch1 -p1 -b .avoid-version
|
|
|
473c30f |
|
|
|
473c30f |
%build
|
|
|
473c30f |
export CPPFLAGS="-DLDAP_DEPRECATED %{optflags}"
|
|
|
473c30f |
|
|
|
473c30f |
%configure \
|
|
|
473c30f |
--sysconfdir=%{_sysconfdir}/%{name} \
|
|
|
473c30f |
--libdir=%{_libdir}/%{name} \
|
|
|
473c30f |
--disable-static \
|
|
|
473c30f |
--with-modules='' \
|
|
|
473c30f |
--with-dynmodules='pipe gmysql gpgsql geo ldap' \
|
|
|
473c30f |
--with-mysql-includes=%{_includedir}/mysql \
|
|
|
473c30f |
--with-mysql-lib=%{_libdir}/mysql \
|
|
|
473c30f |
--with-pgsql-includes=%{_includedir} \
|
|
|
473c30f |
--with-pgsql-lib=%{_libdir}
|
|
|
473c30f |
|
|
|
473c30f |
make %{?_smp_mflags}
|
|
|
473c30f |
|
|
|
473c30f |
%install
|
|
|
473c30f |
%{__rm} -rf %{buildroot}
|
|
|
473c30f |
make install DESTDIR=%{buildroot}
|
|
|
473c30f |
|
|
|
473c30f |
%{__rm} -f %{buildroot}%{_libdir}/%{name}/*.la
|
|
|
473c30f |
%{__install} -p -D -m 0755 pdns/pdns %{buildroot}%{_initrddir}/pdns
|
|
|
473c30f |
%{__mv} %{buildroot}%{_sysconfdir}/%{name}/pdns.conf{-dist,}
|
|
|
473c30f |
|
|
|
473c30f |
# strip the static rpath from the binaries
|
|
|
473c30f |
chrpath --delete %{buildroot}%{_bindir}/pdns_control
|
|
|
473c30f |
chrpath --delete %{buildroot}%{_bindir}/zone2ldap
|
|
|
473c30f |
chrpath --delete %{buildroot}%{_bindir}/zone2sql
|
|
|
473c30f |
chrpath --delete %{buildroot}%{_sbindir}/pdns_server
|
|
|
473c30f |
chrpath --delete %{buildroot}%{_libdir}/%{name}/*.so
|
|
|
473c30f |
|
|
|
473c30f |
%post
|
|
|
473c30f |
if [ $1 = 1 ]; then
|
|
|
473c30f |
/sbin/chkconfig --add pdns
|
|
|
473c30f |
%{_sbindir}/useradd -c "PowerDNS user" -s /sbin/nologin -r -d / pdns
|
|
|
473c30f |
fi
|
|
|
473c30f |
%preun
|
|
|
473c30f |
if [ "$1" = 0 ]; then
|
|
|
473c30f |
/sbin/service pdns stop >/dev/null 2>&1
|
|
|
473c30f |
/sbin/chkconfig --del pdns
|
|
|
473c30f |
fi
|
|
|
473c30f |
|
|
|
473c30f |
%postun
|
|
|
473c30f |
if [ "$1" -ge "1" ]; then
|
|
|
473c30f |
/sbin/service pdns reload >/dev/null 2>&1
|
|
|
473c30f |
fi
|
|
|
473c30f |
|
|
|
473c30f |
%clean
|
|
|
473c30f |
%{__rm} -rf %{buildroot}
|
|
|
473c30f |
|
|
|
473c30f |
%files
|
|
|
473c30f |
%defattr(-,root,root,-)
|
|
|
473c30f |
%doc ChangeLog TODO pdns/COPYING
|
|
|
473c30f |
%{_bindir}/pdns_control
|
|
|
473c30f |
%{_bindir}/zone2ldap
|
|
|
473c30f |
%{_bindir}/zone2sql
|
|
|
473c30f |
%{_sbindir}/pdns_server
|
|
|
473c30f |
%{_mandir}/man8/pdns_control.8.gz
|
|
|
473c30f |
%{_mandir}/man8/pdns_server.8.gz
|
|
|
473c30f |
%{_mandir}/man8/zone2sql.8.gz
|
|
|
473c30f |
%{_initrddir}/pdns
|
|
|
473c30f |
%dir %{_libdir}/%{name}/
|
|
|
473c30f |
%dir %{_sysconfdir}/%{name}/
|
|
|
473c30f |
%config(noreplace) %{_sysconfdir}/%{name}/pdns.conf
|
|
|
473c30f |
|
|
|
473c30f |
%files backend-mysql
|
|
|
473c30f |
%defattr(-,root,root,-)
|
|
|
473c30f |
%doc pdns/COPYING
|
|
|
473c30f |
%{_libdir}/%{name}/libgmysqlbackend.so
|
|
|
473c30f |
|
|
|
473c30f |
%files backend-postgresql
|
|
|
473c30f |
%defattr(-,root,root,-)
|
|
|
473c30f |
%doc pdns/COPYING
|
|
|
473c30f |
%{_libdir}/%{name}/libgpgsqlbackend.so
|
|
|
473c30f |
|
|
|
473c30f |
%files backend-pipe
|
|
|
473c30f |
%defattr(-,root,root,-)
|
|
|
473c30f |
%doc pdns/COPYING
|
|
|
473c30f |
%{_libdir}/%{name}/libpipebackend.so
|
|
|
473c30f |
|
|
|
473c30f |
%files backend-geo
|
|
|
473c30f |
%defattr(-,root,root,-)
|
|
|
473c30f |
%doc pdns/COPYING
|
|
|
473c30f |
%{_libdir}/%{name}/libgeobackend.so
|
|
|
473c30f |
|
|
|
473c30f |
%files backend-ldap
|
|
|
473c30f |
%defattr(-,root,root,-)
|
|
|
473c30f |
%doc pdns/COPYING
|
|
|
473c30f |
%{_libdir}/%{name}/libldapbackend.so
|
|
|
473c30f |
|
|
|
473c30f |
|
|
|
473c30f |
%changelog
|
|
|
473c30f |
* Sat Dec 30 2006 <ruben@rubenkerkhof.com> 2.9.20-5
|
|
|
473c30f |
- Strip rpath from the backends as well
|
|
|
473c30f |
* Fri Dec 29 2006 <ruben@rubenkerkhof.com> 2.9.20-4
|
|
|
473c30f |
- Disable rpath
|
|
|
473c30f |
* Thu Dec 28 2006 <ruben@rubenkerkhof.com> 2.9.20-3
|
|
|
473c30f |
- More fixes as per review #219973
|
|
|
473c30f |
* Wed Dec 27 2006 <ruben@rubenkerkhof.com> 2.9.20-2
|
|
|
473c30f |
- A few changes for FE review (bz #219973):
|
|
|
473c30f |
- Renamed package to pdns, since that's how upstream calls it
|
|
|
473c30f |
- Removed calls to ldconfig
|
|
|
473c30f |
- Subpackages now require %%{version}-%%{release}
|
|
|
473c30f |
* Sat Dec 16 2006 <ruben@rubenkerkhof.com> 2.9.20-1
|
|
|
473c30f |
- Initial import
|
|
|
473c30f |
|