2012-12-20 14:45:52 +00:00
|
|
|
Summary: An authoritative DNS daemon
|
|
|
|
Name: knot
|
|
|
|
Version: 1.1.3
|
2013-02-14 03:28:05 +00:00
|
|
|
Release: 3%{?dist}
|
2012-12-20 14:45:52 +00:00
|
|
|
License: GPLv3+
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
URL: http://www.knot-dns.cz
|
|
|
|
Source0: http://public.nic.cz/files/knot-dns/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}.service
|
|
|
|
Source2: %{name}.conf
|
|
|
|
|
|
|
|
BuildRequires: flex userspace-rcu-devel openssl-devel
|
|
|
|
BuildRequires: bison systemd-units libcap-ng-devel
|
|
|
|
BuildRequires: texinfo
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags} -lgcc_eh" CXXFLAGS="%{optflags} -lgcc_eh" \
|
|
|
|
./configure --prefix=%{_prefix} \
|
|
|
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
|
|
|
--localstatedir=%{_sharedstatedir} \
|
|
|
|
--libdir=%{_libdir} --libexecdir=%{_libexecdir}/%{name}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm %{buildroot}/%{_datadir}/info/dir
|
|
|
|
install -d %{buildroot}/%{_sharedstatedir}/%{name}
|
|
|
|
install -d %{buildroot}/%{_unitdir}
|
|
|
|
install -p -m644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service
|
|
|
|
install -p -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
|
|
|
|
|
|
|
|
%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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(750,root,root) %{_sysconfdir}/%{name}
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
|
|
|
%exclude %{_sysconfdir}/%{name}/example.com.zone
|
|
|
|
%exclude %{_sysconfdir}/%{name}/knot.sample.conf
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
%exclude %{_libexecdir}/%{name}/unittests*
|
|
|
|
%{_mandir}/man8/%{name}*.8*
|
|
|
|
%{_mandir}/man5/%{name}*.5*
|
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
%dir %{_sharedstatedir}/%{name}
|
|
|
|
%doc COPYING AUTHORS RELNOTES KNOWN_ISSUES README
|
|
|
|
%doc samples/bogus25.com.zone samples/example.com.zone.signed samples/knot.full.conf
|
|
|
|
%doc samples/example.com.zone samples/example.com.zone.signed.nsec3 samples/knot.min.conf
|
|
|
|
%doc %{_infodir}/knot.info.gz
|
|
|
|
|
|
|
|
%changelog
|
2013-02-14 03:28:05 +00:00
|
|
|
* 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
|
|
|
|
|
|
|
|
* Fri May 15 2012 Stanislav Petr <glux@glux.org> - 1.0.6-2
|
|
|
|
- Try to fix compilation problem on some systems - force add -lgcc_eh to gcc flags
|
|
|
|
|
|
|
|
* Wed May 13 2012 Stanislav Petr <glux@glux.org> - 1.0.6-1
|
|
|
|
- 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
|
|
|
|
|
|
|
|
* Thu May 1 2012 Stanislav Petr <glux@glux.org> - 1.0.5-1
|
|
|
|
- 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
|