pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/mydns-pgsql Import mydns-pgsql from pkgsrc-wip. P...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6bb6e639d199
branches:  trunk
changeset: 501816:6bb6e639d199
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sat Oct 29 16:56:15 2005 +0000

description:
Import mydns-pgsql from pkgsrc-wip.  Packaged by Geert Hendrickx, and
slightly modified by me.

MyDNS is a free DNS server for UNIX.  It was implemented from scratch
and is designed to serve records directly from an SQL database
(currently either MySQL or PostgreSQL).

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.

MyDNS starts and is ready to answer questions immediately, no matter
how much DNS data you have in the database.  It is very fast and
memory- efficient.  It includes complete documentation, including a
manual and a FAQ.

MyDNS supports a few frills, including round robin DNS, dynamic load
balancing, and outgoing AXFR for non-MyDNS nameservers.

MyDNS is licensed under the GNU General Public License.

This package provides the PostgreSQL-based version.

diffstat:

 net/mydns-pgsql/DESCR            |  23 +++++++++++++++++++++++
 net/mydns-pgsql/MESSAGE          |  11 +++++++++++
 net/mydns-pgsql/Makefile         |  13 +++++++++++++
 net/mydns-pgsql/Makefile.common  |  39 +++++++++++++++++++++++++++++++++++++++
 net/mydns-pgsql/PLIST            |  21 +++++++++++++++++++++
 net/mydns-pgsql/distinfo         |   6 ++++++
 net/mydns-pgsql/files/mydns.sh   |  27 +++++++++++++++++++++++++++
 net/mydns-pgsql/patches/patch-aa |  15 +++++++++++++++
 8 files changed, 155 insertions(+), 0 deletions(-)

diffs (187 lines):

diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/DESCR     Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,23 @@
+MyDNS is a free DNS server for UNIX.  It was implemented from scratch
+and is designed to serve records directly from an SQL database
+(currently either MySQL or PostgreSQL).
+
+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.
+
+MyDNS starts and is ready to answer questions immediately, no matter
+how much DNS data you have in the database.  It is very fast and
+memory- efficient.  It includes complete documentation, including a
+manual and a FAQ.
+
+MyDNS supports a few frills, including round robin DNS, dynamic load
+balancing, and outgoing AXFR for non-MyDNS nameservers.
+
+MyDNS is licensed under the GNU General Public License.
+
+This package provides the PostgreSQL-based version.
diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/MESSAGE   Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
+
+MyDNS uses two tables in a PostgreSQL database: "soa" and "rr" (you can
+change this in ${PKG_SYSCONFDIR}/mydns.conf if you want).  MyDNS can give the
+commands to generate these tables:
+
+  ${PREFIX}/sbin/mydns --create-tables
+
+You can pipe the output right into the psql(1) client.
+===========================================================================
diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/Makefile  Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
+
+PKGNAME=       ${DISTNAME:S/-/-pgsql-/}
+COMMENT=       PostgreSQL-based DNS server
+
+CONFLICTS=     mydns-mysql-[0-9]*
+
+CONFIGURE_ARGS+=       --without-mysql
+CONFIGURE_ARGS+=       --with-pgsql-lib=${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib
+CONFIGURE_ARGS+=       --with-pgsql-include=${BUILDLINK_PREFIX.${PGSQL_TYPE}}/include
+
+.include       "../../mk/pgsql.buildlink3.mk"
+.include       "Makefile.common"
diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/Makefile.common   Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
+
+DISTNAME=      mydns-1.0.0
+CATEGORIES=    net
+MASTER_SITES=  http://mydns.bboy.net/download/
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    geert.hendrickx%ua.ac.be@localhost
+HOMEPAGE=      http://mydns.bboy.net/
+
+GNU_CONFIGURE= YES
+USE_PKGLOCALEDIR=      YES
+USE_PKGINSTALL=        YES
+
+CONFIGURE_ARGS+=       --with-confdir=${PKG_SYSCONFDIR}
+
+MYDNS_USER?=   mydns
+MYDNS_GROUP?=  mydns
+MYDNS_PERMS=   ${ROOT_USER} ${ROOT_GROUP} 600
+
+SUBST_CLASSES+=                user
+SUBST_STAGE.user=      pre-build
+SUBST_FILES.user=      src/mydns/conf.c
+SUBST_SED.user=                -e 's/%%MYDNS_USER%%/${MYDNS_USER}/'
+SUBST_SED.user+=       -e 's/%%MYDNS_GROUP%%/${MYDNS_GROUP}/'
+
+EGDIR=         ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES_PERMS=      ${EGDIR}/mydns.conf ${PKG_SYSCONFDIR}/mydns.conf ${MYDNS_PERMS}
+RCD_SCRIPTS=   mydns
+
+PKG_GROUPS=    ${MYDNS_GROUP}
+PKG_USERS=     ${MYDNS_USER}:${MYDNS_GROUP}::MyDNS\ user
+
+post-install:
+               ${INSTALL_DATA_DIR} ${EGDIR}
+               ${WRKSRC}/src/mydns/mydns --dump-config > ${EGDIR}/mydns.conf
+               ${CHMOD} 0600 ${EGDIR}/mydns.conf
+
+.include       "../../mk/bsd.pkg.mk"
diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/PLIST     Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
+bin/mydns-conf
+bin/mydnscheck
+bin/mydnsexport
+bin/mydnsimport
+bin/mydnsptrconvert
+info/mydns.info
+man/man5/mydns.conf.5
+man/man8/mydns-conf.8
+man/man8/mydns.8
+man/man8/mydnscheck.8
+man/man8/mydnsexport.8
+man/man8/mydnsimport.8
+man/man8/mydnsptrconvert.8
+sbin/mydns
+share/examples/mydns-pgsql/mydns.conf
+share/examples/rc.d/mydns
+${PKGLOCALEDIR}/locale/es/LC_MESSAGES/mydns.mo
+${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/mydns.mo
+${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/mydns.mo
+@dirrm share/examples/mydns-pgsql
diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/distinfo  Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
+
+SHA1 (mydns-1.0.0.tar.bz2) = 6a19977f8c6411ed142a5cc635c1cd53e0afc69c
+RMD160 (mydns-1.0.0.tar.bz2) = a83d790faf3e1a90fcae70e8f1900432ed5e15cf
+Size (mydns-1.0.0.tar.bz2) = 545441 bytes
+SHA1 (patch-aa) = 76fc8010ef86169460735ec7012a7885b8d76924
diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/files/mydns.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/files/mydns.sh    Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $NetBSD: mydns.sh,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
+#
+# PROVIDE: mydns
+# REQUIRE: SERVERS
+# BEFORE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+       . /etc/rc.subr
+fi
+
+name="mydns"
+rcvar=$name
+command="@PREFIX@/sbin/mydns"
+command_args="-b"
+required_files="@PKG_SYSCONFDIR@/mydns.conf"
+extra_commands="reload"
+reload_sig="HUP"
+
+if [ -f /etc/rc.subr ]; then
+       load_rc_config $name
+       run_rc_command "$1"
+else
+       @ECHO@ -n " ${name}$"
+       ${command} ${command_args} ${mydns_flags}
+fi
diff -r 54e3bcbc12ae -r 6bb6e639d199 net/mydns-pgsql/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/mydns-pgsql/patches/patch-aa  Sat Oct 29 16:56:15 2005 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/29 16:56:15 minskim Exp $
+
+--- src/mydns/conf.c.orig      2005-01-14 15:23:41.000000000 +0100
++++ src/mydns/conf.c
+@@ -62,8 +62,8 @@ static CONF defConfig[] = {
+ 
+ {     "-",                                            NULL,                                                   N_("GENERAL OPTIONS")},
+ 
+-{     "user",                                 "nobody",                                       N_("Run with the permissions of this user")},
+-{     "group",                                        "nobody",                                       N_("Run with the permissions of this group")},
++{     "user",                                 "%%MYDNS_USER%%",                       N_("Run with the permissions of this user")},
++{     "group",                                        "%%MYDNS_GROUP%%",              N_("Run with the permissions of this group")},
+ {     "listen",                               "*",                                                    N_("Listen on these addresses ('*' for all)"),  "bind"},
+ {     "no-listen",                    "",                                                     N_("Do not listen on these addresses")},
+ 



Home | Main Index | Thread Index | Old Index