Update dns/dns_balance to 2.1

PR:		216958
Submitted by:	maintainer
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D9526
This commit is contained in:
Kirill Ponomarev 2017-02-10 17:46:17 +00:00
parent 2ac1292e57
commit a006f4a3c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433820
3 changed files with 17 additions and 19 deletions

View file

@ -2,23 +2,20 @@
# $FreeBSD$
PORTNAME= dns_balance
PORTVERSION= 2.0
PORTREVISION= 2
PORTVERSION= 2.1
CATEGORIES= dns
MASTER_SITES= http://www.netlab.cs.tsukuba.ac.jp/~yokota/archive/ \
http://BSDforge.com/projects/source/dns/dns_balance/
DISTNAME= DNS-Balance-${PORTVERSION}
MASTER_SITES= http://BSDforge.com/projects/source/dns/dns_balance/
MAINTAINER= portmaster@BSDforge.com
COMMENT= Dynamic load-balancing DNS server
LICENSE= BSD2CLAUSE
USE_RUBY= yes
USES= shebangfix
USES= shebangfix tar:xz
USE_RC_SUBR= dns_balance
NO_BUILD= yes
BROKEN_RUBY22= yes
BROKEN_RUBY23= yes
SHEBANG_FILES= ${WRKSRC}/dns_balance.rb \
${WRKSRC}/sample/makedb.rb \

View file

@ -1,2 +1,3 @@
SHA256 (DNS-Balance-2.0.tar.gz) = 117d42986f7b090e827110ba74a00f6a488244f74605e22c5587a13e604bf4de
SIZE (DNS-Balance-2.0.tar.gz) = 17256
TIMESTAMP = 1486748693
SHA256 (dns_balance-2.1.tar.xz) = 6a0c366173d7865c51b322400954a004012f7858be95a23d61884b67ebe0a8f9
SIZE (dns_balance-2.1.tar.xz) = 15796

View file

@ -1,9 +1,9 @@
--- dns_balance.rb.orig 2005-06-10 22:23:56 UTC
+++ dns_balance.rb
@@ -7,14 +7,7 @@
# $Id: dns_balance.rb,v 1.25 2003/06/13 22:07:27 elca Exp $
--- dns_balance.rb.orig 2017-02-09 19:28:01.643383000 -0800
+++ dns_balance.rb 2017-02-09 19:26:31.609711000 -0800
@@ -8,14 +8,7 @@
# $Id: dns_balance.rb,v 1.26 2017-02-09 17:18:59 chrish Exp $
# DNS Balance の存在するパス名
# DNS Balance
-if ENV["ROOT"] == nil
- warn("\"ROOT\" environment is recommended. Use current directory in this time.")
- PREFIX = "."
@ -16,7 +16,7 @@
$LOAD_PATH.freeze
require 'socket'
@@ -204,6 +197,14 @@ OptionParser::new {
@@ -204,6 +197,14 @@
opt.on("--as", "Enable AS namespace") {
OPT["as"] = true
}
@ -31,7 +31,7 @@
opt.on_tail("-h", "--help", "Show this help message and exit") {
STDERR.printf("%s", opt.to_s)
exit(111)
@@ -212,10 +213,42 @@ OptionParser::new {
@@ -212,10 +213,42 @@
}
OPT.freeze
@ -77,7 +77,7 @@
ML.log("start")
@@ -224,7 +257,7 @@ ML.log("start")
@@ -224,7 +257,7 @@
#
Thread::start {
loop {
@ -86,7 +86,7 @@
begin
load("addr")
@@ -234,7 +267,7 @@ Thread::start {
@@ -234,7 +267,7 @@
end
end