694f2c2
From 3503ba48869994a272c49e177289feb31c07a690 Mon Sep 17 00:00:00 2001
694f2c2
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
694f2c2
Date: Wed, 9 Oct 2013 16:28:58 +0200
694f2c2
Subject: [PATCH] Adjust sample configuration
694f2c2
MIME-Version: 1.0
694f2c2
Content-Type: text/plain; charset=UTF-8
694f2c2
Content-Transfer-Encoding: 8bit
694f2c2
694f2c2
Signed-off-by: Petr Písař <ppisar@redhat.com>
694f2c2
---
694f2c2
 sample.data/rwhoisd.auth_area | 34 +++++++++++++++++-----------------
694f2c2
 sample.data/rwhoisd.conf      | 24 ++++++++++++------------
694f2c2
 sample.data/rwhoisd.dir       |  2 +-
694f2c2
 sample.data/rwhoisd.root      |  2 +-
694f2c2
 sample.data/rwhoisd.x.dir     | 18 +++++++++---------
694f2c2
 5 files changed, 40 insertions(+), 40 deletions(-)
694f2c2
694f2c2
diff --git a/sample.data/rwhoisd.auth_area b/sample.data/rwhoisd.auth_area
694f2c2
index e5a2108..0289ee4 100644
694f2c2
--- a/sample.data/rwhoisd.auth_area
694f2c2
+++ b/sample.data/rwhoisd.auth_area
694f2c2
@@ -12,23 +12,23 @@
694f2c2
 # master: the host:port pair describing the primary server for this
694f2c2
 #         slave
694f2c2
 #
694f2c2
-type: master
694f2c2
-name: a.com
694f2c2
-data-dir: a.com/data
694f2c2
-schema-file: a.com/schema
694f2c2
-soa-file: a.com/soa
694f2c2
----
694f2c2
-type:master
694f2c2
-name:10.0.0.0/8
694f2c2
-data-dir: net-10.0.0.0-8/data
694f2c2
-schema-file: net-10.0.0.0-8/schema
694f2c2
-soa-file: net-10.0.0.0-8/soa
694f2c2
----
694f2c2
-type: master
694f2c2
-name: fd00:1234::/32
694f2c2
-data-dir: net-fd00:1234::-32/data
694f2c2
-schema-file: net-fd00:1234::-32/schema
694f2c2
-soa-file: net-fd00:1234::-32/soa
694f2c2
+#type: master
694f2c2
+#name: a.com
694f2c2
+#data-dir: a.com/data
694f2c2
+#schema-file: a.com/schema
694f2c2
+#soa-file: a.com/soa
694f2c2
+#---
694f2c2
+#type:master
694f2c2
+#name:10.0.0.0/8
694f2c2
+#data-dir: net-10.0.0.0-8/data
694f2c2
+#schema-file: net-10.0.0.0-8/schema
694f2c2
+#soa-file: net-10.0.0.0-8/soa
694f2c2
+#---
694f2c2
+#type: master
694f2c2
+#name: fd00:1234::/32
694f2c2
+#data-dir: net-fd00:1234::-32/data
694f2c2
+#schema-file: net-fd00:1234::-32/schema
694f2c2
+#soa-file: net-fd00:1234::-32/soa
694f2c2
 #---
694f2c2
 # A sample secondary entry
694f2c2
 #type:slave
694f2c2
diff --git a/sample.data/rwhoisd.conf b/sample.data/rwhoisd.conf
694f2c2
index cd149a1..e8fbd7f 100644
694f2c2
--- a/sample.data/rwhoisd.conf
694f2c2
+++ b/sample.data/rwhoisd.conf
694f2c2
@@ -12,7 +12,7 @@
694f2c2
 # normal default is ""
694f2c2
 # NOTE:  you want to change this.
694f2c2
 
694f2c2
-root-dir: /home/databases/rwhoisd
694f2c2
+root-dir: /var/rwhoisd
694f2c2
 
694f2c2
 # bin-path: Where to find extra binaries.
694f2c2
 # bin-path: bin means <root-dir>/bin
694f2c2
@@ -30,13 +30,13 @@ root-dir: /home/databases/rwhoisd
694f2c2
 # directives.  This file is required.
694f2c2
 # normal default is "rwhoisd.dir"
694f2c2
 
694f2c2
-# directive-file: rwhoisd.dir
694f2c2
+directive-file: /etc/rwhoisd.dir
694f2c2
 
694f2c2
 # X-directive-file:  This file contains the definitions for any extended
694f2c2
 # ("X-") directives.  This file is optional.
694f2c2
 # normal default is rwhoisd.x.dir
694f2c2
 
694f2c2
-# x-directive-file: rwhoisd.x.dir
694f2c2
+x-directive-file: /etc/rwhoisd.x.dir
694f2c2
 
694f2c2
 # max-hits-default: The starting value for the hit limit.  It can be
694f2c2
 # changed with the -limit directive.  
694f2c2
@@ -59,7 +59,7 @@ max-hits-ceiling: 60
694f2c2
 # punt-file: used by the punt (or "up") referral.
694f2c2
 # normal default is "rwhoisd.root"
694f2c2
 
694f2c2
-# punt-file: rwhoisd.root
694f2c2
+punt-file: /etc/rwhoisd.root
694f2c2
 
694f2c2
 # local-host:  What we want the local host to be known as.  This is
694f2c2
 # primarily for the welcome banner and for determining whether a
694f2c2
@@ -78,15 +78,15 @@ max-hits-ceiling: 60
694f2c2
 # server itself. This is optional.
694f2c2
 # normal default is "/etc/hosts.allow"
694f2c2
 
694f2c2
-# security-allow:/etc/hosts.allow
694f2c2
-security-allow: rwhoisd.allow
694f2c2
+security-allow:/etc/hosts.allow
694f2c2
+# security-allow: rwhoisd.allow
694f2c2
 
694f2c2
 # The tcp_wrappers deny list for rwhoisd.  See the comments for
694f2c2
 # security-allow
694f2c2
 # normal default is "/etc/hosts.deny"
694f2c2
 
694f2c2
-# security-deny:/etc/hosts.deny
694f2c2
-security-deny: rwhoisd.deny
694f2c2
+security-deny:/etc/hosts.deny
694f2c2
+# security-deny: rwhoisd.deny
694f2c2
 
694f2c2
 # deadman-time: The number of seconds of idle-time before the server
694f2c2
 # automatically disconnects. 
694f2c2
@@ -114,20 +114,20 @@ userid: rwhoisd
694f2c2
 # pid-file: where to put the file containing the pid of the server.
694f2c2
 # normal default is "rwhoisd.pid"
694f2c2
 
694f2c2
-# pid-file: /var/run/rwhoisd.pid
694f2c2
-pid-file: rwhoisd.pid
694f2c2
+pid-file: /var/run/rwhoisd.pid
694f2c2
+# pid-file: rwhoisd.pid
694f2c2
 
694f2c2
 # server contact: who to contact about problems related to the server
694f2c2
 # itself.
694f2c2
 # this option doesn't have a default.
694f2c2
 
694f2c2
-server-contact: hostmaster@a.com
694f2c2
+server-contact: hostmaster@example.com
694f2c2
 
694f2c2
 # use-syslog: whether or not to log using syslog;
694f2c2
 # if it isn't logging to syslog, it attempts to log to files (see below)
694f2c2
 # normal default is YES
694f2c2
 
694f2c2
-use-syslog: NO
694f2c2
+# use-syslog: NO
694f2c2
 
694f2c2
 # syslog-facility: the syslog facility to use (daemon, mail, news,
694f2c2
 # etc.); default is 3 (daemon)
694f2c2
diff --git a/sample.data/rwhoisd.dir b/sample.data/rwhoisd.dir
694f2c2
index cbb5b34..8b33f80 100644
694f2c2
--- a/sample.data/rwhoisd.dir
694f2c2
+++ b/sample.data/rwhoisd.dir
694f2c2
@@ -10,7 +10,7 @@ holdconnect:    yes
694f2c2
 limit:          yes 
694f2c2
 notify:         yes
694f2c2
 quit:           yes 
694f2c2
-register:       yes
694f2c2
+register:       no
694f2c2
 schema:         yes
694f2c2
 security:       yes
694f2c2
 soa:            yes
694f2c2
diff --git a/sample.data/rwhoisd.root b/sample.data/rwhoisd.root
694f2c2
index 4af2926..bab29c9 100644
694f2c2
--- a/sample.data/rwhoisd.root
694f2c2
+++ b/sample.data/rwhoisd.root
694f2c2
@@ -5,5 +5,5 @@
694f2c2
 # It just prints the value out after a %referral token.
694f2c2
 
694f2c2
 # this is the new style -- note the ':4321' is optional
694f2c2
-rwhois://root.rwhois.net:4321/auth-area=.
694f2c2
+rwhois://root.example.com:4321/auth-area=.
694f2c2
 
694f2c2
diff --git a/sample.data/rwhoisd.x.dir b/sample.data/rwhoisd.x.dir
694f2c2
index 4a08a98..4a544b5 100644
694f2c2
--- a/sample.data/rwhoisd.x.dir
694f2c2
+++ b/sample.data/rwhoisd.x.dir
694f2c2
@@ -12,18 +12,18 @@
694f2c2
 
694f2c2
 # command: the name of the directive.  In rwhoisd, it will become
694f2c2
 # -X-<command>.  For instance, here we define -X-date.
694f2c2
-command: date
694f2c2
+#command: date
694f2c2
 
694f2c2
 # command-len: how many characters of the command are significant.
694f2c2
-command-len: 4
694f2c2
+#command-len: 4
694f2c2
 
694f2c2
 # description: printed out as part of the -directive response.
694f2c2
-description: an example of an extended directive
694f2c2
+#description: an example of an extended directive
694f2c2
 
694f2c2
 # program: what program to run to execute the directive.
694f2c2
-program: /usr/bin/date
694f2c2
----
694f2c2
-command:pgp
694f2c2
-command-len:3
694f2c2
-description:The PGP key server gateway
694f2c2
-program:Xpgp
694f2c2
+#program: /usr/bin/date
694f2c2
+#---
694f2c2
+#command:pgp
694f2c2
+#command-len:3
694f2c2
+#description:The PGP key server gateway
694f2c2
+#program:Xpgp
694f2c2
-- 
694f2c2
1.8.3.1
694f2c2