2019-12-02 07:46:39 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package EternalTerminal
|
|
|
|
|
#
|
2024-02-13 15:33:51 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-12-02 07:46:39 +00:00
|
|
|
#
|
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _firewalld_dir %{_prefix}/lib/firewalld
|
2023-09-01 17:38:57 +00:00
|
|
|
%if 0%{?sle_version} >= 150300
|
|
|
|
|
%define forced_gcc_version -10
|
|
|
|
|
BuildRequires: gcc10-c++
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
%endif
|
2019-12-02 07:46:39 +00:00
|
|
|
Name: EternalTerminal
|
2023-09-01 17:38:57 +00:00
|
|
|
Version: 6.2.8
|
2019-12-02 07:46:39 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Remote shell that survives IP roaming and disconnect
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://mistertea.github.io/EternalTerminal/
|
|
|
|
|
Source0: https://github.com/MisterTea/EternalTerminal/archive/et-v%{version}.tar.gz
|
|
|
|
|
Source1: et.xml
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: cmake
|
2021-04-08 10:40:28 +00:00
|
|
|
BuildRequires: curl-devel
|
2019-12-02 07:46:39 +00:00
|
|
|
BuildRequires: firewall-macros
|
2019-12-27 11:28:38 +00:00
|
|
|
BuildRequires: firewalld
|
2019-12-02 07:46:39 +00:00
|
|
|
BuildRequires: gflags-devel
|
2024-02-13 15:33:51 +00:00
|
|
|
BuildRequires: libopenssl-devel
|
2019-12-02 07:46:39 +00:00
|
|
|
BuildRequires: libsodium-devel
|
|
|
|
|
BuildRequires: ncurses-devel
|
2021-04-08 10:40:28 +00:00
|
|
|
BuildRequires: ninja
|
|
|
|
|
BuildRequires: pkgconfig
|
2019-12-02 07:46:39 +00:00
|
|
|
BuildRequires: protobuf-devel
|
2019-12-27 11:28:38 +00:00
|
|
|
BuildRequires: utempter-devel
|
2019-12-02 07:46:39 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Eternal Terminal (ET) is a remote shell that automatically reconnects without
|
|
|
|
|
interrupting the session.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-11-04 08:41:59 +00:00
|
|
|
%autosetup -n EternalTerminal-et-v%{version} -p1
|
2019-12-02 07:46:39 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-08-18 06:06:23 +00:00
|
|
|
|
|
|
|
|
%if 0%{?forced_gcc_version:1}
|
|
|
|
|
export CC=gcc%{?forced_gcc_version}
|
|
|
|
|
export CXX=g++%{?forced_gcc_version}
|
|
|
|
|
%endif
|
2021-11-04 08:41:59 +00:00
|
|
|
export CXXFLAGS="%{optflags} -std=c++17"
|
2021-04-08 10:40:28 +00:00
|
|
|
# see https://github.com/MisterTea/EternalTerminal/issues/403
|
|
|
|
|
%cmake -DDISABLE_VCPKG:BOOL=ON -DProtobuf_LITE_LIBRARY=%{_libdir}/libprotobuf-lite.so
|
2023-09-01 17:38:57 +00:00
|
|
|
%make_build
|
2019-12-02 07:46:39 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
mkdir -p \
|
|
|
|
|
%{buildroot}%{_unitdir} \
|
|
|
|
|
%{buildroot}%{_sysconfdir} \
|
|
|
|
|
%{buildroot}%{_firewalld_dir}/services
|
|
|
|
|
install -m 0644 -p systemctl/et.service %{buildroot}%{_unitdir}/et.service
|
|
|
|
|
install -m 0644 -p etc/et.cfg %{buildroot}%{_sysconfdir}/et.cfg
|
|
|
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_firewalld_dir}/services/et.xml
|
2023-03-13 17:54:22 +00:00
|
|
|
mv %{buildroot}%{_bindir}/et %{buildroot}%{_bindir}/et-client
|
2019-12-02 07:46:39 +00:00
|
|
|
|
2023-09-01 17:38:57 +00:00
|
|
|
# https://github.com/MisterTea/EternalTerminal/issues/601
|
|
|
|
|
rm %{buildroot}%{_includedir}/httplib.h
|
|
|
|
|
rm %{buildroot}%{_libdir}/cmake/httplib/*.cmake
|
|
|
|
|
|
2019-12-02 07:46:39 +00:00
|
|
|
%pre
|
|
|
|
|
%service_add_pre et.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%service_add_post et.service
|
|
|
|
|
%firewalld_reload
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%service_del_preun et.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%service_del_postun et.service
|
|
|
|
|
%firewalld_reload
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
2023-03-13 17:54:22 +00:00
|
|
|
%{_bindir}/et-client
|
2019-12-02 07:46:39 +00:00
|
|
|
%{_bindir}/etserver
|
|
|
|
|
%{_bindir}/etterminal
|
|
|
|
|
%{_bindir}/htm
|
|
|
|
|
%{_bindir}/htmd
|
|
|
|
|
%dir %{_firewalld_dir}
|
|
|
|
|
%dir %{_firewalld_dir}/services
|
|
|
|
|
%{_firewalld_dir}/services/et.xml
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/et.cfg
|
|
|
|
|
%{_unitdir}/et.service
|
|
|
|
|
|
|
|
|
|
%changelog
|