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 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project barman
17 BUILD_STYLE
= setup.py
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= barman
22 HUMAN_VERSION
= 3.12.1
23 COMPONENT_SUMMARY
= Backup and Recovery Manager for PostgreSQL
24 COMPONENT_PROJECT_URL
= https
://www.pgbarman.org
/
25 COMPONENT_ARCHIVE_URL
= \
26 https
://github.com
/EnterpriseDB
/barman
/archive
/refs
/tags/release
/$(HUMAN_VERSION
).
tar.gz
27 COMPONENT_ARCHIVE_HASH
= \
28 sha256
:aae83ea3ff91ac97b7255754b54ec73fa9b8c6aff666006dc4177d65db16ed06
29 COMPONENT_LICENSE
= GPL-3.0
-only
30 COMPONENT_LICENSE_FILE
= LICENSE
32 COMPONENT_FMRI
= database
/postgres
/barman
33 COMPONENT_CLASSIFICATION
= System
/Databases
35 # Github tarball use different source directory than sdist
36 COMPONENT_SRC
= barman-release-
$(HUMAN_VERSION
)
38 # This is a standalone application. Since no other Python project depends on
39 # it we just provide single unversioned package.
40 SINGLE_PYTHON_VERSION
= yes
42 include $(WS_MAKE_RULES
)/common.mk
44 # Make sure man pages are installed at proper location
47 # Install example configuration files
48 COMPONENT_POST_INSTALL_ACTION
+= \
49 DOC_DIR
=$(PROTO_DIR
)/usr
/share
/barman
; \
50 $(MKDIR
) $$DOC_DIR ; \
51 $(CP
) $(SOURCE_DIR
)/doc
/barman.conf
$$DOC_DIR/barman.conf-example
; \
52 for file in
$(SOURCE_DIR
)/doc
/barman.d
/*.conf-template
; do \
53 $(CP
) $$file $$DOC_DIR/$$(basename $$file |
$(GSED
) -e
's:template:example:g') ; \
56 # Install additional /etc files
57 COMPONENT_POST_INSTALL_ACTION
+= \
58 $(INSTALL
) -d
$(PROTOETCSECDIR
)/exec_attr.d
; \
59 $(INSTALL
) $(COMPONENT_DIR
)/files
/exec_attr
$(PROTOETCSECDIR
)/exec_attr.d
/barman
; \
60 $(INSTALL
) -d
$(PROTOETCSECDIR
)/prof_attr.d
; \
61 $(INSTALL
) $(COMPONENT_DIR
)/files
/prof_attr
$(PROTOETCSECDIR
)/prof_attr.d
/barman
; \
62 $(INSTALL
) -d
$(PROTOETCDIR
)/user_attr.d
/prof_attr.d
; \
63 $(INSTALL
) $(COMPONENT_DIR
)/files
/user_attr
$(PROTOETCDIR
)/user_attr.d
/barman
; \
64 $(INSTALL
) $(COMPONENT_DIR
)/files
/barman.conf
$(PROTOETCDIR
)/barman.conf
;
66 # Install additional man page
67 COMPONENT_POST_INSTALL_ACTION
+= \
68 $(INSTALL
) -d
$(PROTOUSRSHAREMAN4DIR
) ; \
69 $(INSTALL
) $(COMPONENT_DIR
)/files
/barman.conf
.4 $(PROTOUSRSHAREMAN4DIR
) ;
71 # We have no packages needed for cloud testing so we need to skip following tests
72 PYTEST_ADDOPTS
+= --ignore tests
/test_barman_cloud_backup_show.py
73 PYTEST_ADDOPTS
+= --ignore tests
/test_barman_cloud_wal_archive.py
74 PYTEST_ADDOPTS
+= --ignore tests
/test_cloud.py
75 PYTEST_ADDOPTS
+= --ignore tests
/test_cloud_snapshot_interface.py
76 PYTEST_ADDOPTS
+= --ignore tests
/test_infofile.py
77 PYTEST_ADDOPTS
+= --ignore tests
/test_output.py
79 # Random directory name
80 COMPONENT_TEST_TRANSFORMS
+= "-e 's|/tmp/.*/garbage[^/]*|\$$(TMPDIR)|'"
82 # Auto-generated dependencies
83 PYTHON_REQUIRED_PACKAGES
+= library
/python
/importlib-metadata
84 PYTHON_REQUIRED_PACKAGES
+= library
/python
/psycopg2
85 PYTHON_REQUIRED_PACKAGES
+= library
/python
/python-dateutil
86 PYTHON_REQUIRED_PACKAGES
+= library
/python
/setuptools
87 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
88 TEST_REQUIRED_PACKAGES.python
+= library
/python
/lz4
89 TEST_REQUIRED_PACKAGES.python
+= library
/python
/mock
90 TEST_REQUIRED_PACKAGES.python
+= library
/python
/py
91 TEST_REQUIRED_PACKAGES.python
+= library
/python
/pytest
92 TEST_REQUIRED_PACKAGES.python
+= library
/python
/zstandard