Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2001 21:25:38 +0200 (CEST)
From:      Anders Nordby <anders@fix.no>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27665: New port: net/maradns
Message-ID:  <20010526192538.052CC3C9D@totem.fix.no>

next in thread | raw e-mail | index | archive | help

>Number:         27665
>Category:       ports
>Synopsis:       New port: net/maradns
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 26 12:30:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Anders Nordby
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Fluxpod Information eXchange
>Environment:

kern.osreldate: 430000 (4.3-STABLE)
kern.osreldate: 500018 (5.0-20010420-CURRENT)

>Description:

New port of maradns, a DNS server implementation with focus on security and
simplicity.

>How-To-Repeat:

	<Code/input/activities to reproduce the problem (multiple lines)>

>Fix:

# 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:
#
#	maradns
#	maradns/Makefile
#	maradns/distinfo
#	maradns/pkg-comment
#	maradns/pkg-descr
#	maradns/pkg-plist
#	maradns/files
#	maradns/files/patch-server-Makefile
#	maradns/files/patch-example_mararc
#	maradns/files/patch-dns-Makefile
#	maradns/files/patch-libs-Makefile
#	maradns/files/patch-parse-Makefile
#	maradns/files/patch-test-Makefile
#	maradns/files/patch-tools-Makefile
#	maradns/files/patch-utf8-Makefile
#	maradns/files/patch-tuzona-Makefile
#
echo c - maradns
mkdir -p maradns > /dev/null 2>&1
echo x - maradns/Makefile
sed 's/^X//' >maradns/Makefile << 'END-of-maradns/Makefile'
X# New ports collection makefile for:	maradns
X# Date created:				26 May 2001
X# Whom:					Anders Nordby <anders@fix.no>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	maradns
XPORTVERSION=	0.6.18
XCATEGORIES=	net
XMASTER_SITES=	http://www.maradns.org/download/ \
X		ftp://ftp.nuug.no/pub/anders/distfiles/
X
XMAINTAINER=	anders@fix.no
X
XUSE_BZIP2=	yes
X
XMAN3=	js_alloc.3 js_append.3 js_atoi.3 js_buf_eof.3 js_buf_getline.3 \
X	js_buf_read.3 js_close.3 js_copy.3 js_create.3 js_dealloc.3 \
X	js_destroy.3 js_destroy_force.3 js_fgrep.3 js_fgrep_offset.3 \
X	js_get_encode.3 js_getline_stdin.3 js_has_sanity.3 js_insert.3 \
X	js_issame.3 js_js2str.3 js_length.3 js_lock.3 js_match.3 \
X	js_match_offset.3 js_newline_chars.3 js_nonmatch.3 \
X	js_nonmatch_offset.3 js_octets.3 js_open.3 js_open_append.3 \
X	js_open_read.3 js_open_write.3 js_qstr2js.3 js_read.3 js_set_chsize.3 \
X	js_set_encode.3 js_show_stdout.3 js_space_chars.3 js_str2js.3 \
X	js_substr.3 js_tolower.3 js_unlock.3 js_val.3 js_write.3
XMAN8=	maradns.8
X
XDOCS=	RFC1035.compliance csv1.format draft-skwan-utf8-dns-05.txt \
X	example_csv1 example_mararc faq.txt handling.compression \
X	mararc.format multiple.qdcount recursive.algorithm \
X	resolution.algorithm rfc2044.txt rtest.output www.monty.de \
X	../00QuickStart ../CHANGELOG ../ROADMAP
X
XFIXPREFIX=	00QuickStart CHANGELOG doc/man/maradns.8 doc/faq.txt \
X		parse/ParseMaraRc.c doc/example_mararc
X
Xpost-patch:
X.for f in ${FIXPREFIX}
X	${PERL} -pi -e "s@/etc/maradns@${PREFIX}/etc/maradns@g; \
X		s@/etc/mararc@${PREFIX}/etc/mararc@g" ${WRKSRC}/${f}
X.endfor
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/server/maradns ${PREFIX}/sbin/
X	${INSTALL_PROGRAM} ${WRKSRC}/tuzona/zoneserver ${PREFIX}/sbin/
X	${INSTALL_PROGRAM} ${WRKSRC}/tuzona/getzone ${PREFIX}/sbin/
X	${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${PREFIX}/bin/
X	${INSTALL_DATA} ${WRKSRC}/doc/example_mararc ${PREFIX}/etc/mararc.sample
X	${INSTALL_DATA} ${WRKSRC}/doc/man/js/* ${PREFIX}/man/man3/
X	${INSTALL_DATA} ${WRKSRC}/doc/man/maradns.8 ${PREFIX}/man/man8/
X.if !defined(NOPORTDOCS)
X	${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/share/doc/maradns
X.for f in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/doc/${f} ${PREFIX}/share/doc/maradns
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-maradns/Makefile
echo x - maradns/distinfo
sed 's/^X//' >maradns/distinfo << 'END-of-maradns/distinfo'
XMD5 (maradns-0.6.18.tar.bz2) = f6be1e571b5b19960ca6b9db2cf3f987
END-of-maradns/distinfo
echo x - maradns/pkg-comment
sed 's/^X//' >maradns/pkg-comment << 'END-of-maradns/pkg-comment'
XA DNS server implementation with focus on security and simplicity
END-of-maradns/pkg-comment
echo x - maradns/pkg-descr
sed 's/^X//' >maradns/pkg-descr << 'END-of-maradns/pkg-descr'
XMaraDNS is a DNS server with the following features:
X
X* Security-aware programming. A DNS server needs to be secure. There is a
Xnumber of security features in the code, including:
X
X	1. The code uses a special string library which is resistant to buffer
X	overflows.
X	2. The code, if started as root, mandates running as an unprivledged
X	user in a chroot() jail.
X
X* Open-Source. This DNS server is public-domain code. There are no restrictions
Xattached to this code.
X
X* Simplicity. This DNS server has the minimum number of features needed to
Xcorrectly act as an authoritative name server for a domain.
X
XWWW: http://www.maradns.org/
X
X- Anders Nordby <anders@fix.no>
END-of-maradns/pkg-descr
echo x - maradns/pkg-plist
sed 's/^X//' >maradns/pkg-plist << 'END-of-maradns/pkg-plist'
Xsbin/maradns
Xsbin/zoneserver
Xsbin/getzone
Xbin/askmara
Xetc/mararc.sample
X%%PORTDOCS%%share/doc/maradns/RFC1035.compliance
X%%PORTDOCS%%share/doc/maradns/csv1.format
X%%PORTDOCS%%share/doc/maradns/draft-skwan-utf8-dns-05.txt
X%%PORTDOCS%%share/doc/maradns/example_csv1
X%%PORTDOCS%%share/doc/maradns/example_mararc
X%%PORTDOCS%%share/doc/maradns/faq.txt
X%%PORTDOCS%%share/doc/maradns/handling.compression
X%%PORTDOCS%%share/doc/maradns/mararc.format
X%%PORTDOCS%%share/doc/maradns/multiple.qdcount
X%%PORTDOCS%%share/doc/maradns/recursive.algorithm
X%%PORTDOCS%%share/doc/maradns/resolution.algorithm
X%%PORTDOCS%%share/doc/maradns/rfc2044.txt
X%%PORTDOCS%%share/doc/maradns/rtest.output
X%%PORTDOCS%%share/doc/maradns/www.monty.de
X%%PORTDOCS%%share/doc/maradns/00QuickStart
X%%PORTDOCS%%share/doc/maradns/CHANGELOG
X%%PORTDOCS%%share/doc/maradns/ROADMAP
X%%PORTDOCS%%@dirrm share/doc/maradns
END-of-maradns/pkg-plist
echo c - maradns/files
mkdir -p maradns/files > /dev/null 2>&1
echo x - maradns/files/patch-server-Makefile
sed 's/^X//' >maradns/files/patch-server-Makefile << 'END-of-maradns/files/patch-server-Makefile'
X--- server/Makefile.old	Fri May 25 07:53:30 2001
X+++ server/Makefile	Sat May 26 19:35:07 2001
X@@ -8,7 +8,7 @@
X VERSION=0.6.18
X 
X #FLAGS = -O2 -Wall
X-FLAGS = -g -DDEBUG
X+FLAGS = -g -DDEBUG $(CFLAGS)
X 
X all: $(EXECS)
X 
X@@ -25,5 +25,5 @@
X 	cc -c $(FLAGS) -o recursive.o recursive.c 
X 
X maradns: MaraDNS.c $(OBJECTS) 
X-	cc $(FLAGS) -DVERSION=\"$(VERSION)\" -o maradns MaraDNS.c $(OBJECTS) -lpthread
X+	cc $(FLAGS) -DVERSION=\"$(VERSION)\" -o maradns MaraDNS.c $(OBJECTS) -pthread
X 
END-of-maradns/files/patch-server-Makefile
echo x - maradns/files/patch-example_mararc
sed 's/^X//' >maradns/files/patch-example_mararc << 'END-of-maradns/files/patch-example_mararc'
X--- doc/example_mararc.orig	Tue Apr 24 06:32:35 2001
X+++ doc/example_mararc	Sat May 26 20:20:04 2001
X@@ -11,7 +11,7 @@
X # The directory with all of the zone files
X chroot_dir = "/etc/maradns"
X # The numeric UID MaraDNS will run as
X-maradns_uid = 99
X+maradns_uid = 53
X # The maximum number of processes MaraDNS is allowed to use
X maxprocs = 64
X 
END-of-maradns/files/patch-example_mararc
echo x - maradns/files/patch-dns-Makefile
sed 's/^X//' >maradns/files/patch-dns-Makefile << 'END-of-maradns/files/patch-dns-Makefile'
X--- dns/Makefile.old	Sat May 26 19:32:28 2001
X+++ dns/Makefile	Sat May 26 19:32:38 2001
X@@ -4,7 +4,7 @@
X OBJECTS=$(DOBJECTS) $(JOBJS) $(MJOBJS)
X 
X #FLAGS = -O2 -Wall
X-FLAGS = -g
X+FLAGS = -g $(CFLAGS)
X 
X all: Queries.o Compress.o bobbit.o
X 
END-of-maradns/files/patch-dns-Makefile
echo x - maradns/files/patch-libs-Makefile
sed 's/^X//' >maradns/files/patch-libs-Makefile << 'END-of-maradns/files/patch-libs-Makefile'
X--- libs/Makefile.old	Sat May 26 19:34:00 2001
X+++ libs/Makefile	Sat May 26 19:34:09 2001
X@@ -1,6 +1,6 @@
X OBJECTS = JessStr.o JessStrOS.o JessStrCP.o MaraHash.o
X #FLAGS = -O2 -Wall
X-FLAGS = -g
X+FLAGS = -g $(CFLAGS)
X 
X all: tests mtest
X 
END-of-maradns/files/patch-libs-Makefile
echo x - maradns/files/patch-parse-Makefile
sed 's/^X//' >maradns/files/patch-parse-Makefile << 'END-of-maradns/files/patch-parse-Makefile'
X--- parse/Makefile.old	Sat May 26 19:34:30 2001
X+++ parse/Makefile	Sat May 26 19:34:39 2001
X@@ -6,7 +6,7 @@
X EXECS=parsetest parsetest2
X 
X #FLAGS = -O2
X-FLAGS = -g
X+FLAGS = -g $(CFLAGS)
X 
X all: $(EXECS)
X 
END-of-maradns/files/patch-parse-Makefile
echo x - maradns/files/patch-test-Makefile
sed 's/^X//' >maradns/files/patch-test-Makefile << 'END-of-maradns/files/patch-test-Makefile'
X--- test/Makefile.old	Sat May 26 19:35:54 2001
X+++ test/Makefile	Sat May 26 19:36:02 2001
X@@ -6,7 +6,7 @@
X EXECS=rtest csv1test compress.test show.charnum ipacltest
X 
X #FLAGS = -O2
X-FLAGS = -g
X+FLAGS = -g $(CFLAGS)
X 
X all: $(EXECS)
X 
END-of-maradns/files/patch-test-Makefile
echo x - maradns/files/patch-tools-Makefile
sed 's/^X//' >maradns/files/patch-tools-Makefile << 'END-of-maradns/files/patch-tools-Makefile'
X--- tools/Makefile.old	Sat May 26 19:36:24 2001
X+++ tools/Makefile	Sat May 26 19:36:29 2001
X@@ -5,7 +5,7 @@
X EXECS=askmara strip.control benchmark
X 
X #FLAGS = -O2
X-FLAGS = -g
X+FLAGS = -g $(CFLAGS)
X 
X all: $(EXECS)
X 
END-of-maradns/files/patch-tools-Makefile
echo x - maradns/files/patch-utf8-Makefile
sed 's/^X//' >maradns/files/patch-utf8-Makefile << 'END-of-maradns/files/patch-utf8-Makefile'
X--- utf8/Makefile.old	Sat May 26 19:36:51 2001
X+++ utf8/Makefile	Sat May 26 19:36:58 2001
X@@ -5,7 +5,7 @@
X EXECS=utf8test
X 
X #FLAGS = -O2
X-FLAGS = -g
X+FLAGS = -g $(CFLAGS)
X 
X all: $(EXECS)
X 
END-of-maradns/files/patch-utf8-Makefile
echo x - maradns/files/patch-tuzona-Makefile
sed 's/^X//' >maradns/files/patch-tuzona-Makefile << 'END-of-maradns/files/patch-tuzona-Makefile'
X--- tuzona/Makefile.old	Sat May 26 19:37:30 2001
X+++ tuzona/Makefile	Sat May 26 19:37:35 2001
X@@ -6,7 +6,7 @@
X EXECS=getzone zoneserver
X 
X #FLAGS = -O2
X-FLAGS = -g
X+FLAGS = -g $(CFLAGS)
X 
X all: $(EXECS)
X 
END-of-maradns/files/patch-tuzona-Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010526192538.052CC3C9D>