summaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-06-11 03:44:26 +0000
committerwill <will@FreeBSD.org>2001-06-11 03:44:26 +0000
commit9ed008f4ad5127057d95e8397c71e85ef25bee75 (patch)
treef3c3d7d31c597395270e02b2ed6709309484604b /dns
parent26d056a81af4c329fec483ef6cc40407186b47f9 (diff)
downloadFreeBSD-ports-9ed008f4ad5127057d95e8397c71e85ef25bee75.zip
FreeBSD-ports-9ed008f4ad5127057d95e8397c71e85ef25bee75.tar.gz
Add maradns 0.6.18, a DNS server implementation with focus on
security and simplicity. PR: 27665 Submitted by: Anders Nordby <anders@fix.no>
Diffstat (limited to 'dns')
-rw-r--r--dns/maradns/Makefile60
-rw-r--r--dns/maradns/distinfo1
-rw-r--r--dns/maradns/files/patch-dns-Makefile11
-rw-r--r--dns/maradns/files/patch-example_mararc11
-rw-r--r--dns/maradns/files/patch-libs-Makefile10
-rw-r--r--dns/maradns/files/patch-parse-Makefile11
-rw-r--r--dns/maradns/files/patch-server-Makefile18
-rw-r--r--dns/maradns/files/patch-test-Makefile11
-rw-r--r--dns/maradns/files/patch-tools-Makefile11
-rw-r--r--dns/maradns/files/patch-tuzona-Makefile11
-rw-r--r--dns/maradns/files/patch-utf8-Makefile11
-rw-r--r--dns/maradns/pkg-comment1
-rw-r--r--dns/maradns/pkg-descr19
-rw-r--r--dns/maradns/pkg-plist23
14 files changed, 209 insertions, 0 deletions
diff --git a/dns/maradns/Makefile b/dns/maradns/Makefile
new file mode 100644
index 0000000..93e5c43
--- /dev/null
+++ b/dns/maradns/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: maradns
+# Date created: 26 May 2001
+# Whom: Anders Nordby <anders@fix.no>
+#
+# $FreeBSD$
+#
+
+PORTNAME= maradns
+PORTVERSION= 0.6.18
+CATEGORIES= net
+MASTER_SITES= http://www.maradns.org/download/ \
+ ftp://ftp.nuug.no/pub/anders/distfiles/
+
+MAINTAINER= anders@fix.no
+
+USE_BZIP2= yes
+
+MAN3= js_alloc.3 js_append.3 js_atoi.3 js_buf_eof.3 js_buf_getline.3 \
+ js_buf_read.3 js_close.3 js_copy.3 js_create.3 js_dealloc.3 \
+ js_destroy.3 js_destroy_force.3 js_fgrep.3 js_fgrep_offset.3 \
+ js_get_encode.3 js_getline_stdin.3 js_has_sanity.3 js_insert.3 \
+ js_issame.3 js_js2str.3 js_length.3 js_lock.3 js_match.3 \
+ js_match_offset.3 js_newline_chars.3 js_nonmatch.3 \
+ js_nonmatch_offset.3 js_octets.3 js_open.3 js_open_append.3 \
+ js_open_read.3 js_open_write.3 js_qstr2js.3 js_read.3 js_set_chsize.3 \
+ js_set_encode.3 js_show_stdout.3 js_space_chars.3 js_str2js.3 \
+ js_substr.3 js_tolower.3 js_unlock.3 js_val.3 js_write.3
+MAN8= maradns.8
+
+DOCS= RFC1035.compliance csv1.format draft-skwan-utf8-dns-05.txt \
+ example_csv1 example_mararc faq.txt handling.compression \
+ mararc.format multiple.qdcount recursive.algorithm \
+ resolution.algorithm rfc2044.txt rtest.output www.monty.de \
+ ../00QuickStart ../CHANGELOG ../ROADMAP
+
+FIXPREFIX= 00QuickStart CHANGELOG doc/man/maradns.8 doc/faq.txt \
+ parse/ParseMaraRc.c doc/example_mararc
+
+post-patch:
+.for f in ${FIXPREFIX}
+ ${PERL} -pi -e "s@/etc/maradns@${PREFIX}/etc/maradns@g; \
+ s@/etc/mararc@${PREFIX}/etc/mararc@g" ${WRKSRC}/${f}
+.endfor
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/server/maradns ${PREFIX}/sbin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/tuzona/zoneserver ${PREFIX}/sbin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/tuzona/getzone ${PREFIX}/sbin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/doc/example_mararc ${PREFIX}/etc/mararc.sample
+ ${INSTALL_DATA} ${WRKSRC}/doc/man/js/* ${PREFIX}/man/man3/
+ ${INSTALL_DATA} ${WRKSRC}/doc/man/maradns.8 ${PREFIX}/man/man8/
+.if !defined(NOPORTDOCS)
+ ${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/share/doc/maradns
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${PREFIX}/share/doc/maradns
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/dns/maradns/distinfo b/dns/maradns/distinfo
new file mode 100644
index 0000000..83fee49
--- /dev/null
+++ b/dns/maradns/distinfo
@@ -0,0 +1 @@
+MD5 (maradns-0.6.18.tar.bz2) = f6be1e571b5b19960ca6b9db2cf3f987
diff --git a/dns/maradns/files/patch-dns-Makefile b/dns/maradns/files/patch-dns-Makefile
new file mode 100644
index 0000000..ab78350
--- /dev/null
+++ b/dns/maradns/files/patch-dns-Makefile
@@ -0,0 +1,11 @@
+--- dns/Makefile.old Sat May 26 19:32:28 2001
++++ dns/Makefile Sat May 26 19:32:38 2001
+@@ -4,7 +4,7 @@
+ OBJECTS=$(DOBJECTS) $(JOBJS) $(MJOBJS)
+
+ #FLAGS = -O2 -Wall
+-FLAGS = -g
++FLAGS = -g $(CFLAGS)
+
+ all: Queries.o Compress.o bobbit.o
+
diff --git a/dns/maradns/files/patch-example_mararc b/dns/maradns/files/patch-example_mararc
new file mode 100644
index 0000000..066b04e
--- /dev/null
+++ b/dns/maradns/files/patch-example_mararc
@@ -0,0 +1,11 @@
+--- doc/example_mararc.orig Tue Apr 24 06:32:35 2001
++++ doc/example_mararc Sat May 26 20:20:04 2001
+@@ -11,7 +11,7 @@
+ # The directory with all of the zone files
+ chroot_dir = "/etc/maradns"
+ # The numeric UID MaraDNS will run as
+-maradns_uid = 99
++maradns_uid = 53
+ # The maximum number of processes MaraDNS is allowed to use
+ maxprocs = 64
+
diff --git a/dns/maradns/files/patch-libs-Makefile b/dns/maradns/files/patch-libs-Makefile
new file mode 100644
index 0000000..c45f262
--- /dev/null
+++ b/dns/maradns/files/patch-libs-Makefile
@@ -0,0 +1,10 @@
+--- libs/Makefile.old Sat May 26 19:34:00 2001
++++ libs/Makefile Sat May 26 19:34:09 2001
+@@ -1,6 +1,6 @@
+ OBJECTS = JessStr.o JessStrOS.o JessStrCP.o MaraHash.o
+ #FLAGS = -O2 -Wall
+-FLAGS = -g
++FLAGS = -g $(CFLAGS)
+
+ all: tests mtest
+
diff --git a/dns/maradns/files/patch-parse-Makefile b/dns/maradns/files/patch-parse-Makefile
new file mode 100644
index 0000000..c3e78b5
--- /dev/null
+++ b/dns/maradns/files/patch-parse-Makefile
@@ -0,0 +1,11 @@
+--- parse/Makefile.old Sat May 26 19:34:30 2001
++++ parse/Makefile Sat May 26 19:34:39 2001
+@@ -6,7 +6,7 @@
+ EXECS=parsetest parsetest2
+
+ #FLAGS = -O2
+-FLAGS = -g
++FLAGS = -g $(CFLAGS)
+
+ all: $(EXECS)
+
diff --git a/dns/maradns/files/patch-server-Makefile b/dns/maradns/files/patch-server-Makefile
new file mode 100644
index 0000000..40da0f1
--- /dev/null
+++ b/dns/maradns/files/patch-server-Makefile
@@ -0,0 +1,18 @@
+--- server/Makefile.old Fri May 25 07:53:30 2001
++++ server/Makefile Sat May 26 19:35:07 2001
+@@ -8,7 +8,7 @@
+ VERSION=0.6.18
+
+ #FLAGS = -O2 -Wall
+-FLAGS = -g -DDEBUG
++FLAGS = -g -DDEBUG $(CFLAGS)
+
+ all: $(EXECS)
+
+@@ -25,5 +25,5 @@
+ cc -c $(FLAGS) -o recursive.o recursive.c
+
+ maradns: MaraDNS.c $(OBJECTS)
+- cc $(FLAGS) -DVERSION=\"$(VERSION)\" -o maradns MaraDNS.c $(OBJECTS) -lpthread
++ cc $(FLAGS) -DVERSION=\"$(VERSION)\" -o maradns MaraDNS.c $(OBJECTS) -pthread
+
diff --git a/dns/maradns/files/patch-test-Makefile b/dns/maradns/files/patch-test-Makefile
new file mode 100644
index 0000000..da03656
--- /dev/null
+++ b/dns/maradns/files/patch-test-Makefile
@@ -0,0 +1,11 @@
+--- test/Makefile.old Sat May 26 19:35:54 2001
++++ test/Makefile Sat May 26 19:36:02 2001
+@@ -6,7 +6,7 @@
+ EXECS=rtest csv1test compress.test show.charnum ipacltest
+
+ #FLAGS = -O2
+-FLAGS = -g
++FLAGS = -g $(CFLAGS)
+
+ all: $(EXECS)
+
diff --git a/dns/maradns/files/patch-tools-Makefile b/dns/maradns/files/patch-tools-Makefile
new file mode 100644
index 0000000..8d4e627
--- /dev/null
+++ b/dns/maradns/files/patch-tools-Makefile
@@ -0,0 +1,11 @@
+--- tools/Makefile.old Sat May 26 19:36:24 2001
++++ tools/Makefile Sat May 26 19:36:29 2001
+@@ -5,7 +5,7 @@
+ EXECS=askmara strip.control benchmark
+
+ #FLAGS = -O2
+-FLAGS = -g
++FLAGS = -g $(CFLAGS)
+
+ all: $(EXECS)
+
diff --git a/dns/maradns/files/patch-tuzona-Makefile b/dns/maradns/files/patch-tuzona-Makefile
new file mode 100644
index 0000000..e39dd18
--- /dev/null
+++ b/dns/maradns/files/patch-tuzona-Makefile
@@ -0,0 +1,11 @@
+--- tuzona/Makefile.old Sat May 26 19:37:30 2001
++++ tuzona/Makefile Sat May 26 19:37:35 2001
+@@ -6,7 +6,7 @@
+ EXECS=getzone zoneserver
+
+ #FLAGS = -O2
+-FLAGS = -g
++FLAGS = -g $(CFLAGS)
+
+ all: $(EXECS)
+
diff --git a/dns/maradns/files/patch-utf8-Makefile b/dns/maradns/files/patch-utf8-Makefile
new file mode 100644
index 0000000..367b07f
--- /dev/null
+++ b/dns/maradns/files/patch-utf8-Makefile
@@ -0,0 +1,11 @@
+--- utf8/Makefile.old Sat May 26 19:36:51 2001
++++ utf8/Makefile Sat May 26 19:36:58 2001
+@@ -5,7 +5,7 @@
+ EXECS=utf8test
+
+ #FLAGS = -O2
+-FLAGS = -g
++FLAGS = -g $(CFLAGS)
+
+ all: $(EXECS)
+
diff --git a/dns/maradns/pkg-comment b/dns/maradns/pkg-comment
new file mode 100644
index 0000000..1c53d10
--- /dev/null
+++ b/dns/maradns/pkg-comment
@@ -0,0 +1 @@
+A DNS server implementation with focus on security and simplicity
diff --git a/dns/maradns/pkg-descr b/dns/maradns/pkg-descr
new file mode 100644
index 0000000..84e451e
--- /dev/null
+++ b/dns/maradns/pkg-descr
@@ -0,0 +1,19 @@
+MaraDNS is a DNS server with the following features:
+
+* Security-aware programming. A DNS server needs to be secure. There is a
+number of security features in the code, including:
+
+ 1. The code uses a special string library which is resistant to buffer
+ overflows.
+ 2. The code, if started as root, mandates running as an unprivledged
+ user in a chroot() jail.
+
+* Open-Source. This DNS server is public-domain code. There are no restrictions
+attached to this code.
+
+* Simplicity. This DNS server has the minimum number of features needed to
+correctly act as an authoritative name server for a domain.
+
+WWW: http://www.maradns.org/
+
+- Anders Nordby <anders@fix.no>
diff --git a/dns/maradns/pkg-plist b/dns/maradns/pkg-plist
new file mode 100644
index 0000000..f5dc817
--- /dev/null
+++ b/dns/maradns/pkg-plist
@@ -0,0 +1,23 @@
+sbin/maradns
+sbin/zoneserver
+sbin/getzone
+bin/askmara
+etc/mararc.sample
+%%PORTDOCS%%share/doc/maradns/RFC1035.compliance
+%%PORTDOCS%%share/doc/maradns/csv1.format
+%%PORTDOCS%%share/doc/maradns/draft-skwan-utf8-dns-05.txt
+%%PORTDOCS%%share/doc/maradns/example_csv1
+%%PORTDOCS%%share/doc/maradns/example_mararc
+%%PORTDOCS%%share/doc/maradns/faq.txt
+%%PORTDOCS%%share/doc/maradns/handling.compression
+%%PORTDOCS%%share/doc/maradns/mararc.format
+%%PORTDOCS%%share/doc/maradns/multiple.qdcount
+%%PORTDOCS%%share/doc/maradns/recursive.algorithm
+%%PORTDOCS%%share/doc/maradns/resolution.algorithm
+%%PORTDOCS%%share/doc/maradns/rfc2044.txt
+%%PORTDOCS%%share/doc/maradns/rtest.output
+%%PORTDOCS%%share/doc/maradns/www.monty.de
+%%PORTDOCS%%share/doc/maradns/00QuickStart
+%%PORTDOCS%%share/doc/maradns/CHANGELOG
+%%PORTDOCS%%share/doc/maradns/ROADMAP
+%%PORTDOCS%%@dirrm share/doc/maradns
OpenPOWER on IntegriCloud