knot/knot.spec

253 lines
8.0 KiB
RPMSpec
Raw Normal View History

%global _hardened_build 1
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
2012-12-20 14:45:52 +00:00
Summary: An authoritative DNS daemon
Name: knot
2014-05-22 11:40:00 +00:00
Version: 1.4.6
2014-05-22 13:59:08 +00:00
Release: 2%{?dist}
2013-07-15 12:27:36 +00:00
License: GPLv3
2012-12-20 14:45:52 +00:00
Group: System Environment/Daemons
URL: http://www.knot-dns.cz
2014-01-06 12:34:17 +00:00
Source0: http://public.nic.cz/files/knot-dns/%{name}-%{version}.tar.gz
2012-12-20 14:45:52 +00:00
Source1: %{name}.service
Source2: %{name}.conf
Source3: %{name}.tmpfiles
2012-12-20 14:45:52 +00:00
BuildRequires: flex bison openssl-devel userspace-rcu-devel libcap-ng-devel libidn-devel
2012-12-20 14:45:52 +00:00
BuildRequires: texinfo
BuildRequires: systemd-units
# ragel is optional, required only if .rl source files are modified
#BuildRequires: ragel
2012-12-20 14:45:52 +00:00
2012-12-20 18:11:51 +00:00
Requires(post): systemd info
Requires(preun): systemd info
Requires(postun): systemd
2012-12-20 14:45:52 +00:00
%description
Knot DNS is a high-performance authoritative DNS server implementation.
2012-12-20 14:45:52 +00:00
%prep
2014-01-06 12:34:17 +00:00
%setup -q
2012-12-20 14:45:52 +00:00
%build
# disable debug code (causes unused warnings)
CFLAGS="%{optflags} -DNDEBUG -Wno-unused"
%configure
2012-12-20 14:45:52 +00:00
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
# info database is updated at install time
rm %{buildroot}%{_datadir}/info/dir
# install customized configuration file
rm %{buildroot}%{_sysconfdir}/%{name}/*
install -p -m 0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
# install service file and create rundir
install -p -m 0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -p -m 0644 -D %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d -m 0755 %{buildroot}%{_localstatedir}/run/%{name}
# create storage dir and key dir
mkdir -p %{buildroot}%{_sharedstatedir}
install -d -m 0775 %{buildroot}%{_sharedstatedir}/%{name}
install -d -m 0750 %{buildroot}%{_sharedstatedir}/%{name}/keys
# install config samples into docdir
install -d -m 0755 %{buildroot}%{_pkgdocdir}/samples
for sample_file in knot.full.conf knot.keys.conf example.com.zone; do
install -p -m 0644 samples/${sample_file} %{buildroot}%{_pkgdocdir}/samples
done
%check
make check
2012-12-20 14:45:52 +00:00
%pre
getent group knot >/dev/null || groupadd -r knot
getent passwd knot >/dev/null || \
useradd -r -g knot -d %{_sysconfdir}/knot -s /sbin/nologin \
-c "Knot DNS server" knot
exit 0
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
2012-12-20 18:11:51 +00:00
%systemd_post knot.service
2012-12-20 14:45:52 +00:00
%preun
2012-12-20 18:11:51 +00:00
%systemd_preun knot.service
2012-12-20 14:45:52 +00:00
if [ $1 -eq 0 ] ; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%postun
2012-12-20 18:11:51 +00:00
%systemd_postun
2012-12-20 14:45:52 +00:00
%files
%doc COPYING AUTHORS NEWS README THANKS
%dir %attr(750,root,knot) %{_sysconfdir}/%{name}
%config(noreplace) %attr(640,root,knot) %{_sysconfdir}/%{name}/%{name}.conf
%dir %attr(775,root,knot) %{_sharedstatedir}/%{name}
%dir %attr(750,root,knot) %{_sharedstatedir}/%{name}/keys
%dir %attr(-,knot,knot) %{_localstatedir}/run/%{name}
2012-12-20 14:45:52 +00:00
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%doc %{_infodir}/%{name}.info.gz
2012-12-20 14:45:52 +00:00
%changelog
2014-05-22 13:59:08 +00:00
* Thu May 22 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.6-2
2014-05-22 11:40:00 +00:00
- update to 1.4.6
+ DNSSEC: fix possible signing loop when doing key rollover
+ RRL: fixed sending of malformed UDP empty responses
2014-04-14 19:50:20 +00:00
* Mon Apr 14 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.5-1
- update to 1.4.5
+ fix weakness in TSIG digest checking
2014-03-27 16:06:28 +00:00
* Thu Mar 27 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.4-1
- update to 1.4.4
+ server is logging remote control commands
+ 'knotc reload' doesn't refresh unchanged zones
+ 'knotc -f refresh' forces zone retransfer
+ missing notifications after DDNS/automatic resign
+ zone is rebootstrapped if the zone file is unreadable
+ progressive bootstrap retry backoff
+ zone file parser allows asterisk as part of the label
+ journal maximum entry size fixes
+ sign DNSKEYs in non-apex nodes as regular RR sets
+ various spelling and typo fixes
2014-02-18 14:26:10 +00:00
* Tue Feb 18 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.3-1
- update to 1.4.3
+ DNSSEC: fixes in authenticated denial proofs
+ zone parser: case insensitive comparison of $ORIGIN
+ journal: fix corruption if zone loading fails
+ config: add support for includes of directories
2014-02-12 13:06:55 +00:00
* Wed Feb 12 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.2-3
- rebuild with new userspace-rcu
2014-01-27 18:49:43 +00:00
* Mon Jan 27 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.2-2
- enable IDN support in domain names
2014-01-27 18:22:18 +00:00
* Mon Jan 27 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.2-1
- update to 1.4.2
2014-01-13 18:14:56 +00:00
* Mon Jan 13 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.1-1
- update to 1.4.1
2014-01-06 12:34:17 +00:00
* Mon Jan 06 2014 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.0-1
- update to 1.4.0
2013-12-13 20:24:19 +00:00
* Fri Dec 13 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.0-0.2.rc2
- update to 1.4.0-rc2
* Tue Nov 26 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.4.0-0.1.rc1
- update to 1.4.0-rc1
* Tue Oct 08 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.3.2-2
- fix failing wire reading/writing tests on big endian (#1015976)
2013-10-01 07:26:46 +00:00
* Tue Oct 01 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.3.2-1
- update to 1.3.2
+ possibility to set max UDP payload in EDNS0
+ fixed bug limiting payload size in some TCP responses
+ fixed closing of file descriptors for included files in config
2013-09-01 16:10:32 +00:00
* Sun Sep 01 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.3.1-1
- update to 1.3.1
2013-07-29 15:54:52 +00:00
* Mon Jul 29 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.3.0-0.4.rc5
- update to 1.3.0-rc5
* Mon Jul 15 2013 Paul Wouters <pwouters@redhat.com> - 1.3.0-0.3.rc4
- Added Alias=knotd.service alias to service file
- Added ExecStartPre=/usr/sbin/knotc checkconf to service file
2013-07-15 12:27:36 +00:00
* Mon Jul 15 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.3.0-0.2.rc4
- update to 1.3.0-rc4
* Wed Jul 03 2013 Jan Vcelak <jvcelak@fedoraproject.org> 1.3.0-0.1.rc3
- update to 1.3.0-rc3
- update configuration
- disable assertions in the code (define NDEBUG)
- enable unit tests as a part of RPM build process
- enable fast zone parser
- fix wrong dates in changelog
* Fri Apr 05 2013 Paul Wouters <pwouters@redhat.com> - 1.2.0-1
- Updated to 1.2.0-1
- Enabled hardening/relro/pie protection
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-12-20 18:11:51 +00:00
* Thu Dec 20 2012 Paul Wouters <pwouters@redhat.com> - 1.1.3-2
- Use new systemd macros
2012-12-20 14:45:52 +00:00
* Thu Dec 20 2012 Paul Wouters <pwouters@redhat.com> - 1.1.3-1
- Initial build for Fedora
* Thu Nov 22 2012 Ondřej Surý <ondrej@sury.org> - 1.1.2-1
- Update to 1.1.2
* Wed Nov 7 2012 Stanislav Petr <glux@glux.org> - 1.1.1-1
- Fixed build problem
- Update to 1.1.1
- Add man5 directory
- Add knot.info.gz to infodir
* Mon Aug 27 2012 Stanislav Petr <glux@glux.org> - 1.1.0-1
- Update to 1.1.0-rc2
- Fix default knot.conf
- Add build dependency to texinfo
2013-07-03 10:58:12 +00:00
* Tue May 15 2012 Stanislav Petr <glux@glux.org> - 1.0.6-2
2012-12-20 14:45:52 +00:00
- Try to fix compilation problem on some systems - force add -lgcc_eh to gcc flags
2013-07-03 10:58:12 +00:00
* Sun May 13 2012 Stanislav Petr <glux@glux.org> - 1.0.6-1
2012-12-20 14:45:52 +00:00
- Update to versio 1.0.6
- Change attrs to 750 on /etc/knot - only for root (knot configuration can contain DNS keys for zone updates)
- Clean content in /etc/knot
2013-07-03 10:58:12 +00:00
* Tue May 1 2012 Stanislav Petr <glux@glux.org> - 1.0.5-1
2012-12-20 14:45:52 +00:00
- Update to version 1.0.5
* Wed Apr 18 2012 Stanislav Petr <glux@glux.org> - 1.0.3-1
- Fixed knot directory ownership.
- Update to version 1.0.3
- Merget changes from Paul Wouters <pwouters@redhat.com>
- Removed unnecessary commands pro %%post script
- Add knot user
- More configuration samples in /usr/share/doc/knot
* Thu Mar 1 2012 Stanislav Petr <glux@glux.org> - 1.0.0-4
- Update to upstream version 1.0.0
- Fix %%{_sharedstatedir} usage in .spec.
- Fix file and directories ownership
- Fix service upgrade in postun in rpm.
- Do not install unittests.
* Wed Jan 25 2012 Stanislav Petr <glux@glux.org> - 0.9.1-3
- Update to upstream version 0.9.1
* Mon Dec 12 2011 Stanislav Petr <glux@glux.org> - 0.8.1-3
- Add docs (COPYING AUTHORS RELNOTES KNOWN_ISSUES)
- Update rpm building options.
Use %%{_sharedstatedir} instead of %%{_var}/lib,
dafault value for %%{buildroot} path
- Remove ldconfig from post and postun in rpm.
- Update licence to GPLv3+
* Wed Dec 07 2011 Stanislav Petr <glux@glux.org> - 0.8.1-2
- RPM build fix
* Mon Dec 05 2011 Stanislav Petr <glux@glux.org> - 0.8.1-1
- Create