summaryrefslogtreecommitdiff
path: root/net-misc/ethflop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /net-misc/ethflop
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'net-misc/ethflop')
-rw-r--r--net-misc/ethflop/Manifest7
-rw-r--r--net-misc/ethflop/ethflop-20191003.ebuild46
-rw-r--r--net-misc/ethflop/files/ethflop-20191003-makefile.patch13
-rw-r--r--net-misc/ethflop/files/ethflopd.confd8
-rw-r--r--net-misc/ethflop/files/ethflopd.initd11
-rw-r--r--net-misc/ethflop/files/ethflopd.service10
-rw-r--r--net-misc/ethflop/metadata.xml22
7 files changed, 117 insertions, 0 deletions
diff --git a/net-misc/ethflop/Manifest b/net-misc/ethflop/Manifest
new file mode 100644
index 000000000000..d87c5ee4e590
--- /dev/null
+++ b/net-misc/ethflop/Manifest
@@ -0,0 +1,7 @@
+AUX ethflop-20191003-makefile.patch 350 BLAKE2B b268ad12b98a3333397906570ac261caf06761df6d195366be1a889baabee6a49d402208c01bab6d1fa816cae6caf0222a94bd691d977a86320886bf145f47ca SHA512 f160b0285864cfdc076b354cf5e5a7738e3d58d9a22d984ffb754d1616eea24d00b6c2f5854e495feddf59ea383b0acb81d284a611b2f4726f3106b6337a432d
+AUX ethflopd.confd 270 BLAKE2B f88ff41ed7b083b3251b0aed5612eefbb4e6d652f4ba7fcbae7dfbcf85fe072a478abdc07ff9051869a2fa4a9b9051749a138aef2d5cc79fc00b2dc341cb0b03 SHA512 d46fba4546f6146cd11cc2e161943ddd20720f78749664d72a0f14e3e012466d0d882bafcbba2794c6630c735cc6bf204e4e1baf90a98b892cc92c8debf8a318
+AUX ethflopd.initd 236 BLAKE2B 938ff83700a252586b83b4d3f209a71bafe3b9ec87e1fff8ac86ceecd00ddc245c2e74dc7f66aed940fc7fa858c027c7ea1482343f0c59e86aaba393ec9b16f7 SHA512 974369721f6da77da247bdac70e077f4b93323af4ccb3ba5db30e6901c5a6962007592dcece1650c1e6fec12be9b9c8088b42fddec3db2ecb506e044292a5b8e
+AUX ethflopd.service 204 BLAKE2B b97258123ec2ef1e9b556fe5f81c33c14b3bfac7a8a345ec4be75d1a12882acbbfd5eb8ad3f766395ef8d3e59a5e71cba338cc2fc43bd61928f01b250a242752 SHA512 83a0421825835c35d0f0c7244e2d444002bde0459ed0aa3e4589aba67a6a7758958a7b8087ec9a181e37f8d5af428d53a06957ed0d5e099a63f9e9dc600c2efe
+DIST ethflop-20191003.zip 29858 BLAKE2B e5a4068d45c398d6c7bfd08299b57566c3d30bea4ef79692cae065adb61f3c41fd3ed568260e82e19d90e17c7b6d92c0698bb7f7c40edea9d44804a7a61e18ae SHA512 808e65d45e2ff74380bc2f1a31b7bb59fdca4acdf44eb7f60deef9aa0976462ddc64982e8a7b7c225d7f88e11a33dfcdf73fd7169f942018976d4d086e7ec477
+EBUILD ethflop-20191003.ebuild 795 BLAKE2B 0f3664f48a2585f33b33fbc3ab13ba29d118cda2a4d26bcd3631185aac226a35618af030d65dcb7467907b18e5a0c4c107cc3c04e6685eb078bd97388e3e7458 SHA512 fd60d9585705cb0cec7614bfbbd491509a9163652f51af26d17c810c4a0ecf6e3d4a2d4d634b86e92879b17cdced489fb92536f96a6e9cbc2f0e1546bb3b43e5
+MISC metadata.xml 1004 BLAKE2B 7180c03af4f161c41f3acf22dc218405837c04802890770fd2acde2130af5ed73d1e445ea9f9634856ac88fb5ace65b74e9323fb64f8626afc03516867322658 SHA512 90869b4e0606a66705500611fef60372426a830a1afd1df05b4717fb4176e17b53c6d0fad2822161ebf5f4cec3f53d8ea0b325c8ec1c30b7734b7f874764217e
diff --git a/net-misc/ethflop/ethflop-20191003.ebuild b/net-misc/ethflop/ethflop-20191003.ebuild
new file mode 100644
index 000000000000..f0b9e708f26e
--- /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 000000000000..7005dfdbb44b
--- /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 000000000000..a727dae4c726
--- /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 000000000000..d00c63f980ae
--- /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 000000000000..2b6c31902ec6
--- /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 000000000000..39fb8e66398b
--- /dev/null
+++ b/net-misc/ethflop/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://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>