aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/zfs-replicate/Makefile
blob: 12ac2e1f37046b5dd26e2fbb66778df0ad608f33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
# $FreeBSD$

PORTNAME=   zfs-replicate
PORTVERSION=    0.7
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://blogs.sun.com/constantin/resource/
DISTNAME=   ${PORTNAME}_v${PORTVERSION}

MAINTAINER= jnlin@csie.nctu.edu.tw
COMMENT=    ZFS Snapshot Replication Script

RUN_DEPENDS=    ksh:${PORTSDIR}/shells/pdksh

NO_WRKSUBDIR=   yes
NO_BUILD=   yes
USES=   tar:bzip2

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} \
        ${STAGEDIR}${PREFIX}/sbin/zfs-replicate

.include <bsd.port.mk>