summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2014-08-30 11:03:11 +0000
committerwiedi <wiedi@pkgsrc.org>2014-08-30 11:03:11 +0000
commit9da3c9847136c98b535b7189281552d1955b3228 (patch)
tree1ea29fd98bcafb3ccef5ef89e5fb2a0a0c2eeaeb /sysutils
parenta35c999a0f4eb2ad4043c40d16be81360f1ea02f (diff)
downloadpkgsrc-9da3c9847136c98b535b7189281552d1955b3228.tar.gz
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.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/znapzend/DESCR7
-rw-r--r--sysutils/znapzend/Makefile22
-rw-r--r--sysutils/znapzend/PLIST11
-rw-r--r--sysutils/znapzend/distinfo5
-rw-r--r--sysutils/znapzend/files/smf/manifest.xml29
5 files changed, 74 insertions, 0 deletions
diff --git a/sysutils/znapzend/DESCR b/sysutils/znapzend/DESCR
new file mode 100644
index 00000000000..97dffcf6339
--- /dev/null
+++ b/sysutils/znapzend/DESCR
@@ -0,0 +1,7 @@
+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.
diff --git a/sysutils/znapzend/Makefile b/sysutils/znapzend/Makefile
new file mode 100644
index 00000000000..649f22be97c
--- /dev/null
+++ b/sysutils/znapzend/Makefile
@@ -0,0 +1,22 @@
+# $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"
diff --git a/sysutils/znapzend/PLIST b/sysutils/znapzend/PLIST
new file mode 100644
index 00000000000..2a154e8034d
--- /dev/null
+++ b/sysutils/znapzend/PLIST
@@ -0,0 +1,11 @@
+@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
diff --git a/sysutils/znapzend/distinfo b/sysutils/znapzend/distinfo
new file mode 100644
index 00000000000..18ff37317f5
--- /dev/null
+++ b/sysutils/znapzend/distinfo
@@ -0,0 +1,5 @@
+$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
diff --git a/sysutils/znapzend/files/smf/manifest.xml b/sysutils/znapzend/files/smf/manifest.xml
new file mode 100644
index 00000000000..7bed8fd84f0
--- /dev/null
+++ b/sysutils/znapzend/files/smf/manifest.xml
@@ -0,0 +1,29 @@
+<?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>
+