1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Add MyDNS-ng, a Next Generation DNS Server for sql based DNS services

PR:		ports/132963
Submitted by:	Hung-Yi Chen <gaod AT hychen.org>
This commit is contained in:
Li-Wen Hsu 2009-03-29 11:56:20 +00:00
parent 5cee286b76
commit d46356e7f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231241
8 changed files with 49 additions and 54 deletions

View File

@ -5,21 +5,22 @@
# $FreeBSD$
#
PORTNAME= mydns
PORTVERSION= 1.1.0
PORTREVISION= 3
PORTNAME= mydns-ng
PORTVERSION= 1.2.8.27
CATEGORIES= dns databases
MASTER_SITES= http://mydns.bboy.net/download/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mydns-ng
DISTNAME= mydns-${PORTVERSION}
MAINTAINER= ale@FreeBSD.org
COMMENT= DNS server designed to utilize the MySQL database
MAINTAINER= gaod@hychen.org
COMMENT= A Next Generation DNS Server for sql based DNS services
WRKSRC= ${WRKDIR}/mydns-${PORTVERSION:R}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc
USE_ICONV= yes
USE_BZIP2= yes
USE_RC_SUBR= mydns.sh
USE_RC_SUBR= mydns
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
@ -30,12 +31,19 @@ MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
OPTIONS= PGSQL "Build with PostgreSQL backend instead of MySQL" OFF \
ALIAS "Enable server side aliases" ON \
OPENSSL "Enable OpenSSL (if MySQL is linked with OpenSSL)" OFF \
NLS "Native Language Support with gettext" OFF
.include <bsd.port.pre.mk>
.if defined(WITH_ALIAS)
CONFIGURE_ARGS+=--enable-alias
.endif
.if defined(WITH_OPENSSL)
USE_OPENSSL= yes
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CONFIGURE_ARGS+=--with-openssl \
--with-openssl-include=${OPENSSLINC} \
--with-openssl-lib=${OPENSSLLIB}
@ -46,7 +54,7 @@ USE_PGSQL= yes
CONFIGURE_ARGS+=--without-mysql \
--with-pgsql-include=${LOCALBASE}/include \
--with-pgsql-lib=${LOCALBASE}/lib
PKGNAMESUFFIX= -pg
PKGNAMESUFFIX= -pgsql
.else
CONFIGURE_ARGS+=--without-pgsql \
--with-mysql-include=${LOCALBASE}/include/mysql \
@ -55,7 +63,8 @@ PKGNAMESUFFIX= -mysql
USE_MYSQL= yes
.endif
.if !defined(WITHOUT_NLS)
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--with-included-gettext
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
@ -63,15 +72,6 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
pre-fetch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_PGSQL=yes Build with PostgreSQL support"
@${ECHO} " WITH_ALIAS=yes Enable server side aliases"
@${ECHO} " WITH_OPENSSL=yes Enable OpenSSL (needed if MySQL is linked with OpenSSL)"
@${ECHO} ""
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/contrib
@ -86,4 +86,4 @@ post-install:
@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (mydns-1.1.0.tar.bz2) = c613a14686f08486d444cee2d68f9c87
SHA256 (mydns-1.1.0.tar.bz2) = ecfcc8bb8fd9f707d2e7af808317cdcc3a4d701375265840944c4e0ff0d66bf6
SIZE (mydns-1.1.0.tar.bz2) = 573261
MD5 (mydns-1.2.8.27.tar.gz) = d5fb01ec404049c2d3bd319337a30190
SHA256 (mydns-1.2.8.27.tar.gz) = 9f9a80d2c3b47b91e15daf49aa3442b29e2f2c175ffb98358ccb9103087edc21
SIZE (mydns-1.2.8.27.tar.gz) = 1055969

View File

@ -1,10 +1,10 @@
--- Makefile.in.orig Wed Dec 18 15:16:33 2002
+++ Makefile.in Wed Dec 18 15:16:43 2002
@@ -529,7 +529,6 @@
--- Makefile.in.orig 2009-03-22 05:02:50.000000000 +0800
+++ Makefile.in 2009-03-22 05:02:56.000000000 +0800
@@ -637,7 +637,6 @@
install-data-am:
@$(NORMAL_INSTALL)
- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
install-exec-am:
install-dvi: install-dvi-recursive

View File

@ -1,12 +0,0 @@
--- src/mydns/recursive.c.orig Mon Apr 30 08:17:52 2007
+++ src/mydns/recursive.c Mon Apr 30 08:22:13 2007
@@ -109,8 +109,7 @@
#endif
/* Send to remote server */
- if ((rv = sendto(t->recursive_fd, query, querylen, 0,
- (struct sockaddr *)&recursive_sa, sizeof(struct sockaddr_in))) != querylen)
+ if ((rv = send(t->recursive_fd, query, querylen, 0)) != querylen)
{
if (errno == EAGAIN)
{

View File

@ -11,4 +11,11 @@ as a template. Finally enable MyDNS by adding
mydns_enable="YES"
into your rc.conf.
You can use %%PORTDOCS%%%%DOCSDIR%%/contrib/admin.php to maintain MyDNS.
If you are looking for the web interface for MyDNS, it's included in
the MyDNS distribution as %%PORTDOCS%%%%DOCSDIR%%/contrib/admin.php.
See %%PORTDOCS%%%%DOCSDIR%%/contrib/README for installation instructions.
*********************************************************************

View File

@ -1,15 +1,13 @@
MyDNS is a free DNS server for UNIX implemented from scratch and
designed to utilize the MySQL database for data storage.
MyDNS - SQL-based DNS server
Its primary objectives are stability, security, interoperability,
and speed, though not necessarily in that order.
This is the MyDNS package. MyDNS is a simple, non-recursive Internet
name daemon which serves records directly from an SQL database. It
currently works with either MySQL or PostgreSQL.
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.
This version of the MyDNS package is a development of the original one
produced by Don Moore.
WWW: http://mydns.bboy.net/
- 12-May-2004 Don Moore <bboy@bboy.net>
- 23-January-2009 Howard Wilkinsin <howard@cohtech.com>
- Alex Dupre
ale@FreeBSD.org
WWW: http://sourceforge.net/projects/mydns-ng/

View File

@ -5,9 +5,6 @@ bin/mydnsimport
bin/mydnsptrconvert
etc/mydns.conf.sample
sbin/mydns
%%NLS%%share/locale/es/LC_MESSAGES/mydns.mo
%%NLS%%share/locale/fr/LC_MESSAGES/mydns.mo
%%NLS%%share/locale/pt_BR/LC_MESSAGES/mydns.mo
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
@ -20,6 +17,11 @@ sbin/mydns
%%PORTDOCS%%%%DOCSDIR%%/contrib/README
%%PORTDOCS%%%%DOCSDIR%%/contrib/admin.php
%%PORTDOCS%%%%DOCSDIR%%/contrib/create_domain.pl
%%PORTDOCS%%%%DOCSDIR%%/contrib/fix_rr_serial.pl
%%PORTDOCS%%%%DOCSDIR%%/contrib/stats.php
%%NLS%%share/locale/es/LC_MESSAGES/mydns.mo
%%NLS%%share/locale/fr/LC_MESSAGES/mydns.mo
%%NLS%%share/locale/pt_BR/LC_MESSAGES/mydns.mo
%%PORTDOCS%%@dirrm %%DOCSDIR%%/contrib
%%PORTDOCS%%@dirrm %%DOCSDIR%%