2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016-2018 Jim Klimov
14 # Copyright 2021 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= znapzend
22 COMPONENT_VERSION
= 0.23.2
23 COMPONENT_SUMMARY
= zfs backup with remote capabilities and mbuffer integration
24 COMPONENT_DESCRIPTION
= ZnapZend is a ZFS centric backup tool. It relies on snapshot
,\
25 send and receive to do its work. It has the built-in ability to manage both local\
26 snapshots
as well
as remote copies by thining them out
as time progresses.\
27 The ZnapZend configuration is stored
as properties in the ZFS filesystem itself
,\
28 see znapzendzetup to
get started.
29 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
30 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
31 COMPONENT_ARCHIVE_HASH
= \
32 sha256
:69928caacde7468e5154d81197e257cd0c85ee3eedb3192be67fdfe486defefe
33 COMPONENT_ARCHIVE_URL
= \
34 https
://github.com
/oetiker
/$(COMPONENT_NAME
)/releases
/download
/v
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
35 COMPONENT_PROJECT_URL
= https
://github.com
/oetiker
/$(COMPONENT_NAME
)
36 COMPONENT_FMRI
= backup
/$(COMPONENT_NAME
)
37 COMPONENT_CLASSIFICATION
= Applications
/System Utilities
38 COMPONENT_LICENSE
= GPL-3.0
-or-later
39 COMPONENT_LICENSE_FILE
= LICENSE
41 include $(WS_MAKE_RULES
)/common.mk
43 CONFIGURE_LIBDIR
.32 = $(CONFIGURE_PREFIX
)/lib
/znapzend
44 CONFIGURE_OPTIONS
+= --enable-svcinstall
=/lib
/svc
/manifest
/system
45 CONFIGURE_OPTIONS
+= --with-svcname-smf
=system
/filesystem
/zfs
/znapzend
47 # Force SUBDIRS=lib to skip thirdparty subdir. We do not need thirdparty perl
48 # modules because we use system provided library/perl-5/* packages to satisfy
50 COMPONENT_BUILD_ARGS
+= SUBDIRS
=lib
51 COMPONENT_INSTALL_ARGS
+= SUBDIRS
=lib
52 COMPONENT_TEST_ARGS
+= SUBDIRS
=lib
54 COMPONENT_TEST_TRANSFORMS
+= -n
55 COMPONENT_TEST_TRANSFORMS
+= "-e '/\<ok\>/p'"
57 # We are not able to detect these test dependencies automatically.
58 # The list is based on cpanfile.common and cpanfile.test.
59 # Please note that Devel::Cover and Devel::Cover::Report::Coveralls listed in
60 # cpanfile.test are not needed to run tests.
61 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/mojolicious
62 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/mojo-log-clearable
63 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/pod-coverage
64 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/test-exception
65 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/test-sharedfork
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES
+= SUNWcs
69 REQUIRED_PACKAGES
+= runtime
/perl