Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2019 02:52:22 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r512087 - branches/2019Q3/sysutils/zfs-replicate
Message-ID:  <201909150252.x8F2qMv1018517@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Sun Sep 15 02:52:21 2019
New Revision: 512087
URL: https://svnweb.freebsd.org/changeset/ports/512087

Log:
  MFH: r512086
  
  - update to 0.7_2
  - code shift to github
  - update WWW along with pkg-descr
  - support docs and examples
  
  PR:		207244
  Reported by:	lapo@lapo.it, w.schwarzenfeld@utanet.at (WWW)
  
  Approved by:	ports-secteam (with hat)

Modified:
  branches/2019Q3/sysutils/zfs-replicate/Makefile
  branches/2019Q3/sysutils/zfs-replicate/distinfo
  branches/2019Q3/sysutils/zfs-replicate/pkg-descr
Directory Properties:
  branches/2019Q3/   (props changed)

Modified: branches/2019Q3/sysutils/zfs-replicate/Makefile
==============================================================================
--- branches/2019Q3/sysutils/zfs-replicate/Makefile	Sun Sep 15 02:46:36 2019	(r512086)
+++ branches/2019Q3/sysutils/zfs-replicate/Makefile	Sun Sep 15 02:52:21 2019	(r512087)
@@ -3,30 +3,46 @@
 
 PORTNAME=	zfs-replicate
 PORTVERSION=	0.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
-MASTER_SITES=	http://blogs.sun.com/constantin/resource/
-DISTNAME=	${PORTNAME}_v${PORTVERSION}
 
 MAINTAINER=	jnlin@freebsd.cs.nctu.edu.tw
 COMMENT=	ZFS Snapshot Replication Script
 
-RUN_DEPENDS=	ksh:shells/pdksh
+RUN_DEPENDS=	bash:shells/bash
 
-NO_WRKSUBDIR=	yes
+USES=	shebangfix
+
 NO_BUILD=	yes
-USES=	tar:bzip2
+NO_ARCH=	yes
 
-PLIST_FILES=	sbin/zfs-replicate
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-do-patch:
-	@${REINPLACE_CMD} -e 's|^#!/bin/ksh|#!${PREFIX}/bin/ksh|g' \
-		${WRKSRC}/zfs-replicate_v${PORTVERSION}
-	@${REINPLACE_CMD} -e 's|/usr/sbin/zfs|/sbin/zfs|g' \
-		${WRKSRC}/zfs-replicate_v${PORTVERSION}
+SHEBANG_FILES=	zfs-replicate.sh
 
+PORTDOCS=	README.md
+PORTDATA=	config.sample.sh
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	leprechau
+GH_TAGNAME=	17bf8fb
+
+PLIST_FILES=	sbin/zfs-replicate
+
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/zfs-replicate_v${PORTVERSION} \
+	${INSTALL_SCRIPT} ${WRKSRC}/zfs-replicate.sh \
 		${STAGEDIR}${PREFIX}/sbin/zfs-replicate
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for file in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+do-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+.for data in ${PORTDATA}
+	${INSTALL_DATA} ${WRKSRC}/${data} ${STAGEDIR}${DATADIR}
+.endfor
 
 .include <bsd.port.mk>

Modified: branches/2019Q3/sysutils/zfs-replicate/distinfo
==============================================================================
--- branches/2019Q3/sysutils/zfs-replicate/distinfo	Sun Sep 15 02:46:36 2019	(r512086)
+++ branches/2019Q3/sysutils/zfs-replicate/distinfo	Sun Sep 15 02:52:21 2019	(r512087)
@@ -1,2 +1,3 @@
-SHA256 (zfs-replicate_v0.7.tar.bz2) = 4ecd8ae205e90294bc5d0f2d56dfcc375499901f025e2e1926628c4e01ccd41e
-SIZE (zfs-replicate_v0.7.tar.bz2) = 4020
+TIMESTAMP = 1567786202
+SHA256 (leprechau-zfs-replicate-0.7-17bf8fb_GH0.tar.gz) = a9c9f948abae7e7490ae69711946b63e7483cdab43709e92c0b495cbdfef3f9f
+SIZE (leprechau-zfs-replicate-0.7-17bf8fb_GH0.tar.gz) = 5497

Modified: branches/2019Q3/sysutils/zfs-replicate/pkg-descr
==============================================================================
--- branches/2019Q3/sysutils/zfs-replicate/pkg-descr	Sun Sep 15 02:46:36 2019	(r512086)
+++ branches/2019Q3/sysutils/zfs-replicate/pkg-descr	Sun Sep 15 02:52:21 2019	(r512087)
@@ -1,4 +1,4 @@
-zfs-replicate makes migrating a few filesystems and many
-snapshots to a new zpool more easier.
+Simple script to replicate zfs volumes between hosts
+(or between pools on the same host) via incremental snapshots.
 
-WWW: https://blogs.oracle.com/constantin/entry/useful_zfs_snapshot_replicator_script
+WWW: https://github.com/leprechau/zfs-replicate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909150252.x8F2qMv1018517>