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 Jim Klimov
14 # Copyright 2023 Klaus Ziegler
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= powerman
20 COMPONENT_VERSION
= 2.3.25
21 COMPONENT_SUMMARY
= Powerman
- power management software
($(COMPONENT_VERSION
))
22 COMPONENT_DESCRIPTION
= LLNL CHAOS powerman is free UNIX
/Linux software that controls
(remotely and in parallel
) switched power distribution units
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:36e98a5a6b1395d8243b5bcaa8a6af42b4ab9411a63d7aa0768b4014ee0f207d
27 COMPONENT_ARCHIVE_URL
= \
28 https
://github.com
/chaos
/$(COMPONENT_NAME
)/releases
/download
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
29 COMPONENT_PROJECT_URL
= https
://github.com
/chaos
/powerman
30 COMPONENT_FMRI
= system
/management
/$(COMPONENT_NAME
)
31 COMPONENT_CLASSIFICATION
= System
/Administration and Configuration
32 COMPONENT_LICENSE
= GPLv2
+
33 COMPONENT_LICENSE_FILE
= COPYING
35 include $(WS_MAKE_RULES
)/common.mk
37 CONFIGURE_ENV
+= CPPFLAGS
="-DNETSNMP_DISABLE_MD5"
39 CONFIGURE_OPTIONS
+= --disable-static
40 CONFIGURE_OPTIONS
+= --enable-shared
42 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
43 CONFIGURE_OPTIONS
+= --with-httppower
44 CONFIGURE_OPTIONS
+= --with-snmppower
45 CONFIGURE_OPTIONS
+= --with-systemdsystemunitdir
=no
47 COMPONENT_TEST_TRANSFORMS
+= \
49 '-e "/^\# TOTAL/p" ' \
52 '-e "/^\# XFAIL/p" ' \
54 '-e "/^\# XPASS/p" ' \
57 # libgenders is another CHAOS project that we don't bother to package for now.
58 # It is a static cluster configuration database used for cluster configuration
59 # management. It is used by a variety of tools and scripts for management of
61 CONFIGURE_OPTIONS
+= --without-genders
63 REQUIRED_PACKAGES
+= system
/library
64 REQUIRED_PACKAGES
+= system
/management
/snmp
/net-snmp
65 REQUIRED_PACKAGES
+= web
/curl