From owner-svn-ports-head@FreeBSD.ORG Mon Feb 4 23:24:41 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 31F3E225; Mon, 4 Feb 2013 23:24:41 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 0A6EB8AD; Mon, 4 Feb 2013 23:24:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r14NOegm031428; Mon, 4 Feb 2013 23:24:40 GMT (envelope-from bdrewery@svn.freebsd.org) Received: (from bdrewery@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r14NOeYJ031417; Mon, 4 Feb 2013 23:24:40 GMT (envelope-from bdrewery@svn.freebsd.org) Message-Id: <201302042324.r14NOeYJ031417@svn.freebsd.org> From: Bryan Drewery Date: Mon, 4 Feb 2013 23:24:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311655 - in head: . sysutils/zfstools sysutils/zfstools/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 23:24:41 -0000 Author: bdrewery Date: Mon Feb 4 23:24:39 2013 New Revision: 311655 URL: http://svnweb.freebsd.org/changeset/ports/311655 Log: - Update to 0.2.2 - Drop rubygem- prefix from PKGNAME as this no longer uses rubygems - Add mirror - Add setup instructions in pkg-message - Add LICENSE Changes: * Scripts are now installed to /usr/local/sbin instead of /usr/local/bin * Add '-P pool' flag to `zfs-auto-snapshot` to limit the snapshotting to the specified pool/dataset. * Fix usage output Added: head/sysutils/zfstools/files/ head/sysutils/zfstools/files/pkg-message.in (contents, props changed) head/sysutils/zfstools/pkg-plist (contents, props changed) Modified: head/UPDATING head/sysutils/zfstools/Makefile head/sysutils/zfstools/distinfo Modified: head/UPDATING ============================================================================== --- head/UPDATING Mon Feb 4 23:07:16 2013 (r311654) +++ head/UPDATING Mon Feb 4 23:24:39 2013 (r311655) @@ -6,6 +6,13 @@ You should get into the habit of checkin you update your ports collection, before attempting any port upgrades. 20130204: + AFFECTS: users of sysutils/zfstools + AUTHOR: bdrewery@FreeBSD.org + + The zfstools package has dropped the 'rubygem-' prefix and now installs + its binary files to PREFIX/sbin instead of PREFIX/bin. + +20130204: AFFECTS: users of multimedia/qt4-phonon, multimedia/qt4-phonon-gst AUTHOR: makc@FreeBSD.org qt4-phonon has been deprecated in favour of multimedia/phonon. Remove Modified: head/sysutils/zfstools/Makefile ============================================================================== --- head/sysutils/zfstools/Makefile Mon Feb 4 23:07:16 2013 (r311654) +++ head/sysutils/zfstools/Makefile Mon Feb 4 23:24:39 2013 (r311655) @@ -1,18 +1,38 @@ # $FreeBSD$ PORTNAME= zfstools -PORTVERSION= 0.2.1 -CATEGORIES= sysutils rubygems -MASTER_SITES= RG +PORTVERSION= 0.2.2 +CATEGORIES= sysutils ruby +MASTER_SITES= GH \ + http://mirror.shatow.net/freebsd/${PORTNAME}/ MAINTAINER= bdrewery@FreeBSD.org -COMMENT= OpenSolaris-compatible auto snapshotting +COMMENT= OpenSolaris-compatible auto snapshotting for ZFS + +LICENSE= BSD +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USE_GITHUB= yes +GH_ACCOUNT= bdrewery +GH_COMMIT= 924b60c +GH_TAGNAME= v${DISTVERSION} USE_RUBY= yes -USE_RUBYGEMS= yes -RUBYGEM_AUTOPLIST= yes -PLIST_FILES= bin/zfs-auto-snapshot \ - bin/zfs-cleanup-snapshots \ - bin/zfs-snapshot-mysql +NO_BUILD= yes + +SUB_FILES= pkg-message + +.include + +do-install: + @cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${PREFIX}/sbin + @cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${RUBY_SITELIBDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR} +.endif + +post-install: + @${CAT} ${PKGMESSAGE} .include Modified: head/sysutils/zfstools/distinfo ============================================================================== --- head/sysutils/zfstools/distinfo Mon Feb 4 23:07:16 2013 (r311654) +++ head/sysutils/zfstools/distinfo Mon Feb 4 23:24:39 2013 (r311655) @@ -1,2 +1,2 @@ -SHA256 (rubygem/zfstools-0.2.1.gem) = dce9bdce62da661ff6bed42061b8263c909cc27294dc73e4b2a423d9ba5045ec -SIZE (rubygem/zfstools-0.2.1.gem) = 13312 +SHA256 (zfstools-0.2.2.tar.gz) = 64f6e0c39942b8300a91c82b2674172df437bf76e4b17fe8ab10b1d008e57a22 +SIZE (zfstools-0.2.2.tar.gz) = 10665 Added: head/sysutils/zfstools/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/zfstools/files/pkg-message.in Mon Feb 4 23:24:39 2013 (r311655) @@ -0,0 +1,17 @@ +To enable automatic snapshots, place lines such as these into /etc/crontab: + + 15,30,45 * * * * root %%PREFIX%%/sbin/zfs-auto-snapshot frequent 4 + 0 * * * * root %%PREFIX%%/sbin/zfs-auto-snapshot hourly 24 + 7 0 * * * root %%PREFIX%%/sbin/zfs-auto-snapshot daily 7 + 14 0 * * 7 root %%PREFIX%%/sbin/zfs-auto-snapshot weekly 4 + 28 0 1 * * root %%PREFIX%%/sbin/zfs-auto-snapshot monthly 12 + +This will keep 4 15-minutely snapshots, 24 hourly snapshots, 7 daily snapshots, +4 weekly snapshots and 12 monthly snapshots. Any resulting zero-sized snapshots +will be automatically cleaned up. + +Enable snapshotting on a dataset or top-level pool with: + + zfs set com.sun:auto-snapshot=true DATASET + +See website and command usage output for further details. Added: head/sysutils/zfstools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/zfstools/pkg-plist Mon Feb 4 23:24:39 2013 (r311655) @@ -0,0 +1,13 @@ +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%RUBY_SITELIBDIR%%/zfstools.rb +%%RUBY_SITELIBDIR%%/zfstools/dataset.rb +%%RUBY_SITELIBDIR%%/zfstools/snapshot.rb +@dirrm %%RUBY_SITELIBDIR%%/zfstools +@dirrmtry %%RUBY_SITELIBDIR%% +@dirrmtry lib/ruby/site_ruby +@dirrmtry lib/ruby +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@exec /bin/mkdir -p %D/%%RUBY_SITELIBDIR%%/zfstools +sbin/zfs-auto-snapshot +sbin/zfs-cleanup-snapshots +sbin/zfs-snapshot-mysql