]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/pdns-recursor/pdns-recursor.nm
9e4a995552444336ab8d8320b93f17dc68622c4d
[ipfire-3.x.git] / pkgs / pdns-recursor / pdns-recursor.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = pdns-recursor
28 PKG_VER = 3.3
29 PKG_REL = 2
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = Networking/DNS
33 PKG_URL = http://powerdns.com/
34 PKG_LICENSE = GPLv2
35 PKG_SUMMARY = A modern, advanced and high performance recursing nameserver.
36
37 PKG_BUILD_DEPS+= gcc-c++ boost-devel lua-devel
38
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.
42 endef
43
44 PKG_TARBALL = $(THISAPP).tar.bz2
45
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))
49
50 define STAGE_BUILD
51 cd $(DIR_APP) && LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \
52 make OPTFLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS)
53 endef
54
55 define STAGE_INSTALL
56 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
57 CONFIGDIR=/etc/$(PKG_NAME)
58
59 rm -rf $(BUILDROOT)/etc/init.d
60
61 mv -v $(BUILDROOT)/etc/$(PKG_NAME)/recursor.conf{-dist,}
62 endef