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 2023 Marcel Telka
18 %patch% 01-optional-deps.patch
19 %patch% 02-test-docker.patch
22 COMPONENT_FMRI = system/management/salt
23 COMPONENT_CLASSIFICATION = System/Administration and Configuration
25 # This is a standalone application. Since no other Python project depends on
26 # it we just provide single unversioned package.
27 SINGLE_PYTHON_VERSION = yes
29 # The installer is unable to install salt wheel due to some bug (see
30 # https://github.com/saltstack/salt/issues/65083) so we need to switch to
31 # pyproject_installer. The pyproject_installer is used during bootstrap so we
32 # just pretend we are bootstapping and we will get the pyproject_installer
33 # based build and install.
34 PYTHON_BOOTSTRAP = yes
37 COMPONENT_POST_INSTALL_ACTION += \
38 $(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application ; \
39 $(CP) $(COMPONENT_DIR)/files/salt.xml $(PROTO_DIR)/lib/svc/manifest/application ; \
41 # This project does not support tox so we need to provide test requirements
43 TEST_REQUIREMENTS += requirements/pytest.txt
45 # All licenses apply (see the LICENSE file), but license-detector is unable to
47 sed -i -e '/^COMPONENT_LICENSE/s/ OR / AND /g' Makefile