Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Apr 2023 10:34:08 GMT
From:      Ganael LAPLANCHE <martymac@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f38c81243db4 - main - archivers/par2cmdline-turbo: add new port
Message-ID:  <202304061034.336AY8wn070649@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by martymac:

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

commit f38c81243db4a3c35e68330ae5532531191d8f93
Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
AuthorDate: 2023-04-06 10:32:54 +0000
Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
CommitDate: 2023-04-06 10:33:40 +0000

    archivers/par2cmdline-turbo: add new port
    
    Parity v2 Archive create/verify/recover using ParPar backend
    
    https://github.com/animetosho/par2cmdline-turbo
---
 archivers/Makefile                                 |  1 +
 archivers/par2cmdline-turbo/Makefile               | 36 ++++++++++++++++++++++
 archivers/par2cmdline-turbo/distinfo               |  3 ++
 .../files/patch-parpar-gf16-threadqueue.h          | 11 +++++++
 archivers/par2cmdline-turbo/pkg-descr              |  5 +++
 archivers/par2cmdline/Makefile                     |  3 +-
 6 files changed, 58 insertions(+), 1 deletion(-)

diff --git a/archivers/Makefile b/archivers/Makefile
index ae92d67f934b..624b2b7128ae 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -142,6 +142,7 @@
     SUBDIR += paq
     SUBDIR += par
     SUBDIR += par2cmdline
+    SUBDIR += par2cmdline-turbo
     SUBDIR += parchive
     SUBDIR += pbzip2
     SUBDIR += pear-File_Archive
diff --git a/archivers/par2cmdline-turbo/Makefile b/archivers/par2cmdline-turbo/Makefile
new file mode 100644
index 000000000000..ca4909d7f3c5
--- /dev/null
+++ b/archivers/par2cmdline-turbo/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	par2cmdline-turbo
+PORTVERSION=	0.9.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	archivers
+
+MAINTAINER=	martymac@FreeBSD.org
+COMMENT=	Tools for using Parity v2 Archive files using ParPar backend
+WWW=		https://github.com/animetosho/par2cmdline-turbo
+
+LICENSE=	GPLv2
+
+ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS_REASON=	untested on other archs
+
+USES=		autoreconf compiler:c++11-lang
+GNU_CONFIGURE=	yes
+LDFLAGS+=	-lpthread
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	animetosho
+
+PORTDOCS=	README.md
+CONFLICTS=	par2cmdline
+
+PLIST_FILES=	bin/par2 bin/par2create bin/par2repair bin/par2verify \
+	man/man1/par2.1.gz
+
+OPTIONS_DEFINE=	DOCS
+
+TEST_TARGET=	check
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR} && \
+		${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/archivers/par2cmdline-turbo/distinfo b/archivers/par2cmdline-turbo/distinfo
new file mode 100644
index 000000000000..5280f3b3133a
--- /dev/null
+++ b/archivers/par2cmdline-turbo/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1680203173
+SHA256 (animetosho-par2cmdline-turbo-v0.9.0_GH0.tar.gz) = 95817b4d944e2ae01d045c5b569d04ff591fc7992e97ca9a13657d094642917a
+SIZE (animetosho-par2cmdline-turbo-v0.9.0_GH0.tar.gz) = 3838037
diff --git a/archivers/par2cmdline-turbo/files/patch-parpar-gf16-threadqueue.h b/archivers/par2cmdline-turbo/files/patch-parpar-gf16-threadqueue.h
new file mode 100644
index 000000000000..f1aeb3c40018
--- /dev/null
+++ b/archivers/par2cmdline-turbo/files/patch-parpar-gf16-threadqueue.h
@@ -0,0 +1,11 @@
+--- parpar/gf16/threadqueue.h.orig	2023-03-22 08:33:16 UTC
++++ parpar/gf16/threadqueue.h
+@@ -252,7 +252,7 @@ class MessageThread {
+ 		pthread_t self = pthread_self();
+ 		if(!pthread_getschedparam(self, &policy, &param)) {
+ 			if(policy == SCHED_OTHER) {
+-				#ifdef __MACH__
++				#if defined(__MACH__) || defined(__FreeBSD__)
+ 				// MacOS doesn't support SCHED_BATCH, but does seem to permit priorities on SCHED_OTHER
+ 				int min = sched_get_priority_min(policy);
+ 				if(min < param.sched_priority) {
diff --git a/archivers/par2cmdline-turbo/pkg-descr b/archivers/par2cmdline-turbo/pkg-descr
new file mode 100644
index 000000000000..d4e5feb9d82c
--- /dev/null
+++ b/archivers/par2cmdline-turbo/pkg-descr
@@ -0,0 +1,5 @@
+Parity v2 Archive create/verify/recover using ParPar backend
+
+This is a simple fork of par2cmdline which replaces core computation routines
+with ParPar's processing backend, improving par2cmdline's performance on
+x86/ARM platforms.
diff --git a/archivers/par2cmdline/Makefile b/archivers/par2cmdline/Makefile
index 648a07412345..a09e86392c41 100644
--- a/archivers/par2cmdline/Makefile
+++ b/archivers/par2cmdline/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	par2cmdline
 PORTVERSION=	0.8.1
+PORTREVISION=	2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	archivers
 
@@ -16,7 +17,7 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	Parchive
 
 PORTDOCS=	README
-CONFLICTS=	par2cmdline-tbb
+CONFLICTS=	par2cmdline-turbo
 
 PLIST_FILES=	bin/par2 bin/par2create bin/par2repair bin/par2verify man/man1/par2.1.gz
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304061034.336AY8wn070649>