Bug 41132

Summary: New port: net/mydns
Product: Ports & Packages Reporter: simond
Component: Individual Port(s)Assignee: Anders Nordby <anders>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.shar
none
mydns.shar none

Description simond 2002-07-29 21:50:01 UTC
New port for MyDNS, obsoletes pr ports/41113
Comment 1 simond 2002-08-02 19:58:56 UTC
Updated port for MyDNS 0.8.2 enclosed

-- 
Simon Dick					simond@irrelevant.org
Comment 2 simond 2002-08-02 20:07:20 UTC
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 <simond@irrelevant.org>
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 <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/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
Comment 3 simond 2002-08-02 20:36:21 UTC
Fix for submitted shar archive

--- pkg-plist.orig	Fri Aug  2 20:34:18 2002
+++ pkg-plist	Fri Aug  2 20:34:22 2002
@@ -1,6 +1,4 @@
 etc/mydns.conf.sample
 etc/rc.d/mydns.sh.sample
 info/mydns.info
-lib/charset.alias
 sbin/mydns
-share/locale/locale.alias
Comment 4 Anders Nordby freebsd_committer freebsd_triage 2002-08-05 20:09:57 UTC
Responsible Changed
From-To: freebsd-ports->anders

I'll handle this.
Comment 5 Anders Nordby freebsd_committer freebsd_triage 2002-08-06 00:35:27 UTC
State Changed
From-To: open->closed

Committed (with some modifications), thanks!