From fc8bd16a4edcabe28b5872aca44982667ff13232 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Sat, 23 Nov 2013 14:13:15 +0000 Subject: [PATCH] Add yadifa 1.0.3, YADIFA is an authoritative Name Server with DNSSEC capabilities. --- dns/Makefile | 1 + dns/yadifa/Makefile | 42 ++++++++++ dns/yadifa/distinfo | 2 + dns/yadifa/files/yadifad.in | 32 ++++++++ dns/yadifa/pkg-descr | 16 ++++ dns/yadifa/pkg-plist | 158 ++++++++++++++++++++++++++++++++++++ 6 files changed, 251 insertions(+) create mode 100644 dns/yadifa/Makefile create mode 100644 dns/yadifa/distinfo create mode 100644 dns/yadifa/files/yadifad.in create mode 100644 dns/yadifa/pkg-descr create mode 100644 dns/yadifa/pkg-plist diff --git a/dns/Makefile b/dns/Makefile index 92388d2304c6..d1d67cf8b1ab 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -165,6 +165,7 @@ SUBDIR += validns SUBDIR += vizone SUBDIR += walker + SUBDIR += yadifa SUBDIR += zkt SUBDIR += zonecheck SUBDIR += zonenotify diff --git a/dns/yadifa/Makefile b/dns/yadifa/Makefile new file mode 100644 index 000000000000..26e7f504e5c0 --- /dev/null +++ b/dns/yadifa/Makefile @@ -0,0 +1,42 @@ +# Created by: Mathieu Arnold +# $FreeBSD$ + +PORTNAME= yadifa +PORTVERSION= 1.0.3 +DISTVERSIONSUFFIX= -2880 +CATEGORIES= dns ipv6 +MASTER_SITES= http://cdn.yadifa.eu/sites/default/files/releases/ + +MAINTAINER= mat@FreeBSD.org +COMMENT= YADIFA is an authoritative Name Server with DNSSEC capabilities + +LICENSE= BSD + +OPTIONS_DEFINE= DOCS EXAMPLES TCL + +GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtool +USE_OPENSSL= yes +CONFIGURE_ARGS= --localstatedir=/var +TCL_USES= tcl +TCL_CONFIGURE_ENABLE= tcl + +USE_RC_SUBR= ${PORTNAME}d + +PORTDOCS= AUTHORS COPYING ChangeLog \ + INSTALL NEWS README TODO VERSION + +post-configure: + ${REINPLACE_CMD} -e 's|^docdir = .*|docdir = ${EXAMPLESDIR}|' ${WRKSRC}/etc/Makefile + ${REINPLACE_CMD} -e 's|/usr/local/var|/var|' -e 's|/var/zones|/var/${PORTNAME}|' ${WRKSRC}/etc/yadifad.conf.example + +.include + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} +.endif + @${MV} ${STAGEDIR}/var/zones ${STAGEDIR}/var/${PORTNAME} + +.include diff --git a/dns/yadifa/distinfo b/dns/yadifa/distinfo new file mode 100644 index 000000000000..24c278db976b --- /dev/null +++ b/dns/yadifa/distinfo @@ -0,0 +1,2 @@ +SHA256 (yadifa-1.0.3-2880.tar.gz) = 11a841620be8a2cb882a904686e48c3c6b49877942a906edffa24130600b4ba3 +SIZE (yadifa-1.0.3-2880.tar.gz) = 2321633 diff --git a/dns/yadifa/files/yadifad.in b/dns/yadifa/files/yadifad.in new file mode 100644 index 000000000000..7f00e12e343c --- /dev/null +++ b/dns/yadifa/files/yadifad.in @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: yadifad +# REQUIRE: SERVERS cleanvar +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable yadifad: +# +# yadifad_enable="YES" +# # optional +# yadifad_config="%%PREFIX%%/etc/yadifad.conf" + +. /etc/rc.subr + +name=yadifad +rcvar=yadifad_enable + +load_rc_config ${name} + +: ${yadifad_enable:="NO"} +: ${yadifad_config="%%PREFIX%%/etc/yadifad.conf"} + +command=%%PREFIX%%/sbin/${name} +procname=%%PREFIX%%/sbin/${name} +pidfile=/var/run/${name}.pid + +command_args="-c ${yadifad_config} -d" +required_files=${yadifad_config} + +run_rc_command "$1" diff --git a/dns/yadifa/pkg-descr b/dns/yadifa/pkg-descr new file mode 100644 index 000000000000..95fa02058b01 --- /dev/null +++ b/dns/yadifa/pkg-descr @@ -0,0 +1,16 @@ +YADIFA is a lightweight authoritative Name Server with DNSSEC capabilities. +Developed by the passionate people behind the .eu top-level domain, YADIFA has +been built from scratch to face today?s DNS challenges, with no compromise on +security, speed and stability, to offer a better and safer Internet experience. + +YADIFA has a simple configuration syntax and can handle more queries per second +while maintaining one of the lowest memory footprints in the industry. YADIFA +also has one of the fastest zone file load times ever recorded on a name +server. + +YADIFA was developed on FreeBSD and a GNU/Linux. It works on OSX and will be +soon ported to other Unix flavours like OpenBSD and Solaris. A Microsoft +Windows version is also on the cards. + + +WWW: http://www.yadifa.eu/ diff --git a/dns/yadifa/pkg-plist b/dns/yadifa/pkg-plist new file mode 100644 index 000000000000..d1cf20342cfe --- /dev/null +++ b/dns/yadifa/pkg-plist @@ -0,0 +1,158 @@ +@unexec if cmp -s %D/etc/yadifad.conf.sample %D/etc/yadifad.conf; then rm -f %D/etc/yadifad.conf; fi +etc/yadifad.conf.example +@exec if [ ! -f %D/etc/yadifad.conf ] ; then cp -p %D/%F %B/yadifad.conf; fi +include/dnscore/alarm.h +include/dnscore/avl.c.inc +include/dnscore/avl.h.inc +include/dnscore/base16.h +include/dnscore/base32.h +include/dnscore/base32hex.h +include/dnscore/base64.h +include/dnscore/buffer_input_stream.h +include/dnscore/buffer_output_stream.h +include/dnscore/bytearray_output_stream.h +include/dnscore/clone_input_output_stream.h +include/dnscore/counter_output_stream.h +include/dnscore/ctrl-rfc.h +include/dnscore/debug.h +include/dnscore/debug_config.h +include/dnscore/dnscore-config.h +include/dnscore/dnscore.h +include/dnscore/dnsformat.h +include/dnscore/dnsname.h +include/dnscore/dnsname_set.h +include/dnscore/fdtools.h +include/dnscore/file_input_stream.h +include/dnscore/file_output_stream.h +include/dnscore/filter_input_stream.h +include/dnscore/fingerprint.h +include/dnscore/format.h +include/dnscore/host_address.h +include/dnscore/input_stream.h +include/dnscore/io_stream.h +include/dnscore/logger.h +include/dnscore/logger_channel.h +include/dnscore/logger_channel_file.h +include/dnscore/logger_channel_stream.h +include/dnscore/logger_channel_syslog.h +include/dnscore/logger_handle.h +include/dnscore/message.h +include/dnscore/mt_output_stream.h +include/dnscore/mutex.h +include/dnscore/network.h +include/dnscore/output_stream.h +include/dnscore/packet_reader.h +include/dnscore/packet_writer.h +include/dnscore/parsing.h +include/dnscore/print_stream.h +include/dnscore/ptr_vector.h +include/dnscore/random.h +include/dnscore/rdtsc.h +include/dnscore/rfc.h +include/dnscore/scheduler.h +include/dnscore/serial.h +include/dnscore/string_set.h +include/dnscore/sys_error.h +include/dnscore/sys_get_cpu_count.h +include/dnscore/sys_types.h +include/dnscore/tcp_io_stream.h +include/dnscore/thread_pool.h +include/dnscore/threaded_nb_mm.h +include/dnscore/threaded_nbrb.h +include/dnscore/threaded_queue.h +include/dnscore/threaded_ringbuffer.h +include/dnscore/threaded_ringbuffer_cw.h +include/dnscore/threaded_ringlist.h +include/dnscore/timems.h +include/dnscore/treeset.h +include/dnscore/tsig.h +include/dnscore/typebitmap.h +include/dnscore/u32_set.h +include/dnscore/xfr_copy.h +include/dnscore/zonefile_reader.h +include/dnsdb/avl.h +include/dnsdb/btree.h +include/dnsdb/dictionary.h +include/dnsdb/dnsdb-config.h +include/dnsdb/dnskey.h +include/dnsdb/dnsrdata.h +include/dnsdb/dnssec.h +include/dnsdb/dnssec_config.h +include/dnsdb/dnssec_dsa.h +include/dnsdb/dnssec_keystore.h +include/dnsdb/dnssec_rsa.h +include/dnsdb/dnssec_scheduler.h +include/dnsdb/dnssec_task.h +include/dnsdb/dynupdate.h +include/dnsdb/hash.h +include/dnsdb/htable.h +include/dnsdb/htbt.h +include/dnsdb/icmtl_input_stream.h +include/dnsdb/nsec.h +include/dnsdb/nsec3.h +include/dnsdb/nsec3_collection.h +include/dnsdb/nsec3_hash.h +include/dnsdb/nsec3_icmtl.h +include/dnsdb/nsec3_item.h +include/dnsdb/nsec3_load.h +include/dnsdb/nsec3_name_error.h +include/dnsdb/nsec3_nodata_error.h +include/dnsdb/nsec3_owner.h +include/dnsdb/nsec3_types.h +include/dnsdb/nsec3_update.h +include/dnsdb/nsec3_zone.h +include/dnsdb/nsec_collection.h +include/dnsdb/nsec_common.h +include/dnsdb/rrsig.h +include/dnsdb/zdb.h +include/dnsdb/zdb_alloc.h +include/dnsdb/zdb_config.h +include/dnsdb/zdb_dnsname.h +include/dnsdb/zdb_error.h +include/dnsdb/zdb_icmtl.h +include/dnsdb/zdb_listener.h +include/dnsdb/zdb_record.h +include/dnsdb/zdb_rr_label.h +include/dnsdb/zdb_sanitize.h +include/dnsdb/zdb_store.h +include/dnsdb/zdb_types.h +include/dnsdb/zdb_utils.h +include/dnsdb/zdb_zone.h +include/dnsdb/zdb_zone_label.h +include/dnsdb/zdb_zone_label_iterator.h +include/dnsdb/zdb_zone_load.h +include/dnsdb/zdb_zone_load_interface.h +include/dnsdb/zdb_zone_write.h +include/dnsdb/zonefile.h +include/dnszone/dnszone-config.h +include/dnszone/dnszone.h +include/dnszone/output_stream_write_rdata.h +include/dnszone/resourcerecord.h +include/dnszone/zone_axfr_reader.h +include/dnszone/zone_file_reader.h +lib/libdnscore.a +lib/libdnscore.la +lib/libdnsdb.a +lib/libdnsdb.la +lib/libdnszone.a +lib/libdnszone.la +man/man1/yadifad.1.gz +man/man5/yadifad.conf.5.gz +sbin/yadifad +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yadifad-master.conf.example +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yadifad-slave.conf.example +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/yadifad.conf.example +/var/yadifa/masters/0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa.zone +/var/yadifa/masters/0.0.127.in-addr.arpa.zone +/var/yadifa/masters/localhost.zone +/var/yadifa/masters/localhost6.zone +/var/yadifa/masters/somedomain.eu.zone +@unexec rmdir >/dev/null 2>&1 /var/yadifa/xfr || : +@unexec rmdir >/dev/null 2>&1 /var/yadifa/slaves || : +@unexec rmdir >/dev/null 2>&1 /var/yadifa/masters || : +@unexec rmdir >/dev/null 2>&1 /var/yadifa/keys || : +@unexec rmdir >/dev/null 2>&1 /var/yadifa || : +@dirrmtry %%PORTEXAMPLES%%%%EXAMPLESDIR%% +@dirrmtry include/dnszone +@dirrmtry include/dnsdb +@dirrmtry include/dnscore