git: 775a78fa2822 - main - filesystems/ms-sys: New Port

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 12:43:07 UTC
The branch main has been updated by michaelo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=775a78fa282277ca7324f9ebc20649f4f803d83b

commit 775a78fa282277ca7324f9ebc20649f4f803d83b
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2026-09-11 04:42:40 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-09-11 12:42:37 +0000

    filesystems/ms-sys: New Port
    
    Tool for writing Microsoft compatible boot record.
    
    PR:             294543
---
 filesystems/Makefile         |  1 +
 filesystems/ms-sys/Makefile  | 30 ++++++++++++++++++++++++++++++
 filesystems/ms-sys/distinfo  |  3 +++
 filesystems/ms-sys/pkg-descr |  7 +++++++
 filesystems/ms-sys/pkg-plist |  8 ++++++++
 5 files changed, 49 insertions(+)

diff --git a/filesystems/Makefile b/filesystems/Makefile
index f4f98b93ef26..6eeceac039c7 100644
--- a/filesystems/Makefile
+++ b/filesystems/Makefile
@@ -69,6 +69,7 @@
     SUBDIR += moosefs-metalogger
     SUBDIR += moosefs-netdump
     SUBDIR += mp3fs
+    SUBDIR += ms-sys
     SUBDIR += mtools
     SUBDIR += mtpfs
     SUBDIR += nbd-client-kmod
diff --git a/filesystems/ms-sys/Makefile b/filesystems/ms-sys/Makefile
new file mode 100644
index 000000000000..e1b5b2b4c6ac
--- /dev/null
+++ b/filesystems/ms-sys/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	ms-sys
+PORTVERSION=	2.9.0
+CATEGORIES=	filesystems
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20development/${PORTVERSION}
+
+MAINTAINER=	wulf@FreeBSD.org
+COMMENT=	Tool for writing Microsoft compatible boot record
+WWW=		https://ms-sys.sourceforge.net/
+
+LICENSE=		GPLv2 EULA
+LICENSE_COMB=		multi
+LICENSE_NAME_EULA=	The Microsoft End-User License Agreement
+LICENSE_TEXT_EULA=	ms-sys binary contains embedded proprietary boot code
+LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
+LICENSE_PERMS_EULA=	auto-accept
+
+USES=		gettext-tools gmake
+MAKE_ARGS+=	MANDIR="${PREFIX}/share/man"
+
+OPTIONS_DEFINE=	NLS
+OPTIONS_DEFAULT=NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext-runtime localbase
+NLS_MAKE_ARGS=	LDFLAGS="-L${LOCALBASE}/lib -lintl"
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/filesystems/ms-sys/distinfo b/filesystems/ms-sys/distinfo
new file mode 100644
index 000000000000..ff4e9c1497dc
--- /dev/null
+++ b/filesystems/ms-sys/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1779898477
+SHA256 (ms-sys-2.9.0.tar.gz) = 777253b1ed9e7aac4065796da8a48e67d94ff8b93294bc71bc133936c28df035
+SIZE (ms-sys-2.9.0.tar.gz) = 198499
diff --git a/filesystems/ms-sys/pkg-descr b/filesystems/ms-sys/pkg-descr
new file mode 100644
index 000000000000..50326fd46a0f
--- /dev/null
+++ b/filesystems/ms-sys/pkg-descr
@@ -0,0 +1,7 @@
+This program is used to create Microsoft compatible boot records. It is able
+to do the same as Microsoft "fdisk /mbr" to a hard disk. It is also able to do
+the same as Microsoft "sys d:" to a floppy or FAT partition except that it does
+not copy any system files, only the boot record is written.
+
+The program is useful when using Linux to restore a backup of a reference
+Microsoft Windows installation.
diff --git a/filesystems/ms-sys/pkg-plist b/filesystems/ms-sys/pkg-plist
new file mode 100644
index 000000000000..27800e96851d
--- /dev/null
+++ b/filesystems/ms-sys/pkg-plist
@@ -0,0 +1,8 @@
+bin/ms-sys
+%%NLS%%share/locale/de/LC_MESSAGES/ms-sys.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/ms-sys.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/ms-sys.mo
+%%NLS%%share/man/de/man1/ms-sys.1.gz
+%%NLS%%share/man/fr/man1/ms-sys.1.gz
+share/man/man1/ms-sys.1.gz
+%%NLS%%share/man/sv/man1/ms-sys.1.gz