pdns-recursor-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. Summary: Modern, advanced and high performance recursing/non authoritative nameserver
  2. Summary(ja): Modern, advanced and high performance recursing/non authoritative nameserver
  3. Name: pdns-recursor
  4. Version: 3.3
  5. Release: 2%{?_dist_release}
  6. Group: System Environment/Daemons
  7. License: GPLv2
  8. URL: http://powerdns.com
  9. Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
  10. Source1: pdns-recursor.init
  11. Patch0: pdns-recursor-fixmakefile.patch
  12. Patch1: pdns-recursor-fixsysconfdir.patch
  13. Provides: powerdns-recursor = %{version}-%{release}
  14. BuildRequires: libboost-devel, lua-devel
  15. Requires(pre): shadow-utils
  16. Requires(post): chkconfig
  17. Requires(preun): chkconfig, initscripts
  18. %description
  19. PowerDNS Recursor is a non authoritative/recursing DNS server. Use this
  20. package if you need a dns cache for your network.
  21. %prep
  22. %setup -q
  23. %patch0 -p1 -b .fixmakefile
  24. %patch1 -p1 -b .fixsysconfdir
  25. %build
  26. LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua OPTFLAGS="%{optflags}" make %{?_smp_mflags}
  27. %install
  28. %{__rm} -rf %{buildroot}
  29. make install DESTDIR=%{buildroot} CONFIGDIR="%{_sysconfdir}/%{name}"
  30. %{__install} -D -p %{SOURCE1} %{buildroot}%{_initrddir}/pdns-recursor
  31. %{__mv} %{buildroot}%{_sysconfdir}/%{name}/recursor.conf{-dist,}
  32. # add pdns user and group to top of configfile
  33. sed -i '1i\setuid=pdns-recursor' %{buildroot}%{_sysconfdir}/%{name}/recursor.conf
  34. sed -i '2i\setgid=pdns-recursor' %{buildroot}%{_sysconfdir}/%{name}/recursor.conf
  35. %pre
  36. getent group pdns-recursor > /dev/null || groupadd -r pdns-recursor
  37. getent passwd pdns-recursor > /dev/null || \
  38. useradd -r -g pdns-recursor -d / -s /sbin/nologin \
  39. -c "PwerDNS Recursor user" pdns-recursor
  40. exit 0
  41. %post
  42. chkconfig --add %{name}
  43. %preun
  44. if [ $1 -eq 0 ]; then
  45. service %{name} stop >/dev/null 2>&1 || :
  46. chkconfig --del %{name}
  47. fi
  48. %postun
  49. if [ $1 -ge 1 ]; then
  50. service %{name} condrestart >/dev/null 2>&1 || :
  51. fi
  52. %clean
  53. %{__rm} -rf %{buildroot}
  54. %files
  55. %defattr(-,root,root,-)
  56. %{_bindir}/rec_control
  57. %{_sbindir}/pdns_recursor
  58. %{_mandir}/man1/pdns_recursor.1.gz
  59. %{_mandir}/man1/rec_control.1.gz
  60. %{_initrddir}/pdns-recursor
  61. %dir %{_sysconfdir}/%{name}
  62. %config(noreplace) %{_sysconfdir}/%{name}/recursor.conf
  63. %doc COPYING README
  64. %changelog
  65. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 3.3-2
  66. - rebuild with gcc-5.4.0
  67. * Wed Apr 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.3-1
  68. - initial build for Vine Linux
  69. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-3
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  71. * Wed Sep 29 2010 jkeating - 3.3-2
  72. - Rebuilt for gcc bug 634757
  73. * Sat Sep 25 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 3.3-1
  74. - Upstream released new version: http://doc.powerdns.com/changelog.html
  75. * Thu May 13 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 3.2-2
  76. - Correct group name (bz #591214)
  77. * Sun Mar 14 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 3.2-1
  78. - Upstream released new version
  79. - Adjust scriptlets to packaging guidelines
  80. * Mon Mar 01 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 3.2-0.1.rc2
  81. - Upstream released new version
  82. * Wed Jan 06 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 3.1.7.2-1
  83. - Upstream released new version
  84. - Fixes CVE-2009-4009 and CVE-2009-4010
  85. * Tue Nov 24 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 3.1.7.1-3
  86. - Start recursor earlier in the boot process (#540428)
  87. * Mon Aug 10 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.7.1-2
  88. - Re-add accidently dropped patch (#516562)
  89. * Mon Aug 03 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.7.1-1
  90. - Upstream released new version
  91. - Drop patches included upstream
  92. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-5
  93. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  94. * Fri Feb 27 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.7-4
  95. - Fix errors with newer Boost
  96. - Fix build with gcc4.4
  97. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-3
  98. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  99. * Thu Jul 24 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.7-2
  100. - Use OPTFLAGS because CXXFLAGS overrides the defaults
  101. * Thu Jul 24 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.7-1
  102. - Upstream released new version, now with Lua support
  103. * Sun May 11 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.6
  104. - Upstream released new version
  105. * Wed Apr 02 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.5
  106. - Upstream released new version
  107. * Sat Feb 16 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.5-0.1.snapshot4
  108. - Snapshot 4
  109. - Drop gcc 4.3 patch, fixed upstream
  110. * Sat Feb 09 2008 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.1.5-0.1.snapshot3
  111. - Sync with upstream
  112. - Compile fixes for gcc43
  113. * Sun Jan 27 2007 <ruben@rubenkerkhof.com> 3.1.4-4
  114. - Now really fix the description in init script
  115. * Sat Jan 27 2007 <ruben@rubenkerkhof.com> 3.1.4-3
  116. - Fixed Description in init script
  117. * Wed Jan 24 2007 <ruben@rubenkerkhof.com> 3.1.4-2
  118. - Fixes per bz review 221188:
  119. - Changed user to pdns-recursor
  120. - Patched the Makefile to not strip debugsymbols
  121. - Skipped the configure step, it didn't do much
  122. - Added a more Fedora-centric initscript
  123. - Use condrestart instead of restart in %%postun
  124. * Sun Dec 31 2006 <ruben@rubenkerkhof.com> 3.1.4-1
  125. - Initial import