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)/cgi@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
17 set name=pkg.human-version value=$(HUMAN_VERSION)
18 set name=pkg.summary value="$(COMPONENT_SUMMARY) - NUT CGI 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/cgi-bin/.+ -> default mode 0555>
27 <transform dir path=usr/lib/nut/cgi-bin -> set group bin>
28 <transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
29 <transform file path=usr/share/man/man1/(.+) -> set action.hash usr/share/man/man1/%<1> >
30 <transform file path=usr/share/man/man1m/(.+) -> set action.hash usr/share/man/man1m/%<1> >
32 depend fmri=$(COMPONENT_FMRI)/common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) type=require
33 depend fmri=library/security/openssl-31 type=require
35 ### NUT CGI clients, require libgd
36 file path=usr/lib/nut/cgi-bin/upsimage.cgi
37 file path=usr/lib/nut/cgi-bin/upsset.cgi
38 file path=usr/lib/nut/cgi-bin/upsstats.cgi
40 file path=usr/share/man/man5/hosts.conf.5
41 file path=usr/share/man/man5/upsset.conf.5
42 file path=usr/share/man/man5/upsstats.html.5
44 file path=usr/share/man/man1m/upsimage.cgi.1m
45 file path=usr/share/man/man1m/upsset.cgi.1m
46 file path=usr/share/man/man1m/upsstats.cgi.1m
48 # We deliver the sample configs as the ones to use,
49 # at worst they have no actual information inside and do nothing.
50 # Also, the CGIs are disabled by default `upsset.conf` contents
51 file etc/nut/hosts.conf.sample \
52 path=etc/nut/hosts.conf \
53 group=nut owner=root mode=0640 preserve=true
54 file etc/nut/upsset.conf.sample \
55 path=etc/nut/upsset.conf \
56 group=nut owner=root mode=0640 preserve=true
57 file etc/nut/upsstats-single.html.sample \
58 path=etc/nut/upsstats-single.html \
59 group=nut owner=root mode=0640 preserve=true
60 file etc/nut/upsstats.html.sample \
61 path=etc/nut/upsstats.html \
62 group=nut owner=root mode=0640 preserve=true