blob: 58b8eec666fb463916532f5c2e09ed408470a0ba [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001DESCRIPTION = "This package contains the DNS.pm module with friends."
2HOMEPAGE = "http://www.net-dns.org/"
3SECTION = "libs"
4LICENSE = "MIT"
5
6LIC_FILES_CHKSUM = "file://README;beginline=252;endline=269;md5=27db37b42cd1a5173a53922d67072bcb"
7
8DEPENDS += "perl"
9
10SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"
11
Brad Bishopc1d34332019-09-09 14:56:00 -040012SRC_URI[md5sum] = "91e8593eb6eed41995e6edc567fb6fec"
13SRC_URI[sha256sum] = "ddefe13b28084ffcc8f10a96b3c13c59449dbf6fc371c006d129630ea0ce767a"
Brad Bishopc342db32019-05-15 21:57:59 -040014
15UPSTREAM_CHECK_REGEX = "Net\-DNS\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
16
17S = "${WORKDIR}/Net-DNS-${PV}"
18
19EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
20
21inherit cpan ptest-perl
22
23RDEPENDS_${PN} = " \
24 libdigest-hmac-perl \
25 perl-module-base \
26 perl-module-constant \
27 perl-module-digest-md5 \
28 perl-module-digest-sha \
29 perl-module-file-spec \
30 perl-module-integer \
31 perl-module-io-file \
32 perl-module-io-select \
33 perl-module-io-socket \
34 perl-module-io-socket-ip \
35 perl-module-mime-base64 \
36 perl-module-scalar-util \
37 perl-module-test-more \
38 perl-module-time-local \
39"
40
41RRECOMMENDS_${PN} += " \
42 libnet-dns-sec-perl \
43"
44
45RDEPENDS_${PN}-ptest += " \
46 perl-module-encode \
47 perl-module-encode-byte \
48 perl-module-extutils-mm \
49 perl-module-extutils-mm-unix \
50 perl-module-overload \
51"
52
53python __anonymous () {
54 # rather than use "find" to determine libc-*.so,
55 # statically export the known paths for glibc and musl
56 import os
57 if d.getVar('TCLIBC') == "glibc":
58 os.environ["LIBC"] = "${STAGING_BASELIBDIR}/libc.so.6"
59 elif d.getVar('TCLIBC') == "musl":
60 os.environ["LIBC"] = "${STAGING_LIBDIR}/libc.so"
61 else:
62 raise bb.parse.SkipRecipe("incompatible with %s C library" %
63 d.getVar('TCLIBC'))
64}
65
66BBCLASSEXTEND = "native"