diff --git a/filesystems/Makefile b/filesystems/Makefile index 3f47dd81333d..f4f98b93ef26 100644 --- a/filesystems/Makefile +++ b/filesystems/Makefile @@ -1,149 +1,150 @@ COMMENT = File systems and related utilities SUBDIR += R-cran-fs SUBDIR += acfgfs SUBDIR += afuse SUBDIR += amazon-efs-utils SUBDIR += archivemount SUBDIR += automount SUBDIR += avfs SUBDIR += befuse SUBDIR += bindfs SUBDIR += cfs SUBDIR += chironfs SUBDIR += clamfs SUBDIR += cramfs SUBDIR += cryptofs SUBDIR += curlftpfs SUBDIR += darling-dmg SUBDIR += davfs2 + SUBDIR += diffsnap SUBDIR += dsbmc SUBDIR += dsbmc-cli SUBDIR += dsbmd SUBDIR += e2fsprogs SUBDIR += e2fsprogs-core SUBDIR += e2tools SUBDIR += encfs SUBDIR += exfat SUBDIR += exfat-utils SUBDIR += ext2 SUBDIR += fstyp SUBDIR += fswatch-mon SUBDIR += fusefs-libs SUBDIR += fusefs-libs3 SUBDIR += genromfs SUBDIR += gphotofs SUBDIR += gvfs SUBDIR += hammer2 SUBDIR += hfsexplorer SUBDIR += hfsfuse SUBDIR += hfsutils SUBDIR += httpdirfs SUBDIR += ifuse SUBDIR += jmtpfs SUBDIR += kio-fuse SUBDIR += libbde SUBDIR += libblkid SUBDIR += libfsapfs SUBDIR += libfsext SUBDIR += libfsfat SUBDIR += libfshfs SUBDIR += libfsntfs SUBDIR += libfsxfs SUBDIR += libgedit-gfls SUBDIR += libmodi SUBDIR += linux-c7-dosfstools SUBDIR += lizardfs SUBDIR += lkl SUBDIR += ltfs SUBDIR += mcp-server-filesystem SUBDIR += mergerfs SUBDIR += mhddfs SUBDIR += moosefs-cgi SUBDIR += moosefs-chunkserver SUBDIR += moosefs-cli SUBDIR += moosefs-client SUBDIR += moosefs-gui SUBDIR += moosefs-master SUBDIR += moosefs-metalogger SUBDIR += moosefs-netdump SUBDIR += mp3fs SUBDIR += mtools SUBDIR += mtpfs SUBDIR += nbd-client-kmod SUBDIR += nbt SUBDIR += ntfs SUBDIR += ntfs-compression SUBDIR += ntfs2btrfs SUBDIR += ods2 SUBDIR += openzfs SUBDIR += openzfs-kmod SUBDIR += p5-Filesys-Statvfs SUBDIR += p5-Fuse SUBDIR += pear-Horde_Vfs SUBDIR += pjdfstest SUBDIR += pod SUBDIR += progsreiserfs SUBDIR += py-dfvfs SUBDIR += py-fs SUBDIR += py-fs2 SUBDIR += py-fsspec SUBDIR += py-fsspec-xrootd SUBDIR += py-fusepy SUBDIR += py-gcsfs SUBDIR += py-ioztat SUBDIR += py-kerchunk SUBDIR += py-libzfs SUBDIR += py-llfuse SUBDIR += py-prometheus-zfs SUBDIR += py-pyfakefs SUBDIR += py-s3fs SUBDIR += py-tahoe-lafs SUBDIR += py-zfs-autobackup SUBDIR += rar2fs SUBDIR += rubygem-chef-winrm-fs SUBDIR += rubygem-winrm-fs SUBDIR += rubygem-winrm-fs-gitlab SUBDIR += s3backer SUBDIR += s3fs SUBDIR += sandboxfs SUBDIR += sasquatch SUBDIR += scan_ffs SUBDIR += securefs SUBDIR += simple-mtpfs SUBDIR += smbnetfs SUBDIR += squashfs-tools SUBDIR += squashfs-tools-ng SUBDIR += squashfuse SUBDIR += sshfs SUBDIR += tclvfs SUBDIR += ufs SUBDIR += ufs_copy SUBDIR += unionfs SUBDIR += unreliablefs SUBDIR += versitygw SUBDIR += webdavfs SUBDIR += wimlib SUBDIR += xfsm SUBDIR += xfsprogs SUBDIR += xfuse SUBDIR += zap SUBDIR += zerofs SUBDIR += zfs-periodic SUBDIR += zfs-replicate SUBDIR += zfs-snap-diff SUBDIR += zfs-snapshot-clean SUBDIR += zfs-snapshot-mgmt SUBDIR += zfs-stats SUBDIR += zfs-stats-lite SUBDIR += zfsnap SUBDIR += zfsnap2 SUBDIR += zfstools SUBDIR += zip SUBDIR += zisofs-tools SUBDIR += zrepl SUBDIR += zrepl-dsh2dsh SUBDIR += ztop SUBDIR += zxfer .include diff --git a/filesystems/diffsnap/Makefile b/filesystems/diffsnap/Makefile new file mode 100644 index 000000000000..0b65bcf260ed --- /dev/null +++ b/filesystems/diffsnap/Makefile @@ -0,0 +1,25 @@ +PORTNAME= diffsnap +DISTVERSION= 1.0 +CATEGORIES= filesystems + +MAINTAINER= josephsaathoff@gmail.com +COMMENT= Create ZFS snapshots based on data write thresholds +WWW= https://github.com/joe81tx/diffsnap + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= joe81tx + +PLIST_FILES= sbin/diffsnap \ + "@sample etc/newsyslog.conf.d/diffsnap.conf.sample" \ + "@sample etc/diffsnap.conf.sample" \ + "@sample etc/diffsnap.cron.sample etc/cron.d/diffsnap" + +MAKE_ARGS+= BUILD_SHA=portbld + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/diffsnap + +.include diff --git a/filesystems/diffsnap/distinfo b/filesystems/diffsnap/distinfo new file mode 100644 index 000000000000..2b98da5f7d77 --- /dev/null +++ b/filesystems/diffsnap/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1788885923 +SHA256 (joe81tx-diffsnap-1.0_GH0.tar.gz) = ae5c06380167831feb0d454b48fa05a3d60c7bb5f3a0a4f615881ba26c54728b +SIZE (joe81tx-diffsnap-1.0_GH0.tar.gz) = 85744 diff --git a/filesystems/diffsnap/pkg-descr b/filesystems/diffsnap/pkg-descr new file mode 100644 index 000000000000..62f5a0b381d8 --- /dev/null +++ b/filesystems/diffsnap/pkg-descr @@ -0,0 +1,8 @@ +diffsnap is a lightweight, on-demand snapshot scheduler for OpenZFS +where snapshots are generated only when a configured change threshold +is met. It supports per-dataset scheduling intervals, retention +counts, recursive snapshots, and minimum byte thresholds. + +The utility is completely daemonless, uses native zfs +commands, handles locking to prevent overlapping runs, and safely +prunes old snapshots matching only its own prefix context. diff --git a/filesystems/diffsnap/pkg-message b/filesystems/diffsnap/pkg-message new file mode 100644 index 000000000000..02cfd50d28b4 --- /dev/null +++ b/filesystems/diffsnap/pkg-message @@ -0,0 +1,10 @@ +[ +{ type: install + message: <