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
