head 1.65;
access;
symbols
OPENPKG_E1_MP_HEAD:1.54
OPENPKG_E1_MP:1.54
OPENPKG_E1_MP_2_STABLE:1.53.2.2
OPENPKG_E1_FP:1.53.2.2
OPENPKG_2_STABLE_MP:1.53
OPENPKG_2_STABLE_20061018:1.53.2.2
OPENPKG_2_STABLE:1.53.0.2
OPENPKG_CW_FP:1.45
OPENPKG_1_STABLE_MP:1.29;
locks; strict;
comment @-- @;
1.65
date 2009.04.18.13.14.28; author rse; state Exp;
branches;
next 1.64;
commitid 4pHXU27WTIGCZuKt;
1.64
date 2009.01.26.18.28.52; author rse; state Exp;
branches;
next 1.63;
commitid Of2Fgiadf0gJrZzt;
1.63
date 2008.11.16.19.22.25; author rse; state Exp;
branches;
next 1.62;
commitid h5Nlhqp66jcB1Sqt;
1.62
date 2008.08.06.07.14.31; author rse; state Exp;
branches;
next 1.61;
commitid cIN7CWNSdrr9hHdt;
1.61
date 2008.01.01.15.03.07; author rse; state Exp;
branches;
next 1.60;
commitid B8esaHJHoduuKILs;
1.60
date 2007.10.27.11.59.49; author cs; state Exp;
branches;
next 1.59;
commitid XKMxflRJ6S7CYdDs;
1.59
date 2007.08.24.20.49.30; author cs; state Exp;
branches;
next 1.58;
commitid G5UphXms2pWgY2vs;
1.58
date 2007.07.20.20.18.01; author thl; state Exp;
branches;
next 1.57;
commitid yCyWfcoNSNOaUxqs;
1.57
date 2007.05.17.15.44.33; author rse; state Exp;
branches;
next 1.56;
commitid vT3d0NU1P1aXsiis;
1.56
date 2007.02.16.08.12.36; author rse; state Exp;
branches;
next 1.55;
commitid 6B3yUopM980hRG6s;
1.55
date 2007.02.15.06.46.00; author rse; state Exp;
branches;
next 1.54;
commitid FsrBhY0nyFlxpy6s;
1.54
date 2007.01.01.17.41.13; author rse; state Exp;
branches;
next 1.53;
commitid BicZD6VUl7GuqP0s;
1.53
date 2006.10.13.17.33.00; author thl; state Exp;
branches
1.53.2.1;
next 1.52;
commitid q5GSxzsSDX29XxQr;
1.52
date 2006.09.25.18.03.48; author rse; state Exp;
branches;
next 1.51;
commitid H44LxoQZp4B3LeOr;
1.51
date 2006.08.25.19.18.35; author rse; state Exp;
branches;
next 1.50;
commitid Tvsj1UyQ8rQ89gKr;
1.50
date 2006.03.17.06.56.19; author rse; state Exp;
branches;
next 1.49;
commitid uAxq2MweY24Ievpr;
1.49
date 2006.01.01.13.20.52; author rse; state Exp;
branches;
next 1.48;
commitid otZG8yKMCw1JFTfr;
1.48
date 2005.11.14.11.49.27; author tho; state Exp;
branches;
next 1.47;
commitid 9Zx98TA90hKoOI9r;
1.47
date 2005.07.17.08.47.33; author rse; state Exp;
branches;
next 1.46;
1.46
date 2005.03.24.11.20.06; author rse; state Exp;
branches;
next 1.45;
1.45
date 2005.01.12.15.32.11; author ms; state Exp;
branches;
next 1.44;
1.44
date 2005.01.01.10.54.03; author rse; state Exp;
branches;
next 1.43;
1.43
date 2004.02.29.17.01.33; author rse; state Exp;
branches;
next 1.42;
1.42
date 2004.02.07.17.58.08; author rse; state Exp;
branches;
next 1.41;
1.41
date 2004.02.03.20.05.36; author rse; state Exp;
branches;
next 1.40;
1.40
date 2004.01.23.13.13.09; author rse; state Exp;
branches;
next 1.39;
1.39
date 2004.01.19.08.52.35; author rse; state Exp;
branches;
next 1.38;
1.38
date 2004.01.17.19.59.02; author rse; state Exp;
branches;
next 1.37;
1.37
date 2003.12.18.12.54.13; author rse; state Exp;
branches;
next 1.36;
1.36
date 2003.11.27.14.01.26; author ms; state Exp;
branches;
next 1.35;
1.35
date 2003.11.26.10.41.59; author ms; state Exp;
branches;
next 1.34;
1.34
date 2003.11.12.10.36.57; author ms; state Exp;
branches;
next 1.33;
1.33
date 2003.10.27.18.56.07; author rse; state Exp;
branches;
next 1.32;
1.32
date 2003.10.10.14.01.53; author ms; state Exp;
branches;
next 1.31;
1.31
date 2003.10.09.19.37.50; author ms; state Exp;
branches;
next 1.30;
1.30
date 2003.08.22.18.01.41; author rse; state Exp;
branches;
next 1.29;
1.29
date 2003.07.23.13.54.20; author thl; state Exp;
branches;
next 1.28;
1.28
date 2003.07.22.08.11.03; author rse; state Exp;
branches;
next 1.27;
1.27
date 2003.07.21.09.56.57; author thl; state Exp;
branches;
next 1.26;
1.26
date 2003.07.21.08.40.43; author thl; state Exp;
branches;
next 1.25;
1.25
date 2003.07.19.17.06.19; author rse; state Exp;
branches;
next 1.24;
1.24
date 2003.07.17.18.29.53; author thl; state Exp;
branches;
next 1.23;
1.23
date 2003.07.17.15.33.07; author thl; state Exp;
branches;
next 1.22;
1.22
date 2003.07.14.14.26.13; author thl; state Exp;
branches;
next 1.21;
1.21
date 2003.07.10.07.50.56; author rse; state Exp;
branches;
next 1.20;
1.20
date 2003.07.08.17.02.41; author rse; state Exp;
branches;
next 1.19;
1.19
date 2003.07.08.09.20.51; author rse; state Exp;
branches;
next 1.18;
1.18
date 2003.07.07.13.52.42; author rse; state Exp;
branches;
next 1.17;
1.17
date 2003.07.04.14.01.28; author rse; state Exp;
branches;
next 1.16;
1.16
date 2003.07.03.18.18.43; author rse; state Exp;
branches;
next 1.15;
1.15
date 2003.06.28.14.10.34; author rse; state Exp;
branches;
next 1.14;
1.14
date 2003.06.24.16.55.42; author mlelstv; state Exp;
branches;
next 1.13;
1.13
date 2003.06.24.13.28.17; author thl; state Exp;
branches;
next 1.12;
1.12
date 2003.06.23.21.01.08; author thl; state Exp;
branches;
next 1.11;
1.11
date 2003.06.14.14.17.57; author mlelstv; state Exp;
branches;
next 1.10;
1.10
date 2003.05.06.09.20.30; author mlelstv; state Exp;
branches;
next 1.9;
1.9
date 2003.04.04.13.47.41; author ms; state Exp;
branches;
next 1.8;
1.8
date 2003.03.24.19.29.49; author rse; state Exp;
branches;
next 1.7;
1.7
date 2003.03.24.11.18.41; author rse; state Exp;
branches;
next 1.6;
1.6
date 2003.03.20.22.26.59; author mlelstv; state Exp;
branches;
next 1.5;
1.5
date 2003.03.12.22.40.21; author mlelstv; state Exp;
branches;
next 1.4;
1.4
date 2003.03.05.18.51.47; author rse; state Exp;
branches;
next 1.3;
1.3
date 2003.03.04.16.25.46; author mlelstv; state Exp;
branches;
next 1.2;
1.2
date 2003.02.28.15.56.36; author mlelstv; state Exp;
branches;
next 1.1;
1.1
date 2003.02.27.16.25.35; author mlelstv; state Exp;
branches;
next ;
1.53.2.1
date 2006.10.13.17.33.00; author rse; state dead;
branches;
next 1.53.2.2;
commitid iZxwRSmmWscPXUQr;
1.53.2.2
date 2006.10.16.14.55.06; author rse; state Exp;
branches;
next ;
commitid iZxwRSmmWscPXUQr;
desc
@@
1.65
log
@bump years in copyright messages
@
text
@##
## powerdns.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: powerdns
Summary: High-Performance Authoritative-Only DNS Server
URL: http://www.powerdns.com/products/powerdns/
Vendor: PowerDNS.COM BV
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: DNS
License: GPL
Version: 2.9.22
Release: 20090126
# package options
%option with_fsl yes
%option with_pipe no
%option with_mysql no
%option with_pgsql no
%option with_sqlite no
# list of sources
Source0: http://downloads.powerdns.com/releases/pdns-%{version}.tar.gz
Source1: rc.powerdns
Source2: fsl.powerdns
Source3: powerdnssetup
Patch0: powerdns.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823, boost
PreReq: OpenPKG, openpkg >= 20060823, boost
BuildPreReq: zlib
PreReq: zlib
%if "%{with_fsl}" == "yes"
BuildPreReq: fsl
PreReq: fsl
%endif
%if "%{with_mysql}" == "yes"
BuildPreReq: mysql
PreReq: mysql
%endif
%if "%{with_pgsql}" == "yes"
BuildPreReq: postgresql, postgresql::with_cxx = yes
PreReq: postgresql, postgresql::with_cxx = yes
%endif
%if "%{with_sqlite}" == "yes"
BuildPreReq: sqlite
PreReq: sqlite
%endif
AutoReq: no
AutoReqProv: no
Conflicts: bind
%description
The PowerDNS name server is a modern, advanced and high performance
authoritative-only nameserver. It is written from scratch in ISO
C++ and conforms to all the relevant DNS standards documents. The
PowerDNS name server utilizes a flexible backend architecture which
can access DNS information from any data source. This includes
many file formats, Bind zone files, or LDAP directories. PowerDNS
can connect directly to a relational database as well, and benefit
from immediate zone updates on any changes to the database (no
traditional reloading is needed). Lastly, a Backend Developers Kit
exists to negotiate between PowerDNS and your data or logic.
%track
prog powerdns = {
version = %{version}
url = http://downloads.powerdns.com/releases/
regex = pdns-(__VER__)\.tar\.gz
}
%prep
%setup -q -n pdns-%{version}
%patch -p0
%{l_shtool} subst \
-e 's;\([^a-zA-Z0-9]\)PC\([^a-zA-Z0-9]\);\1PCa\2;g' \
pdns/communicator.cc \
pdns/packethandler.cc \
pdns/tcpreceiver.cc \
pdns/ueberbackend.cc \
pdns/dynhandler.cc \
pdns/dnsproxy.cc \
pdns/common_startup.cc \
pdns/common_startup.hh
%build
MODULES=""
%if "%{with_pipe}" == "yes"
MODULES="$MODULES pipe"
%endif
%if "%{with_mysql}" == "yes"
MODULES="$MODULES gmysql"
%endif
%if "%{with_pgsql}" == "yes"
MODULES="$MODULES gpgsql"
%endif
%if "%{with_sqlite}" == "yes"
MODULES="$MODULES gsqlite"
%endif
MODULES=`echo "$MODULES" | sed 's;^ ;;'`
CC="%{l_cc}" \
CXX="%{l_cxx}" \
CFLAGS="%{l_cflags -O}" \
CXXFLAGS="%{l_cxxflags -O}" \
CPPFLAGS="%{l_cppflags}" \
LDFLAGS="%{l_fsl_ldflags}" \
./configure \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/powerdns \
%if "%{with_mysql}" == "yes"
--enable-mysql \
--with-mysql=%{l_prefix} \
%else
--disable-mysql \
%endif
%if "%{with_pgsql}" == "yes"
--enable-pgsql \
--with-pgsql=%{l_prefix} \
--with-pgsql-includes=%{l_prefix}/include/libpq++ \
--with-pgsql-lib=%{l_prefix}/lib \
%else
--disable-pgsql \
%endif
%if "%{with_sqlite}" == "yes"
--enable-sqlite \
--with-sqlite=%{l_prefix} \
--with-sqlite-includes=%{l_prefix}/include \
--with-sqlite-lib=%{l_prefix}/lib \
%else
--disable-sqlite \
%endif
--with-modules="$MODULES" \
--with-dynmodules="" \
--disable-shared
%{l_make} %{l_mflags -O} LDADD="%{l_fsl_libs}"
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
# clean up installation
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
# setup config file
mv $RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf-dist \
$RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf
%{l_shtool} subst %{l_value -s -a} \
$RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf
# provide some reasonable default configuration values
%{l_shtool} subst \
-e 's;# \(daemon=\)no;\1yes;' \
-e 's;# \(launch=\);\1bind;' \
-e 's;# \(local-address=\)0.0.0.0;\1127.0.0.1;' \
-e 's;# \(logfile=\)pdns.log;\1%{l_prefix}/var/powerdns/log/pdns.log;' \
-e 's;# \(setgid=\);\1%{l_mgid};' \
-e 's;# \(setuid=\);\1%{l_muid};' \
-e 's;# \(socket-dir=\)/var/run;\1%{l_prefix}/var/powerdns;' \
-e 's;# \(use-logfile=\)no;\1yes;' \
$RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf
# install run-command script
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.powerdns} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# install setup script
%{l_shtool} install -c -m 755 \
%{SOURCE powerdnssetup} $RPM_BUILD_ROOT%{l_prefix}/sbin/
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.powerdns} \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# create an empty var and log directory
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/powerdns/log
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/fsl/fsl.powerdns' \
'%dir %attr(0775,%{l_susr},%{l_mgrp}) %{l_prefix}/var/powerdns' \
'%dir %attr(0775,%{l_susr},%{l_mgrp}) %{l_prefix}/var/powerdns/log' \
'%dir %attr(0700,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/powerdns' \
'%config %attr(0600,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/powerdns/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} powerdns status 2>/dev/null`
[ ".$powerdns_active" = .yes ] && %{l_rc} powerdns restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} powerdns stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/powerdns/log/* >/dev/null 2>&1 || true
exit 0
@
1.64
log
@upgrading package: powerdns 2.9.21.2 -> 2.9.22
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.63
log
@upgrading package: powerdns 2.9.21.1 -> 2.9.21.2
@
text
@d34 2
a35 2
Version: 2.9.21.2
Release: 20081116
@
1.62
log
@upgrading package: powerdns 2.9.21 -> 2.9.21.1
@
text
@d34 2
a35 2
Version: 2.9.21.1
Release: 20080806
@
1.61
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version: 2.9.21
Release: 20080101
d71 2
a72 2
BuildPreReq: sqlite, sqlite::with_v2 = yes
PreReq: sqlite, sqlite::with_v2 = yes
@
1.60
log
@Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct.
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d35 1
a35 1
Release: 20071027
@
1.59
log
@package 'bind8' has been removed long time ago
@
text
@d36 1
a36 1
Release: 20070824
d60 2
a61 2
BuildPreReq: fsl >= 1.3.0
PreReq: fsl >= 1.3.0
@
1.58
log
@remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider
@
text
@d36 1
a36 1
Release: 20070720
d77 1
a77 1
Conflicts: bind, bind8
@
1.57
log
@upgrading package: powerdns 2.9.20 -> 2.9.21
@
text
@d36 1
a36 1
Release: 20070517
a211 1
'%not %dir %{l_prefix}/etc/fsl' \
@
1.56
log
@Add optional support for SQLite. Contributed by: Olivier Kaloudoff
@
text
@d35 2
a36 2
Version: 2.9.20
Release: 20070216
@
1.55
log
@add missing dependency to zlib
@
text
@d36 1
a36 1
Release: 20070215
d39 5
a43 4
%option with_fsl yes
%option with_pipe no
%option with_mysql no
%option with_pgsql no
d71 4
d123 3
d150 8
@
1.54
log
@Welcome Year 2007!
@
text
@d36 1
a36 1
Release: 20061013
d56 2
@
1.53
log
@new world order for "Packager" and "Distribution" headers
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.53.2.1
log
@file powerdns.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:55:06 +0000
@
text
@d1 219
@
1.53.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 219
##
## powerdns.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package information
Name: powerdns
Summary: High-Performance Authoritative-Only DNS Server
URL: http://www.powerdns.com/products/powerdns/
Vendor: PowerDNS.COM BV
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: DNS
License: GPL
Version: 2.9.20
Release: 2.20061018
# package options
%option with_fsl yes
%option with_pipe no
%option with_mysql no
%option with_pgsql no
# list of sources
Source0: http://downloads.powerdns.com/releases/pdns-%{version}.tar.gz
Source1: rc.powerdns
Source2: fsl.powerdns
Source3: powerdnssetup
Patch0: powerdns.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018, boost
PreReq: OpenPKG, openpkg >= 2.20061018, boost
%if "%{with_fsl}" == "yes"
BuildPreReq: fsl >= 1.3.0
PreReq: fsl >= 1.3.0
%endif
%if "%{with_mysql}" == "yes"
BuildPreReq: mysql
PreReq: mysql
%endif
%if "%{with_pgsql}" == "yes"
BuildPreReq: postgresql, postgresql::with_cxx = yes
PreReq: postgresql, postgresql::with_cxx = yes
%endif
AutoReq: no
AutoReqProv: no
Conflicts: bind, bind8
%description
The PowerDNS name server is a modern, advanced and high performance
authoritative-only nameserver. It is written from scratch in ISO
C++ and conforms to all the relevant DNS standards documents. The
PowerDNS name server utilizes a flexible backend architecture which
can access DNS information from any data source. This includes
many file formats, Bind zone files, or LDAP directories. PowerDNS
can connect directly to a relational database as well, and benefit
from immediate zone updates on any changes to the database (no
traditional reloading is needed). Lastly, a Backend Developers Kit
exists to negotiate between PowerDNS and your data or logic.
%track
prog powerdns = {
version = %{version}
url = http://downloads.powerdns.com/releases/
regex = pdns-(__VER__)\.tar\.gz
}
%prep
%setup -q -n pdns-%{version}
%patch -p0
%{l_shtool} subst \
-e 's;\([^a-zA-Z0-9]\)PC\([^a-zA-Z0-9]\);\1PCa\2;g' \
pdns/communicator.cc \
pdns/packethandler.cc \
pdns/tcpreceiver.cc \
pdns/ueberbackend.cc \
pdns/dynhandler.cc \
pdns/dnsproxy.cc \
pdns/common_startup.cc \
pdns/common_startup.hh
%build
MODULES=""
%if "%{with_pipe}" == "yes"
MODULES="$MODULES pipe"
%endif
%if "%{with_mysql}" == "yes"
MODULES="$MODULES gmysql"
%endif
%if "%{with_pgsql}" == "yes"
MODULES="$MODULES gpgsql"
%endif
MODULES=`echo "$MODULES" | sed 's;^ ;;'`
CC="%{l_cc}" \
CXX="%{l_cxx}" \
CFLAGS="%{l_cflags -O}" \
CXXFLAGS="%{l_cxxflags -O}" \
CPPFLAGS="%{l_cppflags}" \
LDFLAGS="%{l_fsl_ldflags}" \
./configure \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/powerdns \
%if "%{with_mysql}" == "yes"
--enable-mysql \
--with-mysql=%{l_prefix} \
%else
--disable-mysql \
%endif
%if "%{with_pgsql}" == "yes"
--enable-pgsql \
--with-pgsql=%{l_prefix} \
--with-pgsql-includes=%{l_prefix}/include/libpq++ \
--with-pgsql-lib=%{l_prefix}/lib \
%else
--disable-pgsql \
%endif
--with-modules="$MODULES" \
--with-dynmodules="" \
--disable-shared
%{l_make} %{l_mflags -O} LDADD="%{l_fsl_libs}"
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
# clean up installation
rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
# setup config file
mv $RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf-dist \
$RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf
%{l_shtool} subst %{l_value -s -a} \
$RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf
# provide some reasonable default configuration values
%{l_shtool} subst \
-e 's;# \(daemon=\)no;\1yes;' \
-e 's;# \(launch=\);\1bind;' \
-e 's;# \(local-address=\)0.0.0.0;\1127.0.0.1;' \
-e 's;# \(logfile=\)pdns.log;\1%{l_prefix}/var/powerdns/log/pdns.log;' \
-e 's;# \(setgid=\);\1%{l_mgid};' \
-e 's;# \(setuid=\);\1%{l_muid};' \
-e 's;# \(socket-dir=\)/var/run;\1%{l_prefix}/var/powerdns;' \
-e 's;# \(use-logfile=\)no;\1yes;' \
$RPM_BUILD_ROOT%{l_prefix}/etc/powerdns/pdns.conf
# install run-command script
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.powerdns} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# install setup script
%{l_shtool} install -c -m 755 \
%{SOURCE powerdnssetup} $RPM_BUILD_ROOT%{l_prefix}/sbin/
# install OSSP fsl configuration
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.powerdns} \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
# create an empty var and log directory
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/powerdns/log
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%not %dir %{l_prefix}/etc/fsl' \
'%config %{l_prefix}/etc/fsl/fsl.powerdns' \
'%dir %attr(0775,%{l_susr},%{l_mgrp}) %{l_prefix}/var/powerdns' \
'%dir %attr(0775,%{l_susr},%{l_mgrp}) %{l_prefix}/var/powerdns/log' \
'%dir %attr(0700,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/powerdns' \
'%config %attr(0600,%{l_susr},%{l_mgrp}) %{l_prefix}/etc/powerdns/*'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} powerdns status 2>/dev/null`
[ ".$powerdns_active" = .yes ] && %{l_rc} powerdns restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} powerdns stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/powerdns/log/* >/dev/null 2>&1 || true
exit 0
@
1.52
log
@cosmetic cleanup
@
text
@d30 2
a31 2
Packager: OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release: 20060925
@
1.51
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d27 1
a27 1
Summary: PowerDNS high performance authoritative-only name server
d36 1
a36 1
Release: 20060825
d73 10
a82 12
The PowerDNS name server is a modern, advanced and high
performance authoritative-only nameserver. It is written
from scratch in ISO C++ and conforms to all the relevant
DNS standards documents. The PowerDNS name server utilizes
a flexible backend architecture which can access DNS
information from any data source. This includes many file
formats, Bind zone files, or LDAP directories. PowerDNS
can connect directly to a relational database as well, and
benefit from immediate zone updates on any changes to the
database (no traditional reloading is needed). Lastly, a
Backend Developers Kit exists to negotiate between
PowerDNS and your data or logic.
@
1.50
log
@upgrading package: powerdns 2.9.19 -> 2.9.20
@
text
@d36 1
a36 1
Release: 20060317
d54 2
a55 2
BuildPreReq: OpenPKG, openpkg >= 20040130, boost
PreReq: OpenPKG, openpkg >= 20040130, boost
@
1.49
log
@adjust copyrights for new year 2006
@
text
@d35 2
a36 2
Version: 2.9.19
Release: 20051114
@
1.48
log
@blind update, as boost isn't building at the moment
@
text
@d3 2
a4 2
## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
## Copyright (c) 2000-2005 Ralf S. Engelschall
@
1.47
log
@upgrading package: powerdns 2.9.17 -> 2.9.18
@
text
@d35 2
a36 2
Version: 2.9.18
Release: 20050717
d54 2
a55 2
BuildPreReq: OpenPKG, openpkg >= 20040130
PreReq: OpenPKG, openpkg >= 20040130
@
1.46
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d35 2
a36 2
Version: 2.9.17
Release: 20050112
@
1.45
log
@upgrading package: powerdns 2.9.16 -> 2.9.17
@
text
@d2 3
a4 4
## powerdns.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2005 The OpenPKG Project
## Copyright (c) 2000-2005 Ralf S. Engelschall
## Copyright (c) 2000-2005 Cable & Wireless
d30 1
a30 1
Packager: The OpenPKG Project
@
1.44
log
@Happy New Year 2005
@
text
@d36 2
a37 2
Version: 2.9.16
Release: 20040229
d96 1
a96 1
%patch -p1
d99 1
@
1.43
log
@upgrading package: powerdns 2.9.15 -> 2.9.16
@
text
@d3 3
a5 3
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
@
1.42
log
@Mass Commit:
reduce redundancy within .spec files by referencing
macros defining vendor source versions whenever possible.
This was half-way automated and half-way manually edited.
As a result the PMOD activity in 95% of all cases
just means editing the version in one single place, only.
@
text
@d36 2
a37 2
Version: 2.9.15
Release: 20040207
@
1.41
log
@Mass-Commit:
- split "Distribution" header into "Distribution" (old) and "Class"
(new) headers by moving the attached class information.
- embed the vendor version tracking configuration through the
new "%track" section.
- bump up the OpenPKG bootstrap dependency, because the "Class" header
and "%track" section are only supported by our latest bootstrap version.
@
text
@d37 1
a37 1
Release: 20040203
d89 1
a89 1
version = 2.9.15
@
1.40
log
@bump year in copyright messages to cover new year 2004. This is a CVS only commit -- no packages were rolled intentionally
@
text
@d32 2
a33 1
Distribution: OpenPKG [EVAL]
d37 1
a37 1
Release: 20040119
d55 2
a56 2
BuildPreReq: OpenPKG, openpkg >= 20030718
PreReq: OpenPKG, openpkg >= 20030718
d86 7
@
1.39
log
@upgrading package: powerdns 2.9.14 -> 2.9.15
@
text
@d3 3
a5 3
## Copyright (c) 2000-2003 The OpenPKG Project
## Copyright (c) 2000-2003 Ralf S. Engelschall
## Copyright (c) 2000-2003 Cable & Wireless
@
1.38
log
@upgrading package: powerdns 2.9.13 -> 2.9.14
@
text
@d35 2
a36 2
Version: 2.9.14
Release: 20040117
@
1.37
log
@upgrading package: powerdns 2.9.12 -> 2.9.13
@
text
@d35 2
a36 2
Version: 2.9.13
Release: 20031218
@
1.36
log
@correct removal of pid files
@
text
@d35 2
a36 2
Version: 2.9.12
Release: 20031127
@
1.35
log
@Fix goofed up daily logfile rotations text
@
text
@d36 1
a36 1
Release: 20031126
@
1.34
log
@Correct log file variable notation
@
text
@d36 1
a36 1
Release: 20031112
@
1.33
log
@upgrading package: powerdns 2.9.11 -> 2.9.12
@
text
@d36 1
a36 1
Release: 20031027
@
1.32
log
@Put all log files in separate log directory
@
text
@d35 2
a36 2
Version: 2.9.11
Release: 20031010
@
1.31
log
@Completely repair package and implement features in ticket #202
@
text
@d36 1
a36 1
Release: 20031009
a140 1
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/var/powerdns
d159 1
a159 1
-e 's;# \(logfile=\)pdns.log;\1%{l_prefix}/var/powerdns/pdns.log;' \
d181 4
d191 1
d211 1
a211 1
rm -f $RPM_INSTALL_PREFIX/var/powerdns/*.log* >/dev/null 2>&1 || true
@
1.30
log
@upgrading package: powerdns 2.9.10 -> 2.9.11
@
text
@a25 2
# FIXME: mlelstv: JUNK because not well tested and no config
d32 1
a32 1
Distribution: OpenPKG [JUNK]
d36 1
a36 1
Release: 20030822
d49 1
d57 2
a58 2
BuildPreReq: fsl >= 1.2.0
PreReq: fsl >= 1.2.0
d73 12
a84 11
The PowerDNS name server is a modern, advanced and high performance
authoritative-only nameserver. It is written from scratch and
conforms to all the relevant DNS standards documents. The PowerDNS
name server utilizes a flexible backend architecture which can
access DNS information from any data source. This includes file
formats, Bind zone files, relational databases or LDAP directories.
By connecting directly to a database, no 'reloading' is needed.
Changes committed to the database are effective immediately. If you
have specific needs for your DNS infrastructure then you can use the
Backend Developers Kit to write the 'glue' between PowerDNS and your
data or logic.
d88 10
d114 3
a116 4
CXXFLAGS="%{l_cxxflags -O} -DDLLIMPORT=" \
CPPFLAGS="%{l_cppflags} -DDLLIMPORT=" \
LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}"
LIBS="%{l_fsl_libs}"
d137 1
a137 3
%{l_make} %{l_mflags -O} \
CXXFLAGS="%{l_cxxflags -O} -DDLLIMPORT= -DHAVE_NAMESPACE_STD" \
CPPFLAGS="%{l_cppflags} -DDLLIMPORT= -DHAVE_NAMESPACE_STD"
d141 1
d143 2
d155 12
d168 1
a168 2
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
a172 2
%{l_shtool} mkdir -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/sbin
a180 5
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/powerdns
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
a185 1
'%attr(775,%{l_musr},%{l_rgrp}) %{l_prefix}/var/powerdns' \
d187 2
d195 14
@
1.29
log
@update conflict for domain name servers; remove DNS virtual target
@
text
@d37 2
a38 2
Version: 2.9.10
Release: 20030723
@
1.28
log
@cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies
@
text
@d38 1
a38 1
Release: 20030722
a70 1
Provides: DNS
@
1.27
log
@speclint police: use %{l_value ...} in shtool subst and for uid/gid, too
@
text
@d38 1
a38 1
Release: 20030721
@
1.26
log
@PR#210: shtool options space before argument
@
text
@d143 1
a143 2
%{l_shtool} subst \
-e 's;@@l_prefix@@;%{l_prefix};g' \
@
1.25
log
@replace opXXXX with rcXXXX (PR#207)
@
text
@d38 1
a38 1
Release: 20030719
@
1.24
log
@fix PR#205, use variable %{l_susr} not constant root
@
text
@d38 1
a38 1
Release: 20030717
d55 2
a56 2
BuildPreReq: OpenPKG, openpkg >= 20030717
PreReq: OpenPKG, openpkg >= 20030717
@
1.23
log
@fix PR#204, use new %{l_value -s ...}
@
text
@d176 1
a176 1
'%config %attr(0600,root,%{l_mgrp}) %{l_prefix}/etc/powerdns/*'
@
1.22
log
@fix PR#182 append option for l2_channel_file now default and deprecated in fsl >= 1.2.0
@
text
@d38 1
a38 1
Release: 20030714
d55 2
a56 2
BuildPreReq: OpenPKG, openpkg >= 20030710
PreReq: OpenPKG, openpkg >= 20030710
d150 1
a150 5
%{l_shtool} install -c -m 755 \
-e 's;@@l_prefix@@;%{l_prefix};g' \
-e 's;@@l_susr@@;%{l_susr};g' \
-e 's;@@l_rusr@@;%{l_rusr};g' \
-e 's;@@l_rgrp@@;%{l_rgrp};g' \
d161 1
a161 2
%{l_shtool} install -c -m 644 \
-e 's;@@l_prefix@@;%{l_prefix};g' \
@
1.21
log
@use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable
@
text
@d38 1
a38 1
Release: 20030710
d58 2
a59 2
BuildPreReq: fsl
PreReq: fsl
@
1.20
log
@update copyright header here, too.
@
text
@d38 1
a38 1
Release: 20030708
d55 2
a56 2
BuildPreReq: OpenPKG, openpkg >= 20030415
PreReq: OpenPKG, openpkg >= 20030415
@
1.19
log
@various style cleanups and adjustments
@
text
@d3 3
a5 3
## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2002 The OpenPKG Project
## Copyright (c) 2000-2002 Ralf S. Engelschall
@
1.18
log
@remove now officially deprecated usage of %{name} macro
@
text
@d38 1
a38 1
Release: 20030707
d137 1
a137 1
# Clean up installation
d140 1
a140 1
# Setup config file
d147 1
a147 1
# Creating run-command script
d157 1
a157 1
# Install setup script
d163 1
a163 1
# OSSP fake syslog library
@
1.17
log
@mysql3 is a 'faked' package for mysql (and not an 'alternative' package as our definition states), so configure it and use it this way
@
text
@d38 1
a38 1
Release: 20030704
d167 1
a167 1
%{SOURCE fsl.%{name}} \
d180 1
a180 1
'%config %{l_prefix}/etc/fsl/fsl.%{name}' \
@
1.16
log
@upgrading package: powerdns 2.9.8 -> 2.9.10
@
text
@d38 1
a38 1
Release: 20030703
d56 1
d62 2
a63 1
BuildPreReq: MYSQL
a66 6
%endif
PreReq: OpenPKG, openpkg >= 20030415
%if "%{with_mysql}" == "yes"
PreReq: MYSQL
%endif
%if "%{with_pgsql}" == "yes"
@
1.15
log
@fix introduced logfile path
@
text
@d37 2
a38 2
Version: 2.9.8
Release: 20030628
@
1.14
log
@fix rc script
@
text
@d38 1
a38 1
Release: 20030624
@
1.13
log
@add/unify log file trimming
@
text
@d154 5
a158 3
%{l_shtool} install -c -m 755 -e 's;@@l_prefix@@;%{l_prefix};g' \
-e 's;@@l_susr@@;%{l_susr};g' -e 's;@@l_sgrp@@;%{l_sgrp};g' \
-e 's;@@l_musr@@;%{l_musr};g' -e 's;@@l_mgrp@@;%{l_mgrp};g' \
d173 2
d183 1
@
1.12
log
@make fsl optional with default yes, as promised for the next release
@
text
@d38 1
a38 1
Release: 20030623
@
1.11
log
@add missing fsl dependency
@
text
@d38 1
a38 1
Release: 20030614
d55 1
a55 1
BuildPreReq: OpenPKG, openpkg >= 20021204
d58 1
d66 1
a66 4
PreReq: OpenPKG, openpkg >= 20021204
%if "%{with_fsl}" == "yes"
PreReq: fsl
%endif
a105 6
lf="%{l_ldflags}"
li=""
%if "%{with_fsl}" == "yes"
lf="$lf `%{l_prefix}/bin/fsl-config --all --ldflags --libs`"
li="$li `%{l_prefix}/bin/fsl-config --all --libs`"
%endif
d111 2
a112 2
LDFLAGS="$lf" \
LIBS="$li" \
d165 6
a170 5
# Creating fsl directory
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl
%{l_shtool} install -c -m 644 -e 's;@@l_prefix@@;%{l_prefix};g' \
%{SOURCE fsl.powerdns} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
d174 7
a180 4
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
'%config %attr(0600,root,%{l_mgrp}) %{l_prefix}/etc/powerdns/*' \
'%config %{l_prefix}/etc/fsl/fsl.powerdns' \
'%not %dir %{l_prefix}/etc/fsl'
@
1.10
log
@upgrade powerdns 2.9.7 -> 2.9.8, correctly require C++ bindings for postgresql
@
text
@d38 1
a38 1
Release: 20030506
d56 3
d66 3
@
1.9
log
@Explicitly state providing DNS and conflicting bind[8]
@
text
@d37 2
a38 2
Version: 2.9.7
Release: 20030404
d60 1
a60 1
BuildPreReq: postgresql
d67 1
a67 1
PreReq: postgresql
@
1.8
log
@speclint police
@
text
@d38 1
a38 1
Release: 20030324
d71 2
@
1.7
log
@speclint police
@
text
@d40 6
a50 6
# package options
%option with_fsl yes
%option with_pipe no
%option with_mysql no
%option with_pgsql no
@
1.6
log
@upgrade 2.9.6 -> 2.9.7, verbose logging is broken
@
text
@d35 1
a35 1
Group: unknown
d38 1
a38 1
Release: 20030320
@
1.5
log
@don't forget setup script as source
@
text
@d37 2
a38 2
Version: 2.9.6
Release: 20030312
d132 1
a132 2
--disable-shared \
--enable-verbose-logging
@
1.4
log
@mega-commit: speclint police changes which were not picked up by openpkg-dev before
@
text
@d38 1
a38 1
Release: 20030305
d44 1
a159 1
%if "%{with_mysql}" == "yes" || "%{with_pgsql}" == "yes"
d162 1
a162 1
powerdnssetup} $RPM_BUILD_ROOT%{l_prefix}/sbin
a164 1
%endif
@
1.3
log
@added rudimentary setup script
@
text
@d26 1
a26 1
# FIXME mlelstv - JUNK because not well tested and no config
d38 1
a38 1
Release: 20030304
d73 4
a76 4
authoritative-only nameserver. It is written from scratch and conforms
to all the relevant DNS standards documents.
The PowerDNS name server utilizes a flexible backend architecture which
can access DNS information from any data source. This includes file
d78 4
a81 4
By connecting directly to a database, no 'reloading' is needed. Changes
committed to the database are effective immediately.
If you have specific needs for your DNS infrastructure then you can use
the Backend Developers Kit to write the 'glue' between PowerDNS and your
@
1.2
log
@polishing. rc script
@
text
@d38 1
a38 1
Release: 20030228
d46 1
a74 1
a77 1
a79 1
a83 3
Since version 2.9, PowerDNS is licensed under GNU General Public License
version 2.
d99 6
d110 2
a111 1
LDFLAGS="%{l_ldflags}" \
d147 3
d158 8
@
1.1
log
@initial submit, not yet usuable
@
text
@d38 1
a38 1
Release: 20030227
d106 2
a107 2
CFLAGS="%{l_cflags -O} -g" \
CXXFLAGS="%{l_cxxflags -O} -g -DDLLIMPORT=" \
d131 3
a133 3
CXXFLAGS="%{l_cxxflags -O} -DDLLIMPORT= -DHAVE_NAMESPACE_STD" \
CPPFLAGS="%{l_cppflags} -DDLLIMPORT= -DHAVE_NAMESPACE_STD" \
%{l_make} %{l_mflags -O}
@