summaryrefslogtreecommitdiff
path: root/net/djbdnscurve6
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2019-01-05 06:20:19 +0000
committerschmonz <schmonz@pkgsrc.org>2019-01-05 06:20:19 +0000
commit8c3113ffe10e89e457fd323dbeaeb0fbade742bb (patch)
treed7552bbaff4eec2ee822aac6542026558e757364 /net/djbdnscurve6
parent108967d9cfbad651c41e4cc58e98caab25afc75e (diff)
downloadpkgsrc-8c3113ffe10e89e457fd323dbeaeb0fbade742bb.tar.gz
Initial import of djbdnscurve6, a fork of djbdns combining
- IPv6 capabilities based on fehQlibs allowing the use of compactified IPv6 and LLU addresses, - a CurveDNS secured query/response for dnscache based on NaCl with an adapted Matthew Dempsky patch, - including improvements for CNAME caching, and - allowing a qualification of DNS Name Servers. - rbldns supporting now IPv6 addresses. - tinydns using now compactified IPv6 addresses within the tinydns-data data file. The decrypting djbdnscurve6 stub resolver can be used as standard lib for other programs.
Diffstat (limited to 'net/djbdnscurve6')
-rw-r--r--net/djbdnscurve6/DESCR14
-rw-r--r--net/djbdnscurve6/Makefile55
-rw-r--r--net/djbdnscurve6/PLIST53
-rw-r--r--net/djbdnscurve6/distinfo9
-rw-r--r--net/djbdnscurve6/patches/patch-src_Makefile42
-rw-r--r--net/djbdnscurve6/patches/patch-src_dnscache-conf.c24
-rw-r--r--net/djbdnscurve6/patches/patch-src_hier.c15
7 files changed, 212 insertions, 0 deletions
diff --git a/net/djbdnscurve6/DESCR b/net/djbdnscurve6/DESCR
new file mode 100644
index 00000000000..1c813a6cbc1
--- /dev/null
+++ b/net/djbdnscurve6/DESCR
@@ -0,0 +1,14 @@
+djbdnscurve6 is a fork of djbdns combining
+
+- IPv6 capabilities based on fehQlibs allowing the use of compactified
+ IPv6 and LLU addresses,
+- a CurveDNS secured query/response for dnscache based on NaCl with an
+ adapted Matthew Dempsky patch,
+- including improvements for CNAME caching, and
+- allowing a qualification of DNS Name Servers.
+- rbldns supporting now IPv6 addresses.
+- tinydns using now compactified IPv6 addresses within the tinydns-data
+ data file.
+
+The decrypting djbdnscurve6 stub resolver can be used as standard lib
+for other programs.
diff --git a/net/djbdnscurve6/Makefile b/net/djbdnscurve6/Makefile
new file mode 100644
index 00000000000..91b94a58085
--- /dev/null
+++ b/net/djbdnscurve6/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2019/01/05 06:20:19 schmonz Exp $
+
+DISTNAME= djbdnscurve6-33
+CATEGORIES= net
+MASTER_SITES= https://www.fehcom.de/ipnet/djbdnscurve6/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= https://www.fehcom.de/ipnet/djbdnscurve6.html
+COMMENT= Fork of djbdns with IPv6 and DNSCurve support
+#LICENSE= # TODO: (see mk/license.mk)
+
+CONFLICTS+= djbdns-[0-9]*
+
+WRKSRC= ${WRKDIR}/net/${PKGBASE}/${DISTNAME}
+DJB_SLASHPACKAGE= yes
+DJB_RESTRICTED= no
+
+DJB_CONFIG_DIR= ${WRKSRC}
+
+SUBST_CLASSES+= etc
+SUBST_STAGE.etc= do-configure
+SUBST_FILES.etc= src/dns_rcrw.c man/qualification.5
+SUBST_SED.etc= -e 's|/etc/dnsrewrite|${PKG_SYSCONFBASE}/dnsrewrite|g'
+SUBST_MESSAGE.etc= Fixing prefix.
+
+SUBST_CLASSES+= sysconfdir
+SUBST_STAGE.sysconfdir= do-configure
+SUBST_FILES.sysconfdir= src/dnscache-conf.c
+SUBST_SED.sysconfdir= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
+SUBST_MESSAGE.sysconfdir=Fixing sysconfdir.
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES+= ${EGDIR}/dnsroots.global ${PKG_SYSCONFDIR}/dnsroots.global
+BUILD_DEFS+= PKG_SYSCONFBASE
+
+INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 \
+ share/examples/${PKGBASE}
+
+.include "../../mk/bsd.prefs.mk"
+
+CFLAGS+= -I${PREFIX}/include/qlibs
+LDFLAGS+= -L${PREFIX}/lib/qlibs
+
+do-install:
+ cd ${WRKSRC}/compile && ./install && ./instcheck
+ cd ${WRKSRC}/man; for i in 1 5 8; do \
+ for j in *.$$i; do ${INSTALL_MAN} $$j \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man$$i; done \
+ done
+
+.include "../../net/fehqlibs/buildlink3.mk"
+.include "../../security/nacl/buildlink3.mk"
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/djbdnscurve6/PLIST b/net/djbdnscurve6/PLIST
new file mode 100644
index 00000000000..8e7b6efaceb
--- /dev/null
+++ b/net/djbdnscurve6/PLIST
@@ -0,0 +1,53 @@
+@comment $NetBSD: PLIST,v 1.1 2019/01/05 06:20:19 schmonz Exp $
+bin/axfr-get
+bin/axfrdns
+bin/axfrdns-conf
+bin/dnscache
+bin/dnscache-conf
+bin/dnsfilter
+bin/dnsip
+bin/dnsipq
+bin/dnsmx
+bin/dnsname
+bin/dnsq
+bin/dnsqr
+bin/dnstrace
+bin/dnstracesort
+bin/dnstxt
+bin/rbldns
+bin/rbldns-conf
+bin/rbldns-data
+bin/tinydns
+bin/tinydns-conf
+bin/tinydns-data
+bin/tinydns-edit
+bin/tinydns-get
+bin/walldns
+bin/walldns-conf
+man/man1/dnsfilter.1
+man/man1/dnsip.1
+man/man1/dnsipq.1
+man/man1/dnsmx.1
+man/man1/dnsname.1
+man/man1/dnsq.1
+man/man1/dnsqr.1
+man/man1/dnstrace.1
+man/man1/dnstxt.1
+man/man5/dnscache-log.5
+man/man5/qualification.5
+man/man5/tinydns-log.5
+man/man8/axfr-get.8
+man/man8/axfrdns-conf.8
+man/man8/axfrdns.8
+man/man8/dnscache-conf.8
+man/man8/dnscache.8
+man/man8/rbldns-conf.8
+man/man8/rbldns-data.8
+man/man8/rbldns.8
+man/man8/tinydns-conf.8
+man/man8/tinydns-data.8
+man/man8/tinydns-edit.8
+man/man8/tinydns.8
+man/man8/walldns-conf.8
+man/man8/walldns.8
+share/examples/djbdnscurve6/dnsroots.global
diff --git a/net/djbdnscurve6/distinfo b/net/djbdnscurve6/distinfo
new file mode 100644
index 00000000000..b5d1463262b
--- /dev/null
+++ b/net/djbdnscurve6/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2019/01/05 06:20:19 schmonz Exp $
+
+SHA1 (djbdnscurve6-33.tgz) = f40a81ebf7552741db206ff105f3f0e213ce18f3
+RMD160 (djbdnscurve6-33.tgz) = c5b9f39b7a9fa22638e3806921565adf0b6608d0
+SHA512 (djbdnscurve6-33.tgz) = aace4ee42a72a96dedd2b85515c3dbeba5815cf81e60cb066febec97720ff06c3878f3b2949af90d7c714c15c25d74d2632d2dc09d749cd4086f5bb48604a7ea
+Size (djbdnscurve6-33.tgz) = 112640 bytes
+SHA1 (patch-src_Makefile) = 92e5e5503db30f63a30a9903cdc8cb6f9f9fab2c
+SHA1 (patch-src_dnscache-conf.c) = 890bbdf7f803bd0bb0a9371d0a82298b091117eb
+SHA1 (patch-src_hier.c) = 3aa4172b384b4b3e5ad5621ec790d64892fe71b6
diff --git a/net/djbdnscurve6/patches/patch-src_Makefile b/net/djbdnscurve6/patches/patch-src_Makefile
new file mode 100644
index 00000000000..f4bdb1bb409
--- /dev/null
+++ b/net/djbdnscurve6/patches/patch-src_Makefile
@@ -0,0 +1,42 @@
+$NetBSD: patch-src_Makefile,v 1.1 2019/01/05 06:20:19 schmonz Exp $
+
+DESTDIR support.
+
+--- src/Makefile.orig 2018-08-10 07:57:14.000000000 +0000
++++ src/Makefile
+@@ -12,6 +12,14 @@ auto-str.o: \
+ compile auto-str.c
+ ./compile auto-str.c
+
++auto_destdir.c: \
++auto-str ../conf-destdir
++ ./auto-str auto_home `head -1 ../conf-destdir` > auto_destdir.c
++
++auto_destdir.o: \
++compile auto_destdir.c
++ ./compile auto_destdir.c
++
+ auto_home.c: \
+ auto-str ../conf-home
+ ./auto-str auto_home `head -1 ../conf-home` > auto_home.c
+@@ -259,16 +267,16 @@ compile hier.c auto_home.h
+ ./compile hier.c
+
+ install: \
+-load install.o hier.o auto_home.o
+- ./load install hier.o auto_home.o
++load install.o hier.o auto_destdir.o
++ ./load install hier.o auto_destdir.o
+
+ install.o: \
+ compile install.c
+ ./compile install.c
+
+ instcheck: \
+-load instcheck.o hier.o auto_home.o
+- ./load instcheck hier.o auto_home.o
++load instcheck.o hier.o auto_destdir.o
++ ./load instcheck hier.o auto_destdir.o
+
+ instcheck.o: \
+ compile instcheck.c
diff --git a/net/djbdnscurve6/patches/patch-src_dnscache-conf.c b/net/djbdnscurve6/patches/patch-src_dnscache-conf.c
new file mode 100644
index 00000000000..3a3a147eaed
--- /dev/null
+++ b/net/djbdnscurve6/patches/patch-src_dnscache-conf.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_dnscache-conf.c,v 1.1 2019/01/05 06:20:19 schmonz Exp $
+
+PKG_SYSCONFDIR support.
+
+--- src/dnscache-conf.c.orig 2018-08-06 09:49:44.000000000 +0000
++++ src/dnscache-conf.c
+@@ -88,13 +88,13 @@ int main(int argc,char **argv)
+ if (chdir(auto_home) == -1)
+ logmsg(WHO,111,FATAL,B("unable to switch to: ",auto_home));
+
+- fdrootservers = open_read("/etc/dnsroots.local");
++ fdrootservers = open_read("@PKG_SYSCONFDIR@/dnsroots.local");
+ if (fdrootservers == -1) {
+ if (errno != ENOENT)
+- logmsg(WHO,111,FATAL,"unable to open /etc/dnsroots.local");
+- fdrootservers = open_read("/etc/dnsroots.global");
++ logmsg(WHO,111,FATAL,"unable to open @PKG_SYSCONFDIR@/dnsroots.local");
++ fdrootservers = open_read("@PKG_SYSCONFDIR@/dnsroots.global");
+ if (fdrootservers == -1)
+- logmsg(WHO,111,FATAL,"unable to open /etc/dnsroots.global");
++ logmsg(WHO,111,FATAL,"unable to open @PKG_SYSCONFDIR@/dnsroots.global");
+ }
+
+ init(dir,WHO);
diff --git a/net/djbdnscurve6/patches/patch-src_hier.c b/net/djbdnscurve6/patches/patch-src_hier.c
new file mode 100644
index 00000000000..73616b5bbcf
--- /dev/null
+++ b/net/djbdnscurve6/patches/patch-src_hier.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_hier.c,v 1.1 2019/01/05 06:20:19 schmonz Exp $
+
+PKG_SYSCONFDIR support.
+
+--- src/hier.c.orig 2018-02-20 19:34:32.000000000 +0000
++++ src/hier.c
+@@ -6,7 +6,7 @@ extern void c(const char* home,const cha
+
+ void hier()
+ {
+- c("/","etc","dnsroots.global",-1,-1,0644);
++ c(auto_home,"share/examples/djbdnscurve6","dnsroots.global",-1,-1,0644);
+
+ h(auto_home,-1,-1,02755);
+ d(auto_home,"bin",-1,-1,02755);