nut stable port information

Package: nut
Version: 2.6.2
Revision: 2

Depends: libupsclient1-shlibs
# TODO: figure out necessary BuildConflicts for Fink's net-snmp package
BuildDepends: asciidoc, pkgconfig, expat1, fontconfig2-dev, gd2, libusb, system-openssl-dev, libiconv-dev, libjpeg8, libpng14, freetype219, neon27, libgettext8-dev, libxml2
Recommends: nut-cgi, nut-usb
Suggests: nut-snmp, nut-xml

Source: http://www.networkupstools.org/source/2.6/%n-%v.tar.gz
Source-MD5: f6d0683e51e0fcab06e6a79724685d26

DocFiles: AUTHORS ChangeLog COPYING INSTALL MAINTAINERS NEWS README UPGRADING

# From http://wiki.finkproject.org/index.php/Fink:Policy:system-openssl
SetCPPFLAGS: -I%p/lib/system-openssl/include
SetCFLAGS: -I%p/lib/system-openssl/include
SetCXXFLAGS: -I%p/lib/system-openssl/include

SetLDFLAGS: -L%p/lib/system-openssl/lib

ConfigureParams: <<
--disable-dependency-tracking \
--with-ssl \
--with-cgi \
--with-dev \
--enable-static \
--with-cgipath=%p/lib/nut-cgi-bin \
--with-gd-includes=-I%p/include \
--with-gd-libs='-L%p/lib -lgd'\
--mandir=%p/share/man \
--infodir=%p/share/info \
--datadir=%p/share/nut \
--with-htmlpath=%p/share/nut/html \
--with-drvpath=%p/lib/nut \
--with-pkgconfig-dir=%p/lib/pkgconfig \
--with-statepath=%p/var/run/ups \
--with-pidpath=%p/var/run \
--sysconfdir=%p/etc/nut
<<

InstallScript: <<
#!/bin/sh -ex
make -j1 DESTDIR=%d install
install -d -m 755 %i/share/doc/%n
cp -pr docs %i/share/doc/%n
install -d -m 775 %i/var/run/ups
mkdir -p %i/etc/bash_completion.d
install scripts/misc/nut.bash_completion %i/etc/bash_completion.d/nut

mv %i/lib/nut/upsdrvctl %i/sbin/
ln -s blazer.8 %i/share/man/man8/blazer_usb.8
ln -s blazer.8 %i/share/man/man8/blazer_ser.8

# Duplicate copy:
rm -rf %i/share/doc/nut/docs/man

rm -f %i/lib/libnutscan* %i/bin/nut-scanner %i/share/man/man8/nut-scanner.8

<<

PostInstScript: <<
chmod 775 %p/var/run/ups
chgrp nobody %p/var/run/ups
<<

SplitOff: <<
Package: libupsclient1-shlibs
DocFiles: COPYING README
Files: <<
lib/libupsclient.1.dylib
<<
Shlibs: <<
%p/lib/libupsclient.1.dylib 2.0.0 libupsclient1-shlibs (>= 2.2.2-2)
<<
Description: Network UPS Tools - network client library
<<

SplitOff2: <<
Package: libupsclient-dev
BuildDependsOnly: true
Files: <<
lib/libupsclient.dylib
lib/libupsclient.a
lib/libupsclient.la
lib/pkgconfig/libupsclient.pc
share/man/man3
include/parseconf.h
include/upsclient.h
<<
Description: Network UPS Tools - client dev headers
<<

SplitOff3: <<
Package: %N-cgi
Depends: libupsclient1-shlibs, fontconfig2-shlibs, gd2-shlibs, libiconv, libjpeg8-shlibs, libpng14-shlibs
Files: <<
lib/nut-cgi-bin
share/nut/html/*
share/man/man5/upsstats.html.5
share/man/man5/hosts.conf.5
share/man/man5/upsset.conf.5
share/man/man8/upsimage.cgi.8
share/man/man8/upsset.cgi.8
share/man/man8/upsstats.cgi.8
<<
Description: Network UPS Tools - CGI graphing tools
<<

SplitOff4: <<
Package: %N-usb
Depends: libusb-shlibs, %N
Files: <<
lib/nut/bcmxcp_usb
lib/nut/blazer_usb
lib/nut/richcomm_usb
lib/nut/tripplite_usb
lib/nut/usbhid-ups
share/man/man8/bcmxcp_usb.8
share/man/man8/blazer_usb.8
share/man/man8/richcomm_usb.8
share/man/man8/tripplite_usb.8
share/man/man8/usbhid-ups.8
<<
Description: Network UPS Tools - USB drivers
<<

SplitOff5: <<
Package: %N-snmp
Depends: %N
Files: <<
lib/nut/snmp-ups
share/man/man8/snmp-ups.8
<<
Description: Network UPS Tools - SNMP driver
<<

SplitOff6: <<
Package: %N-xml
Depends: %N, neon27-shlibs, libgettext8-shlibs, libiconv, libxml2-shlibs
Files: <<
lib/nut/netxml-ups
share/man/man8/netxml-ups.8
<<
Description: Network UPS Tools - XML driver
<<

Description: Network UPS Tools - core
DescDetail: <<
NUT is a client/server uninterruptible power supply (UPS) monitoring system
that permits the sharing of one (or more) UPS between several machines. The
'server' monitors the UPS and notifies the 'clients' when the UPS is on
battery or has a low battery.

If you have a serial UPS, you will need a USB-to-serial converter and OS X
drivers for the converter. In this case, install the base "nut" package.

If your UPS connects via a USB cable, install the "nut-usb" package. This
covers most APC Back-UPS models, as well as MGE Ellipse, Comet, Nova,
Evolution, and Protection Center units. Some Belkin models may be supported.
Tripp Lite USB models that use usbhid-ups (especially ones with LCD in their
name) should work, but the tripplite_usb driver currently cannot open
entry-level Tripp Lite USB devices on Mac OS X.

If you have a MGE UPS with a Network Management Card that supports the XML/HTTP
protocol, then you will want the "nut-xml" package.

The "newhidups" driver was renamed "usbhid-ups" after the 2.0.5 release.

To graphically view the status of your UPSes, install the "nut-cgi" package.
<<

DescUsage:<<
You will need to read the documentation in %p/share/doc/%n/docs to learn how to
set up NUT to monitor your UPS and shut down your machine when the UPS battery
is low.

Note that some USB UPSes may already be supported by OS X, and the NUT drivers
may have trouble interoperating.

If you have any questions, please consult the nut-users list:
http://www.networkupstools.org/support.html#_request_help
<<

DescPackaging:<<
The nut-scanner binary (and its horde of dependencies) has not been packaged yet.
<<

License: GPL
Homepage: http://www.networkupstools.org/
Maintainer: Charles Lepple