pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import SnapRAID 12.3, a backup program designed for disk arrays, storing parity information for data recovery in the event of up to six disk failures. Primarily intended for home media centers with large, infrequently changing files.



Module Name:	pkgsrc-wip
Committed By:	Matthias Petermann <mp%petermann-it.de@localhost>
Pushed By:	mp
Date:		Sun Jun 9 09:56:06 2024 +0200
Changeset:	a4a09347cb2f54e65dfaa8865cf4190dd5302ce8

Added Files:
	snapraid/COMMIT_MSG
	snapraid/DESCR
	snapraid/Makefile
	snapraid/PLIST
	snapraid/TODO
	snapraid/distinfo
	snapraid/patches/patch-cmdline_unix.c

Log Message:
Import SnapRAID 12.3, a backup program designed for disk arrays, storing
parity information for data recovery in the event of up to six disk
failures. Primarily intended for home media centers with large, infrequently
changing files.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a4a09347cb2f54e65dfaa8865cf4190dd5302ce8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 snapraid/COMMIT_MSG                   |  4 ++++
 snapraid/DESCR                        | 20 +++++++++++++++++++
 snapraid/Makefile                     | 22 +++++++++++++++++++++
 snapraid/PLIST                        |  3 +++
 snapraid/TODO                         |  9 +++++++++
 snapraid/distinfo                     |  6 ++++++
 snapraid/patches/patch-cmdline_unix.c | 37 +++++++++++++++++++++++++++++++++++
 7 files changed, 101 insertions(+)

diffs:
diff --git a/snapraid/COMMIT_MSG b/snapraid/COMMIT_MSG
new file mode 100644
index 0000000000..6fe6e3362b
--- /dev/null
+++ b/snapraid/COMMIT_MSG
@@ -0,0 +1,4 @@
+Import SnapRAID 12.3, a backup program designed for disk arrays, storing
+parity information for data recovery in the event of up to six disk
+failures. Primarily intended for home media centers with large, infrequently
+changing files.
diff --git a/snapraid/DESCR b/snapraid/DESCR
new file mode 100644
index 0000000000..b9207d6528
--- /dev/null
+++ b/snapraid/DESCR
@@ -0,0 +1,20 @@
+SnapRAID is a backup program designed for disk arrays, storing parity
+information for data recovery in the event of up to six disk failures.
+
+Primarily intended for home media centers with large, infrequently
+changing files, SnapRAID offers several features:
+
+ - You can utilize disks already filled with files without the need to
+   reformat them, accessing them as usual.
+ - All your data is hashed to ensure data integrity and prevent silent
+   corruption.
+ - When the number of failed disks exceeds the parity count, data loss
+   is confined to the affected disks; data on other disks remains
+   accessible.
+ - If you accidentally delete files on a disk, recovery is possible.
+ - Disks can have different sizes.
+ - You can add disks at any time.
+ - SnapRAID doesn't lock in your data; you can stop using it anytime
+   without reformatting or moving data.
+ - To access a file, only a single disk needs to spin, saving power
+   and reducing noise.
diff --git a/snapraid/Makefile b/snapraid/Makefile
new file mode 100644
index 0000000000..c42fa10e88
--- /dev/null
+++ b/snapraid/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: $
+
+DISTNAME=	snapraid-12.3
+CATEGORIES=	archivers
+MASTER_SITES=	${MASTER_SITE_GITHUB:=amadvance/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	mp%petermann-it.de@localhost
+HOMEPAGE=	https://www.snapraid.it/
+COMMENT=	Backup program designed for disk arrays
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES=	c
+USE_TOOLS=	autoconf autoreconf automake gmake
+GNU_CONFIGURE=	yes
+
+ONLY_FOR_PLATFORM=	NetBSD-*
+
+pre-configure:
+	cd ${WRKSRC} && autoreconf -i
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/snapraid/PLIST b/snapraid/PLIST
new file mode 100644
index 0000000000..8f534cd7a3
--- /dev/null
+++ b/snapraid/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/snapraid
+man/man1/snapraid.1
diff --git a/snapraid/TODO b/snapraid/TODO
new file mode 100644
index 0000000000..7a522a3c33
--- /dev/null
+++ b/snapraid/TODO
@@ -0,0 +1,9 @@
+The provided patch fixes the primary build issue I had with this on 
+NetBSD. There are still a couple of warnings shown during the build.
+I don't recommend this for production use, until they are classified
+/ fixed.
+
+In addition, I am looking for a clean and generic solution to make
+application of this patch conditional based on the OPSYS. 
+
+Patches welcome :-)
diff --git a/snapraid/distinfo b/snapraid/distinfo
new file mode 100644
index 0000000000..575e4df6cc
--- /dev/null
+++ b/snapraid/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (snapraid-12.3.tar.gz) = f70dbedfc1c03370a701e52643cef05586ac538f0be0295e4726bdeaa4de18e8
+SHA512 (snapraid-12.3.tar.gz) = fccdbfad13dfa6147b16dde017db826921be082d1d1b5f0c72b462cc47d73738bb75fa0d8bf66216bf919289cc681262bfea635761ed7fe2af0400ce5cbc5616
+Size (snapraid-12.3.tar.gz) = 662164 bytes
+SHA1 (patch-cmdline_unix.c) = c6843de7f8007cf0be8e9a0c5e0d6aa7eacecf68
diff --git a/snapraid/patches/patch-cmdline_unix.c b/snapraid/patches/patch-cmdline_unix.c
new file mode 100644
index 0000000000..269c0be520
--- /dev/null
+++ b/snapraid/patches/patch-cmdline_unix.c
@@ -0,0 +1,37 @@
+$NetBSD$
+
+statfs() functions are deprecated since NetBSD 3.0. This patch
+replaces them with statvfs().
+
+--- cmdline/unix.c.orig	2024-06-09 07:14:40.831310334 +0000
++++ cmdline/unix.c
+@@ -650,9 +650,9 @@ int fsinfo(const char* path, int* has_pe
+ 	const char* ptype;
+ 
+ #if HAVE_STATFS
+-	struct statfs st;
++	struct statvfs st;
+ 
+-	if (statfs(path, &st) != 0) {
++	if (statvfs(path, &st) != 0) {
+ 		char dir[PATH_MAX];
+ 		char* slash;
+ 
+@@ -674,7 +674,7 @@ int fsinfo(const char* path, int* has_pe
+ 			return -1;
+ 
+ 		*slash = 0;
+-		if (statfs(dir, &st) != 0)
++		if (statvfs(dir, &st) != 0)
+ 			return -1;
+ 	}
+ #endif
+@@ -761,7 +761,7 @@ int fsinfo(const char* path, int* has_pe
+ 	ptype = "unknown";
+ #endif
+ 
+-	log_tag("statfs:%s: %s \n", ptype, path);
++	log_tag("statvfs:%s: %s \n", ptype, path);
+ 
+ 	return 0;
+ }


Home | Main Index | Thread Index | Old Index