1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/DNS
11 url = http://powerdns.com/
13 summary = A modern, advanced and high performance recursing nameserver.
16 PowerDNS Recursor is a non authoritative/recursing DNS server. Use this
17 package if you need a dns cache for your network.
20 source_dl = http://downloads.powerdns.com/releases/
21 sources = %{thisapp}.tar.bz2
36 LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \
37 make OPTFLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
41 make install DESTDIR=%{BUILDROOT} \
42 CONFIGDIR="%{sysconfdir}/pdns"
44 # Remove sysvinit file
45 rm -rf %{BUILDROOT}/etc/init.d
47 # Remove shipped config file
48 rm -rf %{BUILDROOT}%{sysconfdir}/pdns/recursor.conf-dist
50 # Install our default config file
51 cp -vf %{DIR_SOURCE}/recursor.conf \
52 %{BUILDROOT}%{sysconfdir}/pdns/recursor.conf
54 # Create folder for chroot
55 mkdir -pv %{BUILDROOT}/var/lib/pdns-recursor
57 # Create directory for socket and stuff.
58 mkdir -pv %{BUILDROOT}/run/pdns-recursor
59 chown -v pdns-recursor.pdns-recursor %{BUILDROOT}/run/pdns-recursor
64 getent group pdns-recursor >/dev/null || groupadd -r pdns-recursor
65 getent passwd pdns-recursor >/dev/null || \
66 useradd -r -g pdns-recursor -d /var/lib/pdns-recursor -s /sbin/nologin \
73 %{sysconfdir}/pdns/recursor.conf
86 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
87 /bin/systemctl --no-reload enable pdns-recursor.service >/dev/null 2>&1 || :
91 /bin/systemctl --no-reload disable pdns-recursor.service >/dev/null 2>&1 || :
92 /bin/systemctl stop pdns-recursor.service >/dev/null 2>&1 || :
96 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
100 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
101 /bin/systemctl try-restart pdns-recursor.service >/dev/null 2>&1 || :
105 package %{name}-debuginfo