]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - ldns/ldns.nm
systemd: Generate machine-id on first run.
[people/amarx/ipfire-3.x.git] / ldns / ldns.nm
CommitLineData
d5ef2ba9
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = ldns
7version = 1.6.17
8release = 1
9
10groups = Networking/DNS
11url = http://www.nlnetlabs.nl/projects/ldns/
12license = BSD
13summary = Low-level DNS(SEC) library with API
14
15description
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.
25end
26
27source_dl = http://www.nlnetlabs.nl/downloads/%{name}/
28
29build
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
65end
66
67packages
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
80end