File PolarProxy.spec of Package PolarProxy
#
# spec file for package PolarProxy
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
Name: PolarProxy
Version: 0.9.10.0
Release: 0
Summary: A transparent SSL/TLS proxy
License: CC-BY-ND-4.0
Group: Productivity/Networking/Other
URL: https://www.netresec.com/?page=PolarProxy
# Download via: https://www.netresec.com/?download=PolarProxy
Source: %{name}_0-9-10_linux-x64.tar.gz
Source1: %{name}-wrapper.sh
Source99: %{name}-rpmlintrc
ExclusiveArch: x86_64
%description
PolarProxy is a transparent SSL/TLS proxy created for incident responders
and malware researchers. PolarProxy is primarily designed to intercept
and decrypt TLS encrypted traffic from malware. PolarProxy decrypts and
re-encrypts TLS traffic, while also saving the decrypted traffic in a PCAP
file that can be loaded into Wireshark or an intrusion detection system
(IDS).
%prep
%setup -c -q
sed -i 's/\r$//' ChangeLog.txt
# fix spurious permissions
chmod -x *
chmod +x PolarProxy createdump
#### TODO
# - manpage via help2man
# - service file
# - user
# - handling of createdump
%build
%install
install -D -m0755 %{SOURCE1} %{buildroot}/%{_bindir}/PolarProxy
install -d %{buildroot}/opt/PolarProxy/
# genau anders herum installieren - nur dlls
mv -v * %{buildroot}/opt/PolarProxy/
mv -v %{buildroot}/opt/PolarProxy/ChangeLog.txt .
#createdump
#PolarProxy
#PolarProxy.deps.json
#PolarProxy.runtimeconfig.json
#PolarProxy.service
%files
#%%license see website -> CC-BY-ND-4.0
%doc ChangeLog.txt
%{_bindir}/PolarProxy
/opt/PolarProxy/
%changelog