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.
21 sources = %{thisapp}.tar.bz2
31 LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \
32 make OPTFLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
36 make install DESTDIR=%{BUILDROOT} \
37 CONFIGDIR=/etc/%{name}
39 # Remove sysvinit file
40 rm -rf %{BUILDROOT}/etc/init.d
42 # Remove shipped config file
43 rm -rf %{BUILDROOT}/etc/%{name}/recursor.conf-dist
45 # Install our default config file
46 cp -vf %{DIR_SOURCE}/recursor.conf %{BUILDROOT}/etc/%{name}/recursor.conf
48 # Create folder for chroot
49 mkdir -pv %{BUILDROOT}/var/lib/pdns-recursor
56 /etc/%{name}/recursor.conf
59 prerequires = shadow-utils systemd-units
62 getent group pdns-recursor >/dev/null || groupadd -r pdns-recursor
63 getent passwd pdns-recursor >/dev/null || \
64 useradd -r -g pdns-recursor -d /var/lib/pdns-recursor -s /sbin/nologin \
69 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
70 /bin/systemctl --no-reload enable pdns-recursor.service >/dev/null 2>&1 || :
74 /bin/systemctl --no-reload disable pdns-recursor.service >/dev/null 2>&1 || :
75 /bin/systemctl stop pdns-recursor.service >/dev/null 2>&1 || :
79 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
83 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
84 /bin/systemctl try-restart pdns-recursor.service >/dev/null 2>&1 || :