aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-02-07 00:37:42 +0800
committerpawel <pawel@FreeBSD.org>2014-02-07 00:37:42 +0800
commitfea6849d9ef905b46a2402be370183db489a55cc (patch)
tree880c59ac90f72936e5ebd8a3e93a264e6d1b5311
parentd687c64e0c97b0723dbedd6f120a8d3157efe8c3 (diff)
downloadfreebsd-ports-gnome-fea6849d9ef905b46a2402be370183db489a55cc.tar.gz
freebsd-ports-gnome-fea6849d9ef905b46a2402be370183db489a55cc.tar.zst
freebsd-ports-gnome-fea6849d9ef905b46a2402be370183db489a55cc.zip
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. WWW: http://www.fabiankeil.de/gehacktes/zsd/ PR: ports/183531 Submitted by: Fabian Keil <fk@fabiankeil.de>
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/zsd/Makefile26
-rw-r--r--sysutils/zsd/distinfo2
-rw-r--r--sysutils/zsd/pkg-descr11
4 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 207e76f07003..51b76d6f6a56 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1072,6 +1072,7 @@
SUBDIR += zisofs-tools
SUBDIR += zogftw
SUBDIR += zrep
+ SUBDIR += zsd
SUBDIR += zxfer
.include <bsd.port.subdir.mk>
diff --git a/sysutils/zsd/Makefile b/sysutils/zsd/Makefile
new file mode 100644
index 000000000000..15206e93d890
--- /dev/null
+++ b/sysutils/zsd/Makefile
@@ -0,0 +1,26 @@
+# Created by: Fabian Keil <fk@fabiankeil.de>
+# $FreeBSD$
+
+PORTNAME= zsd
+PORTVERSION= 0.0.2013.10.08
+CATEGORIES= sysutils
+MASTER_SITES= http://www.fabiankeil.de/sourcecode/zfs-snapshot-destroyer/
+DISTNAME= ${PORTNAME}-2013-10-08-f7cd2b3
+
+MAINTAINER= fk@fabiankeil.de
+COMMENT= Destroys ZFS snapshots
+
+PLIST_FILES= sbin/zsd \
+ man/man8/zsd.8.gz
+
+PORTSCOUT= ignore:1
+
+USES= perl5 shebangfix
+SHEBANG_FILES= zsd
+NO_BUILD= yes
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/zsd ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/zsd.8 ${STAGEDIR}${MANPREFIX}/man/man8
+
+.include <bsd.port.mk>
diff --git a/sysutils/zsd/distinfo b/sysutils/zsd/distinfo
new file mode 100644
index 000000000000..73cf4ca2cb85
--- /dev/null
+++ b/sysutils/zsd/distinfo
@@ -0,0 +1,2 @@
+SHA256 (zsd-2013-10-08-f7cd2b3.tar.gz) = e4deddc71afc7f9708a12bdcde54f3317774624541f28159f708d5c657fcfe03
+SIZE (zsd-2013-10-08-f7cd2b3.tar.gz) = 6462
diff --git a/sysutils/zsd/pkg-descr b/sysutils/zsd/pkg-descr
new file mode 100644
index 000000000000..a371e92a83a0
--- /dev/null
+++ b/sysutils/zsd/pkg-descr
@@ -0,0 +1,11 @@
+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.
+
+WWW: http://www.fabiankeil.de/gehacktes/zsd/