pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/djbdnscurve6 Initial import of djbdnscurve6, a for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/09f206af8c3c
branches:  trunk
changeset: 327645:09f206af8c3c
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Jan 05 06:20:19 2019 +0000

description:
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:

 net/djbdnscurve6/DESCR                             |  14 +++++
 net/djbdnscurve6/Makefile                          |  55 ++++++++++++++++++++++
 net/djbdnscurve6/PLIST                             |  53 +++++++++++++++++++++
 net/djbdnscurve6/distinfo                          |   9 +++
 net/djbdnscurve6/patches/patch-src_Makefile        |  42 ++++++++++++++++
 net/djbdnscurve6/patches/patch-src_dnscache-conf.c |  24 +++++++++
 net/djbdnscurve6/patches/patch-src_hier.c          |  15 ++++++
 7 files changed, 212 insertions(+), 0 deletions(-)

diffs (240 lines):

diff -r 4fc84ad4b675 -r 09f206af8c3c net/djbdnscurve6/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/djbdnscurve6/DESCR    Sat Jan 05 06:20:19 2019 +0000
@@ -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 -r 4fc84ad4b675 -r 09f206af8c3c net/djbdnscurve6/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/djbdnscurve6/Makefile Sat Jan 05 06:20:19 2019 +0000
@@ -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@localhost
+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 -r 4fc84ad4b675 -r 09f206af8c3c net/djbdnscurve6/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/djbdnscurve6/PLIST    Sat Jan 05 06:20:19 2019 +0000
@@ -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 -r 4fc84ad4b675 -r 09f206af8c3c net/djbdnscurve6/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/djbdnscurve6/distinfo Sat Jan 05 06:20:19 2019 +0000
@@ -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 -r 4fc84ad4b675 -r 09f206af8c3c net/djbdnscurve6/patches/patch-src_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/djbdnscurve6/patches/patch-src_Makefile       Sat Jan 05 06:20:19 2019 +0000
@@ -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 -r 4fc84ad4b675 -r 09f206af8c3c net/djbdnscurve6/patches/patch-src_dnscache-conf.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/djbdnscurve6/patches/patch-src_dnscache-conf.c        Sat Jan 05 06:20:19 2019 +0000
@@ -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 -r 4fc84ad4b675 -r 09f206af8c3c net/djbdnscurve6/patches/patch-src_hier.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/djbdnscurve6/patches/patch-src_hier.c Sat Jan 05 06:20:19 2019 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index