From owner-freebsd-ports Fri Aug 2 12:10:15 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4456137B400 for ; Fri, 2 Aug 2002 12:10:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAD5C43E42 for ; Fri, 2 Aug 2002 12:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g72JA4JU088556 for ; Fri, 2 Aug 2002 12:10:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g72JA499088555; Fri, 2 Aug 2002 12:10:04 -0700 (PDT) Date: Fri, 2 Aug 2002 12:10:04 -0700 (PDT) Message-Id: <200208021910.g72JA499088555@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Simon Dick Subject: Re: ports/41132: New port: net/mydns Reply-To: Simon Dick Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/41132; it has been noted by GNATS. From: Simon Dick To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/41132: New port: net/mydns Date: Fri, 2 Aug 2002 20:07:20 +0100 On Fri, Aug 02, 2002 at 07:58:56PM +0100, Simon Dick wrote: > Updated port for MyDNS 0.8.2 enclosed This time I won't mime encode the attachment. # 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/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 X# X# $FreeBSD$ X# X XPORTNAME= mydns XPORTVERSION= 0.8.2 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 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/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.2.tar.bz2) = bf30c311b3adf70e7f9598819e0a49e8 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 Xinfo/mydns.info 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message