Index: head/dns/Makefile =================================================================== --- head/dns/Makefile (revision 551372) +++ head/dns/Makefile (revision 551373) @@ -1,241 +1,242 @@ # $FreeBSD$ # COMMENT = Domain Name Service tools SUBDIR += adns SUBDIR += adsuck SUBDIR += amass SUBDIR += ares SUBDIR += axfr2acl SUBDIR += bind-tools SUBDIR += bind9-devel SUBDIR += bind911 SUBDIR += bind916 SUBDIR += bindgraph SUBDIR += bundy SUBDIR += c-ares SUBDIR += checkdns SUBDIR += cli53 SUBDIR += coredns SUBDIR += credns SUBDIR += crossip SUBDIR += curvedns SUBDIR += ddclient SUBDIR += ddns SUBDIR += denominator SUBDIR += dhisd SUBDIR += djbdns SUBDIR += djbdns-tools SUBDIR += dlint SUBDIR += dnrd SUBDIR += dns2blackhole SUBDIR += dns2tcp SUBDIR += dns_balance SUBDIR += dnsblast SUBDIR += dnscap SUBDIR += dnscheckengine SUBDIR += dnscontrol SUBDIR += dnscrypt-proxy2 SUBDIR += dnscrypt-wrapper SUBDIR += dnsdbck SUBDIR += dnsdbq SUBDIR += dnsdist SUBDIR += dnsenum SUBDIR += dnsflood SUBDIR += dnsforwarder SUBDIR += dnshistory SUBDIR += dnsjava SUBDIR += dnsmasq SUBDIR += dnsmax-perl SUBDIR += dnsproxy SUBDIR += dnsrecon SUBDIR += dnsreflector SUBDIR += dnstable SUBDIR += dnstable-convert SUBDIR += dnstop SUBDIR += dnstracer SUBDIR += dnsutl SUBDIR += dnsviz SUBDIR += dnswalk SUBDIR += dnswall SUBDIR += doc SUBDIR += doh-proxy SUBDIR += dq SUBDIR += drool SUBDIR += dsc SUBDIR += dsp SUBDIR += dynip SUBDIR += erlang-idna SUBDIR += fastresolve SUBDIR += firedns SUBDIR += flamethrower SUBDIR += fpdns SUBDIR += gdnsd2 SUBDIR += gdnsd3 SUBDIR += gen6dns SUBDIR += getdns SUBDIR += hesiod SUBDIR += hostdb SUBDIR += idnkit SUBDIR += idnkit2 SUBDIR += inadyn SUBDIR += inadyn-mt SUBDIR += ipcheck SUBDIR += ironsides SUBDIR += kadnode SUBDIR += kf5-kdnssd SUBDIR += knock SUBDIR += knot-resolver SUBDIR += knot2 SUBDIR += knot2-lib + SUBDIR += knot3 SUBDIR += ldapdns SUBDIR += ldns SUBDIR += libasr SUBDIR += libasr-devel SUBDIR += libbind SUBDIR += libdjbdns SUBDIR += libidn SUBDIR += libidn2 SUBDIR += libnspsl SUBDIR += libpsl SUBDIR += linux-c7-libasyncns SUBDIR += mDNSResponder_nss SUBDIR += maradns SUBDIR += mdnsd SUBDIR += mydns SUBDIR += mydns-ng SUBDIR += namesilo_ddns SUBDIR += nextdns SUBDIR += noip SUBDIR += nsd SUBDIR += nslint SUBDIR += nsnotifyd SUBDIR += nsping SUBDIR += nss_mdns SUBDIR += nss_resinit SUBDIR += opendd SUBDIR += opendnssec SUBDIR += opendnssec2 SUBDIR += openresolv SUBDIR += p5-AnyEvent-CacheDNS SUBDIR += p5-AnyEvent-DNS-EtcHosts SUBDIR += p5-App-DSC-DataTool SUBDIR += p5-BIND-Conf_Parser SUBDIR += p5-BIND-Config-Parser SUBDIR += p5-DNS-Config SUBDIR += p5-DNS-EasyDNS SUBDIR += p5-DNS-Ldns SUBDIR += p5-DNS-Zone SUBDIR += p5-DNS-ZoneParse SUBDIR += p5-DSC SUBDIR += p5-Data-Validate-Domain SUBDIR += p5-IO-Async-Resolver-DNS SUBDIR += p5-Mozilla-PublicSuffix SUBDIR += p5-Net-Amazon-Route53 SUBDIR += p5-Net-Bonjour SUBDIR += p5-Net-DNS SUBDIR += p5-Net-DNS-Async SUBDIR += p5-Net-DNS-Check SUBDIR += p5-Net-DNS-Codes SUBDIR += p5-Net-DNS-Lite SUBDIR += p5-Net-DNS-Match SUBDIR += p5-Net-DNS-RR-SRV-Helper SUBDIR += p5-Net-DNS-Resolver-Mock SUBDIR += p5-Net-DNS-Resolver-Programmable SUBDIR += p5-Net-DNS-SEC SUBDIR += p5-Net-DNS-TestNS SUBDIR += p5-Net-DNS-ToolKit SUBDIR += p5-Net-DNS-Zone-Parser SUBDIR += p5-Net-DNS-ZoneFile-Fast SUBDIR += p5-Net-DNSBL-MultiDaemon SUBDIR += p5-Net-DNSBL-Statistics SUBDIR += p5-Net-DRI SUBDIR += p5-Net-Domain-ExpireDate SUBDIR += p5-Net-Domain-TLD SUBDIR += p5-Net-LibIDN SUBDIR += p5-Net-LibIDN2 SUBDIR += p5-Net-Nslookup SUBDIR += p5-Net-RBLClient SUBDIR += p5-Net-RNDC SUBDIR += p5-POE-Component-Client-DNS SUBDIR += p5-POE-Component-Client-DNS-Recursive SUBDIR += p5-POE-Component-Client-DNSBL SUBDIR += p5-POE-Component-Resolver SUBDIR += p5-POE-Component-Server-DNS SUBDIR += p5-POE-Filter-DNS-TCP SUBDIR += p5-Tie-DNS SUBDIR += p5-URBL-Prepare SUBDIR += packetq SUBDIR += pdnsd SUBDIR += pear-File_DNS SUBDIR += pear-Horde_Idna SUBDIR += pear-Net_DNS2 SUBDIR += powerdns SUBDIR += powerdns-recursor SUBDIR += public_suffix_list SUBDIR += py-adns SUBDIR += py-aiodns SUBDIR += py-cloudflare SUBDIR += py-dns SUBDIR += py-dns-lexicon SUBDIR += py-dnspython SUBDIR += py-easyzone SUBDIR += py-idna SUBDIR += py-idna_ssl SUBDIR += py-ldns SUBDIR += py-localzone SUBDIR += py-namebench SUBDIR += py-ns1-python SUBDIR += py-publicsuffix SUBDIR += py-publicsuffix2 SUBDIR += py-publicsuffixlist SUBDIR += py-py3dns SUBDIR += py-pybonjour SUBDIR += py-pycares SUBDIR += py-pydnstable SUBDIR += py-pywdns SUBDIR += py-tld SUBDIR += py-tldextract SUBDIR += qmdnsengine SUBDIR += radns SUBDIR += rbldnsd SUBDIR += rbllookup SUBDIR += rbllookup-ng SUBDIR += rdap SUBDIR += renewck SUBDIR += rpsl2acl SUBDIR += rubygem-dnsruby SUBDIR += rubygem-gitlab-net-dns SUBDIR += rubygem-google-cloud-dns SUBDIR += rubygem-idn-ruby SUBDIR += rubygem-net-dns SUBDIR += rubygem-public_suffix SUBDIR += rubygem-public_suffix_service SUBDIR += rubygem-simpleidn SUBDIR += rubygem-validates_hostname SUBDIR += rubygem-zonefile SUBDIR += samba-nsupdate SUBDIR += scavenge SUBDIR += sheerdns SUBDIR += sleuth SUBDIR += subfinder SUBDIR += tinystats SUBDIR += totd SUBDIR += udns SUBDIR += unbound SUBDIR += updatedd SUBDIR += utdns SUBDIR += validns SUBDIR += vhostcname SUBDIR += vizone SUBDIR += void-zones-tools SUBDIR += walker SUBDIR += wdns SUBDIR += whoseip SUBDIR += wrapsrv SUBDIR += yadifa SUBDIR += zkt SUBDIR += zonenotify .include Index: head/dns/knot3/Makefile =================================================================== --- head/dns/knot3/Makefile (nonexistent) +++ head/dns/knot3/Makefile (revision 551373) @@ -0,0 +1,122 @@ +# Created by: Leo Vandewoestijne +# $FreeBSD$ + +PORTNAME= knot +DISTVERSION= 3.0.0 +CATEGORIES= dns +MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ + https://dns.company/downloads/knot-dns/ +PKGNAMESUFFIX?= 3 + +MAINTAINER= freebsd@dns.company +COMMENT= High performance authoritative-only DNS server + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= autoconf>=2.65:devel/autoconf \ + gsed:textproc/gsed +LIB_DEPENDS= libgnutls.so:security/gnutls \ + liblmdb.so:databases/lmdb \ + libnghttp2.so:www/libnghttp2 + +CONFLICTS= knot-1.* knot1-[0-6].* knot2-[0-9].* + +USES= alias libtool localbase pkgconfig tar:xz + +HAS_CONFIGURE= yes +BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed +CONFIGURE_ARGS= --enable-recvmmsg=no \ + --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \ + --mandir=${MANPREFIX}/man + +.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) +CONFIGURE_ARGS+= --with-rundir=/var/run/knot \ + --with-storage=/var/db/knot +LIB_DEPENDS+= liburcu.so:sysutils/liburcu +USE_RC_SUBR= ${PORTNAME} +#PLIST_FILES= etc/rc.d/${PORTNAME} +SUB_FILES= pkg-message +USES+= libedit +.endif + +.if defined(UTILS_ONLY) || defined(LIB_ONLY) +CONFIGURE_ARGS+= --disable-daemon \ + --disable-modules +.endif + +.if defined(LIB_ONLY) +CONFIGURE_ARGS+= --disable-utilities +.endif + +USE_LDCONFIG= yes +INSTALL_TARGET= install-strip + +USERS= knot +GROUPS= knot +SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}" + +PORTDOCS= COPYING NEWS + +OPTIONS_DEFINE= DNSTAP DOCS + +.if !defined(LIB_ONLY) +OPTIONS_DEFINE+= IDN +.endif + +.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) +OPTIONS_DEFINE+= FASTPARSER MAXMINDDB +.endif + +DNSTAP_DESC= dnstap support (see dnstap.info) +DNSTAP_CONFIGURE_ENABLE= dnstap +DNSTAP_CONFIGURE_WITH= module-dnstap=yes +DNSTAP_LIB_DEPENDS= libprotobuf-c.so:devel/protobuf-c \ + libfstrm.so:devel/fstrm + +# XXX: because `kdig_CPPFLAGS += $(DNSTAP_CFLAGS)' line is missing from +# `src/Makefile.am' file (and thus pre-generated `src/Makefile.in') which +# should contain "$libfstrm_CFLAGS $libprotobuf_c_CFLAGS" set by configure +# script, provide it here explicitly as patching those files would result +# in higher line count. Ideally this bug should be fixed upstream. +DNSTAP_CPPFLAGS= -I${LOCALBASE}/include + +DOCS_CONFIGURE_OFF= --disable-documentation + +FASTPARSER_DESC= Fast zone parser (demanding compilation) +FASTPARSER_CONFIGURE_ENABLE= fastparser + +IDN_CONFIGURE_WITH= libidn +IDN_CONFIGURE_OFF= --without-libidn +#IDN_LIB_DEPENDS= libidn2.so:dns/libidn2 + +MAXMINDDB_DESC= Enable MaxMind for geodb module +MAXMINDDB_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb +MAXMINDDB_CONFIGURE_ENABLE= maxminddb + +.include + +.if ${ARCH} == i386 +USES+= autoreconf +EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-configure.ac +.endif + +post-patch: +.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) + @${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@run_dir\@|' \ + ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} 's|$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|#$$(INSTALL) -d $$(DESTDIR)/\@storage_dir\@|' \ + ${WRKSRC}/src/Makefile.in + @${RM} -r ${WRKSRC}/src/zscanner/scanner.c +.endif + +post-install: +.if !defined(UTILS_ONLY) && !defined(LIB_ONLY) + ${MV} ${STAGEDIR}${ETCDIR}/knot.sample.conf \ + ${STAGEDIR}${ETCDIR}/knot.conf.sample + @${MKDIR} ${STAGEDIR}/var/run/knot ${STAGEDIR}/var/db/knot +.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ + +.include Property changes on: head/dns/knot3/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/dns/knot3/distinfo =================================================================== --- head/dns/knot3/distinfo (nonexistent) +++ head/dns/knot3/distinfo (revision 551373) @@ -0,0 +1,3 @@ +TIMESTAMP = 1600167854 +SHA256 (knot-3.0.0.tar.xz) = f1c96aff6e873a2f9b1b8c2441d5a7801dd48d3abdb738a4d24b26c2a8fbe6c4 +SIZE (knot-3.0.0.tar.xz) = 1329064 Property changes on: head/dns/knot3/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/dns/knot3/files/knot.in =================================================================== --- head/dns/knot3/files/knot.in (nonexistent) +++ head/dns/knot3/files/knot.in (revision 551373) @@ -0,0 +1,118 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: knot +# REQUIRE: SERVERS cleanvar +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable knot: +# +# knot_enable="YES": Set to NO by default. +# Set it to YES to enable knot. +# knot_config="": Set to %%PREFIX%%/etc/knot/knot.conf +# by default. +# +# ----------------------------------------------------------------------------- +# +# This script supports running multiple instances of knot. +# To run additional instances link this script to something like +# % ln -s knot knot_foo +# and define additional knot_foo_* variables in one of +# /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/knot_foo +# +# Below NAME should be substituted with the name of this script. By default +# it is knot, so read as knot_enable. If you linked the script to +# knot_foo, then read as knot_foo_enable etc. +# +# The following variables are supported (defaults are shown). +# You can place them in any of +# /etc/rc.conf, /etc/rc.conf.local or /etc/rc.conf.d/NAME +# +# NAME_enable="NO" # set to YES to enable knot +# +# # optional: +# NAME_config="%%PREFIX%%/etc/knot/NAME.conf" # (-c)onfig file +# NAME_config="db:/var/db/knot/confdb" # (-C)onfig database +# NAME_diruser="%%USERS%%" # /var/db/NAME and /var/run/NAME are created if they +# NAME_dirgroup="%%GROUPS%%" # don't exist. These don't control the user/group knot +# # runs as, the config file has a setting for that. +# +# You also need to set the rundir directive in the server section of the +# config file to /var/run/NAME (if using a NAME other than the default) +# and you will want the storage directive(s) declared in the zone section +# to point to /var/db/NAME overriding the default of /var/db/knot. +# +# For further documentation, please see knot.conf(5). + +. /etc/rc.subr + +case "$0" in +/etc/rc*) + # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), + # so get the name of the script from $_file + name="$_file" + ;; +*) + name="$0" + ;; +esac + +name="${name##*/}" +rcvar=${name}_enable + +load_rc_config ${name} + +eval ": \${${name}_enable:=\"NO\"}" +eval ": \${${name}_diruser:=\"%%USERS%%\"}" +eval ": \${${name}_dirgroup:=\"%%GROUPS%%\"}" +eval ": \${${name}_config:=\"%%PREFIX%%/etc/knot/${name}.conf\"}" + +configfile="$(eval echo \${${name}_config})" +diruser="$(eval echo \${${name}_diruser})" +dirgroup="$(eval echo \${${name}_dirgroup})" + +command=%%PREFIX%%/sbin/knotd +case "$configfile" in +db:*) + config_args="-C ${configfile#db:}" + ;; +*) + config_args="-c ${configfile}" + ;; +esac +command_args="${config_args} -d" +control="%%PREFIX%%/sbin/knotc" +pidfile="/var/run/${name}/knot.pid" + +case "$configfile" in +db:*) + required_files=${configfile#db:}/data.mdb + ;; +*) + required_files=${configfile} + ;; +esac + +extra_commands=reload +reload_cmd="knot_reload" +start_precmd="knot_prestart" + +knot_prestart() +{ + if [ ! -d /var/run/${name} ]; then + install -d -o ${diruser} -g ${dirgroup} /var/run/${name} + fi + if [ ! -d /var/db/${name} ]; then + install -d -o ${diruser} -g ${dirgroup} /var/db/${name} + fi + ${control} ${config_args} conf-check +} + +knot_reload() +{ + echo "Reloading ${name}." + ${control} ${config_args} reload +} + +run_rc_command "$1" Property changes on: head/dns/knot3/files/knot.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/dns/knot3/files/pkg-message.in =================================================================== --- head/dns/knot3/files/pkg-message.in (nonexistent) +++ head/dns/knot3/files/pkg-message.in (revision 551373) @@ -0,0 +1,21 @@ +[ +{ type: install + message: <