Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:PRES
i2pd
i2pd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File i2pd.spec of Package i2pd
# # spec file for package i2pd # # Copyright (c) 2017 SUSE LINUX 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: i2pd Version: 2.22.0~git20181109T022255 Release: 0 Url: https://github.com/PurpleI2P/i2pd Summary: Simplified C++ implementation of I2P client License: BSD-3-Clause Group: Productivity/Networking/Security Source: %{name}-%{version}.tar.gz Patch1: i2pd-2.14.0-fix_libi2pd_install_path.patch BuildRequires: gcc-c++ BuildRequires: gzip BuildRequires: cmake BuildRequires: libboost_atomic-devel BuildRequires: libboost_chrono-devel BuildRequires: libboost_date_time-devel BuildRequires: libboost_filesystem-devel BuildRequires: libboost_locale-devel BuildRequires: libboost_program_options-devel BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel BuildRequires: libminiupnpc-devel BuildRequires: libqt5-qtbase-devel BuildRequires: lua-devel BuildRequires: libopenssl-1_0_0-devel BuildRequires: websocketpp-devel BuildRequires: zlib-devel PreReq: pwdutils BuildRequires: systemd-devel %{?systemd_requires} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description i2pd (I2P Daemon) is a full-featured C++ implementation of I2P client. I2P (Invisible Internet Protocol) is a universal anonymous network layer. All communications over I2P are anonymous and end-to-end encrypted, participants don't reveal their real IP addresses. I2P client is a software used for building and using anonymous I2P networks. Such networks are commonly used for anonymous peer-to-peer applications (filesharing, cryptocurrencies) and anonymous client-server applications (websites, instant messengers, chat-servers). I2P allows people from all around the world to communicate and share information without restrictions. %prep %setup -q #patch1 -p1 #ln -s build/CMakeLists.txt ./ #ln -s build/cmake_modules ./ #sed -i -e 's:\.\.\/::g' build/CMakeLists.txt sed -i -e 's:/var/run:/run:g' \ -e 's:0755 i2pd i2pd:0775 i2pd root:g' contrib/debian/i2pd.tmpfile %build # -DWITH_ADDRSANITIZER=1 \ # -DWITH_THREADSANITIZER=1 \ \ # -DWITH_MESHNET=ON cd build cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_SKIP_RPATH=TRUE \ -DWITH_AESNI=ON \ -DWITH_AVX=ON \ -DWITH_GUI=ON \ -DWITH_HARDENING=ON \ -DWITH_UPNP=ON \ -DWITH_WEBSOCKETS=ON \ -DWITH_I2LUA=ON %{__make} %{?_smp_mflags} # build gui cd ../qt/i2pd_qt %qmake5 PREFIX=%{_prefix} %{__make} %{?_smp_mflags} %install # installation is completely screwed up #cmake_install #cd build #make install DESTDIR="%{buildroot}" #cd .. install -d -m 0755 %{buildroot}%{_sbindir} install -m 0755 build/i2pd %{buildroot}%{_sbindir}/ install -m 0755 qt/i2pd_qt/i2pd_qt %{buildroot}%{_sbindir}/ install -d -m 0755 %{buildroot}%{_unitdir} install -p -m 0644 contrib/debian/i2pd.service %{buildroot}%{_unitdir}/ install -d -m 0755 %{buildroot}%{_tmpfilesdir} install -m 0644 contrib/debian/i2pd.tmpfile %{buildroot}%{_tmpfilesdir}/%{name}.conf install -d -m 0750 %{buildroot}%{_sysconfdir}/%{name} install -p -m 0644 contrib/i2pd.conf %{buildroot}%{_sysconfdir}/%{name}/ install -p -m 0644 contrib/tunnels.conf %{buildroot}%{_sysconfdir}/%{name}/ install -p -m 0644 contrib/subscriptions.txt %{buildroot}%{_sysconfdir}/%{name}/ install -d -m 0750 %{buildroot}/var/lib/%{name} mkdir -p %{buildroot}%{_sbindir} ln -s -f service %{buildroot}%{_sbindir}/rc%{name} ln -s %{_sysconfdir}/%{name}/i2pd.conf %{buildroot}/var/lib/%{name}/i2pd.conf ln -s %{_sysconfdir}/%{name}/tunnels.conf %{buildroot}/var/lib/%{name}/tunnels.conf ln -s %{_sysconfdir}/%{name}/subscriptions.txt %{buildroot}/var/lib/%{name}/subscriptions.txt install -d 0755 %{buildroot}%{_datadir}/%{name} cp -av contrib/certificates %{buildroot}%{_datadir}/%{name}/ ln -s %{_datadir}/%{name}/certificates %{buildroot}/var/lib/%{name}/certificates mkdir -p %{buildroot}%{_mandir}/man1 gzip debian/i2pd.1 cp -v debian/i2pd.1.gz %{buildroot}%{_mandir}/man1/ %check %pre /usr/sbin/groupadd -r i2pd >/dev/null 2>&1 || : /usr/sbin/useradd -g i2pd -s /bin/false -r -c "C++ daemon for accessing the I2P network" -d /var/lib/i2pd i2pd >/dev/null 2>&1 || : %service_add_pre i2pd.service %post %fillup_only %{name} systemd-tmpfiles --create %{_tmpfilesdir}/i2pd.conf || : %service_add_post i2pd.service %preun %service_del_preun i2pd.service %postun %service_del_postun i2pd.service %files %defattr(-,root,root,-) %attr(0775,i2pd,root) %ghost %dir /run/%{name} %attr(0775,i2pd,root) %ghost %dir /var/log/%{name} %dir %{_sysconfdir}/%{name} %config %{_sysconfdir}/%{name}/* %{_sbindir}/%{name}* %{_sbindir}/rc%{name} %{_mandir}/man?/i2pd.?.gz %{_tmpfilesdir}/%{name}.conf %{_unitdir}/%{name}.service %{_datadir}/%{name} /var/lib/%{name} %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