]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pkgs/pdns-recursor/pdns-recursor.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / pdns-recursor / pdns-recursor.nm
CommitLineData
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
6name = pdns-recursor
7version = 3.3
8release = 4
5faa8aeb 9
802ea3af
MT
10groups = Networking/DNS
11url = http://powerdns.com/
12license = GPLv2
13summary = A modern, advanced and high performance recursing nameserver.
5faa8aeb 14
802ea3af
MT
15description
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
18end
19
20source_dl =
21sources = %{thisapp}.tar.bz2
5faa8aeb 22
802ea3af
MT
23build
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
51end
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
56packages
57 package %{name}
58end