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)
This commit is contained in:
Jason Helfman 2019-09-15 02:52:21 +00:00
parent 081feb776e
commit 026c043aca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q3/; revision=512087
3 changed files with 35 additions and 18 deletions

View File

@ -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
USES= shebangfix
NO_WRKSUBDIR= yes
NO_BUILD= yes
USES= tar:bzip2
NO_ARCH= yes
OPTIONS_DEFINE= DOCS EXAMPLES
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-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}
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>

View File

@ -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

View File

@ -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