From nobody Tue Apr 28 10:18:37 2026 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4g4bxT6gcXz6bjVg for ; Tue, 28 Apr 2026 10:18:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g4bxT3lyTz41QQ for ; Tue, 28 Apr 2026 10:18:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777371517; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bU1YUdL6eEEcIVJzRG5bGLuJr4fR7cuz+UURdZSjgGI=; b=qg/TZ9BB3H1/YwiDXQ84JKFGEWsbaVWXYSKq8jW9lzgfwF5it9wcugoNyjgv6oSAEXFOTX 4sY1mSNzWkcd/oRoKXBTwqMFafD3im+PImeC1blFitHbgOZhoBTRFNCTfchfWFyIEwS28p OxhMfBlLyKpQX4QDoc91/C/Yxyt3oRVRky59+bSGvSHnW2pM0cApX1Ni7L+0QcsBQ2b1Fi d559R/WCtMdjjQL9CocnIj9uaNR0y3EndMfscS71/OwKwS7zLgbxgKmKf0MgXkIScgOkNQ t9R4ZlyBxIM80KOkj5qO8U12hESluFvL9Rpsi6Ogo1XBPAFcMbapwk+mPdS9DA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777371517; a=rsa-sha256; cv=none; b=i/CWCfkOdAjkB9Kiyu3vVYVjwd7jh1MRU53KAN/3M0DPkjp38kScp1GHaKl8cZZmthzYRY 92ah6BGV4jVpGd6Ukmmiktcp77xIblm0rrsy/0ef+zcRSO+jiU2ZO85xRtXpLZvgY5f52d FhuJpnXEnZNy7Sv7oCo7tKeemnqfS4EA2vKNTT3tp3HJrPcCFMO818sJYqc1EtwAJqwlUJ JbzLdJ1ah+EULIyDtYkpp+6WbOuKdjOTvae6yv4eTaXxSudrjz/WPfURQtUay+bT1GJAeC cuAsAp3nahXL0p4Iye7rTRzRbr8tnaDvikgDBoTuCJimR33ExFFxQ8N9jHcdUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777371517; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bU1YUdL6eEEcIVJzRG5bGLuJr4fR7cuz+UURdZSjgGI=; b=Du1EqFpfJUnJGN9s7MaKqTkBmHB3fD9hu0dXDd5CyAf6pWn+z5QvsMGo6EtasPifluWBpY DvxPyEC79yQq3EzAk3scpDov63+0XJWZB4JYPudS44sNYXQ8o7PcTf9ScXxr7oyEnRvJ03 vaa+r1rG6bwlHbCmYkkh9nyqMCPPs0c1E4ZVLregiJakuJ6EfQMSNRxZjKpazNoSQAVPE2 y6hMmfh8fH/lwgvDYitgPDa/9/emqhItIVgAOF1WDpuOrvPC6d6eW5jg+ILnk8+sFo5tB7 flS/K9H+qPos2WayhA7Z2bbNzwEJBvuDZA8nzes5EYw6NLBSs6WZTFFTQN0pWg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g4bxT34TjzpyJ for ; Tue, 28 Apr 2026 10:18:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46d1e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 28 Apr 2026 10:18:37 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kevin Bowling Subject: git: e931506f463e - main - sysutils/py-greaseweazle: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e931506f463e1a7da111701e373a0868a02c7be9 Auto-Submitted: auto-generated Date: Tue, 28 Apr 2026 10:18:37 +0000 Message-Id: <69f0897d.46d1e.42ff0ee8@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/ports/commit/?id=e931506f463e1a7da111701e373a0868a02c7be9 commit e931506f463e1a7da111701e373a0868a02c7be9 Author: Kevin Bowling AuthorDate: 2026-04-28 10:16:48 +0000 Commit: Kevin Bowling CommitDate: 2026-04-28 10:17:20 +0000 sysutils/py-greaseweazle: New port Magnetic flux tool to read, write, analyze floppy disks. https://github.com/keirf/greaseweazle --- sysutils/Makefile | 1 + sysutils/py-greaseweazle/Makefile | 30 ++++++++++++++++++++++ sysutils/py-greaseweazle/distinfo | 3 +++ .../files/patch-src-greaseweazle-tools-util.py | 11 ++++++++ sysutils/py-greaseweazle/pkg-descr | 9 +++++++ sysutils/py-greaseweazle/pkg-message | 14 ++++++++++ 6 files changed, 68 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index eb54a0477e64..2e3208bca59f 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1077,6 +1077,7 @@ SUBDIR += py-focker SUBDIR += py-glances SUBDIR += py-google-compute-engine + SUBDIR += py-greaseweazle SUBDIR += py-hared SUBDIR += py-hcloud SUBDIR += py-healthchecks diff --git a/sysutils/py-greaseweazle/Makefile b/sysutils/py-greaseweazle/Makefile new file mode 100644 index 000000000000..cab85537de15 --- /dev/null +++ b/sysutils/py-greaseweazle/Makefile @@ -0,0 +1,30 @@ +PORTNAME= greaseweazle +DISTVERSIONPREFIX= v +DISTVERSION= 1.23 +CATEGORIES= sysutils python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kbowling@FreeBSD.org +COMMENT= Tools for accessing a floppy drive at the raw flux level +WWW= https://github.com/keirf/greaseweazle + +LICENSE= UNLICENSE +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bitarray>=3:devel/py-bitarray@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}crcmod>0:devel/py-crcmod@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyserial>0:comms/py-pyserial@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} + +USES= python + +USE_GITHUB= yes +GH_ACCOUNT= keirf +USE_PYTHON= autoplist concurrent pep517 + +MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${PORTVERSION} + +.include diff --git a/sysutils/py-greaseweazle/distinfo b/sysutils/py-greaseweazle/distinfo new file mode 100644 index 000000000000..0fdeb0e6fbd8 --- /dev/null +++ b/sysutils/py-greaseweazle/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1777352742 +SHA256 (keirf-greaseweazle-v1.23_GH0.tar.gz) = 991b89e3f4ff084f5a5f315f81d0816cf6ee3d2e916b504af6c06718de1f2abf +SIZE (keirf-greaseweazle-v1.23_GH0.tar.gz) = 135181 diff --git a/sysutils/py-greaseweazle/files/patch-src-greaseweazle-tools-util.py b/sysutils/py-greaseweazle/files/patch-src-greaseweazle-tools-util.py new file mode 100644 index 000000000000..6bc44878afc8 --- /dev/null +++ b/sysutils/py-greaseweazle/files/patch-src-greaseweazle-tools-util.py @@ -0,0 +1,11 @@ +--- src/greaseweazle/tools/util.py.orig 2025-12-17 09:54:59 UTC ++++ src/greaseweazle/tools/util.py +@@ -356,6 +356,9 @@ + def score_port(x, old_port=None): + score = 0 ++ # pyserial's FreeBSD DevInfo may lack USB attributes on non-USB ports ++ if not hasattr(x, 'manufacturer'): ++ return score + if x.manufacturer == "Keir Fraser" and x.product == "Greaseweazle": + score = 20 + elif x.vid == 0x1209 and x.pid == 0x4d69: diff --git a/sysutils/py-greaseweazle/pkg-descr b/sysutils/py-greaseweazle/pkg-descr new file mode 100644 index 000000000000..5038fbb4c652 --- /dev/null +++ b/sysutils/py-greaseweazle/pkg-descr @@ -0,0 +1,9 @@ +Greaseweazle is a set of tools for accessing a floppy drive at the raw +flux level. This allows reading and writing of raw flux data, as well as +conversion between various floppy disk image formats. It supports a wide +range of floppy disk formats including IBM, Amiga, Commodore 64, Apple, +and Macintosh. + +The "gw" command-line tool communicates with a Greaseweazle USB device to +read, write, and manipulate floppy disks at a level below the normal +operating system disk interface. diff --git a/sysutils/py-greaseweazle/pkg-message b/sysutils/py-greaseweazle/pkg-message new file mode 100644 index 000000000000..f380b94f75ad --- /dev/null +++ b/sysutils/py-greaseweazle/pkg-message @@ -0,0 +1,14 @@ +[ +{ type: install + message: <