From nobody Mon Nov 28 00:55:06 2022
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 4NL6Sp4hQjz4jNVy;
Mon, 28 Nov 2022 00:55:06 +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 "R3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 4NL6Sp44cLz3tNr;
Mon, 28 Nov 2022 00:55:06 +0000 (UTC)
(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1669596906;
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=x/5VTOSvTWm5ijDIQcM5GC7gjVgLUXUzzRNqNCHj5O4=;
b=RuYfHel0ZSJcZCASCB47xfiaT4OZzH3MZpqlimGaMuKl8UbamJkPc1AK3ROSOpTYs9PgU8
SDEqODy7RxnaOhD5M7MRijwkKrON22TvXW04MvqVXWIyuCvWj/95Nea1OGVf5NIGK+qdNg
q72W3C4S+UzyLzsVMqJVi8CCrcI4nmAAlSnhENtgXnXzCb8dnQ9wHEPN1uROVhnXgMHKqy
Aa1WSRHVzWxaiAU5gbtZJNBKWivC9HU82arPnxGPJIMj8JrSH9akGs3klqIbfGhEIcUrJW
yj+zFclFD62Lnz3zMx3x99+NqkkVKM0FpNSMvTaivgoSiHWXNur95ESqLua7Sw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
s=dkim; t=1669596906;
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=x/5VTOSvTWm5ijDIQcM5GC7gjVgLUXUzzRNqNCHj5O4=;
b=cs+McBM5Ytq2r3TXRpu/HUXuwWXReVXKRZvZppr0NVmSmXqmyhK6Aq68JxyPpHIhUU7Sno
VszN1B9XdshjAfBLst/CfythkSBE7Ytozyz62++ujEKjwhauLnUnagYG28/KDALVEmd/C8
7bGGBAWiFkBZqR4EYoawGzeXToMYH/tRw/RxcyVWC0dHwxMwZgHMwC37orHLOd8sK4NI55
vs6wmdXrMAzwGpJmj25XsgMvSsdh2t09WcrhGrWSVtTLi1HEiNZDpVaQqaW+mqHedjt9Jk
EbN1/a9H5Po+Qrl87xSA/yiHs08aFI4XVgDW/Xtfiz+NrqpGoCtWu0tB803pVA==
ARC-Authentication-Results: i=1;
mx1.freebsd.org;
none
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669596906; a=rsa-sha256; cv=none;
b=PJzjfhrF7exCQAgFumNq+DfC8Yo+mtCIjREozN6hTHQYJJrRbRWKB2iw2w7hXX2Q6EPSoj
7pXzJWXBLuXEUilpCHnNAp8OANTjuDOgXuZvA+7jdQt/+2CCRRyhbf0R3glwse0/Od3Xm/
auc45N7U1yhkmSAwM0BeSy2HBfotyXvMRErEn9iCBCh1Tml+wFpubMWWL1O3MPKzFKeZcN
e9Jk+UxV87dazAh515/3b9F2vWyOudp8M4ZQxewURsgwlGC9Duntnqa85pENYnaaE7rg5Q
80RNGDvuJkJe6KsFGup5e90GT3KEUbHCfIeei6fHlLe+uv2t9Q93VU3CwQFxqw==
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
(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 did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NL6Sp389FzJbq;
Mon, 28 Nov 2022 00:55:06 +0000 (UTC)
(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AS0t6OD076975;
Mon, 28 Nov 2022 00:55:06 GMT
(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AS0t6hI076974;
Mon, 28 Nov 2022 00:55:06 GMT
(envelope-from git)
Date: Mon, 28 Nov 2022 00:55:06 GMT
Message-Id: <202211280055.2AS0t6hI076974@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
dev-commits-ports-main@FreeBSD.org
From: Koichiro Iwao
Subject: git: e510f45d474d - main - sysutils/hammer2: New port: HAMMER2 file system for FreeBSD
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:
Sender: owner-dev-commits-ports-main@freebsd.org
X-BeenThere: dev-commits-ports-main@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: meta
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: e510f45d474dc7bcd7d097a69ebfe30cee4fce68
Auto-Submitted: auto-generated
X-ThisMailContainsUnwantedMimeParts: N
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e510f45d474dc7bcd7d097a69ebfe30cee4fce68
commit e510f45d474dc7bcd7d097a69ebfe30cee4fce68
Author: Tomohiro Kusumi
AuthorDate: 2022-11-25 06:48:22 +0000
Commit: Koichiro Iwao
CommitDate: 2022-11-28 00:52:35 +0000
sysutils/hammer2: New port: HAMMER2 file system for FreeBSD
HAMMER2 file system for FreeBSD (read-only support).
https://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/sys/vfs/hammer2/DESIGN
Consists of hammer2.ko kernel module and sbin/* binaries.
WWW: https://github.com/kusumi/freebsd_hammer2
PR: 267982
Tested by: meta
---
sysutils/Makefile | 1 +
sysutils/hammer2/Makefile | 38 ++++++++++++++++++++++++++++++++++++++
sysutils/hammer2/distinfo | 3 +++
sysutils/hammer2/pkg-descr | 2 ++
sysutils/hammer2/pkg-plist | 9 +++++++++
5 files changed, 53 insertions(+)
diff --git a/sysutils/Makefile b/sysutils/Makefile
index f205b67384ca..21824f164767 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -514,6 +514,7 @@
SUBDIR += gstopd
SUBDIR += gstreamer1-plugins-cdio
SUBDIR += gtk-imonc
+ SUBDIR += hammer2
SUBDIR += handlr
SUBDIR += hardlink
SUBDIR += hare
diff --git a/sysutils/hammer2/Makefile b/sysutils/hammer2/Makefile
new file mode 100644
index 000000000000..91cbd82a7a09
--- /dev/null
+++ b/sysutils/hammer2/Makefile
@@ -0,0 +1,38 @@
+PORTNAME= hammer2
+PORTVERSION= 1.0.1
+DISTVERSIONPREFIX= v
+CATEGORIES= sysutils
+
+MAINTAINER= tkusumi@netbsd.org
+COMMENT= HAMMER2 file system for FreeBSD (read-only support)
+WWW= https://github.com/kusumi/freebsd_hammer2
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYRIGHT
+
+IGNORE_FreeBSD_12= Not supported on FreeBSD 12
+
+USES= kmod uidfix
+
+USE_GITHUB= yes
+GH_ACCOUNT= kusumi
+GH_PROJECT= freebsd_hammer2
+
+do-install:
+ ${INSTALL_KLD} ${WRKSRC}/src/sys/fs/hammer2/hammer2.ko ${STAGEDIR}${KMODDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/sbin/hammer2/hammer2 ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/sbin/newfs_hammer2/newfs_hammer2 ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/sbin/mount_hammer2/mount_hammer2 ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/sbin/fsck_hammer2/fsck_hammer2 ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/src/sbin/hammer2/hammer2.8 ${STAGEDIR}${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/src/sbin/newfs_hammer2/newfs_hammer2.8 ${STAGEDIR}${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/src/sbin/mount_hammer2/mount_hammer2.8 ${STAGEDIR}${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/src/sbin/fsck_hammer2/fsck_hammer2.8 ${STAGEDIR}${PREFIX}/man/man8
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/hammer2
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/newfs_hammer2
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/mount_hammer2
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/fsck_hammer2
+
+.include
diff --git a/sysutils/hammer2/distinfo b/sysutils/hammer2/distinfo
new file mode 100644
index 000000000000..e0890382318a
--- /dev/null
+++ b/sysutils/hammer2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1669414324
+SHA256 (kusumi-freebsd_hammer2-v1.0.1_GH0.tar.gz) = f6ed25314c71dc27bbc93a9041d3decf0f9faccee998c402d0d1d025f5375424
+SIZE (kusumi-freebsd_hammer2-v1.0.1_GH0.tar.gz) = 211818
diff --git a/sysutils/hammer2/pkg-descr b/sysutils/hammer2/pkg-descr
new file mode 100644
index 000000000000..a79c375779f2
--- /dev/null
+++ b/sysutils/hammer2/pkg-descr
@@ -0,0 +1,2 @@
+HAMMER2 file system for FreeBSD (read-only support).
+Write support for FreeBSD is not planned at the moment.
diff --git a/sysutils/hammer2/pkg-plist b/sysutils/hammer2/pkg-plist
new file mode 100644
index 000000000000..551868c0167b
--- /dev/null
+++ b/sysutils/hammer2/pkg-plist
@@ -0,0 +1,9 @@
+/%%KMODDIR%%/hammer2.ko
+sbin/hammer2
+sbin/newfs_hammer2
+sbin/mount_hammer2
+sbin/fsck_hammer2
+man/man8/hammer2.8.gz
+man/man8/newfs_hammer2.8.gz
+man/man8/mount_hammer2.8.gz
+man/man8/fsck_hammer2.8.gz