3 # Source debconf library.
4 . /usr/share/debconf/confmodule
14 hesconf=/etc/hesiod.conf
16 # If we don't have a hesiod.conf file yet, go ahead and populate it.
17 if [ ! -f $hesconf ]; then
18 echo "# This file determines the behavior of the Hesiod library." > $hesconf
20 echo "# This line should pretty much always be the same, unless you have a" >> $hesconf
21 echo "# funny environment." >> $hesconf
22 echo "lhs=$lhs" >> $hesconf
24 echo "# This determines the Hesiod domain. You must specify an rhs line." >> $hesconf
25 echo "rhs=$rhs" >> $hesconf
27 echo "# This line specifies the class search order. You can reverse the" >> $hesconf
28 echo "# order or leave out IN or HS if you want. Don't add spaces after the" >> $hesconf
29 echo "# beginning of the value." >> $hesconf
30 echo "classes=$classes" >> $hesconf
32 sed -e "s/^lhs=.*/lhs=$lhs/" \
33 -e "s/^rhs=.*/rhs=$rhs/" \
34 -e "s/^classes=.*/classes=$classes/" \
35 < $hesconf > $hesconf.new
36 mv -f $hesconf.new $hesconf