123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- Summary: The configuration files for setting up a caching name server.
- Summary(ja): キャッシュネームサーバ用の設定ファイル
- Name: caching-nameserver
- Version: 7.1
- Release: 13%{_dist_release}
- License: Public Domain
- Group: System Environment/Daemons
- Source0: ftp://ftp.internic.com/domain/named.root
- Source2: named.local
- Source3: named.conf
- Source4: Copyright.caching-nameserver
- Source5: localhost.zone
- Requires: bind
- Requires(post): bind textutils grep
- BuildRoot: %{_tmppath}/caching-nameserver-root
- BuildArch: noarch
- Vendor: Project Vine
- Distribution: Vine Linux
- %description
- The caching-nameserver package includes the configuration files which
- will make BIND, the DNS name server, act as a simple caching nameserver.
- Many users on dialup connections use this package along with BIND for
- such a purpose.
- %description -l ja
- caching-nameserver パッケージは BIND (DNS ネームサーバ) をシンプルな
- キャッシュサーバとして動作させるための設定ファイルを含んでいます。
- ダイアルアップで接続している多くのユーザーは、上記のような目的でこの
- パッケージを BIND と一緒に使用しています。
- %prep
- %setup -c -T
- %install
- rm -rf $RPM_BUILD_ROOT
- mkdir -p $RPM_BUILD_ROOT/{etc,var/named}
- install -m 644 %{SOURCE0} $RPM_BUILD_ROOT/var/named/named.ca
- install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/named/named.local
- install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/var/named/localhost.zone
- install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/named.conf
- install -m 644 %{SOURCE4} ./Copyright
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post
- if ! grep ^nameserver /etc/resolv.conf >/dev/null 2>&1 ; then
- echo "nameserver 127.0.0.1" >> /etc/resolv.conf
- fi
- if ! grep -q "^key" /etc/named.conf; then
- if [ -f /etc/rndc.conf ]; then
- KEY=`cat /etc/rndc.conf |grep secret |head -n1`
- if [ -n "$KEY" ]; then
- cat >>/etc/named.conf <<EOF
- key "key" {
- algorithm hmac-md5;
- $KEY
- };
- EOF
- fi
- fi
- fi
- %files
- %defattr(-,root,root)
- %config(noreplace) /etc/named.conf
- %defattr(-,named,named)
- %config /var/named/named.ca
- %config /var/named/named.local
- %config /var/named/localhost.zone
- %defattr(-,root,root)
- %doc Copyright
- %changelog
- - update named.root (Source0)
- - add {B,C}.ROOT-SERVERS.NET. IPv6 address.
- - update H.ROOT-SERVERS.NET. IP address.
- - update named.root (Source0): for changing the D.ROOTSERVERS.NET's IP Address.
- - fix deprecated tag: PreReq -> Requires(post)
- - update named.root (Source0): add IPv6 address
- - update description
- - fix typo named.conf
- - add Vendor/Distribution tag
- - update Source3 (named.conf) to secure default setting
- - new versioning policy
- - applied new versioning policy, spec in utf-8
- - update named.root (Source0) for changing the L.ROOTSERVERS.NET's IP Address.
- - rebuild with new toolchains and environment.
- - s/Copyright/License/
- - add japanese description and summary.
- - rebuilt
- - update named.root (zone serial # 2004012900)
- - update named.root (zone serial # 2002110501) from internic
- - update named.root (Source0) for changing the J.ROOTSERVERS.NET's IP Address.
- - 7.1-3vl2
- - check the existence of rndc.conf in %post script
- - 7.1-3vl1
- - build for VineSeed
- - Remove extra ";" (#31382)
- - Don't add key { } stuff if it's already there
- (e.g. update from beta to final)
- - Add key { } stuff to named.conf so rndc works out of the box
- - change to noreplace configs in /etc #21651
- - docu owned by root now
- - add default TTL to shut up warning message
- - add "localhost" zone
- - changing /var/named
|