From owner-svn-ports-all@freebsd.org Thu Jun 30 08:48:02 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DE07B87BFD; Thu, 30 Jun 2016 08:48:02 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6852626C8; Thu, 30 Jun 2016 08:48:02 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5U8m1aC053576; Thu, 30 Jun 2016 08:48:01 GMT (envelope-from mm@FreeBSD.org) Received: (from mm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5U8m1xD053571; Thu, 30 Jun 2016 08:48:01 GMT (envelope-from mm@FreeBSD.org) Message-Id: <201606300848.u5U8m1xD053571@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mm set sender to mm@FreeBSD.org using -f From: Martin Matuska Date: Thu, 30 Jun 2016 08:48:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417816 - in head/sysutils: . zfsnap-devel X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 08:48:02 -0000 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 +# $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 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