summaryrefslogtreecommitdiff
path: root/dns/mydns
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2002-08-05 23:35:09 +0000
committerAnders Nordby <anders@FreeBSD.org>2002-08-05 23:35:09 +0000
commit58143feaad2a780814ff3b726514885217b17146 (patch)
tree15db8da0216076886d78bee6c0b4a1f2d8473834 /dns/mydns
parentCorrect manpage packaging problem. (diff)
Add mydns, the MySQL DNS server.
PR: 41132 Submitted by: Simon Dick <simond@irrelevant.org>
Notes
Notes: svn path=/head/; revision=64079
Diffstat (limited to 'dns/mydns')
-rw-r--r--dns/mydns/Makefile53
-rw-r--r--dns/mydns/distinfo1
-rw-r--r--dns/mydns/files/mydns.sh16
-rw-r--r--dns/mydns/files/patch-Makefile.in10
-rw-r--r--dns/mydns/files/patch-mydns.texi14
-rw-r--r--dns/mydns/pkg-comment1
-rw-r--r--dns/mydns/pkg-descr10
-rw-r--r--dns/mydns/pkg-message6
-rw-r--r--dns/mydns/pkg-plist50
9 files changed, 161 insertions, 0 deletions
diff --git a/dns/mydns/Makefile b/dns/mydns/Makefile
new file mode 100644
index 000000000000..b2c78dda31a7
--- /dev/null
+++ b/dns/mydns/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: mydns
+# Date created: 23 July 2002
+# Whom: Simon Dick <simond@irrelevant.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mydns
+PORTVERSION= 0.8.2
+CATEGORIES= net databases
+MASTER_SITES= http://mydns.bboy.net/download/
+
+MAINTAINER= simond@irrelevant.org
+
+LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-confdir=${PREFIX}/etc --without-libiconv-prefix
+USE_BZIP2= yes
+USE_REINPLACE= yes
+
+MAN5= mydns.conf.5
+MAN8= mydns.8
+
+DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART README TODO
+
+.include <bsd.port.pre.mk>
+
+.if !defined(NOPORTDOCS)
+USE_PERL5= yes
+.else
+pre-configure:
+ @${REINPLACE_CMD} -E -e "s|^(all: vars manpages info) html-doc|\1|" \
+ ${WRKSRC}/doc/Makefile.in
+.endif
+
+post-install:
+ @${SED} 's|%%%PREFIX%%%|${PREFIX}|g' < ${FILESDIR}/mydns.sh > ${WRKSRC}/mydns.sh
+ @${INSTALL_SCRIPT} ${WRKSRC}/mydns.sh ${PREFIX}/etc/rc.d/mydns.sh.sample
+ @install-info ${PREFIX}/info/mydns.info ${PREFIX}/info/dir
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d -m 0755 ${DOCSDIR}/html ${DOCSDIR}/extras
+.for f in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+.endfor
+ @${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}/html/
+ @${INSTALL_DATA} ${WRKSRC}/extras/admin.php ${DOCSDIR}/extras/
+ @${INSTALL_DATA} ${WRKSRC}/extras/README ${DOCSDIR}/extras/
+.endif
+ @${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
+ @${SED} -e 's,%%%PREFIX%%%,${PREFIX},g' ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/dns/mydns/distinfo b/dns/mydns/distinfo
new file mode 100644
index 000000000000..25aad4dd37c6
--- /dev/null
+++ b/dns/mydns/distinfo
@@ -0,0 +1 @@
+MD5 (mydns-0.8.2.tar.bz2) = bf30c311b3adf70e7f9598819e0a49e8
diff --git a/dns/mydns/files/mydns.sh b/dns/mydns/files/mydns.sh
new file mode 100644
index 000000000000..493a4356d676
--- /dev/null
+++ b/dns/mydns/files/mydns.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ %%%PREFIX%%%/sbin/mydns -b
+ ;;
+ stop)
+ kill `cat /var/run/mydns.pid`
+ ;;
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ exit 64
+ ;;
+esac
diff --git a/dns/mydns/files/patch-Makefile.in b/dns/mydns/files/patch-Makefile.in
new file mode 100644
index 000000000000..5553c90a1d8c
--- /dev/null
+++ b/dns/mydns/files/patch-Makefile.in
@@ -0,0 +1,10 @@
+--- Makefile.in.orig Mon Jul 29 21:37:45 2002
++++ Makefile.in Mon Jul 29 21:38:30 2002
+@@ -440,7 +440,6 @@
+
+ install-data-am:
+ @$(NORMAL_INSTALL)
+- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+
+ install-exec-am:
+
diff --git a/dns/mydns/files/patch-mydns.texi b/dns/mydns/files/patch-mydns.texi
new file mode 100644
index 000000000000..993b60f1ca29
--- /dev/null
+++ b/dns/mydns/files/patch-mydns.texi
@@ -0,0 +1,14 @@
+--- doc/mydns.texi.orig Fri Aug 2 10:30:21 2002
++++ doc/mydns.texi Mon Aug 5 23:59:29 2002
+@@ -11,6 +11,11 @@
+ @paragraphindent 0
+ @c %**end of header
+
++@dircategory Miscellaneous
++@direntry
++* mydns: (mydns). The MySQL based DNS-server.
++@end direntry
++
+ @ifinfo
+ This is the manual for MyDNS (version @value{PKGVERSION}, @value{PKGDATE}), a MySQL-based DNS server package.
+ @value{PKGCOPYRIGHT}
diff --git a/dns/mydns/pkg-comment b/dns/mydns/pkg-comment
new file mode 100644
index 000000000000..59c49d2ee94d
--- /dev/null
+++ b/dns/mydns/pkg-comment
@@ -0,0 +1 @@
+DNS server designed to utilize the MySQL database
diff --git a/dns/mydns/pkg-descr b/dns/mydns/pkg-descr
new file mode 100644
index 000000000000..7f796dd2c625
--- /dev/null
+++ b/dns/mydns/pkg-descr
@@ -0,0 +1,10 @@
+MyDNS is a free DNS server for UNIX implemented from scratch and
+designed to utilize the MySQL database for data storage.
+
+Its primary objectives are stability, security, interoperability,
+and speed, though not necessarily in that order.
+
+MyDNS does not include recursive name service, nor a resolver library.
+It is primarily designed for organizations with many zones and/or
+resource records who desire the ability to perform real-time dynamic
+updates on their DNS data via MySQL.
diff --git a/dns/mydns/pkg-message b/dns/mydns/pkg-message
new file mode 100644
index 000000000000..4725319d3311
--- /dev/null
+++ b/dns/mydns/pkg-message
@@ -0,0 +1,6 @@
+To get MyDNS working you will need to do some configuration, first you
+will need to create %%%PREFIX%%%/etc/mydns.conf based on the
+installed sample file. Following that you will need to setup your
+database tables, you can use the output of
+%%%PREFIX%%%/sbin/mydns --create-tables
+as a template.
diff --git a/dns/mydns/pkg-plist b/dns/mydns/pkg-plist
new file mode 100644
index 000000000000..228378468194
--- /dev/null
+++ b/dns/mydns/pkg-plist
@@ -0,0 +1,50 @@
+etc/mydns.conf.sample
+etc/rc.d/mydns.sh.sample
+@unexec install-info --delete %D/info/mydns.info %D/info/dir
+info/mydns.info
+@exec install-info %D/info/mydns.info %D/info/dir
+sbin/mydns
+%%PORTDOCS%%share/doc/mydns/AUTHORS
+%%PORTDOCS%%share/doc/mydns/COPYING
+%%PORTDOCS%%share/doc/mydns/ChangeLog
+%%PORTDOCS%%share/doc/mydns/NEWS
+%%PORTDOCS%%share/doc/mydns/QUICKSTART
+%%PORTDOCS%%share/doc/mydns/README
+%%PORTDOCS%%share/doc/mydns/TODO
+%%PORTDOCS%%share/doc/mydns/extras/README
+%%PORTDOCS%%share/doc/mydns/extras/admin.php
+%%PORTDOCS%%share/doc/mydns/html/mydns.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_1.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_10.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_11.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_12.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_13.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_14.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_15.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_16.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_17.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_18.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_19.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_2.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_20.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_21.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_22.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_23.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_24.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_25.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_26.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_27.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_28.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_3.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_4.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_5.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_6.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_7.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_8.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_9.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_abt.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_ovr.html
+%%PORTDOCS%%share/doc/mydns/html/mydns_toc.html
+%%PORTDOCS%%@dirrm share/doc/mydns/html
+%%PORTDOCS%%@dirrm share/doc/mydns/extras
+%%PORTDOCS%%@dirrm share/doc/mydns