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