Skip to content

Commit

Permalink
sysutils/ntfs2btrfs: new port had been added (+)
Browse files Browse the repository at this point in the history
Ntfs2btrfs is a tool for in-place conversion of Microsoft's
NTFS file system to the open-source file system Btrfs.
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Apr 25, 2023
1 parent 002017b commit 00c9f36
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/Makefile
Expand Up @@ -834,6 +834,7 @@
SUBDIR += nrg2iso
SUBDIR += nss_ndb
SUBDIR += nsysctl
SUBDIR += ntfs2btrfs
SUBDIR += ntfy
SUBDIR += ntpstat
SUBDIR += nut
Expand Down
25 changes: 25 additions & 0 deletions sysutils/ntfs2btrfs/Makefile
@@ -0,0 +1,25 @@
PORTNAME= ntfs2btrfs
PORTVERSION= 20220812
CATEGORIES= sysutils

MAINTAINER= danfe@FreeBSD.org
COMMENT= NTFS to Btrfs in-place conversion utility
WWW= https://github.com/maharmstone/ntfs2btrfs

LICENSE= GPLv2+

BUILD_DEPENDS= ${LOCALBASE}/include/fmt/format.h:devel/libfmt
LIB_DEPENDS= liblzo2.so:archivers/lzo2 libzstd.so:archivers/zstd

USES= cmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= maharmstone

PLIST_FILES= sbin/${PORTNAME} share/man/man8/${PORTNAME}.8.gz

post-patch:
# One should not try to mmap(2) disk devices on FreeBSD, it won't work
@${REINPLACE_CMD} -e '3390s,WIN32,_${OPSYS}__,' \
${WRKSRC}/src/ntfs2btrfs.cpp

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions sysutils/ntfs2btrfs/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1660262820
SHA256 (maharmstone-ntfs2btrfs-20220812_GH0.tar.gz) = 9ce07535e6191ab45f204a4dd281be4768d7917df4426ee7c71aa9c308a2fe93
SIZE (maharmstone-ntfs2btrfs-20220812_GH0.tar.gz) = 98059
5 changes: 5 additions & 0 deletions sysutils/ntfs2btrfs/pkg-descr
@@ -0,0 +1,5 @@
Ntfs2btrfs is a tool which does in-place conversion of Microsoft's NTFS
file system to the open-source file system Btrfs, much as btrfs-convert
does for ext2. The original image is saved as a reflink copy at
``image/ntfs.img'', and if you want to keep the conversion you can delete
this to free up space.

0 comments on commit 00c9f36

Please sign in to comment.