nsd-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. Summary: Fast and lean authoritative DNS Name Server
  2. Summary(ja): 高速で最小限のAuthoritative専用DNSネームサーバ
  3. Name: nsd
  4. Version: 3.2.15
  5. Release: 1%{?_dist_release}
  6. License: BSD
  7. Url: http://www.nlnetlabs.nl/%{name}/
  8. Source: http://www.nlnetlabs.nl/downloads/%{name}/%{name}-%{version}.tar.gz
  9. Source1: nsd.init
  10. Source2: nsd.cron
  11. Source3: nsd.sysconfig
  12. Patch0: nsd-install.patch
  13. Group: System Environment/Daemons
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildRequires: flex, openssl-devel
  16. Requires(pre): shadow-utils
  17. %description
  18. NSD is a complete implementation of an authoritative DNS name server.
  19. For further information about what NSD is and what NSD is not please
  20. consult the REQUIREMENTS document which is a part of this distribution
  21. %description -l ja
  22. NSD は Authoritative DNSネームサーバの完全な実装です。
  23. NSD に関する詳しい情報は REQUIREMENTS ドキュメントを参照してください。
  24. %prep
  25. %setup -q
  26. %patch0 -p1
  27. %build
  28. %configure --enable-bind8-stats --enable-checking --enable-nsec3 \
  29. --with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid --with-ssl \
  30. --with-user=nsd --with-difffile=%{_localstatedir}/lib/%{name}/ixfr.db \
  31. --with-xfrdfile=%{_localstatedir}/lib/%{name}/ixfr.state \
  32. --with-dbfile=%{_localstatedir}/lib/%{name}/nsd.db
  33. %{__make} %{?_smp_mflags}
  34. #convert to utf8
  35. iconv -f iso8859-1 -t utf-8 doc/RELNOTES > doc/RELNOTES.utf8
  36. iconv -f iso8859-1 -t utf-8 doc/CREDITS > doc/CREDITS.utf8
  37. mv -f doc/RELNOTES.utf8 doc/RELNOTES
  38. mv -f doc/CREDITS.utf8 doc/CREDITS
  39. %install
  40. rm -rf %{buildroot}
  41. %{__make} DESTDIR=%{buildroot} install
  42. install -d -m 0755 %{buildroot}%{_initrddir}
  43. install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly
  44. install -c -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/nsd
  45. install -m 0755 %{SOURCE1} %{buildroot}/%{_initrddir}/nsd
  46. install -d -m 0700 %{buildroot}%{_localstatedir}/run/%{name}
  47. install -d -m 0700 %{buildroot}%{_localstatedir}/lib/%{name}
  48. install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
  49. install -m 0755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
  50. # change .sample to normal config files
  51. head -76 %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample > %{buildroot}%{_sysconfdir}/nsd/nsd.conf
  52. rm %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample
  53. echo "database: /var/lib/nsd/nsd.db" >> %{buildroot}%{_sysconfdir}/nsd/nsd.conf
  54. echo "# include: \"/some/path/file\"" >> %{buildroot}%{_sysconfdir}/nsd/nsd.conf
  55. %clean
  56. rm -rf ${RPM_BUILD_ROOT}
  57. %files
  58. %defattr(-,root,root,-)
  59. %doc doc/*
  60. %doc contrib/nsd.zones2nsd.conf
  61. %dir %{_sysconfdir}/nsd/
  62. %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/nsd/nsd.conf
  63. #%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/nsd/nsd.zones
  64. %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/nsd
  65. %attr(0755,root,root) %{_initrddir}/%{name}
  66. %{_sysconfdir}/cron.hourly/nsd
  67. %ghost %attr(0755,%{name},%{name}) %dir %{_localstatedir}/run/%{name}
  68. %attr(0755,%{name},%{name}) %dir %{_localstatedir}/lib/%{name}
  69. %{_sbindir}/*
  70. %{_mandir}/*/*
  71. %pre
  72. getent group nsd >/dev/null || groupadd -r nsd
  73. getent passwd nsd >/dev/null || \
  74. useradd -r -g nsd -d /etc/nsd -s /sbin/nologin \
  75. -c "nsd daemon account" nsd
  76. exit 0
  77. %post
  78. /sbin/chkconfig --add %{name}
  79. %preun
  80. if [ $1 -eq 0 ]; then
  81. /sbin/service %{name} stop
  82. /sbin/chkconfig --del %{name}
  83. fi
  84. %postun
  85. if [ "$1" -ge "1" ]; then
  86. /sbin/service %{name} condrestart
  87. fi
  88. %changelog
  89. * Sat Feb 23 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.15-1
  90. - new upstream release
  91. * Thu Jul 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.12-1
  92. - new upstream release
  93. * Wed Feb 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.10-1
  94. - new upstream release
  95. * Fri Mar 25 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.8-1
  96. - new upstream release
  97. * Sat May 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.4-1
  98. - initial build for Vine Linux
  99. * Wed Jan 06 2010 Paul Wouters <paul@xelerance.com> - 3.2.4-1
  100. - Updated to nsd 3.2.4
  101. * Tue Jan 05 2010 Paul Wouters <paul@xelerance.com> - 3.2.3-4
  102. - Incorporated Ville Mattila's fixes to nsd.cron
  103. - Support for NSD_AUTOREBUILD in /etc/sysconfig/nsd [Ville]
  104. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 3.2.3-3
  105. - rebuilt with new openssl
  106. * Thu Aug 20 2009 Ville Mattila <vmattila@csc.fi> - 3.2.3-2
  107. - The 'nsdc patch' and 'nsdc rebuild' commands wrote a %%1 file by mistake
  108. * Mon Aug 17 2009 Paul Wouters <paul@xelerance.com> - 3.2.3-1
  109. -Updated to version 3.2.3
  110. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-4
  111. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  112. * Sat Jun 06 2009 Paul Wouters <paul@xelerance.com> - 3.2.2-3
  113. - Fixed /dev/nul which cause a file \%%1 to be written by cron
  114. - Bump for EVR.
  115. * Mon May 18 2009 Paul Wouters <paul@xelerance.com> - 3.2.2-1
  116. - Upgraded to 3.2.2 security release
  117. http://www.nlnetlabs.nl/publications/NSD_vulnerability_announcement.html
  118. * Thu Apr 09 2009 Ville Mattila <vmattila@csc.fi> - 3.2.1-6
  119. - Make various file paths used by the nsd.init script configurable
  120. from /etc/sysconfig/nsd.
  121. - Add template /etc/sysconfig/nsd.
  122. * Sun Mar 08 2009 Paul Wouters <paul@xelerance.com> - 3.2.1-5
  123. - nsd used the 'named' subsystem in one call in the init script
  124. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-4
  125. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  126. * Mon Jan 26 2009 Paul Wouters <paul@xelerance.com> - 3.2.1-3
  127. - Fix init script 'unary operator' error.
  128. * Mon Jan 26 2009 Paul Wouters <paul@xelerance.com> - 3.2.1-1
  129. - Updated to new version 3.2.1
  130. * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 3.2.0-4
  131. - rebuild with new openssl
  132. * Mon Nov 24 2008 Paul Wouters <paul@xelerance.com> - 3.2.0-3
  133. - Updates summary as per Richard Hughes guidelines
  134. * Mon Nov 10 2008 Paul Wouters <paul@xelerance.com> - 3.2.0-2
  135. - Bump version after pre-release version correction.
  136. * Mon Nov 10 2008 Paul Wouters <paul@xelerance.com> - 3.2.0-1
  137. - 3.2.0-1
  138. * Thu Oct 9 2008 Paul Wouters <paul@xelerance.com> - 3.1.1-1
  139. - updated to 3.1.1
  140. * Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.1.0-2
  141. - fix license tag
  142. - fix static user creation
  143. * Mon Jun 30 2008 Paul Wouters <paul@xelerance.com> - 3.1.0-1
  144. - Updated to 3.1.0
  145. * Tue May 6 2008 Paul Wouters <paul@xelerance.com> - 3.0.8-2
  146. - Fix /dev/null redirection [Venkatesh Krishnamurthi]
  147. * Tue May 6 2008 Paul Wouters <paul@xelerance.com> - 3.0.8-1
  148. - Updated to 3.0.8
  149. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.0.7-3
  150. - Autorebuild for GCC 4.3
  151. * Wed Dec 5 2007 Paul Wouters <paul@xelerance.com> - 3.0.7-2
  152. - Rebuild for new libcrypto
  153. * Tue Nov 13 2007 Paul Wouters <paul@xelerance.com> - 3.0.7-1
  154. - Updated to new version
  155. - fix RELNOTES/README to be utf8
  156. - Fix path to nsd.db in cron job.
  157. * Thu Nov 8 2007 Paul Wouters <paul@xelerance.com> - 3.0.6-7
  158. - Modified cron to only rebuild/reload when zone updates
  159. have been received
  160. * Wed Nov 7 2007 Paul Wouters <paul@xelerance.com> - 3.0.6-6
  161. - Added hourly cron job to do various maintenance tasks
  162. - Added nsd rebuild to create the proper nsd.db file on startup
  163. - Added nsd patch on shutdown to ensure zonefiles are up to date
  164. * Tue Oct 2 2007 Paul Wouters <paul@xelerance.com> - 3.0.6-5
  165. - nsdc update and nsdc notify are no longer needed in initscript.
  166. * Mon Sep 24 2007 Jesse Keating <jkeating@redhat.com> - 3.0.6-4
  167. - Bump release for upgrade path.
  168. * Fri Sep 14 2007 Paul Wouters <paul@xelerance.com> 3.0.6-3
  169. - Do not include examples from nsd.conf.sample that causes
  170. bogus network traffic.
  171. * Fri Sep 14 2007 Paul Wouters <paul@xelerance.com> 3.0.6-2
  172. - Change locations of ixfr.db and xfrd.state to /var/lib/nsd
  173. - Enable NSEC3
  174. - Delay running nsdc update until after nsd has started
  175. - Delete xfrd.state on nsd stop
  176. - Run nsdc notify in the background, since it can take
  177. a very long time when remote servers are unavailable.
  178. * Tue Sep 11 2007 Paul Wouters <paul@xelerance.com> 3.0.6-1
  179. - Upgraded to 3.0.6
  180. - Do not include bind2nsd, since it didn't compile for me
  181. * Fri Jul 13 2007 Paul Wouters <paul@xelerance.com> 3.0.5-2
  182. - Fix init script, bug #245546
  183. * Fri Mar 23 2007 Paul Wouters <paul@xelerance.com> 3.0.5-1
  184. - Upgraded to 3.0.5
  185. * Thu Dec 7 2006 Paul Wouters <paul@xelerance.com> 3.0.3-1
  186. - Upgraded to 3.0.3
  187. * Mon Nov 27 2006 Paul Wouters <paul@xelerance.com> 3.0.2-1
  188. - Upgraded to 3.0.2.
  189. - Use new configuration file nsd.conf. Still needs migration script.
  190. patch from Farkas Levente <lfarkas@bppiac.hu>
  191. * Mon Oct 16 2006 Paul Wouters <paul@xelerance.com> 2.3.6-2
  192. - Bump version for upgrade path
  193. * Thu Oct 12 2006 Paul Wouters <paul@xelerance.com> 2.3.6-1
  194. - Upgraded to 2.3.6
  195. - Removed obsolete workaround in nsd.init
  196. - Fixed spec file so daemon gets properly restarted on upgrade
  197. * Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 2.3.5-4
  198. - Rebuild requested for PT_GNU_HASH support from gcc
  199. - Removed dbaccess.c from doc section
  200. * Mon Jun 26 2006 Paul Wouters <paul@xelerance.com> - 2.3.5-3
  201. - Bump version for FC-x upgrade path
  202. * Mon Jun 26 2006 Paul Wouters <paul@xelerance.com> - 2.3.5-1
  203. - Upgraded to nsd-2.3.5
  204. * Sun May 7 2006 Paul Wouters <paul@xelerance.com> - 2.3.4-3
  205. - Upgraded to nsd-2.3.4.
  206. - Removed manual install targets because DESTDIR is now supported
  207. - Re-enabled --checking, checking patch no longer needed and removed.
  208. - Work around in nsd.init for nsd failing to start when there is no ipv6
  209. * Thu Dec 15 2005 Paul Wouters <paul@xelerance.com> - 2.3.3-7
  210. - chkconfig and attribute changes as proposed by Dmitry Butskoy
  211. * Thu Dec 15 2005 Paul Wouters <paul@xelerance.com> - 2.3.3-6
  212. - Moved pid file to /var/run/nsd/nsd.pid.
  213. - Use _localstatedir instead of "/var"
  214. * Tue Dec 13 2005 Paul Wouters <paul@xelerance.com> - 2.3.3-5
  215. - Added BuildRequires for openssl-devel, removed Requires for openssl.
  216. * Mon Dec 12 2005 Paul Wouters <paul@xelerance.com> - 2.3.3-4
  217. - upgraded to nsd-2.3.3
  218. * Wed Dec 7 2005 Tom "spot" Callaway <tcallawa@redhat.com> - 2.3.2-2
  219. - minor cleanups
  220. * Mon Dec 5 2005 Paul Wouters <paul@xelerance.com> - 2.3.2-1
  221. - Upgraded to 2.3.2. Changed post scripts to comply to Fedora
  222. Extras policies (eg do not start daemon on fresh install)
  223. * Tue Oct 4 2005 Paul Wouters <paul@xelerance.com> - 2.3.1-1
  224. - Initial version