Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
knot
knot.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File knot.spec of Package knot
# # spec file for package knot # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: knot Url: http://www.knot-dns.cz Version: 1.1.2 Release: 0 Summary: An authoritative DNS daemon License: GPL-3.0+ Group: Productivity/Networking/DNS/Servers Requires(pre): pwdutils BuildRequires: bison BuildRequires: flex BuildRequires: liburcu-devel # We really only need makeinfo %if 0%{?suse_version} > 1220 BuildRequires: makeinfo %else BuildRequires: texinfo %endif BuildRequires: openssl-devel %if 0%{?suse_version} > 1140 BuildRequires: systemd %{?systemd_requires} %define has_systemd 1 %endif Source0: http://public.nic.cz/files/knot-dns/%{name}-%{version}.tar.bz2 Source1: knot.conf Source2: knot.service BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Knot DNS is a high-performance authoritative DNS server implementation. %prep %setup -q %build %if 0%{suse_version} == 1210 export SUSE_ASNEEDED=0 %endif %configure \ --sysconfdir=%{_sysconfdir}/%{name} \ --libexecdir=%{_libexecdir}/%{name} \ --localstatedir=/var/lib \ --libexecdir=%{_libexecdir}/%{name} make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install rm %{buildroot}/%{_infodir}/dir rm %{buildroot}/%{_libexecdir}/%{name}/unittests* install -d %{buildroot}%{_docdir}/%{name} install -d %{buildroot}%{_docdir}/%{name}/samples/ install -d %{buildroot}%{_unitdir} install -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf install -p -m644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service install -p -m644 %{buildroot}%{_sysconfdir}/%{name}/{knot.sample.conf,example.com.zone} %{buildroot}%{_docdir}/%{name} install -p -m644 COPYING AUTHORS RELNOTES KNOWN_ISSUES README %{buildroot}%{_docdir}/%{name} install -p -m644 samples/*.conf samples/*.zone* %{buildroot}%{_docdir}/%{name}/samples/ %if 0%{?has_systemd} %endif %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 %if 0%{?has_systemd} %service_add_pre %{name}.service %endif %preun %if 0%{?has_systemd} %service_del_preun %{name}.service %endif %post %if 0%{?has_systemd} %service_add_post %{name}.service %endif %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %postun %if 0%{?has_systemd} %service_del_postun %{name}.service %endif %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %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} %{_mandir}/man8/%{name}*.8* %{_mandir}/man5/%{name}*.5* %doc %{_docdir}/%{name} %doc %{_infodir}/* %if 0%{?has_systemd} %{_unitdir}/%{name}.service %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor