diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2020-10-29 04:37:21 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2020-10-29 04:37:21 +0000 |
commit | 35e57cd4af70d7791404cc806f0adeb2fe081233 (patch) | |
tree | 2a440fb468f1fa799e6cd0ce13af90c270b6f487 | |
parent | eae49d4230542a2e44f4c264f238277b0aa4f771 (diff) | |
download | ports-35e57cd4af70d7791404cc806f0adeb2fe081233.tar.gz ports-35e57cd4af70d7791404cc806f0adeb2fe081233.zip |
New port: dns/libmicrodns: DNS library focused on being simple and cross-platform
Notes
Notes:
svn path=/head/; revision=553582
-rw-r--r-- | dns/Makefile | 1 | ||||
-rw-r--r-- | dns/libmicrodns/Makefile | 26 | ||||
-rw-r--r-- | dns/libmicrodns/distinfo | 3 | ||||
-rw-r--r-- | dns/libmicrodns/files/patch-include_microdns_rr.h | 11 | ||||
-rw-r--r-- | dns/libmicrodns/files/patch-include_utils.h | 11 | ||||
-rw-r--r-- | dns/libmicrodns/files/patch-src_rr.c | 11 | ||||
-rw-r--r-- | dns/libmicrodns/pkg-descr | 4 |
7 files changed, 67 insertions, 0 deletions
diff --git a/dns/Makefile b/dns/Makefile index 08aa96cd1a7c..47160adb8d77 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -98,6 +98,7 @@ SUBDIR += libdjbdns SUBDIR += libidn SUBDIR += libidn2 + SUBDIR += libmicrodns SUBDIR += libnspsl SUBDIR += libpsl SUBDIR += linux-c7-libasyncns diff --git a/dns/libmicrodns/Makefile b/dns/libmicrodns/Makefile new file mode 100644 index 000000000000..6d18fd9fe448 --- /dev/null +++ b/dns/libmicrodns/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= libmicrodns +DISTVERSION= 0.2.0 +CATEGORIES= dns + +MAINTAINER= yuri@FreeBSD.org +COMMENT= DNS library focused on being simple and cross-platform + +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= meson +USE_GITHUB= yes +USE_LDCONFIG= yes + +GH_ACCOUNT= videolabs + +PLIST_FILES= include/microdns/microdns.h \ + include/microdns/rr.h \ + lib/libmicrodns.so \ + lib/libmicrodns.so.1 \ + lib/libmicrodns.so.1.0.0 \ + libdata/pkgconfig/microdns.pc + +.include <bsd.port.mk> diff --git a/dns/libmicrodns/distinfo b/dns/libmicrodns/distinfo new file mode 100644 index 000000000000..aecf415f15e1 --- /dev/null +++ b/dns/libmicrodns/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1603939184 +SHA256 (videolabs-libmicrodns-0.2.0_GH0.tar.gz) = 9864a088ffef4d4255d5abf63c6f603d1dc343dfec2809ff0c3f1624045b80fa +SIZE (videolabs-libmicrodns-0.2.0_GH0.tar.gz) = 59923 diff --git a/dns/libmicrodns/files/patch-include_microdns_rr.h b/dns/libmicrodns/files/patch-include_microdns_rr.h new file mode 100644 index 000000000000..dbb13792dd16 --- /dev/null +++ b/dns/libmicrodns/files/patch-include_microdns_rr.h @@ -0,0 +1,11 @@ +--- include/microdns/rr.h.orig 2020-10-29 02:44:44 UTC ++++ include/microdns/rr.h +@@ -35,6 +35,8 @@ + # include <ws2tcpip.h> + #endif + ++#include <netinet/in.h> ++ + # ifdef __cplusplus + extern "C" { + # endif diff --git a/dns/libmicrodns/files/patch-include_utils.h b/dns/libmicrodns/files/patch-include_utils.h new file mode 100644 index 000000000000..ca099495a837 --- /dev/null +++ b/dns/libmicrodns/files/patch-include_utils.h @@ -0,0 +1,11 @@ +--- include/utils.h.orig 2020-10-29 02:42:44 UTC ++++ include/utils.h +@@ -31,6 +31,8 @@ + #include <stdio.h> + #include <stdint.h> + ++#include <netinet/in.h> ++ + #include "compat.h" + + #define MDNS_DN_MAXSZ 256 // domain name maximum size diff --git a/dns/libmicrodns/files/patch-src_rr.c b/dns/libmicrodns/files/patch-src_rr.c new file mode 100644 index 000000000000..5e612406b89e --- /dev/null +++ b/dns/libmicrodns/files/patch-src_rr.c @@ -0,0 +1,11 @@ +--- src/rr.c.orig 2020-10-29 02:40:53 UTC ++++ src/rr.c +@@ -32,6 +32,8 @@ + #include <stdlib.h> + #include <stdint.h> + ++#include <netinet/in.h> ++ + #include "utils.h" + #include "microdns/microdns.h" + #include "microdns/rr.h" diff --git a/dns/libmicrodns/pkg-descr b/dns/libmicrodns/pkg-descr new file mode 100644 index 000000000000..961e3846f108 --- /dev/null +++ b/dns/libmicrodns/pkg-descr @@ -0,0 +1,4 @@ +microdns is an mDNS resolver (and announcer) library focused on being simple +and cross-platform. + +WWW: https://github.com/videolabs/libmicrodns |