]>
Commit | Line | Data |
---|---|---|
5faa8aeb MT |
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 | |
0f154f63 | 28 | PKG_VER = 3.3 |
b5d35c1c | 29 | PKG_REL = 3 |
5faa8aeb MT |
30 | |
31 | PKG_MAINTAINER = | |
bb7d617c | 32 | PKG_GROUPS = Networking/DNS |
5faa8aeb MT |
33 | PKG_URL = http://powerdns.com/ |
34 | PKG_LICENSE = GPLv2 | |
35 | PKG_SUMMARY = A modern, advanced and high performance recursing nameserver. | |
36 | ||
9b2b0b92 | 37 | PKG_BUILD_DEPS+= gcc-c++ boost-devel lua-devel |
5faa8aeb MT |
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 | ||
9b6f6f2e MT |
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 | ||
5faa8aeb MT |
50 | define STAGE_BUILD |
51 | cd $(DIR_APP) && LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \ | |
eef41b36 | 52 | make OPTFLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS) |
5faa8aeb | 53 | endef |
1f429f67 | 54 | |
67f21619 MT |
55 | define STAGE_INSTALL |
56 | cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \ | |
57 | CONFIGDIR=/etc/$(PKG_NAME) | |
58 | ||
b5d35c1c | 59 | # Remove sysvinit file |
1f429f67 | 60 | rm -rf $(BUILDROOT)/etc/init.d |
67f21619 | 61 | |
b5d35c1c MT |
62 | # Remove shipped config file |
63 | rm -rf $(BUILDROOT)/etc/$(PKG_NAME)/recursor.conf-dist | |
64 | ||
65 | # Install our default config file | |
66 | cp -vf $(DIR_SOURCE)/recursor.conf $(BUILDROOT)/etc/$(PKG_NAME)/recursor.conf | |
67 | ||
68 | # Create folder for chroot | |
69 | -mkdir -pv $(BUILDROOT)/var/lib/pdns-recursor | |
1f429f67 | 70 | endef |
b5d35c1c MT |
71 | |
72 | # XXX Need to create user and group "pdns-recursor" at installation | |
73 | # useradd -r -g pdns-recursor pdns-recursor -d /var/lib/pdns-recursor -s /sbin/nologin |