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-2023 Jim Klimov
16 set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)/clients@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
17 set name=pkg.human-version value=$(HUMAN_VERSION)
18 set name=pkg.summary value="$(COMPONENT_SUMMARY) - NUT command-line and daemon clients"
19 set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
20 set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
21 set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
22 set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
24 license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
26 <transform file path=usr/lib/nut/bin/(.+) -> default mode 0555>
27 <transform dir path=usr/lib/nut/bin -> set group bin>
28 <transform file path=usr/share/nut/solaris-smf/method/(.+) -> default mode 0555>
29 <transform dir path=usr/share/nut/solaris-smf/method -> set group bin>
30 <transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
31 <transform file path=usr/share/man/man1/(.+) -> set action.hash usr/share/man/man1/%<1> >
32 <transform file path=usr/share/man/man1m/(.+) -> set action.hash usr/share/man/man1m/%<1> >
34 dir path=usr/lib/nut/bin group=bin
36 depend fmri=$(COMPONENT_FMRI)/common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) type=require
37 depend fmri=library/security/openssl-31 type=require
39 ### NUT Command-line binaries and scripts (upsmon daemon, other clients)
40 file path=usr/bin/upsc
41 file path=usr/bin/upscmd
42 file path=usr/bin/upslog
43 file path=usr/bin/upsrw
45 file path=usr/sbin/upsmon
46 file path=usr/sbin/upssched
48 # Example notification script for UPSMON
49 file files/notifyme path=usr/lib/nut/bin/notifyme mode=0755 preserve=renamenew
51 # This is an example script for handling upssched
52 file path=usr/bin/upssched-cmd preserve=renamenew
54 # Services for monitoring client (generally does not have to be present
55 # and running on the same system as a data server and drivers).
56 file path=usr/share/nut/solaris-smf/method/svc-nut-monitor
57 file path=usr/share/nut/solaris-smf/manifest/nut-monitor.xml
58 link path=lib/svc/manifest/system/power/nut-monitor.xml \
59 target=../../../../../usr/share/nut/solaris-smf/manifest/nut-monitor.xml \
60 restart_fmri=svc:/system/manifest-import:default
62 file path=usr/share/man/man5/upsmon.conf.5
63 file path=usr/share/man/man5/upssched.conf.5
65 file path=usr/share/man/man1m/upsc.1m
66 file path=usr/share/man/man1m/upscmd.1m
67 file path=usr/share/man/man1m/upslog.1m
68 file path=usr/share/man/man1m/upsmon.1m
69 file path=usr/share/man/man1m/upsrw.1m
70 file path=usr/share/man/man1m/upssched.1m
72 # We deliver the sample configs as the ones to use,
73 # at worst they have no actual information inside and do nothing.
74 file etc/nut/upsmon.conf.sample path=etc/nut/upsmon.conf \
75 group=nut owner=root mode=0640 preserve=true
76 file etc/nut/upssched.conf.sample path=etc/nut/upssched.conf \
77 group=nut owner=root mode=0640 preserve=true