diff options
author | csmk <csmk@cmsrv.org> | 2015-09-25 02:59:29 +0900 |
---|---|---|
committer | csmk <csmk@cmsrv.org> | 2015-09-25 02:59:29 +0900 |
commit | 4019b1f51cd9b93fe08b0e039305a7dd22bf71a2 (patch) | |
tree | cf8cd9a35157d103417a47806f4342d15cad7567 /net-dns | |
parent | Merge branch 'master' of git://github.com/lluixhi/libressl (diff) | |
download | libressl-4019b1f51cd9b93fe08b0e039305a7dd22bf71a2.tar.gz libressl-4019b1f51cd9b93fe08b0e039305a7dd22bf71a2.tar.bz2 libressl-4019b1f51cd9b93fe08b0e039305a7dd22bf71a2.zip |
Add net-dns/ldns-utils and fix issues with LibreSSL
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/ldns-utils/Manifest | 8 | ||||
-rw-r--r-- | net-dns/ldns-utils/files/1.6.12-cflags.patch | 22 | ||||
-rw-r--r-- | net-dns/ldns-utils/files/1.6.12-libressl.patch | 20 | ||||
-rw-r--r-- | net-dns/ldns-utils/files/1.6.17-libressl.patch | 19 | ||||
-rw-r--r-- | net-dns/ldns-utils/ldns-utils-1.6.12-r1.ebuild | 65 | ||||
-rw-r--r-- | net-dns/ldns-utils/ldns-utils-1.6.17-r1.ebuild | 62 | ||||
-rw-r--r-- | net-dns/ldns-utils/metadata.xml | 19 |
7 files changed, 215 insertions, 0 deletions
diff --git a/net-dns/ldns-utils/Manifest b/net-dns/ldns-utils/Manifest new file mode 100644 index 0000000..df73cdf --- /dev/null +++ b/net-dns/ldns-utils/Manifest @@ -0,0 +1,8 @@ +AUX 1.6.12-cflags.patch 938 SHA256 cf964d5abdd921acf539b6d8185e99def2f43aff47d2d1489b87cd2b342dc8e9 SHA512 bd03ef07cdc407d2ad3714027c91339ada3d79bc3302884b05c4e0ada18d93d232cd718b67a35234b98c29a35f26730df631e0854b8a64399498a7e9f83e6216 WHIRLPOOL a768d441d92aa00194e150d2992a70c83f796228166a315d120273a6677ecf907ad197937aeaa94884285b3686774c95cc76776d7b615006b181db0207c5609e +AUX 1.6.12-libressl.patch 626 SHA256 81cb422b5f6d1e3bdcbc0adf54f1c66e59a17bbc34242932a267271a0bc47b96 SHA512 5ea3db4621a72ba27d70f6f0f97076ce70087deba92a2249091e51f45967cb874d8f91d1687b760b0e7f008614bba00ecf439ecd7a8bde57c0bf32e7d299efda WHIRLPOOL 1582097d5f1aad4a3fea8b1596aabd2ced7e0e071c49709c754617aef018efcd65d016dfc40946a575b3f5f6dbd081cd01f605c0b24e035ca16e9d9202a7aa39 +AUX 1.6.17-libressl.patch 624 SHA256 337940e4527f9a63a6873c003558fd3fbe522913087b28de309428163f792e58 SHA512 bae8f87200b64d2b008be2669c7f2521e202da85a2d28cee19d590862f9ddcbc8e219fddf991b95de527b91a8b6b6c95245a688aca4706178f45c5320d87e843 WHIRLPOOL 8b9a41d5c544d42de434690d6be40d99dfb2850a960c17bd147e2e5b6d8c62ccae167a270bdd64a2566f00bfb13ad43233dbbafbfe34ea49246845608428358e +DIST ldns-1.6.12.tar.gz 1057607 SHA256 b966787510a169ca0ed78f9a8a5de01fb309909575e721ead92095d4677aa51c SHA512 f928be35a5c0bc2b918f005dd592cc531451f373ed9d77a54d5207a2a80b9d525faabf75bba75483d3476cfeff75a66ad4d9527a84a983216dae4fac30213773 WHIRLPOOL 0e8cf513991850b065144568ec1ea3188ddb6bbf6b3cf08490186552884b2b2dd42ae8ab8995f54c183a989976ab292772411f2582a5bd595d4d54d25e2b4096 +DIST ldns-1.6.17.tar.gz 1315403 SHA256 8b88e059452118e8949a2752a55ce59bc71fa5bc414103e17f5b6b06f9bcc8cd SHA512 5de42b4b8622591db51efb0956735deee9cd5e0bee12249a03b65c5b45d7c51bf9c2edb310ef9d7431af49aef77d968bfa2455a7dedfa80cde3d433436c83785 WHIRLPOOL 08c8a13df3dbeccd5dc5ceeb52730a61ab231e70a85524e826f9275bbcde6e09d6e2fc5234303a6bceb431d2b91f510140ce61a2b59d77afbb2759a0627c7cb7 +EBUILD ldns-utils-1.6.12-r1.ebuild 1434 SHA256 a9bdb323e649a32c219cdd798adf2679d84fbf2ecae6470d3716ba71a56bb178 SHA512 cba3aecc7f1c1c2fbea634c1281557a4aea9a1dd489160a2134a0f65a3b2dd173e743ec078c39011e5ff513e8c7e57d00d6cf3dcce897947016699b42f0da2e3 WHIRLPOOL e9f88fdd39e5e06297ae2e35b10c24888fb9806951725695ccf163386a4a9f7597e3d66450e275b7e6be7cdd1546f62f6ac7510e010c5c64044daad09eb98c20 +EBUILD ldns-utils-1.6.17-r1.ebuild 1252 SHA256 4a0a37811f2f08c3d2878842b638965c9d4bed2ec4a6d0fd203fe69539c1007b SHA512 d8ad349fa2e9c87b0ff06cda9133fe3e8665e4c5db3196a1ac955e45dbb35558eff97c5fced87a767006fa37ced8c5c201b10b354bcd0bdb81fa81ad108b47b5 WHIRLPOOL 4b8b80375b19569c69d562d2d5b20bcbd6077bd6dc217a158b80bb67489a694d8e8a639c8a3794c7bfa42132d57ba2bd90957f327ea669cf6c4a1d96702a174b +MISC metadata.xml 728 SHA256 4ff1c44cc57ce5c785b65c910dbc414a8a17446813502a72268c6811e0ae70f3 SHA512 772b89ec9c2a570f12660d914b534efd42d1095a903a7864d7901be15eaa31e300da6ab2284e736500b1f99eb3dd5d2471c597d4fd7ac2df7c2d58bde2b64a7e WHIRLPOOL eac7673009c7adf46209ffdf03d320d29a03afedb4994d777a485a682f53cf00ae33a831dc789af04df73ec8d51663bf5a4b7451874edfd32e20a35985f20c28 diff --git a/net-dns/ldns-utils/files/1.6.12-cflags.patch b/net-dns/ldns-utils/files/1.6.12-cflags.patch new file mode 100644 index 0000000..5e14a20 --- /dev/null +++ b/net-dns/ldns-utils/files/1.6.12-cflags.patch @@ -0,0 +1,22 @@ +diff -Naur ldns-1.6.12.orig/drill/configure.ac ldns-1.6.12/drill/configure.ac +--- ldns-1.6.12.orig/drill/configure.ac 2011-11-17 00:48:16.000000000 +0900 ++++ ldns-1.6.12/drill/configure.ac 2012-01-12 00:20:51.944503474 +0900 +@@ -33,7 +33,6 @@ + ACX_CHECK_COMPILER_FLAG(xc99, [C99FLAG="-xc99"]) + + AC_TYPE_SIZE_T +-ACX_CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"]) + + ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600, + [ +diff -Naur ldns-1.6.12.orig/examples/configure.ac ldns-1.6.12/examples/configure.ac +--- ldns-1.6.12.orig/examples/configure.ac 2011-09-29 22:04:19.000000000 +0900 ++++ ldns-1.6.12/examples/configure.ac 2012-01-12 00:21:03.191504702 +0900 +@@ -31,7 +31,6 @@ + + + AC_TYPE_SIZE_T +-ACX_CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"]) + + ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600, + [ diff --git a/net-dns/ldns-utils/files/1.6.12-libressl.patch b/net-dns/ldns-utils/files/1.6.12-libressl.patch new file mode 100644 index 0000000..8ccf4b9 --- /dev/null +++ b/net-dns/ldns-utils/files/1.6.12-libressl.patch @@ -0,0 +1,20 @@ +diff -Naur ldns-1.6.12.orig/examples/ldns-signzone.c ldns-1.6.12/examples/ldns-signzone.c +--- ldns-1.6.12.orig/examples/ldns-signzone.c 2011-10-27 20:30:05.000000000 +0900 ++++ ldns-1.6.12/examples/ldns-signzone.c 2015-09-25 01:38:08.502773261 +0900 +@@ -481,6 +481,8 @@ + case 'A': + signflags |= LDNS_SIGN_DNSKEY_WITH_ZSK; + break; ++ ++#ifdef HAVE_ENGINE_LOAD_CRYPTODEV + case 'E': + ENGINE_load_builtin_engines(); + ENGINE_load_dynamic(); +@@ -505,6 +507,7 @@ + ENGINE_set_default(engine, 0); + } + break; ++#endif + case 'k': + eng_key_l = strchr(optarg, ','); + if (eng_key_l && strlen(eng_key_l) > 1) { diff --git a/net-dns/ldns-utils/files/1.6.17-libressl.patch b/net-dns/ldns-utils/files/1.6.17-libressl.patch new file mode 100644 index 0000000..13603db --- /dev/null +++ b/net-dns/ldns-utils/files/1.6.17-libressl.patch @@ -0,0 +1,19 @@ +diff -Naur ldns-1.6.17.orig/examples/ldns-signzone.c ldns-1.6.17/examples/ldns-signzone.c +--- ldns-1.6.17.orig/examples/ldns-signzone.c 2014-01-11 06:04:41.000000000 +0900 ++++ ldns-1.6.17/examples/ldns-signzone.c 2015-09-25 01:54:54.364663640 +0900 +@@ -470,6 +470,7 @@ + case 'A': + signflags |= LDNS_SIGN_DNSKEY_WITH_ZSK; + break; ++#ifdef HAVE_ENGINE_LOAD_CRYPTODEV + case 'E': + ENGINE_load_builtin_engines(); + ENGINE_load_dynamic(); +@@ -494,6 +495,7 @@ + ENGINE_set_default(engine, 0); + } + break; ++#endif + case 'k': + eng_key_l = strchr(optarg, ','); + if (eng_key_l && strlen(eng_key_l) > 1) { diff --git a/net-dns/ldns-utils/ldns-utils-1.6.12-r1.ebuild b/net-dns/ldns-utils/ldns-utils-1.6.12-r1.ebuild new file mode 100644 index 0000000..64ecb6d --- /dev/null +++ b/net-dns/ldns-utils/ldns-utils-1.6.12-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +inherit autotools eutils + +MY_P="${P/-utils}" +DESCRIPTION="Set of utilities to simplify various dns(sec) tasks" +HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/" +SRC_URI="http://www.nlnetlabs.nl/downloads/ldns/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="examples gost ssl" + +DEPEND=">=net-libs/ldns-${PV}[gost?,ssl?] + examples? ( net-libs/libpcap )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # bug #369339 + epatch "${FILESDIR}/1.6.12-cflags.patch" + + # Fix issues with LibreSSL + epatch "${FILESDIR}/1.6.12-libressl.patch" + + ( cd drill && eautoreconf ) + ( cd examples && eautoreconf ) +} + +src_configure() { + cd "${S}"/drill + econf $(use_with ssl) || die + + if use examples; then + cd "${S}"/examples + econf \ + $(use_enable gost) \ + $(use_enable ssl sha2) \ + $(use_with ssl) || die + fi +} + +src_compile() { + emake -C drill || die "emake for drill failed" + if use examples; then + emake -C examples || die "emake for examples failed" + fi +} + +src_install() { + cd "${S}"/drill + emake DESTDIR="${D}" install || die "emake install for drill failed" + dodoc ChangeLog.22-nov-2005 README REGRESSIONS || die + + if use examples; then + cd "${S}"/examples + emake DESTDIR="${D}" install || die "emake install for examples failed" + newdoc README README.examples || die + fi +} diff --git a/net-dns/ldns-utils/ldns-utils-1.6.17-r1.ebuild b/net-dns/ldns-utils/ldns-utils-1.6.17-r1.ebuild new file mode 100644 index 0000000..737a805 --- /dev/null +++ b/net-dns/ldns-utils/ldns-utils-1.6.17-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +MY_P=${P/-utils} + +DESCRIPTION="Set of utilities to simplify various dns(sec) tasks" +HOMEPAGE="http://www.nlnetlabs.nl/projects/ldns/" +SRC_URI="http://www.nlnetlabs.nl/downloads/ldns/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="dane ecdsa examples gost ssl" + +DEPEND=">=net-libs/ldns-${PV}[dane?,ecdsa?,gost?,ssl?] + examples? ( net-libs/libpcap )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # Fix issues with LibreSSL + epatch "${FILESDIR}"/1.6.17-libressl.patch +} + +src_configure() { + cd "${S}"/drill + econf $(use_with ssl) + + if use examples; then + cd "${S}"/examples + econf \ + $(use_enable dane) \ + $(use_enable ecdsa) \ + $(use_enable gost) \ + $(use_enable ssl sha2) \ + $(use_with ssl) + fi +} + +src_compile() { + emake -C drill + if use examples; then + emake -C examples + fi +} + +src_install() { + cd "${S}"/drill + emake DESTDIR="${D}" install + dodoc ChangeLog.22-nov-2005 README REGRESSIONS + + if use examples; then + cd "${S}"/examples + emake DESTDIR="${D}" install + newdoc README README.examples + fi +} diff --git a/net-dns/ldns-utils/metadata.xml b/net-dns/ldns-utils/metadata.xml new file mode 100644 index 0000000..b2c0747 --- /dev/null +++ b/net-dns/ldns-utils/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mschiff@gentoo.org</email> + <name>Marc Schiffbauer</name> + </maintainer> + <longdescription lang="en"> + ldns is a library with the aim to simplify DNS programing in C. All + lowlevel DNS/DNSSEC operations are supported. We also define a higher + level API which allows a programmer to (for instance) create or sign + packets. + </longdescription> + <use> + <flag name='dane'>Enable DNS-based Authentication of Named Entities (DANE) support</flag> + <flag name='ecdsa'>Enable ECDSA support</flag> + <flag name='gost'>Enable GOST support</flag> + </use> +</pkgmetadata> |