aboutsummaryrefslogtreecommitdiffstats
path: root/dns/mydns-ng
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2009-03-29 19:56:20 +0800
committerlwhsu <lwhsu@FreeBSD.org>2009-03-29 19:56:20 +0800
commitd37a1444b0d21563775d3e003d51b8fc5570d3d2 (patch)
tree11314eac763566c35869cc0beeff62fc4a66ddbc /dns/mydns-ng
parent65b4219dd058714e7c87fe2742ddfbf195599bd7 (diff)
downloadfreebsd-ports-gnome-d37a1444b0d21563775d3e003d51b8fc5570d3d2.tar.gz
freebsd-ports-gnome-d37a1444b0d21563775d3e003d51b8fc5570d3d2.tar.zst
freebsd-ports-gnome-d37a1444b0d21563775d3e003d51b8fc5570d3d2.zip
- 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>
Diffstat (limited to 'dns/mydns-ng')
-rw-r--r--dns/mydns-ng/Makefile42
-rw-r--r--dns/mydns-ng/distinfo6
-rw-r--r--dns/mydns-ng/files/mydns.in (renamed from dns/mydns-ng/files/mydns.sh.in)0
-rw-r--r--dns/mydns-ng/files/patch-Makefile.in8
-rw-r--r--dns/mydns-ng/files/patch-src_mydns_recursive.c12
-rw-r--r--dns/mydns-ng/files/pkg-message.in7
-rw-r--r--dns/mydns-ng/pkg-descr20
-rw-r--r--dns/mydns-ng/pkg-plist8
8 files changed, 49 insertions, 54 deletions
diff --git a/dns/mydns-ng/Makefile b/dns/mydns-ng/Makefile
index d4d5f7a51059..d20d03dee3a4 100644
--- a/dns/mydns-ng/Makefile
+++ b/dns/mydns-ng/Makefile
@@ -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>
diff --git a/dns/mydns-ng/distinfo b/dns/mydns-ng/distinfo
index 77788d9f1ab2..aa936c6aa164 100644
--- a/dns/mydns-ng/distinfo
+++ b/dns/mydns-ng/distinfo
@@ -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
diff --git a/dns/mydns-ng/files/mydns.sh.in b/dns/mydns-ng/files/mydns.in
index c4332e643140..c4332e643140 100644
--- a/dns/mydns-ng/files/mydns.sh.in
+++ b/dns/mydns-ng/files/mydns.in
diff --git a/dns/mydns-ng/files/patch-Makefile.in b/dns/mydns-ng/files/patch-Makefile.in
index 0148045df6db..7c84aec52585 100644
--- a/dns/mydns-ng/files/patch-Makefile.in
+++ b/dns/mydns-ng/files/patch-Makefile.in
@@ -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
diff --git a/dns/mydns-ng/files/patch-src_mydns_recursive.c b/dns/mydns-ng/files/patch-src_mydns_recursive.c
deleted file mode 100644
index b86c0f2b57df..000000000000
--- a/dns/mydns-ng/files/patch-src_mydns_recursive.c
+++ /dev/null
@@ -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)
- {
diff --git a/dns/mydns-ng/files/pkg-message.in b/dns/mydns-ng/files/pkg-message.in
index a4840bb5b715..4ba122025ba3 100644
--- a/dns/mydns-ng/files/pkg-message.in
+++ b/dns/mydns-ng/files/pkg-message.in
@@ -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.
+
*********************************************************************
diff --git a/dns/mydns-ng/pkg-descr b/dns/mydns-ng/pkg-descr
index 42ed867b0baf..da174e146309 100644
--- a/dns/mydns-ng/pkg-descr
+++ b/dns/mydns-ng/pkg-descr
@@ -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/
diff --git a/dns/mydns-ng/pkg-plist b/dns/mydns-ng/pkg-plist
index fb79abe9eddf..e3a9885b5c5f 100644
--- a/dns/mydns-ng/pkg-plist
+++ b/dns/mydns-ng/pkg-plist
@@ -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%%
+