Bug 280987 - Update sysutils/zfs-replicate port to version 1.0
Summary: Update sysutils/zfs-replicate port to version 1.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Larry Rosenman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-22 00:49 UTC by Victor
Modified: 2024-08-22 14:50 UTC (History)
2 users (show)

See Also:


Attachments
diff file for requested changes (1.75 KB, patch)
2024-08-22 00:49 UTC, Victor
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2024-08-22 00:49:12 UTC
Created attachment 252997 [details]
diff file for requested changes

Update sysutils/zfs-replicate to version 1.0

This version includes enhancements and features such as

- supports PUSH or PULL replication
- supports LOCAL or REMOTE replication
- supports multiple pool/dataset pairs to replicate
- everything is logged to `${SCRIPTPATH}/logs` by default (can be set to custom location using $LOGBASE variable) but its better to keep it together with the scripts
- runs off a well documented `config.sh` file (see below)
- can be run on any schedule using cron with `bash zfs-replicate.sh -config.sh`
- (for XigmaNAS) includes a `status-report.sh` that can be used to email latest replication status, which will email the latest replication status at your preferred schedule. Simply add it as a custom script in the email settings under "System > Advanced > Email Reports" 
- includes ALLOW_REPLICATE_FROM_SCRATCH option (see below, or `config.sh` file for details)
Comment 1 Larry Rosenman freebsd_committer freebsd_triage 2024-08-22 00:55:36 UTC
take
Comment 2 Larry Rosenman freebsd_committer freebsd_triage 2024-08-22 00:59:01 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-08-22 00:59:26 UTC
A commit in branch main references this bug:

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

commit b3cf46924d9855b5275b1d3275c1947b6756f124
Author:     Larry Rosenman <ler@FreeBSD.org>
AuthorDate: 2024-08-22 00:56:55 +0000
Commit:     Larry Rosenman <ler@FreeBSD.org>
CommitDate: 2024-08-22 00:58:36 +0000

    sysutils/zfs-replicate:  update to 1.0

    This version includes enhancements and features such as

    - supports PUSH or PULL replication
    - supports LOCAL or REMOTE replication
    - supports multiple pool/dataset pairs to replicate
    - everything is logged to `${SCRIPTPATH}/logs` by default (can be set to custom location using $LOGBASE variable) but its better to keep it together with the scripts
    - runs off a well documented `config.sh` file (see below)
    - can be run on any schedule using cron with `bash zfs-replicate.sh -config.sh`
    - (for XigmaNAS) includes a `status-report.sh` that can be used to email latest replication status, which will email the latest replication status at your preferred schedule. Simply add it as a custom script in the email settings under "System > Advanced > Email Reports"
    - includes ALLOW_REPLICATE_FROM_SCRATCH option (see below, or `config.sh` file for details)

    PR:     280987
    Reported by:    Victor <tschetter.victor@gmail.com> (Maintainer)

 sysutils/zfs-replicate/Makefile  | 9 ++++-----
 sysutils/zfs-replicate/distinfo  | 6 +++---
 sysutils/zfs-replicate/pkg-descr | 2 +-
 3 files changed, 8 insertions(+), 9 deletions(-)
Comment 4 Victor 2024-08-22 01:02:09 UTC
Is this the preferred way to maintain this port?
Or should I push the changes myself.

Also, will this now work with pkg install zfs-replicate?
Comment 5 Larry Rosenman freebsd_committer freebsd_triage 2024-08-22 01:04:17 UTC
Unless you get a commit bit, this is the preferred way.

When the package builders build this package,
a pkg install zfs-replicate will work.  It's NOT instant.
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-22 01:58:55 UTC
Better remove GH_TAGNAME and add DISTVERSIONPREFIX=v.
Then make makesum.
Comment 7 Larry Rosenman freebsd_committer freebsd_triage 2024-08-22 02:16:42 UTC
Done - thanks!
Comment 8 Victor 2024-08-22 13:56:29 UTC
Do I need to do anything for the package to be built besides wait?
Comment 9 Larry Rosenman freebsd_committer freebsd_triage 2024-08-22 14:50:14 UTC
Nope. It'll get built eventually...