1B/
2# PSF file for Network UPS Tools 				  11/2/2011
3#
4# Useful commands:
5#
6# swpackage -p -vv -s /depot/psf_files/xxx.psf -d /depot/s700_opt
7# swmodify -p -d -vv -s /depot/psf_files/xxx.psf xxx @ /depot/s700_opt
8# swremove -p -v -d xxx,r=yyy @ /depot/s700_opt
9# swinstall -p -v -s /depot/s700_opt xxx
10#
11# References:
12# - Creating a Product Specification File (PSF)
13# http://docs.hp.com/en/B2355-90127/ch09s05.html
14# - swpackage(8) manual page
15# http://nixdoc.net/man-pages/hp-ux/man4/swpackage.4.html
16#
17# http://www.massconfusion.com/tim/notes/hpux_depot_create_howto.txt
18# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
19#
20# This section is optional
21
22# This section is optional -- delete it if you don't want it.
23# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
24vendor
25	tag 			NUT-Team
26	title 			"NUT - Network UPS Tools - Team"
27	description    	"UPS monitoring tool"
28end
29# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
30product
31# ----------------------------------------
32	tag 			NUT
33    title 			"Network UPS Tools"
34
35	description 	"Network UPS Tools (NUT) is a client/server monitoring system that allows computers
36	to share uninterruptible power supply (UPS) and power distribution unit (PDU) hardware.
37	Clients access the hardware through the server, and are notified whenever the power status changes."
38
39    revision       @PACKAGE_VERSION@
40
41# ----------------------------------------
42	architecture   S700/S800_HPUX_10/HP-UX_B.11.23_IA/PA
43    machine_type   *
44    os_name        HP-UX
45    #os_release     ?.11.2*
46	os_release 		?.10.*|?.11.*
47    os_version     *
48# ----------------------------------------
49#Including "NUT - Server" files.
50	fileset
51		tag 		Server
52		title 		"nut-server"
53		revision	@PACKAGE_VERSION@
54		postinstall     ./postinstall
55
56#Including "conf" files under "/usr/local/ups/etc/".
57		file -u 644 -g bin -o bin ./nut_install@prefix@/etc/ups.conf.sample	@prefix@/etc/ups.conf.sample
58		file -u 644 -g bin -o bin ./nut_install@prefix@/etc/upsd.conf.sample  	@prefix@/etc/upsd.conf.sample
59		file -u 644 -g bin -o bin ./nut_install@prefix@/etc/upsd.users.sample	@prefix@/etc/upsd.users.sample
60
61#Including "server" files under "/usr/local/ups/sbin".
62		file -u 755 -g bin -o bin ./nut_install@prefix@/sbin/upsd	 	@prefix@/sbin/upsd
63
64#Including "share" files under "/usr/local/ups/share".
65		file -u 644 -g bin -o bin ./nut_install@prefix@/share/cmdvartab	@prefix@/share/cmdvartab
66		file -u 644 -g bin -o bin ./nut_install@prefix@/share/driver.list	@prefix@/share/driver.list
67
68#Including required "libupsclient1" under "/usr/local/ups/lib"
69		file -u 755 -g bin -o bin ./nut_install@prefix@/lib/libupsclient.sl.3		@prefix@/lib/libupsclient.sl.3
70		file -u 555 -g bin -o bin ./nut_install@prefix@/lib/libupsclient.sl.3.1	@prefix@/lib/libupsclient.sl.3.1
71
72#Including nut service script to "usr/local/ups/script"
73		file -u 744 -g bin -o bin @top_srcdir@/scripts/HP-UX/nut-upsd.sh		@prefix@/script/nut-upsd.sh
74		file -u 744 -g bin -o bin @top_srcdir@/scripts/HP-UX/nut-drvctl.sh		@prefix@/script/nut-drvctl.sh
75		file -u 744 -g bin -o bin @top_srcdir@/scripts/HP-UX/nut-upsmon.sh		@prefix@/script/nut-upsmon.sh
76		file -u 444 -g bin -o bin @top_srcdir@/scripts/HP-UX/nut-upsd			@prefix@/script/nut-upsd
77		file -u 444 -g bin -o bin @top_srcdir@/scripts/HP-UX/nut-drvctl			@prefix@/script/nut-drvctl
78		file -u 444 -g bin -o bin @top_srcdir@/scripts/HP-UX/nut-upsmon			@prefix@/script/nut-upsmon
79
80#Including required UPS drivers files under "/usr/local/ups/bin/".
81#such as "nut-snmp", "nut-xml or netxml-ups"
82		directory 	./nut_install@prefix@/bin=@prefix@/bin/
83		#file_permissions -u 755 -g bin -o bin
84		file *
85
86#TBD files to be added under "/usr/share/doc/nut-server/*.gz"
87#TBD files to be added under "/usr/share/man/man5/*.gz"
88#TBD files to be added under "/usr/share/man/man8/*.gz"
89
90	end
91# ----------------------------------------
92#Including "NUT - Client" files.
93	fileset
94		tag 		Client
95		title 		"nut-client"
96		revision	@PACKAGE_VERSION@
97
98		file -u 755 -g bin -o bin ./nut_install@prefix@/bin/upsc	@prefix@/bin/upsc
99		file -u 755 -g bin -o bin ./nut_install@prefix@/bin/upscmd	@prefix@/bin/upscmd
100		file -u 755 -g bin -o bin ./nut_install@prefix@/bin/upslog	@prefix@/bin/upslog
101		file -u 755 -g bin -o bin ./nut_install@prefix@/bin/upsrw	@prefix@/bin/upsrw
102		file -u 755 -g bin -o bin ./nut_install@prefix@/sbin/upsmon 	@prefix@/sbin/upsmon
103		file -u 755 -g bin -o bin ./nut_install@prefix@/sbin/upssched 	@prefix@/sbin/upssched
104
105#Including "conf" files under "/usr/local/ups/etc".
106		file -u 644 -g bin -o bin ./nut_install@prefix@/etc/nut.conf.sample	 	@prefix@/etc/nut.conf.sample
107		file -u 644 -g bin -o bin ./nut_install@prefix@/etc/upsmon.conf.sample   	@prefix@/etc/upsmon.conf.sample
108		file -u 644 -g bin -o bin ./nut_install@prefix@/etc/upssched.conf.sample	@prefix@/etc/upssched.conf.sample
109
110#Need to check if "libupsclient1" required for Client again.
111		#file -u 755 -g bin -o bin ./nut_install@prefix@/lib/libupsclient.sl.3		@prefix@/lib/libupsclient.sl.3
112		#file -u 555 -g bin -o bin ./nut_install@prefix@/lib/libupsclient.sl.3.1	@prefix@/lib/libupsclient.sl.3.1
113	end
114# ----------------------------------------
115#Including "libupsclient1-dev" files.
116	fileset
117		tag 		Development
118		title 		"libupsclient1-dev"
119		revision	@PACKAGE_VERSION@
120
121		file -u 755 -g bin -o bin ./nut_install@prefix@/lib/libupsclient.a	@prefix@/lib/libupsclient.a
122		file -u 755 -g bin -o bin ./nut_install@prefix@/lib/libupsclient.la	@prefix@/lib/libupsclient.la
123		file -u 755 -g bin -o bin ./nut_install@prefix@/lib/libupsclient.sl	@prefix@/lib/libupsclient.sl
124		file -u 644 -g bin -o bin @top_srcdir@/include/parseconf.h		@prefix@/include/parseconf.h
125		file -u 644 -g bin -o bin @top_srcdir@/clients/upsclient.h		@prefix@/include/upsclient.h
126		file -u 755 -g bin -o bin ./nut_install@prefix@/lib/pkgconfig/libupsclient.pc		@prefix@/lib/pkgconfig/libupsclient.pc
127	end
128# ----------------------------------------
129
130#Including "libups-nut-perl" files.
131	fileset
132		tag		libups-nut-perl
133		title		"libups-nut-perl"
134		revision	@PACKAGE_VERSION@
135
136		file -u 644 -g bin -o bin @top_srcdir@/scripts/perl/Nut.pm	@prefix@/share/perl5/UPS/Nut.pm
137	end
138# ----------------------------------------
139
140end	#End product
141
142