Browse Source

nsd-4.1.10-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10373 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
0cb0ea5ec8
1 changed files with 11 additions and 6 deletions
  1. 11 6
      n/nsd/nsd-vl.spec

+ 11 - 6
n/nsd/nsd-vl.spec

@@ -1,15 +1,19 @@
 Summary: Fast and lean authoritative DNS Name Server
 Summary(ja): 高速で最小限のAuthoritative専用DNSネームサーバ
 Name: nsd
-Version: 4.1.9
+Version: 4.1.10
 Release: 1%{?_dist_release}
 License: BSD
 Url: http://www.nlnetlabs.nl/%{name}/
 Source: http://www.nlnetlabs.nl/downloads/%{name}/%{name}-%{version}.tar.gz
 Source1: nsd.init
 Source3: nsd.sysconfig
+Patch0: nsd-4.1.10-config.patch
 Group: System Environment/Daemons
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Vendor: Project Vine
+Distribution: Vine Linux
+
 BuildRequires: flex, libevent-devel, openssl-devel
 Requires(pre): shadow-utils
 
@@ -25,6 +29,8 @@ NSD に関する詳しい情報は REQUIREMENTS ドキュメントを参照し
 %prep
 %setup -q
 
+%patch0 -p1
+
 %build
 %configure \
 	--with-configdir=%{_sysconfdir}/nsd \
@@ -62,11 +68,7 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
 install -m 0755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
 
 # change .sample to normal config files
-head -150 %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample > %{buildroot}%{_sysconfdir}/nsd/nsd.conf
-echo "database: /var/lib/nsd/nsd.db" >> %{buildroot}%{_sysconfdir}/nsd/nsd.conf
-head -175 %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample | tail -26 >> %{buildroot}%{_sysconfdir}/nsd/nsd.conf
-echo "# include: \"/some/path/file\"" >> %{buildroot}%{_sysconfdir}/nsd/nsd.conf
-rm %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample 
+mv %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample %{buildroot}%{_sysconfdir}/nsd/nsd.conf
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
@@ -112,6 +114,9 @@ if [ "$1" -ge "1" ]; then
 fi
 
 %changelog
+* Thu Jun 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.1.10-1
+- new upstream release.
+
 * Wed Mar 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.1.9-1
 - new upstream release.