caching-nameserver-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. Summary: The configuration files for setting up a caching name server.
  2. Summary(ja): キャッシュネームサーバ用の設定ファイル
  3. Name: caching-nameserver
  4. Version: 7.1
  5. Release: 13%{_dist_release}
  6. License: Public Domain
  7. Group: System Environment/Daemons
  8. Source0: ftp://ftp.internic.com/domain/named.root
  9. Source2: named.local
  10. Source3: named.conf
  11. Source4: Copyright.caching-nameserver
  12. Source5: localhost.zone
  13. Requires: bind
  14. Requires(post): bind textutils grep
  15. BuildRoot: %{_tmppath}/caching-nameserver-root
  16. BuildArch: noarch
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. The caching-nameserver package includes the configuration files which
  21. will make BIND, the DNS name server, act as a simple caching nameserver.
  22. Many users on dialup connections use this package along with BIND for
  23. such a purpose.
  24. %description -l ja
  25. caching-nameserver パッケージは BIND (DNS ネームサーバ) をシンプルな
  26. キャッシュサーバとして動作させるための設定ファイルを含んでいます。
  27. ダイアルアップで接続している多くのユーザーは、上記のような目的でこの
  28. パッケージを BIND と一緒に使用しています。
  29. %prep
  30. %setup -c -T
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. mkdir -p $RPM_BUILD_ROOT/{etc,var/named}
  34. install -m 644 %{SOURCE0} $RPM_BUILD_ROOT/var/named/named.ca
  35. install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/named/named.local
  36. install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/var/named/localhost.zone
  37. install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/named.conf
  38. install -m 644 %{SOURCE4} ./Copyright
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %post
  42. if ! grep ^nameserver /etc/resolv.conf >/dev/null 2>&1 ; then
  43. echo "nameserver 127.0.0.1" >> /etc/resolv.conf
  44. fi
  45. if ! grep -q "^key" /etc/named.conf; then
  46. if [ -f /etc/rndc.conf ]; then
  47. KEY=`cat /etc/rndc.conf |grep secret |head -n1`
  48. if [ -n "$KEY" ]; then
  49. cat >>/etc/named.conf <<EOF
  50. key "key" {
  51. algorithm hmac-md5;
  52. $KEY
  53. };
  54. EOF
  55. fi
  56. fi
  57. fi
  58. %files
  59. %defattr(-,root,root)
  60. %config(noreplace) /etc/named.conf
  61. %defattr(-,named,named)
  62. %config /var/named/named.ca
  63. %config /var/named/named.local
  64. %config /var/named/localhost.zone
  65. %defattr(-,root,root)
  66. %doc Copyright
  67. %changelog
  68. * Sun Dec 6 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 7.1-13
  69. - update named.root (Source0)
  70. - add {B,C}.ROOT-SERVERS.NET. IPv6 address.
  71. - update H.ROOT-SERVERS.NET. IP address.
  72. * Fri Jan 4 2013 IWAI, Masaharu <iwai@alib.jp> 7.1-12
  73. - update named.root (Source0): for changing the D.ROOTSERVERS.NET's IP Address.
  74. - fix deprecated tag: PreReq -> Requires(post)
  75. * Sun Apr 17 2011 IWAI, Masaharu <iwai@alib.jp> 7.1-11
  76. - update named.root (Source0): add IPv6 address
  77. - update description
  78. * Sun Aug 2 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 7.1-10
  79. - fix typo named.conf
  80. - add Vendor/Distribution tag
  81. * Sat Aug 1 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 7.1-9
  82. - update Source3 (named.conf) to secure default setting
  83. - new versioning policy
  84. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 7.1-4vl5
  85. - applied new versioning policy, spec in utf-8
  86. * Mon Nov 26 2007 IWAI, Masaharu <iwai@alib.jp> 7.1-3vl8
  87. - update named.root (Source0) for changing the L.ROOTSERVERS.NET's IP Address.
  88. * Mon Jul 16 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 7.1-3vl7
  89. - rebuild with new toolchains and environment.
  90. - s/Copyright/License/
  91. - add japanese description and summary.
  92. * Sun Jul 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 7.1-3vl6
  93. - rebuilt
  94. * Fri Feb 13 2004 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 7.1-3vl5
  95. - update named.root (zone serial # 2004012900)
  96. * Thu Nov 14 2002 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 7.1-3vl4
  97. - update named.root (zone serial # 2002110501) from internic
  98. * Thu Nov 14 2002 IWAI Masaharu <iwai@alib.jp> 7.1-3vl3
  99. - update named.root (Source0) for changing the J.ROOTSERVERS.NET's IP Address.
  100. * Wed Jun 6 2001 Jun Nishii <jun@vinelinux.org>
  101. - 7.1-3vl2
  102. - check the existence of rndc.conf in %post script
  103. * Thu May 31 2001 Jun Nishii <jun@vinelinux.org>
  104. - 7.1-3vl1
  105. - build for VineSeed
  106. * Tue Mar 13 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  107. - Remove extra ";" (#31382)
  108. * Thu Mar 1 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  109. - Don't add key { } stuff if it's already there
  110. (e.g. update from beta to final)
  111. * Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  112. - Add key { } stuff to named.conf so rndc works out of the box
  113. * Mon Feb 12 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  114. - change to noreplace configs in /etc #21651
  115. * Tue Aug 8 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  116. - docu owned by root now
  117. * Mon Aug 7 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  118. - add default TTL to shut up warning message
  119. - add "localhost" zone
  120. * Sun Aug 6 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  121. - changing /var/named/* to root was silly - reverted
  122. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  123. - automatic rebuild
  124. * Mon Jul 3 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  125. - change ownerships back to root:root. normally nobody should
  126. need to change these files and they never have to be updated
  127. by the named server himself.
  128. * Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
  129. - rebuild in new environment
  130. * Tue Apr 18 2000 Nalin Dahyabhai <nalin@redhat.com>
  131. - change ownerships to named.named
  132. * Thu Feb 03 2000 Cristian Gafton <gafton@redhat.com>
  133. - if there are no nameserver lines in /etc/resolv.conf, add one
  134. - add a Copyright file
  135. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  136. - auto rebuild in the new build environment (release 2)
  137. * Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
  138. - rebuilt for the 6.0
  139. * Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com>
  140. - install bind-8.1.2 named.conf
  141. * Mon May 04 1998 Donnie Barnes <djb@redhat.com>
  142. - upgraded from 1.1 to 5.1 to make caching-nameserver version the same
  143. as the version of Red Hat that it runs on.
  144. - updated named.root
  145. * Wed Oct 15 1997 Donnie Barnes <djb@redhat.com>
  146. - updated named.root to latest
  147. - updated copyright
  148. * Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
  149. - made a noarch package