Sat Aug 30 11:03:11 2014 UTC ()
Import znapzend-0.12.3 as sysutils/znapzend

ZnapZend is a ZFS centric backup tool. It relies on snapshot, send
and receive todo its work. It has the built-in ability to to manage
both local snapshots as well as remote copies by thining them out
as time progresses.

The ZnapZend configuration is stored as properties in the
ZFS filesystem itself.


(wiedi)
diff -r0 -r1.1 pkgsrc/sysutils/znapzend/DESCR
diff -r0 -r1.1 pkgsrc/sysutils/znapzend/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/znapzend/PLIST
diff -r0 -r1.1 pkgsrc/sysutils/znapzend/distinfo
diff -r0 -r1.1 pkgsrc/sysutils/znapzend/files/smf/manifest.xml

File Added: pkgsrc/sysutils/znapzend/DESCR
ZnapZend is a ZFS centric backup tool. It relies on snapshot, send
and receive todo its work. It has the built-in ability to to manage
both local snapshots as well as remote copies by thining them out
as time progresses.

The ZnapZend configuration is stored as properties in the
ZFS filesystem itself.

File Added: pkgsrc/sysutils/znapzend/Makefile
# $NetBSD: Makefile,v 1.1 2014/08/30 11:03:11 wiedi Exp $

VERSION=	0.12.3
DISTNAME=	v${VERSION}
PKGNAME=	znapzend-${VERSION}
CATEGORIES=	sysutils
MASTER_SITES=	https://github.com/oetiker/znapzend/archive/

MAINTAINER=	wiedi@frubar.net
HOMEPAGE=	https://github.com/oetiker/znapzend/
COMMENT=	ZFS send/receive backup system
LICENSE=	gnu-gpl-v3

WRKSRC=		${WRKDIR}/znapzend-${VERSION}
GNU_CONFIGURE=	yes
USE_LANGUAGES=	# none
USE_TOOLS+=	perl gmake

DEPENDS+=	p5-Mojolicious>=5.08:../../www/p5-Mojolicious
DEPENDS+=	p5-Mojo-IOLoop-ForkCall>=0.12:../../devel/p5-Mojo-IOLoop-ForkCall

.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/sysutils/znapzend/PLIST
@comment $NetBSD: PLIST,v 1.1 2014/08/30 11:03:11 wiedi Exp $
bin/znapzend
bin/znapzendzetup
bin/znapzendztatz
lib/ZnapZend.pm
lib/ZnapZend/Config.pm
lib/ZnapZend/Time.pm
lib/ZnapZend/ZFS.pm
man/man1/znapzend.1
man/man1/znapzendzetup.1
man/man1/znapzendztatz.1

File Added: pkgsrc/sysutils/znapzend/distinfo
$NetBSD: distinfo,v 1.1 2014/08/30 11:03:11 wiedi Exp $

SHA1 (v0.12.3.tar.gz) = a35b5536b854cce5a307b98a908e29c92a3451ee
RMD160 (v0.12.3.tar.gz) = 41ce34fd23f7348dcf036f9b3b248d833651cf9e
Size (v0.12.3.tar.gz) = 117379 bytes

File Added: pkgsrc/sysutils/znapzend/files/smf/manifest.xml
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="export">
	<service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="3">
		<create_default_instance enabled="false" />
		<single_instance/>

		<dependency name='milestone' grouping='require_all' restart_on='none' type='service'>
			<service_fmri value='svc:/milestone/sysconfig' />
		</dependency>

		<method_context><method_credential user='root'/></method_context>

		<exec_method type="method" name="start" exec="@PREFIX@/bin/znapzend --daemonize --pidfile=@VARBASE@/run/znapzend.pid" timeout_seconds="170" />
		<exec_method type="method" name="stop" exec="/usr/bin/kill `cat @VARBASE@/run/znapzend.pid`" timeout_seconds="60" />

		<stability value="Unstable" />

		<template>
			<common_name><loctext xml:lang="C">ZnapZend - ZFS Backup System</loctext></common_name>
			<documentation>
				<manpage title="znapzend" section="1" manpath="@PREFIX@/share/man" />
				<manpage title="znapzendzetup" section="1" manpath="@PREFIX@/share/man" />
				<manpage title="znapzendztatz" section="1" manpath="@PREFIX@/share/man" />
			</documentation>
		</template>
	</service>
</service_bundle>