hesconf=/etc/hesiod.conf
+if test "$1" = configure -a -z "$2"; then
# If we don't have a hesiod.conf file yet, go ahead and populate it.
-if [ ! -f $hesconf ]; then
- echo "# This file determines the behavior of the Hesiod library." > $hesconf
- echo >> $hesconf
- echo "# This line should pretty much always be the same, unless you have a" >> $hesconf
- echo "# funny environment." >> $hesconf
- echo "lhs=$lhs" >> $hesconf
- echo >> $hesconf
- echo "# This determines the Hesiod domain. You must specify an rhs line." >> $hesconf
- echo "rhs=$rhs" >> $hesconf
- echo >> $hesconf
- echo "# This line specifies the class search order. You can reverse the" >> $hesconf
- echo "# order or leave out IN or HS if you want. Don't add spaces after the" >> $hesconf
- echo "# beginning of the value." >> $hesconf
- echo "classes=$classes" >> $hesconf
-else
- sed -e "s/^lhs=.*/lhs=$lhs/" \
- -e "s/^rhs=.*/rhs=$rhs/" \
- -e "s/^classes=.*/classes=$classes/" \
- < $hesconf > $hesconf.new
- mv -f $hesconf.new $hesconf
+ if [ ! -f $hesconf ]; then
+ echo "# This file determines the behavior of the Hesiod library." > $hesconf
+ echo >> $hesconf
+ echo "# This line should pretty much always be the same, unless you have a" >> $hesconf
+ echo "# funny environment." >> $hesconf
+ echo "lhs=$lhs" >> $hesconf
+ echo >> $hesconf
+ echo "# This determines the Hesiod domain. You must specify an rhs line." >> $hesconf
+ echo "rhs=$rhs" >> $hesconf
+ echo >> $hesconf
+ echo "# This line specifies the class search order. You can reverse the" >> $hesconf
+ echo "# order or leave out IN or HS if you want. Don't add spaces after the" >> $hesconf
+ echo "# beginning of the value." >> $hesconf
+ echo "classes=$classes" >> $hesconf
+ else
+ sed -e "s/^lhs=.*/lhs=$lhs/" \
+ -e "s/^rhs=.*/rhs=$rhs/" \
+ -e "s/^classes=.*/classes=$classes/" \
+ -i $hesconf
+ fi
fi
#DEBHELPER#
--- /dev/null
+# Copyright (C) 2007-2009 Karl Ramm <kcr@debian.org>\r
+# This file is distributed under the same license as the hesiod package.\r
+# Hideki Yamane (Debian-JP) <henrich@debian.or.jp>, 2009.\r
+# \r
+msgid ""
+msgstr ""
+"Project-Id-Version: hesiod 3.0.2-18.3\n"
+"Report-Msgid-Bugs-To: Source: hesiod@packages.debian.org\n"
+"POT-Creation-Date: 2007-12-13 12:21+0530\n"
+"PO-Revision-Date: 2009-01-06 22:26+0900\n"
+"Last-Translator: Hideki Yamane (Debian-JP) <henrich@debian.or.jp>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:2001
+msgid "Hesiod domain for searches:"
+msgstr "検索対象の Hesiod ドメイン:"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:2001
+msgid "Please enter the Hesiod RHS (right hand-side) to do searches in."
+msgstr "検索対象の Hesiod RHS (right hand-side、右手側) を入力してください。"
+
+#. Type: string
+#. Description
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:2001 ../libhesiod0.templates:3001
+msgid ""
+"If the Hesiod server is 'ns.example.org' then the LHS will be '.ns', the RHS "
+"will be '.example.org' (note leading periods) and directory lookups will be "
+"performed as DNS requests to (e.g.) 'sam.passwd.ns.example.org'."
+msgstr ""
+"もし、Hesiod サーバが「ns.example.org」の場合、LHS は「.ns」、RHS は「."
+"example.org」になります。ディレクトリ参照は DNS リクエストのように動作します "
+"(例)「sam.passwd.ns.example.org」。"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:3001
+msgid "Hesiod prefix for searches:"
+msgstr "検索対象の Hesiod プレフィックス:"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:3001
+msgid "Please enter the Hesiod LHS (left hand-side) to do searches in."
+msgstr "検索対象の Hesiod LHS (heft hand-side、左手側) を入力してください。"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:4001
+msgid "DNS class search order:"
+msgstr "DNS クラスの検索順:"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:4001
+msgid ""
+"Hesiod looks up names using DNS TXT records. In addition to using the "
+"standard IN DNS class for Internet names, it also uses by default the "
+"special HS class."
+msgstr ""
+"Hesiod は、DNS TXT レコードを使って名前を検索します。その際はインターネット名"
+"に使われている通常の IN DNS クラスに加えて、デフォルトで特別な HS クラスも使"
+"用します。"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:4001
+msgid ""
+"Please enter the class search order (the default value is suitable for most "
+"sites). There should be no spaces in this search order value."
+msgstr ""
+"クラスの検索順を入力してください (大抵のサイトはデフォルトの挙動が適していま"
+"す)。この検索順の値には空白を入れてはいけません。"
+
+#. Type: string
+#. Description
+#: ../libhesiod0.templates:4001
+msgid ""
+"Sites using older Hesiod installations may need to use the 'HS,IN' search "
+"order."
+msgstr ""
+"古い Hesiod のインストールを使っているサイトでは「HS,IN」という検索順を使う必"
+"要があるでしょう。"