Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2002 21:46:21 +0100
From:      Simon Dick <simond@irrelevant.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/41132: New port: net/mydns
Message-ID:  <E17ZHPJ-0008R1-00@nelly.internal.irrelevant.org>

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

>Number:         41132
>Category:       ports
>Synopsis:       New port: net/mydns
>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:   Mon Jul 29 13:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Simon Dick
>Release:        FreeBSD 4.6-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD nelly.internal.irrelevant.org 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 #0: Sat Jun 29 15:30:22 BST 2002 root@nelly.internal.irrelevant.org:/usr/obj/usr/src/sys/ELEPHANT i386


	
>Description:

New port for MyDNS, obsoletes pr ports/41113

>How-To-Repeat:
>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:
#
#	mydns
#	mydns/Makefile
#	mydns/pkg-comment
#	mydns/pkg-descr
#	mydns/files
#	mydns/files/patch-aa
#	mydns/files/mydns.sh
#	mydns/files/patch-ab
#	mydns/distinfo
#	mydns/pkg-plist
#	mydns/pkg-message
#
echo c - mydns
mkdir -p mydns > /dev/null 2>&1
echo x - mydns/Makefile
sed 's/^X//' >mydns/Makefile << 'END-of-mydns/Makefile'
X# New ports collection makefile for:	mydns
X# Date created:				23 July 2002
X# Whom:					Simon Dick <simond@irrelevant.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mydns
XPORTVERSION=	0.8.1
XCATEGORIES=	net databases
XMASTER_SITES=	http://mydns.bboy.net/download/
X
XMAINTAINER=	simond@irrelevant.org
X
XLIB_DEPENDS=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--with-confdir=${PREFIX}/etc
XUSE_BZIP2=	yes
X
XMAN5=		mydns.conf.5
XMAN8=		mydns.8
X
Xpost-install:
X	@${SED} 's|%%%PREFIX%%%|${PREFIX}|g' < ${FILESDIR}/mydns.sh > ${WRKSRC}/mydns.sh
X	@${CP} ${WRKSRC}/mydns.sh ${PREFIX}/etc/rc.d/mydns.sh.sample
X	@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
X	@${SED} -e 's,%%%PREFIX%%%,${PREFIX},g' ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mydns/Makefile
echo x - mydns/pkg-comment
sed 's/^X//' >mydns/pkg-comment << 'END-of-mydns/pkg-comment'
XDNS server designed to utilize the MySQL database
END-of-mydns/pkg-comment
echo x - mydns/pkg-descr
sed 's/^X//' >mydns/pkg-descr << 'END-of-mydns/pkg-descr'
XMyDNS is a free DNS server for UNIX implemented from scratch and
Xdesigned to utilize the MySQL database for data storage.
X
XIts primary objectives are stability, security, interoperability,
Xand speed, though not necessarily in that order.
X
XMyDNS does not include recursive name service, nor a resolver library.
XIt is primarily designed for organizations with many zones and/or
Xresource records who desire the ability to perform real-time dynamic
Xupdates on their DNS data via MySQL.
END-of-mydns/pkg-descr
echo c - mydns/files
mkdir -p mydns/files > /dev/null 2>&1
echo x - mydns/files/patch-aa
sed 's/^X//' >mydns/files/patch-aa << 'END-of-mydns/files/patch-aa'
X--- src/mydns/main.c.orig	Mon Jul 29 21:00:55 2002
X+++ src/mydns/main.c	Mon Jul 29 21:02:13 2002
X@@ -293,7 +293,7 @@
X 
X 	Notice("%s", buf);
X 
X-malloc_stats(); /* XXX */
X+/*malloc_stats();*/ /* XXX */
X }
X /*--- server_status() ---------------------------------------------------------------------------*/
X 
END-of-mydns/files/patch-aa
echo x - mydns/files/mydns.sh
sed 's/^X//' >mydns/files/mydns.sh << 'END-of-mydns/files/mydns.sh'
X#!/bin/sh
X
Xcase "$1" in
X	start)
X		%%%PREFIX%%%/sbin/mydns -b
X		;;
X	stop)
X		kill `cat /var/run/mydns.pid`
X		;;
X	*)
X		echo ""
X		echo "Usage: `basename $0` { start | stop }"
X		echo ""
X		exit 64
X		;;
Xesac
END-of-mydns/files/mydns.sh
echo x - mydns/files/patch-ab
sed 's/^X//' >mydns/files/patch-ab << 'END-of-mydns/files/patch-ab'
X--- Makefile.in.orig	Mon Jul 29 21:37:45 2002
X+++ Makefile.in	Mon Jul 29 21:38:30 2002
X@@ -440,7 +440,6 @@
X 
X install-data-am:
X 	@$(NORMAL_INSTALL)
X-	$(MAKE) $(AM_MAKEFLAGS) install-data-hook
X 
X install-exec-am:
X 
END-of-mydns/files/patch-ab
echo x - mydns/distinfo
sed 's/^X//' >mydns/distinfo << 'END-of-mydns/distinfo'
XMD5 (mydns-0.8.1.tar.bz2) = ddfd7d9adb1002cc3c02156049ca600f
END-of-mydns/distinfo
echo x - mydns/pkg-plist
sed 's/^X//' >mydns/pkg-plist << 'END-of-mydns/pkg-plist'
Xetc/mydns.conf.sample
Xetc/rc.d/mydns.sh.sample
Xinclude/mydns.h
Xinfo/mydns.info
Xlib/libmydns.a
Xlib/charset.alias
Xsbin/mydns
Xshare/locale/locale.alias
END-of-mydns/pkg-plist
echo x - mydns/pkg-message
sed 's/^X//' >mydns/pkg-message << 'END-of-mydns/pkg-message'
XTo get MyDNS working you will need to do some configuration, first you
Xwill need to create %%%PREFIX%%%/etc/mydns.conf based on the
Xinstalled sample file. Following that you will need to setup your
Xdatabase tables, you can use the output of
X%%%PREFIX%%%/sbin/mydns --create-tables
Xas a template.
X
END-of-mydns/pkg-message
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?E17ZHPJ-0008R1-00>