From: Michal 'vorner' Vaner Date: Thu, 7 Jun 2012 16:53:54 +0000 (+0200) Subject: [1997] Generate the zone file X-Git-Tag: trac2351_base~226^2~59^2~5^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b0f09471e155d0a8985b2d320c1a5f47667e2d7;p=thirdparty%2Fkea.git [1997] Generate the zone file The zone file is generated from the authors file and the current version. --- diff --git a/AUTHORS b/AUTHORS index e69de29bb2..67cb090193 100644 --- a/AUTHORS +++ b/AUTHORS @@ -0,0 +1,21 @@ +Chen Zhengzhang +Dmitriy Volodin +Evan Hunt +Haidong Wang +Haikuo Zhang +Han Feng +Jelte Jansen +Jeremy C. Reed +Xie Jiagui +Jin Jian +JINMEI Tatuya +Kazunori Fujiwara +Michael Graff +Michal Vaner +Mukund Sivaraman +Naoki Kambe +Shane Kerr +Shen Tingting +Stephen Morris +Yoshitaka Aharen +Zhang Likun diff --git a/src/lib/datasrc/Makefile.am b/src/lib/datasrc/Makefile.am index 9a42c771b1..37efef0591 100644 --- a/src/lib/datasrc/Makefile.am +++ b/src/lib/datasrc/Makefile.am @@ -12,8 +12,13 @@ pkglibdir = $(libexecdir)/@PACKAGE@/backends datasrc_config.h: datasrc_config.h.pre $(SED) -e "s|@@PKGLIBDIR@@|$(pkglibdir)|" datasrc_config.h.pre >$@ +static.zone: static.zone.pre + $(SED) -e "s|@@VERSION_STRING@@|$(PACKAGE_STRING)|" $(srcdir)/static.zone.pre >$@ + $(SED) -e 's/\(.*\)/AUTHORS.BIND. 0 CH TXT "\1"/' $(top_srcdir)/AUTHORS >>$@ + CLEANFILES = *.gcno *.gcda datasrc_messages.h datasrc_messages.cc CLEANFILES += datasrc_config.h +CLEANFILES += static.zone lib_LTLIBRARIES = libdatasrc.la libdatasrc_la_SOURCES = data_source.h data_source.cc @@ -65,4 +70,7 @@ BUILT_SOURCES = datasrc_config.h datasrc_messages.h datasrc_messages.cc datasrc_messages.h datasrc_messages.cc: Makefile datasrc_messages.mes $(top_builddir)/src/lib/log/compiler/message $(top_srcdir)/src/lib/datasrc/datasrc_messages.mes -EXTRA_DIST = datasrc_messages.mes +EXTRA_DIST = datasrc_messages.mes static.zone.pre + +zonedir = $(pkgdatadir) +zone_DATA = static.zone diff --git a/src/lib/datasrc/static.zone.pre b/src/lib/datasrc/static.zone.pre new file mode 100644 index 0000000000..16a7379ea8 --- /dev/null +++ b/src/lib/datasrc/static.zone.pre @@ -0,0 +1,12 @@ +;; This is the content of the BIND./CH zone. It contains the version and +;; authors (called VERSION.BIND. and AUTHORS.BIND.). You can add more or +;; modify the zone. Then you can reload the zone by issuing the command +;; +;; loadzone CH BIND +;; +;; in the bindctl. + +BIND. 0 CH SOA bind. authors.bind. 0 28800 7200 604800 86400 + +VERSION.BIND. 0 CH TXT "@@VERSION_STRING@@" +;; HOSTNAME.BIND 0 CH TXT "localhost"