pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/djbdnscurve6



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat Jan  5 06:20:19 UTC 2019

Added Files:
        pkgsrc/net/djbdnscurve6: DESCR Makefile PLIST distinfo
        pkgsrc/net/djbdnscurve6/patches: patch-src_Makefile
            patch-src_dnscache-conf.c patch-src_hier.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/djbdnscurve6/DESCR \
    pkgsrc/net/djbdnscurve6/Makefile pkgsrc/net/djbdnscurve6/PLIST \
    pkgsrc/net/djbdnscurve6/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/djbdnscurve6/patches/patch-src_Makefile \
    pkgsrc/net/djbdnscurve6/patches/patch-src_dnscache-conf.c \
    pkgsrc/net/djbdnscurve6/patches/patch-src_hier.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/net/djbdnscurve6/DESCR
diff -u /dev/null pkgsrc/net/djbdnscurve6/DESCR:1.1
--- /dev/null   Sat Jan  5 06:20:19 2019
+++ pkgsrc/net/djbdnscurve6/DESCR       Sat Jan  5 06:20:19 2019
@@ -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.
Index: pkgsrc/net/djbdnscurve6/Makefile
diff -u /dev/null pkgsrc/net/djbdnscurve6/Makefile:1.1
--- /dev/null   Sat Jan  5 06:20:19 2019
+++ pkgsrc/net/djbdnscurve6/Makefile    Sat Jan  5 06:20:19 2019
@@ -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"
Index: pkgsrc/net/djbdnscurve6/PLIST
diff -u /dev/null pkgsrc/net/djbdnscurve6/PLIST:1.1
--- /dev/null   Sat Jan  5 06:20:19 2019
+++ pkgsrc/net/djbdnscurve6/PLIST       Sat Jan  5 06:20:19 2019
@@ -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
Index: pkgsrc/net/djbdnscurve6/distinfo
diff -u /dev/null pkgsrc/net/djbdnscurve6/distinfo:1.1
--- /dev/null   Sat Jan  5 06:20:19 2019
+++ pkgsrc/net/djbdnscurve6/distinfo    Sat Jan  5 06:20:19 2019
@@ -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

Index: pkgsrc/net/djbdnscurve6/patches/patch-src_Makefile
diff -u /dev/null pkgsrc/net/djbdnscurve6/patches/patch-src_Makefile:1.1
--- /dev/null   Sat Jan  5 06:20:19 2019
+++ pkgsrc/net/djbdnscurve6/patches/patch-src_Makefile  Sat Jan  5 06:20:19 2019
@@ -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 
Index: pkgsrc/net/djbdnscurve6/patches/patch-src_dnscache-conf.c
diff -u /dev/null pkgsrc/net/djbdnscurve6/patches/patch-src_dnscache-conf.c:1.1
--- /dev/null   Sat Jan  5 06:20:19 2019
+++ pkgsrc/net/djbdnscurve6/patches/patch-src_dnscache-conf.c   Sat Jan  5 06:20:19 2019
@@ -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);
Index: pkgsrc/net/djbdnscurve6/patches/patch-src_hier.c
diff -u /dev/null pkgsrc/net/djbdnscurve6/patches/patch-src_hier.c:1.1
--- /dev/null   Sat Jan  5 06:20:19 2019
+++ pkgsrc/net/djbdnscurve6/patches/patch-src_hier.c    Sat Jan  5 06:20:19 2019
@@ -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