1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
27 PKG_NAME = pdns-recursor
32 PKG_GROUPS = Networking/DNS
33 PKG_URL = http://powerdns.com/
35 PKG_SUMMARY = A modern, advanced and high performance recursing nameserver.
37 PKG_BUILD_DEPS+= gcc-c++ boost-devel lua-devel
39 define PKG_DESCRIPTION
40 PowerDNS Recursor is a non authoritative/recursing DNS server. Use this \
41 package if you need a dns cache for your network.
44 PKG_TARBALL = $(THISAPP).tar.bz2
46 # XXX pdns-recursors likes to segfault when compiled with normal
47 # CFLAGS. So we do it with -O0
48 CFLAGS := $(subst -O2,-O0,$(CFLAGS))
51 cd $(DIR_APP) && LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \
52 make OPTFLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS)
56 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
57 CONFIGDIR=/etc/$(PKG_NAME)
59 rm -rf $(BUILDROOT)/etc/init.d
61 mv -v $(BUILDROOT)/etc/$(PKG_NAME)/recursor.conf{-dist,}