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

Revision 3507, 5.8 KB checked in by iwaim, 13 years ago (diff)

caching-nameserver: merge 7.1-10 (Vine Linux 4) and VineSeed

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