]>
Commit | Line | Data |
---|---|---|
5faa8aeb | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
5faa8aeb MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = pdns-recursor |
7 | version = 3.3 | |
8 | release = 4 | |
5faa8aeb | 9 | |
802ea3af MT |
10 | groups = Networking/DNS |
11 | url = http://powerdns.com/ | |
12 | license = GPLv2 | |
13 | summary = A modern, advanced and high performance recursing nameserver. | |
5faa8aeb | 14 | |
802ea3af MT |
15 | description |
16 | PowerDNS Recursor is a non authoritative/recursing DNS server. Use this | |
5faa8aeb | 17 | package if you need a dns cache for your network. |
802ea3af MT |
18 | end |
19 | ||
20 | source_dl = | |
21 | sources = %{thisapp}.tar.bz2 | |
5faa8aeb | 22 | |
802ea3af MT |
23 | build |
24 | requires | |
25 | gcc-c++ | |
26 | boost-devel | |
27 | lua-devel | |
28 | end | |
5faa8aeb | 29 | |
802ea3af MT |
30 | build |
31 | LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \ | |
32 | make OPTFLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS} | |
33 | end | |
1f429f67 | 34 | |
802ea3af MT |
35 | install |
36 | make install DESTDIR=%{BUILDROOT} \ | |
37 | CONFIGDIR=/etc/%{name} | |
67f21619 | 38 | |
802ea3af MT |
39 | # Remove sysvinit file |
40 | rm -rf %{BUILDROOT}/etc/init.d | |
67f21619 | 41 | |
802ea3af MT |
42 | # Remove shipped config file |
43 | rm -rf %{BUILDROOT}/etc/%{name}/recursor.conf-dist | |
b5d35c1c | 44 | |
802ea3af MT |
45 | # Install our default config file |
46 | cp -vf %{DIR_SOURCE}/recursor.conf %{BUILDROOT}/etc/%{name}/recursor.conf | |
b5d35c1c | 47 | |
802ea3af MT |
48 | # Create folder for chroot |
49 | mkdir -pv %{BUILDROOT}/var/lib/pdns-recursor | |
50 | end | |
51 | end | |
b5d35c1c MT |
52 | |
53 | # XXX Need to create user and group "pdns-recursor" at installation | |
54 | # useradd -r -g pdns-recursor pdns-recursor -d /var/lib/pdns-recursor -s /sbin/nologin | |
802ea3af MT |
55 | |
56 | packages | |
57 | package %{name} | |
58 | end |