git: 3d3c1deeb45d - main - sysutils/squashfs-tools-ng: new port had been added (+)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Fri, 01 Apr 2022 04:28:38 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3d3c1deeb45db1f280e5dfd59f1111bc809ab0b3

commit 3d3c1deeb45db1f280e5dfd59f1111bc809ab0b3
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-04-01 04:27:46 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-04-01 04:27:46 +0000

    sysutils/squashfs-tools-ng: new port had been added (+)
    
    This project originally started out as a fork of squashfs-tools 4.3,
    after encountering some short comings and realizing that there have
    been no updates on the SourceForge site or mailing list for a long
    time.  Even before the first public release, the fork was replaced
    with a complete re-write after growing frustrated with the existing
    code base.
    
    The utilities provided by squashfs-tools-ng offer alternative tooling
    and are intentionally named differently, so both packages can be
    installed side by side.
    
    WWW: https://infraroot.at/projects/squashfs-tools-ng/
---
 sysutils/Makefile                    |  1 +
 sysutils/squashfs-tools-ng/Makefile  | 43 +++++++++++++++++++++++++++++++++++
 sysutils/squashfs-tools-ng/distinfo  |  3 +++
 sysutils/squashfs-tools-ng/pkg-descr | 21 +++++++++++++++++
 sysutils/squashfs-tools-ng/pkg-plist | 44 ++++++++++++++++++++++++++++++++++++
 5 files changed, 112 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 890ba9c2501a..63f9f925839f 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1315,6 +1315,7 @@
     SUBDIR += spinner
     SUBDIR += spiped
     SUBDIR += squashfs-tools
+    SUBDIR += squashfs-tools-ng
     SUBDIR += ssd_report
     SUBDIR += sshsudo
     SUBDIR += ssync
diff --git a/sysutils/squashfs-tools-ng/Makefile b/sysutils/squashfs-tools-ng/Makefile
new file mode 100644
index 000000000000..eaed3e52065a
--- /dev/null
+++ b/sysutils/squashfs-tools-ng/Makefile
@@ -0,0 +1,43 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+
+PORTNAME=	squashfs-tools-ng
+PORTVERSION=	1.1.4
+CATEGORIES=	sysutils
+MASTER_SITES=	https://infraroot.at/pub/squashfs/
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	New set of tools and libraries to work with SquashFS images
+
+LICENSE=	GPLv3+ LGPL3+
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/COPYING.md
+
+USES=		libtool pkgconfig tar:xz
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+TEST_TARGET=	check
+
+OPTIONS_DEFINE=	DOCS LZ4 LZO TOOLS ZSTD
+OPTIONS_DEFAULT=	LZ4 LZO TOOLS ZSTD
+OPTIONS_SUB=	yes
+TOOLS_DESC=	Build the tools, not just the library
+
+LZ4_LIB_DEPENDS=	liblz4.so:archivers/liblz4
+LZ4_CONFIGURE_OFF=	--without-lz4
+
+LZO_LIB_DEPENDS=	liblzo2.so:archivers/lzo2
+LZO_CONFIGURE_ENV=	LZO_CFLAGS="-I${LOCALBASE}/include" \
+			LZO_LIBS="-L${LOCALBASE}/lib -llzo2"
+LZO_CONFIGURE_OFF=	--without-lzo
+
+TOOLS_CONFIGURE_OFF=	--without-tools
+
+ZSTD_LIB_DEPENDS=	libzstd.so:archivers/zstd
+ZSTD_CONFIGURE_OFF=	--without-zstd
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/CHANGELOG.md ${WRKSRC}/README.md \
+		${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/squashfs-tools-ng/distinfo b/sysutils/squashfs-tools-ng/distinfo
new file mode 100644
index 000000000000..2d16ebd0eedf
--- /dev/null
+++ b/sysutils/squashfs-tools-ng/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1648671622
+SHA256 (squashfs-tools-ng-1.1.4.tar.xz) = 6f3f7864f17b250453df31fe3925ce7d1430cf6b1d514112641d734fe3c8f61a
+SIZE (squashfs-tools-ng-1.1.4.tar.xz) = 1311684
diff --git a/sysutils/squashfs-tools-ng/pkg-descr b/sysutils/squashfs-tools-ng/pkg-descr
new file mode 100644
index 000000000000..be2bc1073d46
--- /dev/null
+++ b/sysutils/squashfs-tools-ng/pkg-descr
@@ -0,0 +1,21 @@
+SquashFS is a highly compressed, read-only file system often used as
+a root file system on embedded devices, live systems, or simply as a
+compressed archive format.
+
+This project originally started out as a fork of squashfs-tools 4.3,
+after encountering some short comings and realizing that there have
+been no updates on the SourceForge site or mailing list for a long
+time.  Even before the first public release, the fork was replaced
+with a complete re-write after growing frustrated with the existing
+code base.
+
+The utilities provided by squashfs-tools-ng offer alternative tooling
+and are intentionally named differently, so both packages can be
+installed side by side.
+
+The actual guts of squashfs-tools-ng are encapsulated in a library
+with a generic API designed to make SquashFS available to other
+applications as an embeddable, extensible archive format (or simply
+to read, write, or manipulate SquashFS file systems).
+
+WWW: https://infraroot.at/projects/squashfs-tools-ng/
diff --git a/sysutils/squashfs-tools-ng/pkg-plist b/sysutils/squashfs-tools-ng/pkg-plist
new file mode 100644
index 000000000000..49f86c2e02bf
--- /dev/null
+++ b/sysutils/squashfs-tools-ng/pkg-plist
@@ -0,0 +1,44 @@
+%%TOOLS%%bin/gensquashfs
+%%TOOLS%%bin/rdsquashfs
+%%TOOLS%%bin/sqfs2tar
+%%TOOLS%%bin/sqfsdiff
+%%TOOLS%%bin/tar2sqfs
+include/sqfs/block.h
+include/sqfs/block_processor.h
+include/sqfs/block_writer.h
+include/sqfs/compressor.h
+include/sqfs/data_reader.h
+include/sqfs/dir.h
+include/sqfs/dir_reader.h
+include/sqfs/dir_writer.h
+include/sqfs/error.h
+include/sqfs/frag_table.h
+include/sqfs/id_table.h
+include/sqfs/inode.h
+include/sqfs/io.h
+include/sqfs/meta_reader.h
+include/sqfs/meta_writer.h
+include/sqfs/predef.h
+include/sqfs/super.h
+include/sqfs/table.h
+include/sqfs/xattr.h
+include/sqfs/xattr_reader.h
+include/sqfs/xattr_writer.h
+lib/libsquashfs.a
+lib/libsquashfs.so
+lib/libsquashfs.so.1
+lib/libsquashfs.so.1.3.0
+libdata/pkgconfig/libsquashfs1.pc
+%%TOOLS%%man/man1/gensquashfs.1.gz
+%%TOOLS%%man/man1/rdsquashfs.1.gz
+%%TOOLS%%man/man1/sqfs2tar.1.gz
+%%TOOLS%%man/man1/sqfsdiff.1.gz
+%%TOOLS%%man/man1/tar2sqfs.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.md
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/architecture.md
+%%PORTDOCS%%%%DOCSDIR%%/benchmark.ods
+%%PORTDOCS%%%%DOCSDIR%%/benchmark.txt
+%%PORTDOCS%%%%DOCSDIR%%/format.adoc
+%%PORTDOCS%%%%DOCSDIR%%/mainpage.dox
+%%PORTDOCS%%%%DOCSDIR%%/parallelism.txt