sysutils/cpdup-FreeBSD: Add FreeBSD fork of cpdup

Add a fork of cpdup, including patches to support copy_file_range(2)
and allowing to choose checksum algorithm.

Thanks to mm for providing the required patches to the fork.

Assign port to cpdup maintainer

Approved by:	Gianmarco Giovannelli <gmarco@giovannelli.it> (maintainer)
This commit is contained in:
Guido Falsi 2025-02-25 22:58:58 +01:00
parent 2f3c3b1d9d
commit 0d316fecca
6 changed files with 48 additions and 0 deletions

View file

@ -236,6 +236,7 @@
SUBDIR += coreos-ct
SUBDIR += coreutils
SUBDIR += cpdup
SUBDIR += cpdup-FreeBSD
SUBDIR += cpu-microcode
SUBDIR += cpu-microcode-amd
SUBDIR += cpu-microcode-intel

View file

@ -0,0 +1,22 @@
PORTNAME= cpdup
DISTVERSION= 1.0.0
CATEGORIES= sysutils
PKGNAMESUFFIX= -FreeBSD
MAINTAINER= gmarco@giovannelli.it
COMMENT= Comprehensive filesystem mirroring and backup program
WWW= https://github.com/freebsd/cpdup
LICENSE= BSD3CLAUSE
USES= ssl tar:xz
USE_GITHUB= yes
GH_ACCOUNT= freebsd
MAKEFILE= Makefile.bsd
CONFLICTS_INSTALL= cpdup
PLIST_FILES= bin/cpdup \
share/man/man1/cpdup.1.gz
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1739815106
SHA256 (freebsd-cpdup-1.0.0_GH0.tar.gz) = 216d7416f23df392a4218120ee8b4d66ddab04f7c3677b8bfd7c6fea8383aa26
SIZE (freebsd-cpdup-1.0.0_GH0.tar.gz) = 45939

View file

@ -0,0 +1,11 @@
--- Makefile.bsd.orig 2023-11-30 11:20:48 UTC
+++ Makefile.bsd
@@ -11,7 +11,7 @@ BINDIR?= ${PREFIX}/bin
CFLAGS+= -D_ST_FLAGS_PRESENT_
PREFIX?= /usr/local
BINDIR?= ${PREFIX}/bin
-MANDIR?= ${PREFIX}/man/man
+MANDIR?= ${PREFIX}/share/man/man
.include <bsd.prog.mk>

View file

@ -0,0 +1,9 @@
cpdup-FreeBSD is a FreeBSD fork of cpdup, a powerful filesystem mirroring
and backup utility which also has file integrity testing features, supports
incremental backups, and remote mirroring via ssh.
This fork supports copy_file_range(2) and allows choosing checksum
algorithm.
Note: This port does not copy (or mirror) any FreeBSD supported ACL
types and Extended Attributes nor MAC labels.

View file

@ -15,6 +15,8 @@ GH_TUPLE= DragonFlyBSD:${PORTNAME}:v${PORTVERSION}
MAKEFILE= GNUmakefile
MAKE_ARGS+= LIBS="-L${OPENSSLLIB} -lcrypto"
CONFLICTS_INSTALL= cpdup-FreeBSD
PLIST_FILES= bin/cpdup share/man/man1/cpdup.1.gz
post-patch: