Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bmwiedemann
hefur
hefur.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hefur.spec of Package hefur
# # spec file for package hefur # # Copyright (c) 2017 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/ # %if 0%{?suse_version} %bcond_without apparmor %else %bcond_with apparmor %endif %if 0%{?suse_version} == 1315 %define force_gcc_version 6 %endif Name: hefur Version: 0 Release: 0 License: MIT Summary: Standalone C++ BitTorrent tracker Url: https://github.com/abique/hefur Group: Productivity/Networking/File-Sharing Source: %{name}-%{version}.tar.xz Source1: hefur.service Source2: hefur.tmpfiles.d Source9: series Patch: no-docs.patch %if 0%{?force_gcc_version} BuildRequires: gcc%{?force_gcc_version}-c++ >= 4.9 #!BuildIgnore: libgcc_s1 %endif BuildRequires: bison BuildRequires: cmake BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(protobuf) >= 3 BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(zlib) %if 0%{?with apparmor} BuildRequires: apparmor-rpm-macros BuildRequires: apparmor-abstractions %endif %{?systemd_requires} BuildRoot: %{_tmppath}/%{name}-%{version}-build %define home /var/lib/%{name}/ %define logdir /var/log/%{name}/ %description Hefur is a standalone C++ BitTorrent tracker. Features: - support HTTP, HTTPS and UPD announce and scrape - support both IPv4 and IPv6 - no database required (every thing in memory) - should be efficient - perfect for small setup - info_hash white list based on .torrent in a directory tree - control interface - control program: hefurctl %prep %autosetup -p1 %build %if 0%{?force_gcc_version} export CC="gcc-%{?force_gcc_version}" export CXX="g++-%{?force_gcc_version}" %endif %cmake %cmake_build %if 0%{?suse_version} < 1550 perl -p -i.back -e 's|^abi <abi.*||g' ../init/hefurd.apparmor diff -urN ../init/hefurd.apparmor{.back,} ||: %endif %install %cmake_install install -D -d -m 0750 \ %{buildroot}%{home} \ %{buildroot}%{_sbindir} \ %{buildroot}%{logdir} \ %if %{with apparmor} %{buildroot}/etc/apparmor.d/local \ %endif %{buildroot}/run/%{name} mv -v %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir} rm -rv %{buildroot}%{_bindir} install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service install -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %if %{with apparmor} install -D -m 0644 init/hefurd.apparmor %{buildroot}/etc/apparmor.d/hefurd touch %{buildroot}/etc/apparmor.d/local/hefurd touch %{buildroot}/etc/apparmor.d/local/usr.sbin.hefurd %endif %pre %{_sbindir}/groupadd -r %{name} &>/dev/null ||: %{_sbindir}/useradd -g %{name} -s /bin/false -r -c "user for %{name}" -d %{home} %{name} &>/dev/null ||: %service_add_pre %{name}.service %preun %service_del_preun %{name}.service %post %apparmor_reload /etc/apparmor.d/hefurd %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %service_add_post %{name}.service %postun %service_del_postun %{name}.service %files %defattr(-,root,root) %{_sbindir}/rc%{name} %{_sbindir}/%{name}* %{_datadir}/%{name}/ %if %{with apparmor} %config /etc/apparmor.d/hefurd %ghost %config(noreplace) /etc/apparmor.d/local/hefurd %ghost %config(noreplace) /etc/apparmor.d/local/usr.sbin.hefurd %endif %dir %attr(0750,%{name},%{name}) %{home} %dir %attr(0750,%{name},%{name}) %{logdir} %{_tmpfilesdir}/%{name}.conf %{_unitdir}/%{name}.service %ghost %dir %attr(0750,%{name},%{name}) /run/%{name}
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