Marcel Telka
2024-04-02 327b05574f0dc1b1046c72401256ce5afd3e3247
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# This file was automatically generated using the following command:
#   $WS_TOOLS/python-integrate-project PyNUTClient
#
 
BUILD_STYLE = setup.py
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME =        PyNUTClient
HUMAN_VERSION =            2.8.2
COMPONENT_SUMMARY =        PyNUTClient - Python client bindings for NUT
COMPONENT_PROJECT_URL =        https://github.com/networkupstools/nut/tree/master/scripts/python/module
COMPONENT_ARCHIVE_HASH =    \
    sha256:b32af28ac141bb1d05a97814ab22b1dc90f2e55a73657f99c5126384ca2df85a
COMPONENT_LICENSE =        GPL-3.0-only
COMPONENT_LICENSE_FILE =    LICENSE-GPL3
 
include $(WS_MAKE_RULES)/common.mk
 
#
# To run tests you need:
#
# 1) to have this in /etc/nut/ups.conf (see PyNUTClient/test_nutclient.py):
#
#    [dummy]
#        driver = dummy-ups
#        desc = "Test device"
#        port = /usr/share/nut/etc-samples/evolution500.seq.dummy-ups.sample
#
# 2) the svc:/system/power/nut-server:default service running:
#
#     svcadm enable svc:/system/power/nut-server:default
#
# 3) start dummy-ups:
#
#     /usr/lib/nut/bin/dummy-ups -a dummy
 
# Remove colors from test output
COMPONENT_TEST_TRANSFORMS += "-e 's/\x1b\[[0-9;]*m//g'"
 
# Needed for:
#     /etc/nut/ups.conf
#     svc:/system/power/nut-server:default
TEST_REQUIRED_PACKAGES += system/management/nut/server
 
# Needed for:
#     /usr/lib/nut/bin/dummy-ups
#     /usr/share/nut/etc-samples/evolution500.seq.dummy-ups.sample
TEST_REQUIRED_PACKAGES += system/management/nut/drivers/software
 
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += runtime/python