Search
j0ke.net Open Build Service
>
Projects
>
home:opeter
>
powerdns
> pdns-server.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File pdns-server.spec of Package powerdns (Revision 3)
Currently displaying revision
3
,
show latest
# # spec file for package pdns (Version 3.1) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 InterNetX GmbH, Regensburg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. Name: pdns Version: 3.1 Release: 2 # Group: Productivity/Networking/DNS/Servers License: GPLv2+ # %define pkg_name pdns %define home %{_var}/lib/pdns %define _localstatedir %{_var}/run/pdns # %if 0%{?sles_version} < 11 && 0%{?sles_version} > 0 %define with_pdns_sqlite2 1 %endif %if 0%{?suse_version} > 1000 %define with_pdns_sqlite3 1 %endif # %if 0%{?centos_version} == 5 || 0%{?rhel_version} >= 500 && 0%{?rhel_version} < 600 || 0%{?sles_version} == 10 %define use_bundled_boost 1 %else %define use_bundled_boost 0 BuildRequires: boost-devel >= 1.34 %endif BuildRequires: docbook-toys docbook-utils docbook-xsl-stylesheets gcc-c++ gdbm-devel mysql-devel pkgconfig lua-devel >= 5.1 %if 0%{?suse_version} BuildRequires: pwdutils %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} BuildRequires: shadow-utils %endif # %if 0%{?with_pdns_recursor} BuildRequires: lua-devel pkgconfig %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} PreReq: %insserv_prereq %fillup_prereq PreReq: pwdutils %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} BuildRequires: shadow-utils %endif # Url: http://www.powerdns.com/ Source: %{name}-%{version}.tar.gz Source1: rcpdns Source2: README.opendbx Source3: boost_1_39_0.tar.bz2 Patch0: %{name}-%{version}-fixinit.patch Patch1: %{name}-%{version}-slavedb.patch # Summary: Modern, advanced and high performance authoritative-only nameserver %description The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database. Authors: -------- http://www.powerdns.com %prep %setup -a 3 %patch0 -p1 %patch1 -p1 %{__cp} modules/geobackend/README README.geobackend # module-dir=/usr/local/lib perl -p -i.back -e 's|module-dir=.*|module-dir=%{_libdir}/%{pkg_name}|g' pdns/pdns.conf-dist diff -urN pdns/pdns.conf-dist{.back,} ||: rm -v pdns/pdns.conf-dist.back %build touch NEWS AUTHORS COPYING ##autoreconf -fiv export CFLAGS="%{optflags} -DLDAP_DEPRECATED -g " %if 0%{?centos_version} == 5 || 0%{?rhel_version} >= 500 && 0%{?rhel_version} < 600 || 0%{?sles_version} == 10 cd boost_1_39_0 ./bootstrap.sh ./bjam || : cd .. export CXXFLAGS="$CFLAGS -I`pwd`/boost_1_39_0/" export BOOST_ROOT=`pwd`/boost_1_39_0/ %else export CXXFLAGS="$CFLAGS" %endif # "mysql" backend is legacy crap. dont build it! %configure \ --disable-static \ --with-pic \ --sysconfdir=%{_sysconfdir}/%{pkg_name} \ --libdir=%{_libdir}/%{pkg_name} \ --with-mysql-lib=%{_libdir} \ --with-modules="gmysql geo" %{__make} %install %__make DESTDIR=%{buildroot} install %{__install} -Dd -m 0755 %{buildroot}{%{home},%{_localstatedir}} %{__mv} %{buildroot}%{_sysconfdir}/%{pkg_name}/pdns.conf{-dist,} %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} %{__install} -p -D -m 0755 pdns/pdns %{buildroot}/etc/init.d/%{pkg_name} %endif %{__ln_s} -f ../../etc/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name} %{__rm} -rfv %{buildroot}%{_libdir}/pdns/*.la %clean %{__rm} -rf %{buildroot} %pre /usr/sbin/groupadd -r pdns &>/dev/null || : /usr/sbin/useradd -o -g pdns -s /bin/false -r -c "pdns" -d %{home} pdns &>/dev/null || : %post %if 0%{?suse_version} %{fillup_and_insserv pdns} %endif %preun %if 0%{?suse_version} %stop_on_removal pdns %endif %postun %if 0%{?suse_version} %restart_on_update pdns %insserv_cleanup %endif %files %defattr (-,root,root,-) %doc ChangeLog HACKING INSTALL README* TODO %config(noreplace) /etc/init.d/%{pkg_name} %dir %attr(750,root,pdns) %{_sysconfdir}/%{pkg_name} %config(noreplace) %attr(640,root,pdns) %{_sysconfdir}/%{pkg_name}/%{pkg_name}.conf %{_bindir}/pdns_control %{_bindir}/zone2ldap %{_bindir}/zone2sql %{_bindir}/dnsreplay %{_bindir}/pdnssec %{_sbindir}/rcpdns %{_sbindir}/pdns_server %{_mandir}/man8/pdns_control.8.gz %{_mandir}/man8/pdns_server.8.gz %{_mandir}/man8/zone2sql.8.gz %dir %{_libdir}/%{pkg_name} %{_libdir}/%{pkg_name}/libpipebackend.so* %{_libdir}/%{pkg_name}/libgeobackend.so* %{_libdir}/%{pkg_name}/libgmysqlbackend.so* %dir %{home} %ghost %dir %{_localstatedir} %changelog * Mon Sep 26 2012 Oliver Peter <oliver.peter@internetx.de> 3.1-2 - Applied SlaveDB Patch - Pimped SPEC File (no dynamic modules, geobackend) - Build static liboost (Powered by Carsten)