From 629486e6399ad9b920bc0c100d2c14e16d2c980db2a5f7636c5451cb390122e8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 24 Nov 2023 12:49:01 +0000 Subject: [PATCH] Accepting request 1127800 from home:mnhauke Initial package for ethflop OBS-URL: https://build.opensuse.org/request/show/1127800 OBS-URL: https://build.opensuse.org/package/show/filesystems/ethflop?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ ethflop-20191003.zip | 3 ++ ethflop.changes | 4 +++ ethflop.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++ ethflopd.8 | 30 +++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 ethflop-20191003.zip create mode 100644 ethflop.changes create mode 100644 ethflop.spec create mode 100644 ethflopd.8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/ethflop-20191003.zip b/ethflop-20191003.zip new file mode 100644 index 0000000..ead53f1 --- /dev/null +++ b/ethflop-20191003.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43b1ae221d5a6e8d0cd22f305e33d4841b624052ee5865ba04c70abf1e85c7b1 +size 29858 diff --git a/ethflop.changes b/ethflop.changes new file mode 100644 index 0000000..b26efef --- /dev/null +++ b/ethflop.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Nov 20 22:03:46 UTC 2023 - Martin Hauke + +- Initial package, version 0~20191003 diff --git a/ethflop.spec b/ethflop.spec new file mode 100644 index 0000000..0366ccc --- /dev/null +++ b/ethflop.spec @@ -0,0 +1,68 @@ +# +# spec file for package ethflop +# +# Copyright (c) 2023, Martin Hauke +# +# 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/ +# + +%define realversion 20191003 +%bcond_with dos_tsr +Name: ethflop +Version: 0~%{realversion} +Release: 0 +Summary: A network-backed floppy emulator for DOS +License: ISC +Group: System/Filesystems +URL: https://ethflop.sourceforge.net +Source: https://ethflop.sourceforge.net/%{name}-%{realversion}.zip +Source1: ethflopd.8 +BuildRequires: unzip +Provides: ethflopd +%if %{with dos_tsr} +BuildRequires: nasm +%endif + +%description +ethflop is a network-backed floppy emulator for DOS, mapping a DOS +floppy drive to a remote disk image. This package contains the server +and the DOS TSR. + +Features + - emulates many types of virt. floppies (from 360K up to 31M) + - requires only a working packet driver for connectivity + - presents a block device to DOS, almost undistinguishable from a real FDD + - fits in 2K of memory (and can be loaded high) + +%prep +%setup -q -c %{name} +sed -i 's/\r$//' ethflop.txt + +%build +%make_build CFLAGS="%{optflags} -std=gnu89" ethflopd +%if %{with dos_tsr} +%make_build tsr +%endif + +%install +install -Dpm 0755 ethflopd %{buildroot}/%{_sbindir}/ethflopd +install -Dpm 0644 ethflop.com %{buildroot}/%{_datadir}/%{name}/ethflop.com +install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man8/ethflopd.8 + +%files +%license ethflop.txt +%doc ethflop.txt +%{_sbindir}/ethflopd +%{_mandir}/man8/ethflopd.8%{?ext_man} +%{_datadir}/ethflop + +%changelog diff --git a/ethflopd.8 b/ethflopd.8 new file mode 100644 index 0000000..15e5a33 --- /dev/null +++ b/ethflopd.8 @@ -0,0 +1,30 @@ +.TH ethflopd 8 "December 30, 2020" ethflop +.SH NAME +ethflopd \- Ethernet DOS floppy image server +.SH SYNOPSIS +.B ethflopd +.RB [ \-f ] +.I iface +.I directory +.SH DESCRIPTION +.B ethflopd +serves floppy images stored in the given +.I directory +over the interface +.IR iface . +.SH OPTIONS +.TP +.B \-f +stay in the foreground (do not daemonize the process). +.SH NOTES +.B ethflopd +needs the +.B CAP_NEW_RAW +system capability, which usually means that it needs to be run as +root. +.SH AUTHORS +.B ethflopd +was written by Mateusz Viste. +This manual page was adapted from the provided documentation by +Stephen Kitt, for the Debian GNU/Linux system (but it may be used by +others).