############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = pdns-recursor version = 3.3 release = 4 groups = Networking/DNS url = http://powerdns.com/ license = GPLv2 summary = A modern, advanced and high performance recursing nameserver. description PowerDNS Recursor is a non authoritative/recursing DNS server. Use this package if you need a dns cache for your network. end source_dl = sources = %{thisapp}.tar.bz2 build requires gcc-c++ boost-devel lua-devel end build LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \ make OPTFLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS} end install make install DESTDIR=%{BUILDROOT} \ CONFIGDIR=/etc/%{name} # Remove sysvinit file rm -rf %{BUILDROOT}/etc/init.d # Remove shipped config file rm -rf %{BUILDROOT}/etc/%{name}/recursor.conf-dist # Install our default config file cp -vf %{DIR_SOURCE}/recursor.conf %{BUILDROOT}/etc/%{name}/recursor.conf # Create folder for chroot mkdir -pv %{BUILDROOT}/var/lib/pdns-recursor end end # XXX Need to create user and group "pdns-recursor" at installation # useradd -r -g pdns-recursor pdns-recursor -d /var/lib/pdns-recursor -s /sbin/nologin packages package %{name} end