# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	knot-resolver
#	knot-resolver/distinfo
#	knot-resolver/pkg-descr
#	knot-resolver/Makefile
#	knot-resolver/pkg-plist
#	knot-resolver/files
#	knot-resolver/files/patch-daemon_daemon.mk
#	knot-resolver/files/patch-lib_lib.mk
#	knot-resolver/files/patch-platform.mk
#	knot-resolver/files/patch-lib_nsrep.h
#	knot-resolver/files/pkg-message.in
#	knot-resolver/files/patch-lib_resolve.h
#
echo c - knot-resolver
mkdir -p knot-resolver > /dev/null 2>&1
echo x - knot-resolver/distinfo
sed 's/^X//' >knot-resolver/distinfo << 'de2845719f309a29913c290370991a92'
XTIMESTAMP = 1472151881
XSHA256 (knot-resolver-1.1.1.tar.xz) = f848f6dd2c7a2c1a5067d3bd95dacb752d1f3d8dc9d5ccc0c34a4540d00ab54a
XSIZE (knot-resolver-1.1.1.tar.xz) = 661612
de2845719f309a29913c290370991a92
echo x - knot-resolver/pkg-descr
sed 's/^X//' >knot-resolver/pkg-descr << 'de59ec55a68b8b053c0fa8625a4ee3eb'
XThe Knot DNS Resolver is a caching full resolver implementation,
Xincluding both a resolver library and a daemon.
X
XWWW: https://www.knot-resolver.cz/
de59ec55a68b8b053c0fa8625a4ee3eb
echo x - knot-resolver/Makefile
sed 's/^X//' >knot-resolver/Makefile << 'a52e463ad9b04720955c310f5fe2da14'
X# Created by: Leo Vandewoestijne <freebsd@dns-lab.com>
X# $FreeBSD: $
X
XPORTNAME=	knot-resolver
XPORTVERSION=	1.1.1
XCATEGORIES=	dns ipv6
XMASTER_SITES=	https://secure.nic.cz/files/knot-resolver/ \
X		https://dns.company/downloads/knot-resolver/
X
XMAINTAINER=	freebsd@dns-lab.com
XCOMMENT=	Caching full resolver implementation
X
XLICENSE=	GPLv3
X
XLIB_DEPENDS=	libknot.so:dns/knot2 \
X		liblmdb.so:databases/lmdb \
X		libluajit-5.1.so:lang/luajit \
X		libuv.so:devel/libuv \
X		libgnutls.so:security/gnutls \
X		libnettle.so:security/nettle
X
XCONFLICTS=	knot-1.* knot1-[0-6].*
X
XMAKE_ARGS+=	PREFIX=${PREFIX}
XMAKE_ARGS+=	PKG_CONFIG_PATH=${LOCALBASE}/libdata/pkgconfig
XMAKE_ARGS+=	lmdb_CFLAGS=-I${LOCALBASE}/include lmdb_LIBS=-llmdb
X
XUSES=		gmake libtool pkgconfig tar:xz
XUSE_CSTD=	c99
XUSE_LDCONFIG=	${PREFIX}/lib
X
XOPTIONS_DEFINE=			DOXYGEN MEMCACHED REDIS
XOPTIONS_DEFAULT=
XDOXYGEN_BUILD_DEPENDS=		doxygen:devel/doxygen
XMEMCACHED_DESC=			memcached in-memory data-backend
XMEMCACHED_LIB_DEPENDS=		libmemcached.so:databases/libmemcached
XMEMCACHED_CONFIGURE_WITH=	libmemcached
XREDIS_DESC=			redis in-memory data-backend
XREDIS_LIB_DEPENDS=		libhiredis.so:databases/hiredis
XREDIS_CONFIGURE_WITH=		libhiredis
X
XUSERS=		knot
XGROUPS=		knot
XSUB_LIST+=	USERS="${USERS}" GROUPS="${GROUPS}"
X
XSUB_FILES=	pkg-message
X
XPORTDOCS=	AUTHORS COPYING CodingStyle README.md
X
Xpost-install:
X	@${MKDIR} ${STAGEDIR}${DOCSDIR}
X	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
X	${INSTALL_DATA} ${WRKSRC}/daemon/README.rst ${DOCSDIR}/
X
X.include <bsd.port.mk>
a52e463ad9b04720955c310f5fe2da14
echo x - knot-resolver/pkg-plist
sed 's/^X//' >knot-resolver/pkg-plist << '26215eb3bc25cb3e77d7f6ddebd38dbc'
X/usr/lib/kdns_modules/aho-corasick.lua
X/usr/lib/kdns_modules/cookies.so
X/usr/lib/kdns_modules/daf.lua
X/usr/lib/kdns_modules/daf/daf.js
X/usr/lib/kdns_modules/dns64.lua
X/usr/lib/kdns_modules/graphite.lua
X/usr/lib/kdns_modules/hints.so
X/usr/lib/kdns_modules/http.lua
X/usr/lib/kdns_modules/http/LICENSE
X/usr/lib/kdns_modules/http/bootstrap-theme.min.css
X/usr/lib/kdns_modules/http/bootstrap.min.css
X/usr/lib/kdns_modules/http/bootstrap.min.js
X/usr/lib/kdns_modules/http/d3.js
X/usr/lib/kdns_modules/http/datamaps.world.min.js
X/usr/lib/kdns_modules/http/dygraph-combined.js
X/usr/lib/kdns_modules/http/epoch.css
X/usr/lib/kdns_modules/http/epoch.js
X/usr/lib/kdns_modules/http/favicon.ico
X/usr/lib/kdns_modules/http/glyphicons-halflings-regular.woff2
X/usr/lib/kdns_modules/http/h2_connection.lua
X/usr/lib/kdns_modules/http/h2_stream.lua
X/usr/lib/kdns_modules/http/jquery.js
X/usr/lib/kdns_modules/http/kresd.css
X/usr/lib/kdns_modules/http/kresd.js
X/usr/lib/kdns_modules/http/main.tpl
X/usr/lib/kdns_modules/http/selectize.bootstrap3.min.css
X/usr/lib/kdns_modules/http/selectize.min.css
X/usr/lib/kdns_modules/http/selectize.min.js
X/usr/lib/kdns_modules/http/server.lua
X/usr/lib/kdns_modules/http/topojson.js
X/usr/lib/kdns_modules/ketcd.lua
X/usr/lib/kdns_modules/kmemcached.so
X/usr/lib/kdns_modules/kres.lua
X/usr/lib/kdns_modules/policy.lua
X/usr/lib/kdns_modules/predict.lua
X/usr/lib/kdns_modules/prometheus.lua
X/usr/lib/kdns_modules/redis.so
X/usr/lib/kdns_modules/renumber.lua
X/usr/lib/kdns_modules/stats.so
X/usr/lib/kdns_modules/trust_anchors.lua
X/usr/lib/kdns_modules/view.lua
X/usr/lib/kdns_modules/zonefile.lua
X/usr/lib/libkres.so
X/usr/lib/libkres.so.1
Xetc/kresd/config.cluster
Xetc/kresd/config.isp
Xetc/kresd/config.personal
Xetc/kresd/config.splitview
Xetc/kresd/icann-ca.pem
Xinclude/libkres/alg_containers.h
Xinclude/libkres/alg_sha.h
Xinclude/libkres/array.h
Xinclude/libkres/cache.h
Xinclude/libkres/cdb.h
Xinclude/libkres/cdb_lmdb.h
Xinclude/libkres/control.h
Xinclude/libkres/dnssec.h
Xinclude/libkres/helper.h
Xinclude/libkres/layer.h
Xinclude/libkres/lru_cache.h
Xinclude/libkres/map.h
Xinclude/libkres/module.h
Xinclude/libkres/nonce.h
Xinclude/libkres/nsec.h
Xinclude/libkres/nsec3.h
Xinclude/libkres/nsrep.h
Xinclude/libkres/resolve.h
Xinclude/libkres/rplan.h
Xinclude/libkres/set.h
Xinclude/libkres/signature.h
Xinclude/libkres/ta.h
Xinclude/libkres/utils.h
Xinclude/libkres/zonecut.h
Xlibdata/pkgconfig/libkres.pc
Xman/man8/kresd.8.gz
Xsbin/kresd
X@dir /usr/lib/kdns_modules/daf
X@dir /usr/lib/kdns_modules/http
X@dir /usr/lib/kdns_modules
X@dir /usr/local/libdata/pkgconfig
26215eb3bc25cb3e77d7f6ddebd38dbc
echo c - knot-resolver/files
mkdir -p knot-resolver/files > /dev/null 2>&1
echo x - knot-resolver/files/patch-daemon_daemon.mk
sed 's/^X//' >knot-resolver/files/patch-daemon_daemon.mk << 'c193d73e14a6f4f8890794a045db70c9'
X--- daemon/daemon.mk.orig	2016-08-24 12:05:47 UTC
X+++ daemon/daemon.mk
X@@ -46,8 +46,8 @@ daemon: $(kresd)
X daemon-install: kresd-install bindings-install
X ifneq ($(SED),)
X 	$(SED) -e "s/@VERSION@/$(MAJOR).$(MINOR).$(PATCH)/" -e "s/@DATE@/$(date)/" doc/kresd.8.in > doc/kresd.8
X-	$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/man/man8/
X-	$(INSTALL) -m 0644 doc/kresd.8 $(DESTDIR)$(PREFIX)/share/man/man8/
X+	$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/man/man8/
X+	$(INSTALL) -m 0644 doc/kresd.8 $(DESTDIR)$(PREFIX)/man/man8/
X endif
X daemon-clean: kresd-clean
X 	@$(RM) daemon/lua/*.inc
c193d73e14a6f4f8890794a045db70c9
echo x - knot-resolver/files/patch-lib_lib.mk
sed 's/^X//' >knot-resolver/files/patch-lib_lib.mk << '7f2bdcce552d02d929488e2ffb272951'
X--- lib/lib.mk.orig	2016-08-24 12:05:47 UTC
X+++ lib/lib.mk
X@@ -83,8 +83,8 @@ libkres.pc:
X 	@echo 'Libs: -L$${libdir} -lkres' >> $@
X 	@echo 'Cflags: -I$${includedir}' >> $@
X libkres-pcinstall: libkres.pc libkres-install
X-	$(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/
X-	$(INSTALL)    -m 644 $< $(DESTDIR)$(LIBDIR)/pkgconfig/
X+	$(INSTALL) -d -m 755 $(DESTDIR)$(PKG_CONFIG_PATH)/
X+	$(INSTALL)    -m 644 $< $(DESTDIR)$(PKG_CONFIG_PATH)/
X 
X # Targets
X lib: $(libkres)
7f2bdcce552d02d929488e2ffb272951
echo x - knot-resolver/files/patch-platform.mk
sed 's/^X//' >knot-resolver/files/patch-platform.mk << '57a31ec4f6369480eb019717fe1ccf41'
X--- platform.mk.orig	2016-08-24 12:05:47 UTC
X+++ platform.mk
X@@ -49,7 +49,6 @@ else
X             BINFLAGS += -pie
X             LDFLAGS += -Wl,-z,relro,-z,now
X         endif
X-        LDFLAGS += -ldl
X     endif
X endif
X 
57a31ec4f6369480eb019717fe1ccf41
echo x - knot-resolver/files/patch-lib_nsrep.h
sed 's/^X//' >knot-resolver/files/patch-lib_nsrep.h << 'adcd977885b48d157bbb10bf8dc6636b'
X--- lib/nsrep.h.orig	2016-08-24 12:05:47 UTC
X+++ lib/nsrep.h
X@@ -19,6 +19,7 @@
X #include <netinet/in.h>
X #include <libknot/dname.h>
X #include <limits.h>
X+#include <sys/socket.h>
X 
X #include "lib/defines.h"
X #include "lib/generic/map.h"
adcd977885b48d157bbb10bf8dc6636b
echo x - knot-resolver/files/pkg-message.in
sed 's/^X//' >knot-resolver/files/pkg-message.in << '2f07b66a1710565ba3c29e78aca914f0'
X######################################################################
X
X  Please consult the documentation:
X   - http://knot-resolver.readthedocs.io/en/latest/
X   - man kresd
X
X  To run as daemon see:
X   - http://knot-resolver.readthedocs.io/en/latest/daemon.html
X   - %%DOCSDIR%%/README.rst (Python makeup)
X  
X######################################################################
2f07b66a1710565ba3c29e78aca914f0
echo x - knot-resolver/files/patch-lib_resolve.h
sed 's/^X//' >knot-resolver/files/patch-lib_resolve.h << '180d16c90577bb334fd752464fa6e2f5'
X--- lib/resolve.h.orig	2016-08-24 12:05:47 UTC
X+++ lib/resolve.h
X@@ -18,6 +18,7 @@
X 
X #include <netinet/in.h>
X #include <libknot/packet/pkt.h>
X+#include <sys/socket.h>
X 
X #include "lib/cookies/control.h"
X #include "lib/cookies/lru_cache.h"
180d16c90577bb334fd752464fa6e2f5
exit

