aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/zfs-replicate/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/zfs-replicate/Makefile')
-rw-r--r--sysutils/zfs-replicate/Makefile42
1 files changed, 29 insertions, 13 deletions
diff --git a/sysutils/zfs-replicate/Makefile b/sysutils/zfs-replicate/Makefile
index f15d92bdfcff..5a35da39c1d3 100644
--- a/sysutils/zfs-replicate/Makefile
+++ b/sysutils/zfs-replicate/Makefile
@@ -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
-PLIST_FILES= sbin/zfs-replicate
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+SHEBANG_FILES= zfs-replicate.sh
+
+PORTDOCS= README.md
+PORTDATA= config.sample.sh
-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}
+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>