source: projects/specs/trunk/c/caching-nameserver/caching-nameserver-vl.spec @ 9860

Revision 9860, 6.0 KB checked in by iwaim, 8 years ago (diff)

caching-nameserver 7.1-13

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