From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0B40215812D for ; Mon, 30 Dec 2024 01:03:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 256E3E03DF; Mon, 30 Dec 2024 01:03:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B1E1E03DF for ; Mon, 30 Dec 2024 01:03:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1ADF0335DC0 for ; Mon, 30 Dec 2024 01:03:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 501C297F for ; Mon, 30 Dec 2024 01:03:29 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1735520593.58e7e58c134047584846a08b8e05a6be2646781f.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ethflop/, net-misc/ethflop/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/ethflop/Manifest net-misc/ethflop/ethflop-20240916.ebuild net-misc/ethflop/files/ethflop-20240916-makefile.patch X-VCS-Directories: net-misc/ethflop/files/ net-misc/ethflop/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 58e7e58c134047584846a08b8e05a6be2646781f X-VCS-Branch: master Date: Mon, 30 Dec 2024 01:03:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2f11ebad-2bf1-483f-a4f5-a37da7cdc15f X-Archives-Hash: fccfb0107af8ecde410397b773a7bee2 commit: 58e7e58c134047584846a08b8e05a6be2646781f Author: Conrad Kostecki gentoo org> AuthorDate: Mon Dec 30 01:02:52 2024 +0000 Commit: Conrad Kostecki gentoo 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 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