Date: Thu, 30 Jun 2016 08:48:01 +0000 (UTC) From: Martin Matuska <mm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417816 - in head/sysutils: . zfsnap-devel Message-ID: <201606300848.u5U8m1xD053571@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mm Date: Thu Jun 30 08:48:00 2016 New Revision: 417816 URL: https://svnweb.freebsd.org/changeset/ports/417816 Log: zfsnap makes rolling ZFS snapshots easy and - with cron - automatic. The main advantages of zfsnap are its portability, simplicity, and performance. It is written purely in /bin/sh and does not require any additional software - other than a few core *nix utilies. zfsnap stores all the information it needs about a snapshot directly in its name; no database or special ZFS properties are needed. The information is stored in a way that is human readable, making it much easier for a sysadmin to manage and audit backup schedules. Snapshot names are in the format of pool/fs@[prefix]Timestamp--TimeToLive (e.g. pool/fs@weekly-2014-04-07_05.30.00--6m). The prefix is optional but can be quite useful for filtering, Timestamp is the date and time when the snapshot was created, and TimeToLive (TTL) is the amount of time the snapshot will be kept until it can be deleted. Added: head/sysutils/zfsnap-devel/ head/sysutils/zfsnap-devel/Makefile (contents, props changed) head/sysutils/zfsnap-devel/distinfo (contents, props changed) head/sysutils/zfsnap-devel/pkg-descr (contents, props changed) head/sysutils/zfsnap-devel/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Thu Jun 30 08:39:32 2016 (r417815) +++ head/sysutils/Makefile Thu Jun 30 08:48:00 2016 (r417816) @@ -1229,6 +1229,7 @@ SUBDIR += zfs-stats SUBDIR += zfs-stats-lite SUBDIR += zfsnap + SUBDIR += zfsnap-devel SUBDIR += zfstools SUBDIR += zidrav SUBDIR += zisofs-tools Added: head/sysutils/zfsnap-devel/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/zfsnap-devel/Makefile Thu Jun 30 08:48:00 2016 (r417816) @@ -0,0 +1,51 @@ +# Created by: Martin Matuska <mm@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= zfsnap +DISTVERSIONPREFIX= v +DISTVERSION= 2.0.0-beta2 +CATEGORIES= sysutils +PKGNAMESUFFIX= -devel + +MAINTAINER= mm@FreeBSD.org +COMMENT= Portable performant script to make rolling ZFS snapshots easy + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +NO_BUILD= yes +USE_GITHUB= yes +GH_TAGNAME= af91bd21c848751176ccce0ae314e3c0feb75cc5 + +OPTIONS_DEFINE= BASH ZSH +OPTIONS_DEFAULT= BASH ZSH +OPTIONS_SUB= yes + +PORTDOCS= AUTHORS NEWS PORTABILITY README.md + +post-patch: + @${REINPLACE_CMD} -e "s,# ZFSNAP_LIB_DIR=.*,ZFSNAP_LIB_DIR=${PREFIX}/share/zfsnap,g" ${WRKSRC}/sbin/zfsnap.sh + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/sbin/zfsnap.sh ${STAGEDIR}${PREFIX}/sbin/zfsnap + cd ${WRKSRC}/share && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share + ${INSTALL_MAN} ${WRKSRC}/man/man8/zfsnap.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/zfsnap.8 + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} completion ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} periodic ${STAGEDIR}${EXAMPLESDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for file in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/${file} +.endfor + +post-install-BASH-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d + ${INSTALL_DATA} ${WRKSRC}/completion/zfsnap-completion.bash \ + ${STAGEDIR}${PREFIX}/etc/bash_completion.d/zfsnap.sh + +post-install-ZSH-on: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/completion/zfsnap-completion.bash \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_zfsnap + +.include <bsd.port.mk> Added: head/sysutils/zfsnap-devel/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/zfsnap-devel/distinfo Thu Jun 30 08:48:00 2016 (r417816) @@ -0,0 +1,3 @@ +TIMESTAMP = 1467272284 +SHA256 (zfsnap-zfsnap-v2.0.0-beta2-af91bd21c848751176ccce0ae314e3c0feb75cc5_GH0.tar.gz) = 61bbfce1218790a30af5d6ace5580af14626012cb0c93c1727a766930aeb5e01 +SIZE (zfsnap-zfsnap-v2.0.0-beta2-af91bd21c848751176ccce0ae314e3c0feb75cc5_GH0.tar.gz) = 29976 Added: head/sysutils/zfsnap-devel/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/zfsnap-devel/pkg-descr Thu Jun 30 08:48:00 2016 (r417816) @@ -0,0 +1,16 @@ +zfsnap makes rolling ZFS snapshots easy and - with cron - automatic. + +The main advantages of zfsnap are its portability, simplicity, and performance. +It is written purely in /bin/sh and does not require any additional software - +other than a few core *nix utilies. + +zfsnap stores all the information it needs about a snapshot directly in its +name; no database or special ZFS properties are needed. The information is +stored in a way that is human readable, making it much easier for a sysadmin to +manage and audit backup schedules. + +Snapshot names are in the format of pool/fs@[prefix]Timestamp--TimeToLive +(e.g. pool/fs@weekly-2014-04-07_05.30.00--6m). The prefix is optional but can +be quite useful for filtering, Timestamp is the date and time when the snapshot +was created, and TimeToLive (TTL) is the amount of time the snapshot will be +kept until it can be deleted. Added: head/sysutils/zfsnap-devel/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/zfsnap-devel/pkg-plist Thu Jun 30 08:48:00 2016 (r417816) @@ -0,0 +1,13 @@ +man/man8/zfsnap.8.gz +sbin/zfsnap +share/zfsnap/commands/destroy.sh +share/zfsnap/commands/recurseback.sh +share/zfsnap/commands/snapshot.sh +share/zfsnap/core.sh +%%BASH%%etc/bash_completion.d/zfsnap.sh +%%ZSH%%share/zsh/site-functions/_zfsnap +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/periodic/xPERIODICx_zfsnap_delete.sh +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/periodic/xPERIODICx_zfsnap.sh +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/completion/zfsnap-completion.bash +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/completion/zfsnap-completion.tcsh +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/completion/zfsnap-completion.zsh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606300848.u5U8m1xD053571>