public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-misc/ethflop/, net-misc/ethflop/files/
@ 2019-12-05 23:32 Conrad Kostecki
  0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2019-12-05 23:32 UTC (permalink / raw
  To: gentoo-commits

commit:     6df5d081084eee5a71f95ef97ca15d78e651cffc
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 15 06:39:02 2019 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Dec  5 23:32:05 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6df5d081

net-misc/ethflop: New package

ethflop is a DOS TSR that emulates a floppy disk drive.
The emulated (virtual) floppy disk is, in fact, stored on a Linux server as a
floppy image. All the communication between ethflop (the TSR)
and ethflopd (the Linux daemon) is exchanged over raw Ethernet. No need for
any network configuration - the DOS PC only needs to have some kind of
Ethernet adapter and a suitable packet driver. The Linux server and
the DOS PC must be connected do the common Ethernet segment (same LAN).

Closes: https://github.com/gentoo/gentoo/pull/13307
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-misc/ethflop/Manifest                          |  1 +
 net-misc/ethflop/ethflop-20191003.ebuild           | 46 ++++++++++++++++++++++
 .../ethflop/files/ethflop-20191003-makefile.patch  | 13 ++++++
 net-misc/ethflop/files/ethflopd.confd              |  8 ++++
 net-misc/ethflop/files/ethflopd.initd              | 11 ++++++
 net-misc/ethflop/files/ethflopd.service            | 10 +++++
 net-misc/ethflop/metadata.xml                      | 26 ++++++++++++
 7 files changed, 115 insertions(+)

diff --git a/net-misc/ethflop/Manifest b/net-misc/ethflop/Manifest
new file mode 100644
index 00000000000..c6da51da054
--- /dev/null
+++ b/net-misc/ethflop/Manifest
@@ -0,0 +1 @@
+DIST ethflop-20191003.zip 29858 BLAKE2B e5a4068d45c398d6c7bfd08299b57566c3d30bea4ef79692cae065adb61f3c41fd3ed568260e82e19d90e17c7b6d92c0698bb7f7c40edea9d44804a7a61e18ae SHA512 808e65d45e2ff74380bc2f1a31b7bb59fdca4acdf44eb7f60deef9aa0976462ddc64982e8a7b7c225d7f88e11a33dfcdf73fd7169f942018976d4d086e7ec477

diff --git a/net-misc/ethflop/ethflop-20191003.ebuild b/net-misc/ethflop/ethflop-20191003.ebuild
new file mode 100644
index 00000000000..f0b9e708f26
--- /dev/null
+++ b/net-misc/ethflop/ethflop-20191003.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd toolchain-funcs
+
+DESCRIPTION="A network-backed floppy emulator for DOS"
+HOMEPAGE="http://ethflop.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tsr"
+
+BDEPEND="
+	app-arch/unzip
+	tsr? ( dev-lang/nasm )
+"
+
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
+
+S="${WORKDIR}"
+
+src_compile() {
+	tc-export CC
+	default
+
+	use tsr && emake tsr
+}
+
+src_install() {
+	dobin ethflopd
+
+	if use tsr; then
+		insinto /usr/share/ethflop
+		doins ethflop.com
+	fi
+
+	newinitd "${FILESDIR}"/ethflopd.initd ethflopd
+	newconfd "${FILESDIR}"/ethflopd.confd ethflopd
+	systemd_dounit "${FILESDIR}"/ethflopd.service
+
+	dodoc ethflop.txt
+}

diff --git a/net-misc/ethflop/files/ethflop-20191003-makefile.patch b/net-misc/ethflop/files/ethflop-20191003-makefile.patch
new file mode 100644
index 00000000000..7005dfdbb44
--- /dev/null
+++ b/net-misc/ethflop/files/ethflop-20191003-makefile.patch
@@ -0,0 +1,13 @@
+--- a/Makefile	2019-10-03 23:02:15.000000000 +0200
++++ b/Makefile	2019-10-15 08:31:49.541999473 +0200
+@@ -14,8 +14,8 @@
+ #CFLAGS = -O2 -Wall -std=gnu89 -pedantic -Wextra -Wformat-security -D_FORTIFY_SOURCE=1 -Weverything -Wno-padded
+ 
+ # production
+-CC = gcc
+-CFLAGS = -O2 -std=gnu89
++CC ?= gcc
++CFLAGS ?= -O2 -std=gnu89
+ 
+ all: ethflopd
+ 

diff --git a/net-misc/ethflop/files/ethflopd.confd b/net-misc/ethflop/files/ethflopd.confd
new file mode 100644
index 00000000000..a727dae4c72
--- /dev/null
+++ b/net-misc/ethflop/files/ethflopd.confd
@@ -0,0 +1,8 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Network interface, which should be used for serving floppy images
+INTERFACE="lo"
+
+# Storage directory, from where floppy images are being served
+STORAGEDIR="/tmp"

diff --git a/net-misc/ethflop/files/ethflopd.initd b/net-misc/ethflop/files/ethflopd.initd
new file mode 100644
index 00000000000..d00c63f980a
--- /dev/null
+++ b/net-misc/ethflop/files/ethflopd.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="ethflopd daemon"
+command="/usr/bin/ethflopd"
+command_args="${INTERFACE} ${STORAGEDIR}"
+
+depend() {
+	need net
+}

diff --git a/net-misc/ethflop/files/ethflopd.service b/net-misc/ethflop/files/ethflopd.service
new file mode 100644
index 00000000000..2b6c31902ec
--- /dev/null
+++ b/net-misc/ethflop/files/ethflopd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=ethflopd daemon
+After=network-online.target
+
+[Service]
+EnvironmentFile=/etc/conf.d/ethflopd
+ExecStart=/usr/bin/ethflopd ${INTERFACE} ${STORAGEDIR}
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-misc/ethflop/metadata.xml b/net-misc/ethflop/metadata.xml
new file mode 100644
index 00000000000..90f4adc128f
--- /dev/null
+++ b/net-misc/ethflop/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>ck+gentoo@bl4ckb0x.de</email>
+		<name>Conrad Kostecki</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<longdescription>
+		ethflop is a DOS TSR that emulates a floppy disk drive.
+		The emulated (virtual) floppy disk is, in fact, stored on a Linux server as a floppy image.
+		All the communication between ethflop (the TSR) and ethflopd (the Linux daemon) is exchanged over raw Ethernet.
+		No need for any network configuration - the DOS PC only needs to have some kind of Ethernet adapter
+		(physical or emulated, for example through PLIP) and a suitable packet driver.
+		The Linux server and the DOS PC must be connected to a common Ethernet segment (same LAN).
+	</longdescription>
+	<use>
+		<flag name="tsr">Build the TSR program for DOS, which acts as a client.</flag>
+	</use>
+	<upstream>
+		<remote-id type="sourceforge">ethflop</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-misc/ethflop/, net-misc/ethflop/files/
@ 2024-12-30  1:03 Conrad Kostecki
  0 siblings, 0 replies; 3+ messages in thread
From: Conrad Kostecki @ 2024-12-30  1:03 UTC (permalink / raw
  To: gentoo-commits

commit:     58e7e58c134047584846a08b8e05a6be2646781f
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 30 01:02:52 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon Dec 30 01:03:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e7e58c

net-misc/ethflop: add 20240916

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-misc/ethflop/Manifest                          |  2 +
 net-misc/ethflop/ethflop-20240916.ebuild           | 63 ++++++++++++++++++++++
 .../ethflop/files/ethflop-20240916-makefile.patch  | 11 ++++
 3 files changed, 76 insertions(+)

diff --git a/net-misc/ethflop/Manifest b/net-misc/ethflop/Manifest
index c6da51da0540..bcca07b75bf9 100644
--- a/net-misc/ethflop/Manifest
+++ b/net-misc/ethflop/Manifest
@@ -1 +1,3 @@
 DIST ethflop-20191003.zip 29858 BLAKE2B e5a4068d45c398d6c7bfd08299b57566c3d30bea4ef79692cae065adb61f3c41fd3ed568260e82e19d90e17c7b6d92c0698bb7f7c40edea9d44804a7a61e18ae SHA512 808e65d45e2ff74380bc2f1a31b7bb59fdca4acdf44eb7f60deef9aa0976462ddc64982e8a7b7c225d7f88e11a33dfcdf73fd7169f942018976d4d086e7ec477
+DIST ethflop-20240920-src.zip 22250 BLAKE2B d644c2e2cec9a6d0d303c38412833ff46c26a572138e7bbfbac55437895deb36e843685ee25e5797b7dacb2842b6c7896e6f9e4d819154f1cd2f1a95ca10b721 SHA512 6dc84b1db4fd6a83037c1f1395da5cc4bf5f43b9650f64d20c05fef4ceccdca1661e890a96f85e7a96ee94ee89b1d96994bfbe8d048a8f7d690e53f21ebde518
+DIST ethflopd-20240916-src.tar.gz 55737 BLAKE2B 8b6a886829f1f7c19c95965b48182c66da04d6f5364ff0cc1b820db62794f33e64900c9df6e7584a0ee3190d70121c7d52853f1d54bf9977e9f0fa7af6e2dfbd SHA512 b442dc4f0be8357cc406c0f67aa4234bebfb648c42342b0858ee06d162386323e2fa89d1d7d54d327b07c10f50bc5452958fdd8b41066a8bece08e4a65aa59c3

diff --git a/net-misc/ethflop/ethflop-20240916.ebuild b/net-misc/ethflop/ethflop-20240916.ebuild
new file mode 100644
index 000000000000..ee061ec0939e
--- /dev/null
+++ b/net-misc/ethflop/ethflop-20240916.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2019-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV_TSR="20240920"
+
+inherit systemd toolchain-funcs
+
+DESCRIPTION="A network-backed floppy emulator for DOS"
+HOMEPAGE="https://ethflop.sourceforge.net/"
+SRC_URI="
+	https://ethflop.sourceforge.net/${PN}d-${PV}-src.tar.gz
+	tsr? ( https://ethflop.sourceforge.net/${PN}-${MY_PV_TSR}-src.zip )
+"
+
+S="${WORKDIR}"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tsr"
+
+BDEPEND="
+	app-arch/unzip
+	tsr? ( dev-lang/nasm )
+"
+
+PATCHES="${FILESDIR}/${PN}-20240916-makefile.patch"
+
+src_prepare() {
+	default
+	mv Makefile.linux Makefile || die
+	# Files are shipped uppercase, but need to be lowercase
+	if use tsr; then
+		for file in *.ASM *.SH; do
+			mv ${file} ${file,,} || die
+		done
+		chmod +x build.sh || die
+	fi
+}
+
+src_compile() {
+	tc-export CC
+	default
+
+	if use tsr; then
+		./build.sh || die
+	fi
+}
+
+src_install() {
+	dobin ethflopd
+
+	if use tsr; then
+		insinto /usr/share/ethflop
+		doins ethflop.com
+	fi
+
+	newinitd "${FILESDIR}"/ethflopd.initd ethflopd
+	newconfd "${FILESDIR}"/ethflopd.confd ethflopd
+	systemd_newunit "${FILESDIR}"/ethflopd.service-r1 ethflopd.service
+}

diff --git a/net-misc/ethflop/files/ethflop-20240916-makefile.patch b/net-misc/ethflop/files/ethflop-20240916-makefile.patch
new file mode 100644
index 000000000000..ffa255868da7
--- /dev/null
+++ b/net-misc/ethflop/files/ethflop-20240916-makefile.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.linux
++++ b/Makefile.linux
+@@ -16,7 +16,7 @@
+ all: ethflopd
+ 
+ ethflopd: ui_posix.c core.c
+-	$(CC) $(CFLAGS) -o ethflopd ui_posix.c core.c
++	$(CC) $(CFLAGS) $(LDFLAGS) -o ethflopd ui_posix.c core.c
+ 
+ clean:
+ 	rm -f ethflopd *.o


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-misc/ethflop/, net-misc/ethflop/files/
@ 2025-02-09 10:09 Florian Schmaus
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Schmaus @ 2025-02-09 10:09 UTC (permalink / raw
  To: gentoo-commits

commit:     4916826ecbd909761f6b1f0a4e5540ab0b51b8c9
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sun Feb  9 09:05:03 2025 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 10:08:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4916826e

gentoo/net-misc: really remove net-misc/ethflop

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/40499
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-misc/ethflop/Manifest                          |  3 ---
 .../ethflop/files/ethflop-20240916-makefile.patch  | 11 -----------
 net-misc/ethflop/files/ethflopd.confd              |  8 --------
 net-misc/ethflop/files/ethflopd.initd              | 11 -----------
 net-misc/ethflop/files/ethflopd.service-r1         | 10 ----------
 net-misc/ethflop/metadata.xml                      | 22 ----------------------
 6 files changed, 65 deletions(-)

diff --git a/net-misc/ethflop/Manifest b/net-misc/ethflop/Manifest
deleted file mode 100644
index bcca07b75bf9..000000000000
--- a/net-misc/ethflop/Manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-DIST ethflop-20191003.zip 29858 BLAKE2B e5a4068d45c398d6c7bfd08299b57566c3d30bea4ef79692cae065adb61f3c41fd3ed568260e82e19d90e17c7b6d92c0698bb7f7c40edea9d44804a7a61e18ae SHA512 808e65d45e2ff74380bc2f1a31b7bb59fdca4acdf44eb7f60deef9aa0976462ddc64982e8a7b7c225d7f88e11a33dfcdf73fd7169f942018976d4d086e7ec477
-DIST ethflop-20240920-src.zip 22250 BLAKE2B d644c2e2cec9a6d0d303c38412833ff46c26a572138e7bbfbac55437895deb36e843685ee25e5797b7dacb2842b6c7896e6f9e4d819154f1cd2f1a95ca10b721 SHA512 6dc84b1db4fd6a83037c1f1395da5cc4bf5f43b9650f64d20c05fef4ceccdca1661e890a96f85e7a96ee94ee89b1d96994bfbe8d048a8f7d690e53f21ebde518
-DIST ethflopd-20240916-src.tar.gz 55737 BLAKE2B 8b6a886829f1f7c19c95965b48182c66da04d6f5364ff0cc1b820db62794f33e64900c9df6e7584a0ee3190d70121c7d52853f1d54bf9977e9f0fa7af6e2dfbd SHA512 b442dc4f0be8357cc406c0f67aa4234bebfb648c42342b0858ee06d162386323e2fa89d1d7d54d327b07c10f50bc5452958fdd8b41066a8bece08e4a65aa59c3

diff --git a/net-misc/ethflop/files/ethflop-20240916-makefile.patch b/net-misc/ethflop/files/ethflop-20240916-makefile.patch
deleted file mode 100644
index ffa255868da7..000000000000
--- a/net-misc/ethflop/files/ethflop-20240916-makefile.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Makefile.linux
-+++ b/Makefile.linux
-@@ -16,7 +16,7 @@
- all: ethflopd
- 
- ethflopd: ui_posix.c core.c
--	$(CC) $(CFLAGS) -o ethflopd ui_posix.c core.c
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o ethflopd ui_posix.c core.c
- 
- clean:
- 	rm -f ethflopd *.o

diff --git a/net-misc/ethflop/files/ethflopd.confd b/net-misc/ethflop/files/ethflopd.confd
deleted file mode 100644
index a727dae4c726..000000000000
--- a/net-misc/ethflop/files/ethflopd.confd
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# Network interface, which should be used for serving floppy images
-INTERFACE="lo"
-
-# Storage directory, from where floppy images are being served
-STORAGEDIR="/tmp"

diff --git a/net-misc/ethflop/files/ethflopd.initd b/net-misc/ethflop/files/ethflopd.initd
deleted file mode 100644
index d00c63f980ae..000000000000
--- a/net-misc/ethflop/files/ethflopd.initd
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-name="ethflopd daemon"
-command="/usr/bin/ethflopd"
-command_args="${INTERFACE} ${STORAGEDIR}"
-
-depend() {
-	need net
-}

diff --git a/net-misc/ethflop/files/ethflopd.service-r1 b/net-misc/ethflop/files/ethflopd.service-r1
deleted file mode 100644
index 39fa29a52171..000000000000
--- a/net-misc/ethflop/files/ethflopd.service-r1
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=ethflopd daemon
-After=network-online.target
-
-[Service]
-EnvironmentFile=/etc/conf.d/ethflopd
-ExecStart=/usr/bin/ethflopd lo /tmp
-
-[Install]
-WantedBy=multi-user.target

diff --git a/net-misc/ethflop/metadata.xml b/net-misc/ethflop/metadata.xml
deleted file mode 100644
index e4b008939e75..000000000000
--- a/net-misc/ethflop/metadata.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person">
-		<email>conikost@gentoo.org</email>
-		<name>Conrad Kostecki</name>
-	</maintainer>
-	<longdescription>
-		ethflop is a DOS TSR that emulates a floppy disk drive.
-		The emulated (virtual) floppy disk is, in fact, stored on a Linux server as a floppy image.
-		All the communication between ethflop (the TSR) and ethflopd (the Linux daemon) is exchanged over raw Ethernet.
-		No need for any network configuration - the DOS PC only needs to have some kind of Ethernet adapter
-		(physical or emulated, for example through PLIP) and a suitable packet driver.
-		The Linux server and the DOS PC must be connected to a common Ethernet segment (same LAN).
-	</longdescription>
-	<use>
-		<flag name="tsr">Build the TSR program for DOS, which acts as a client.</flag>
-	</use>
-	<upstream>
-		<remote-id type="sourceforge">ethflop</remote-id>
-	</upstream>
-</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-09 10:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-09 10:09 [gentoo-commits] repo/gentoo:master commit in: net-misc/ethflop/, net-misc/ethflop/files/ Florian Schmaus
  -- strict thread matches above, loose matches on Subject: below --
2024-12-30  1:03 Conrad Kostecki
2019-12-05 23:32 Conrad Kostecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox