Skip to content

Commit

Permalink
add zsd
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Oct 26, 2024
1 parent 2496280 commit 7e67a88
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ SUBDIR += zfsnap
SUBDIR += zfstools
SUBDIR += znapzend
SUBDIR += zrep
SUBDIR += zsd
SUBDIR += zsm
SUBDIR += ztop
SUBDIR += zxfer
Expand Down
27 changes: 27 additions & 0 deletions sysutils/zsd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PORTNAME= zsd
PORTVERSION= 0.0.2014.12.07
CATEGORIES= sysutils
MASTER_SITES= http://www.fabiankeil.de/sourcecode/zfs-snapshot-destroyer/
DISTNAME= ${PORTNAME}-2014-12-07-c2d3662

MAINTAINER= [email protected]
COMMENT= Destroys ZFS snapshots
WWW= https://www.fabiankeil.de/gehacktes/zsd/

LICENSE= mit

PORTSCOUT= ignore:1

USES= perl5 shebangfix
SHEBANG_FILES= zsd
NO_BUILD= yes
NO_ARCH= yes

PLIST_FILES= sbin/zsd \
share/man/man8/zsd.8.gz

do-install:
${INSTALL_SCRIPT} ${WRKSRC}/zsd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/zsd.8 ${STAGEDIR}${PREFIX}/share/man/man8

.include <bsd.port.mk>
2 changes: 2 additions & 0 deletions sysutils/zsd/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (zsd-2014-12-07-c2d3662.tar.gz) = f54abb4bb97b367ab48f67919bfb82e0907c64916c872e8eea6c85b66c9f1dbe
SIZE (zsd-2014-12-07-c2d3662.tar.gz) = 6953
9 changes: 9 additions & 0 deletions sysutils/zsd/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
zsd (ZFS snapshot destroyer) is a zfs(8) wrapper to destroy snapshots
on a given dataset using a more convenient interface.

The number of snapshots to destroy can be specified directly, or
indirectly by specifying the number of snapshots that should be kept.

It goes nicely with zogftw's zogftw_snapshot_successfully_sent_hook()
to grow a certain number of snapshots on new datasets while keeping the
number of snapshots on old datasets constant.

0 comments on commit 7e67a88

Please sign in to comment.