]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - ldns/ldns.nm
tmux: Update to 2.2
[people/amarx/ipfire-3.x.git] / ldns / ldns.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = ldns
7 version = 1.6.17
8 release = 1
9
10 groups = Networking/DNS
11 url = http://www.nlnetlabs.nl/projects/ldns/
12 license = BSD
13 summary = Low-level DNS(SEC) library with API
14
15 description
16 The flex program generates scanners. Scanners are programs which can
17 recognize lexical patterns in text. Flex takes pairs of regular
18 expressions and C code as input and generates a C source file as
19 output. The output file is compiled and linked with a library to
20 produce an executable. The executable searches through its input for
21 occurrences of the regular expressions. When a match is found, it
22 executes the corresponding C code. Flex was designed to work with
23 both Yacc and Bison, and is used by many programs as part of their
24 build process.
25 end
26
27 source_dl = http://www.nlnetlabs.nl/downloads/%{name}/
28
29 build
30 requires
31 ca-certificates
32 doxygen
33 gcc-c++
34 libpcap-devel
35 openssl-devel
36 end
37
38 prepare_cmds
39 sed -i "s/@includedir@/@includedir@\/ldns/" \
40 packaging/libldns.pc.in
41 end
42
43 configure_options += \
44 --enable-gost \
45 --enable-ecdsa \
46 --with-ca-file=/etc/pki/tls/certs/ca-bundle.trust.crt \
47 --with-ca-path=/etc/pki/tls/certs/ \
48 --with-trust-anchor=%{sharedstatedir}/unbound/root.key \
49 --enable-rrtype-cds \
50 --enable-rrtype-uri
51
52 build_cmds
53 pushd drill
54 ./configure %{configure_options}
55 make %{PARALLELISMFLAGS}
56 popd
57 end
58
59 install_cmds
60 install -D -m644 packaging/libldns.pc \
61 %{BUILDROOT}%{libdir}/pkgconfig/ldns.pc
62
63 make -C drill DESTDIR=%{BUILDROOT} install
64 end
65 end
66
67 packages
68 package %{name}
69
70 package %{name}-devel
71 template DEVEL
72
73 files += %{bindir}/ldns-config
74 files += %{mandir}/man1/ldns-config.1*
75 end
76
77 package %{name}-debuginfo
78 template DEBUGINFO
79 end
80 end