1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Add maradns 0.6.18, a DNS server implementation with focus on

security and simplicity.

PR:		27665
Submitted by:	Anders Nordby <anders@fix.no>
This commit is contained in:
Will Andrews 2001-06-11 03:44:26 +00:00
parent 895df8b766
commit 55439bf0c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43799
29 changed files with 419 additions and 0 deletions

60
dns/maradns/Makefile Normal file
View File

@ -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>

1
dns/maradns/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (maradns-0.6.18.tar.bz2) = f6be1e571b5b19960ca6b9db2cf3f987

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

1
dns/maradns/pkg-comment Normal file
View File

@ -0,0 +1 @@
A DNS server implementation with focus on security and simplicity

19
dns/maradns/pkg-descr Normal file
View File

@ -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>

23
dns/maradns/pkg-plist Normal file
View File

@ -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

View File

@ -178,6 +178,7 @@
SUBDIR += linpopup
SUBDIR += lla
SUBDIR += macipgw
SUBDIR += maradns
SUBDIR += mars_nwe
SUBDIR += merlinmon
SUBDIR += micq

60
net/maradns/Makefile Normal file
View File

@ -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>

1
net/maradns/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (maradns-0.6.18.tar.bz2) = f6be1e571b5b19960ca6b9db2cf3f987

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

1
net/maradns/pkg-comment Normal file
View File

@ -0,0 +1 @@
A DNS server implementation with focus on security and simplicity

19
net/maradns/pkg-descr Normal file
View File

@ -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>

23
net/maradns/pkg-plist Normal file
View File

@ -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