File inetsim.spec of Package inetsim
#
# spec file for package inetsim
#
# 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: inetsim
Version: 1.3.2
Release: 0
Summary: Internet Services Simulation Suite
License: GPL-3.0-only
URL: https://www.inetsim.org/
Source: https://www.inetsim.org/downloads/%{name}-%{version}.tar.gz
Requires: perl(Getopt::Long)
Requires: perl(IO::Select)
Requires: perl(IO::Socket)
Requires: perl(IPC::Shareable)
Requires: perl(Net::DNS)
Requires: perl(Net::Server)
Requires: perl(Digest::SHA1)
%description
INetSim is a software suite for simulating common internet services
in a lab environment, e.g. for analyzing the network behaviour of
unknown malware samples.
INetSim supports simulation of the following services:
HTTP, SMTP, POP3, DNS, FTP, NTP, TFTP, IRC, Ident, Finger, Syslog,
'Small servers' (Daytime, Time, Echo, Chargen, Discard, Quotd)
Additional features:
* Faketime
* Connection redirection
* Detailed logging and reports
* SSL/TLS support for several services
%prep
%setup -q
%build
%install
# FIXME: package like debian package
# -> https://www.inetsim.org/packages.html
install -d %{buildroot}/opt/inetsim
#install -D -m644 inetsim.service %{buildroot}%{_prefix}/lib/systemd/system/inetsim.service
install -D -m644 man/man1/inetsim.1 %{buildroot}%{_mandir}/man1/inetsim.1
install -D -m644 man/de/man1/inetsim.1 %{buildroot}%{_mandir}/de/man1/inetsim.1
install -D -m644 man/de/man5/inetsim.conf.5 %{buildroot}%{_mandir}/man5/inetsim.conf.5
cp -r * %{buildroot}/opt/inetsim/
%files
%license COPYING
%doc CHANGES README
/opt/inetsim/
%{_mandir}/de/man1/inetsim.1%{?ext_man}
%{_mandir}/man1/inetsim.1%{?ext_man}
%{_mandir}/man5/inetsim.conf.5%{?ext_man}
%changelog