~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to drivers/Makefile.am

  • Committer: Chuck Short
  • Date: 2013-05-13 12:57:25 UTC
  • Revision ID: zulcss@ubuntu.com-20130513125725-llq8wsohyhq9idsy
* Merge from Debian.  Remaining changes:
  - debian/control:
    + remove Build-Depends on libpowerman0-dev
    + remove nut-powerman-pdu
  - debian/nut-powerman-pdu.{install,manpages}: dropped for now
  - debian/{nut-cgi,nut-server}.postinst: add nut to the dialout and nut
    groups unconditonally to handle the upgrade from hardy release.
  - debian/source_nut.py, debian/{nut,nut-server,nut-client}.install,
    debian/rules: Install apport hooks for all top-level nut packages.
  - debian/rules: Use udev version for Ubuntu
  - debian/series, debian/patches/backport-fix-lp753661.patch: re-enabled
* Non-maintainer upload with fixes for wheezy.
* debian/nut-client.preinst: also revert /etc/nut/nut.conf mangling done
  by postinst during upgrade from lenny to squeeze (Really closes: #677054)
  Thanks to Andreas Beckmann for the review.
* Merge from Debian.  Remaining changes:
  - debian/control:
    + remove Build-Depends on libpowerman0-dev
    + remove nut-powerman-pdu
  - debian/nut-powerman-pdu.{install,manpages}: dropped for now
  - debian/{nut-cgi,nut-server}.postinst: add nut to the dialout and nut
    groups unconditonally to handle the upgrade from hardy release.
  - debian/source_nut.py, debian/{nut,nut-server,nut-client}.install,
    debian/rules: Install apport hooks for all top-level nut packages.
  - debian/rules: Use udev version for Ubuntu
  - debian/series, debian/patches/backport-fix-lp753661.patch: re-enabled
* Dropped the following patches, no longer required:
  - debian/patches/CVE-2012-2944.patch (included upstream)
* Non-maintainer upload with fixes for wheezy.
* Only remove /etc/init.d/nut from previous versions of nut in nut-server
  postinst if there are no local changes.
* Also remove /etc/init.d/nut in nut-client postinst. Thanks to 
  Laurent Bigonville for the hint.
* Only fix permissions of configfiles on first install.
* debian/control: Fix typo in package description. Thanks to Julien Cristau
  for spotting this.
* Non-maintainer upload.
* debian/nut-client.preinst: revert /etc/nut/nut.conf mangling done by older
  versions of the postinst (Closes: #677054)
* debian/rules: Stop the nut-client before nut-server on systems using
  static
  boot ordering (Closes: #679451)
* debian/nut-server.postinst: Remove /etc/init.d/nut on upgrade
  (Closes: #677822)
* Rename nut-server.lintian-overrides to nut-client.lintian-overrides and
  adjust overrides now that ups-monitor is shipped in nut-client package
  (Closes: #677947)
* Add debian/patches/0001-fix-upsmon-regression.patch: Fix upsmon/upssched
  regression (Taken from upstream) (Closes: #679513)
* Move nut metapackage to Section: metapackages
* Also create nut user when installing nut-client package and do not delete
  it on purge anymore (Closes: #682000)
* Drop /etc/default/nut → /etc/nut/nut.conf migration code, migration
  happends before squeeze release and this was against policy to have a
  maintainer script modifying a conffile in the first place (Closes: #684392)
* Add dependency against adduser and lsb-base on nut-client package
* Be sure that client is stopped before the server also when using
  dependencies based boot
* Fix package descriptions (Closes: #678068)
* Also install /bin/upssched-cmd in nut-client package as this script is
  referenced in default upssched.conf config file
* debian/watch: Update watch file
* Be sure that all maintainer scripts are returning 0 at their end
* New upstream release (Closes: #671444)
* acknowledges NMU (Closes: #613643)
* debian/nut-client.init: fix action "start" and use of log_*_*msg
  LSB log functions (Closes: #675619)
* debian/nut-server.preinst: remove obsolete file(s) left in
  /etc/udev/rules.d and related processing: udev files are now located
  in /lib/udev/rules, and there is no reason to modify the dedicated
  USB UPS rules (52-nut-usbups.rules) (Closes: #660072)
* debian/nut-server.init: rewrite to match upsd / drivers startup scope
* debian/nut-client.init: created to match upsmon startup scope
  (Closes: #634858)
* debian/nut.TODO.Debian, debian/Makefile.am: updated to reflect the above
* debian/rules: install nut-client.init, and update to reflect the above
* debian/control, debian/Makefile.am: updated to reflect the above
* debian/control:
  - add Breaks on nut-server (<< 2.6.3-1~)
  - bump Standards-Version to 3.9.3
* debian/nut-client.links: renamed from debian/nut-server.links, since
  ups-monitor is now provided by nut-client initscript
* debian/nut.README.Debian: renamed from nut-server.README.Debian,
  to provide it with both client and server packages
* debian/nut-server.install: add missing drivers (clone-outlet,
  liebert-esp2 and microdowell)
* debian/nut-server.manpages: add missing manual pages (apcsmart-old,
  ivtscd, liebert-esp2 and microdowell)
* SECURITY UPDATE: remote denial of service
 - debian/CVE-2012-2944.patch: limit the set of parsed characters to ' '
   through '~'
 - CVE-2012-2944
* Merge from Debian testing.  Remaining changes:
  - debian/control: Drop Build-Depends on libpowerman0-dev (currently in 
    universe)
  - debian/{nut-cgi,nut-server}.postinst: add nut to the dialout and nut 
    groups unconditonally to handle the upgrade from hardy release.
  - debian/nut-powerman-pdu.{install,manpages}: dropped for now.
  - debian/source_nut.py, debian/{nut,nut-server,nut-client}.install, 
    debian/rules: Install apport hooks for all top-level nut packages.
  - debian/rules: Use udev version for Ubuntu.
  - debian/series, debian/patches/backport-fix-lp753661.patch: re-enabled.
* New upstream release (Closes: #635186, #598741, #633756, #638221)
* debian/nut-server.{install,manpages}: add richcomm_usb
* debian/nut-server.install, debian/rules: install Avahi service file
* debian/rules, nut-client.install: install Augeas lenses
* debian/nut-server.README.Debian: clarify udev explanation (Closes: #529664)
* debian/patches/0001-fix_spelling_and_typo.patch,
  debian/patches/0003-libupsclient-version.patch: removed since these are now
  fixed upstream
* debian/patches/series: updated
* Merge from debian unstable.  Remaining changes:
  - debian/control: Drop Build-Depends on libpowerman0-dev (currently in 
    universe)
  - debian/{nut-cgi,nut-server}.postinst: add nut to the dialout and nut 
    groups unconditonally to handle the upgrade from hardy release.
  - debian/nut-powerman-pdu.{install,manpages}: dropped for now.
  - debian/source_nut.py, debian/{nut,nut-server,nut-client}.install, 
    debian/rules: Install apport hooks for all top-level nut packages.
  - debian/rules: Use udev version for Ubuntu.
  - debian/series, debian/patches/backport-fix-lp753661.patch: re-enabled.
* New upstream release (Closes: #594989)
* debian/control:
  - remove legacy Build-Depends for nut-hal-drivers on libdbus and libglib
  - Build-Depends-Indep on docbook-xsl for offline document
    generation (Closes: #635347)
* debian/nut-server.install: add apcsmart-old
* debian/nut-server.init:
  - add udev as Required-Start/Stop (Closes: #642412)
  - remove legacy support for /etc/default/nut (Closes: #638021)
* debian/patches/0003-libupsclient-version.patch: added to fix the missing
  libupsclient version info bump
* debian/libupsclient1-dev.links: update link name
* debian/libupsclient1.symbols: add with upscli_tryconnect
* debian/nut.TODO.Debian: update and complete the TODO list
* Fix FTBFS for Ubuntu (LP: #815760):
  - debian/control: Build-Depends-Indep on docbook-xsl for offline 
    document generation.
* Merge from Debian unstable (LP: #811976). Remaining changes:
  - debian/control: Drop Build-Depends on libpowerman0-dev (currently in 
    universe)
  - debian/{nut-cgi,nut-server}.postinst: add nut to the dialout and nut 
    groups unconditonally to handle the upgrade from hardy release.
  - debian/nut-powerman-pdu.{install,manpages}: dropped for now.
  - debian/source_nut.py, debian/{nut,nut-server,nut-client}.install, 
    debian/rules: Install apport hooks for all top-level nut packages.
  - debian/rules: Use udev version for Ubuntu.
  - debian/series, debian/patches/backport-fix-lp753661.patch: re-enabled.
* debian/nut.README.Debian: Adjust udev rules naming for permissions override
  (Closes: #529664)
* Re-add and refresh debian/patches/0001-fix_spelling_and_typo.patch:
  Some typos and spelling errors remain.
* Split nut package into nut-client and nut-server, keep nut package as
  metapackage
* Generate PDF and html doc and install it in nut-doc package
* debian/rules:
  - List non-installed files
  - Includes python-module.mk
  - Add flags to build documentation and install it
* debian/control:
  - Add python-nut package and add python build-dependency
  - Set nut-powerman-pdu priority to extras
  - Add nut-monitor package
  - Add nut-doc package and add required C/R/P
  - Add libups-nut-perl package
* debian/nut-server.prerm: Remove /var/run/nut during removal
* Merge from debian unstable.  Remaining changes:
  - debian/control:
    + Drop Build-Depends on libpowerman0-dev (currently in universe)
  - debian/{nut-cgi,nut}.postinst: add nut to the dialout and nut groups
    unconditonally to handle the upgrade from hardy release.
  - debian/nut-powerman-pdu.{install,manpages}: dropped for now.
  - debian/source_nut.py, debian/nut.install, debian/rules: Install apport hook.
  - debian/rules: Use udev version for Ubuntu.
* debian/patches/backport-fix-lp753661.patch: Refreshed.
* Drop changes due to .pc being not clean.
* New upstream release (Closes: #595953, #614842, #595773)
* debian/patches/*.patch: removed since these are now fixed upstream
* Drop HAL package and build-dependencies (Closes: #613197)
* debian/control:
  - Bump Standards-Version to 3.9.2 (no further changes)
  - Drop autotools build-dependencies (not needed anymore)
  - Drop non-existing build-dependencies
* debian/rules:
  - Correctly pass flags to configure
* Merge from debian unstable (LP: #789323).  Remaining changes:
  + debian/control:
    - Update maintainer as per spec.
    - Add Breaks on nut-hal-drivers to ensure we have correct udev version.
    - Drop libpowerman0-dev from the Build-Depends (currently in universe)
  + debian/{nut-cgi,nut}.postinst: add nut to the dialout and nut groups
    unconditonally to handle the upgrade from hardy release.
  + debian/nut-powerman-pdu.install, debian/nut-powerman-pdu.manpages: dropped for now.
  + debian/nul-hal-drivers.{docs,install,postinst,preinst}: Dropped since hal is in universe now
  + debian/nut.links: must create the init script link, used if the upse needs to be powered down
    (LP: #357583)
  + debian/source_nut.py, debian/nut.install, debian/rules: Install apport hook.
  + debian/patches/backport-fix-lp753661.patch
  + Dropped:
    - debian/patches/fix_pc_file.patch: replaced by debian's 0002-fix_libupsclient_pc.patch
* debian/patches/fix_pc_file.patch: add DEP3 patch header
* debian/patches/debian-changes-2.6.0-1: remove that accidental file
* debian/nut-snmp.docs: Distribute snmp.txt doc file (Closes: #548295)
* d/p/0001-fix_spelling_and_typo.patch: Update and refresh
* debian/nut.lintian-overrides: Fix typo
* debian/patch/0002-fix_libupsclient_pc.patch: Fix libupsclient.pc (Closes:
  #624255)
* debian/rules:
  - Switch to cdbs
  - Remove not existing configure options (Closes: #611813)
  - Drop Phony rules (Closes: #613699)
* debian/control:
  - Add cdbs build-dependency
* debian/patches/backport-fix-lp753661.patch: Backport fix 
  to trim extraneous end-of-line, in buggy HID string tables, 
  which results in upsc breaking the communication pipe.
  (LP: #753661)
* fix_pc_file.patch: fix .pc source files by using LIBSSL_LIBS instead of
  LIBSSL_LDFLAGS to avoid a FTBFS in packages that uses libupsclient.pc
  (LP: #743484)
* Merge from Debian unstable, remaining changes:
  + debian/control:
    - Update maintainer as per spec.
    - Add Breaks on nut-hal-drivers to ensure we have correct udev version.
    - Drop libpowerman0-dev from the Build-Depends (currently in universe)
  + debian/{nut-cgi,nut}.postinst: add nut to the dialout and nut groups
    unconditonally to hanle the upgrade from hardy release.
  + debian/nut-powerman-pdu.install, debian/nut-powerman-pdu.manpages: dropped for now.
  + debian/nul-hal-drivers.{docs,install,postinst,preinst}: Dropped since hal is in universe now
  + debian/nut.links: must create the init script link, used if the upse needs to be powered down
    (LP: #357583)
  + debian/source_nut.py, debian/nut.install, debian/rules: Install apport hook.
  + Dropped:
    - debian/patches/0002-fix_udev_action.patch: Accepted upstream.
    - debian/patches/0004-netvision-improvements-lp-600950: no longer needed.
    - debian/patches/0005-fix-nut-m4.patch: no longer needed.
    - debian/patches/9999-autoconf.patch: no longer needed.
* New upstream release (Closes: #575176, #588648, #609597, #687985)
* debian/patches/*.patch: removed since these are now fixed upstream
* debian/patches/0001-fix_spelling_and_typo.patch,
  debian/patches/series: reworked to match the new upstream release
* debian/nut.install, debian/nut.manpages: remove obsolete reference to
  megatec and megatec_usb, now respectively replaced by blazer_ser and
  blazer_usb
* debian/nut.docs: limit distributed documentation
* debian/control:
  - Wrap build-dependencies
  - Change nut-cgi Recommends to apache2 | httpd-cgi
* debian/nut.postinst: Only trigger USB subsystem, should Closes: #574769
* debian/patches/0002-fix_udev_action.patch: Use SUBSYSTEM instead of BUS
* debian/control, debian/rules, 
  debian/nut-hal-drivers.{docs,install,postinst,preinst}: Drop
  nut-hal-drivers since Nut doesnt go into universe.
* Split patches/debian-changes-2.4.3-2ubuntu1 into
  patches/0005-fix-nut-m4.patch and patches/9999-autoconf.patch
* Readd lost debian/patches0004-netvision-improvements-lp-600950.patch patch
  (LP: #707050)
* debian/patches/0002-fix_udev_action.patch:
  Change BUS to SUBSYSTEMS, since the former is deprecated. (LP: #692171)
* debian/nut.postinst: Uncomment missing call to adduser
* debian/control: Drop hal build dependency, we don't need the daemon to
  build the package. Add a hal dependency to nut-hal-drivers, which is the
  only thing that actually needs it.
* Merge from debian unstable.  Remaining changes:
  + debian/control:
    - Update maintainer as per spec.
    - Add Breaks on nut-hal-drivers to ensure we have correct udev version.
    - Drop libpowerman0-dev from the Build-Depends (currently in universe)
  + debian/{nut-cgi,nut}.postinst: add nut to the dialout and nut groups
    unconditonally to hanle the upgrade from hardy release.
  + debian/nut-powerman-pdu.install, debian/nut-powerman-pdu.manpages: dropped for now.
  + debian/nut.links: must create the init script link, used if the upse needs to be powered down
    (LP: #357583)
  + debian/nut.postinst: Update udevadm trigger.
    "libusb_get_report: error sending control message: 
     Operation not permitted" error on some UPS devices. (LP: #572262)
  + debian/source_nut.py, debian/nut.install, debian/rules: Install apport hook.
  + debian/patches/netvision-improvements-lp-600950.patch: Add improvements
    for netvision UPSes
  + Fix FTBFS with ld --as-needed.
  + Dropped:
    - debian/patches/03_udev_rules_change.dpatch: Use debian's instead.
    - debian/patches/04_nut_small-buffers.dpatch: Use debian's instead.
* debian/control:
  - Bump Standards-Version to 3.9.1
  - Update Vcs-* fields to new GIT repository
  - Add myself as Uploaders
* Switch to dpkg-source 3.0 (quilt) format (Closes: #573601)
* debian/patches/0001-low_speed_usb_ups.patch: Use patch system for changes
  that were applied directly in the source
* Add debian/gbp.conf file
* debian/watch: Bump version to 3
* Add debian/patches/0002-fix_udev_action.patch: Also set permission for
  "change" udev ACTION (Closes: #557178)
* debian/nut.postrm: Do not try to remove nut user is deluser is not
  installed anymore
* debian/nut.manpages: Install manpage nut.conf.5 (Closes: #528222)
* debian/copyright: Fix copyright-with-old-dh-make-debian-copyright
* Remove nut-snmp.lintian-overrides, not needed anymore
* debian/patches/0003-fix_spelling_and_typo.patch: Fix some spelling errors
* Add debian/libupsclient1.symbols file
* Add debian/nut.links: Re-add /etc/init.d/ups-monitor that was lost for
  some reasons (Closes: #592351)
* debian/nut.lintian-overrides: Add override for
  init.d-script-does-not-provide-itself /etc/init.d/ups-monitor
* Drop libupsclient1.post{inst,rm}: ldconfig call is added automatically by
  debhelper
* debian/libupsclient1-dev.install: Do not ship /lib/libupsclient.la anymore
* debian/rules: Remove dpatch logic as we are using package source version
  '3.0 (quilt)'
* debian/compat: Bump debhelper compatibility to 8
* Non-maintainer upload.
* drivers/libhid.c: Apply r2407 from upstream to fix bug with some
  low speed UPS devices. (Closes: #583371)
* Fix FTBFS with ld --as-needed.
* debian/patches/netvision-improvements-lp-600950.patch: Add improvements for netvision UPSes 
  (LP: #600950) 
* debian/source_nut.py, debian/nut.install, debian/rules: Install apport hook. 
* debian/patches/04_nut-small-buffers.dpatch: Fix "libusb_get_report: error sending control message: 
  Operation not permitted" error on some UPS devices. (LP: #572262)
* debian/nut.postinst: Revert dropping of --action=change. "add" events must
  not ever be triggered automatically.
* Add 03_udev_rules_change.dpatch: Run udev rules on change events, too.
* debian/control: grr...fix ftbfs. 
* Merge from debian testing.  Remaining changes (LP: #535152):
  + debian/control:
    - Update maintainer as per spec.
    - Add Breaks on nut-hal-drivers to ensure we have correct udev version.
    - Drop libpowerman0-dev from the Build-Depends (currently in universe)
  + debian/{nut-cgi,nut}.postinst: add nut to the dialout and nut groups
    unconditonally to hanle the upgrade from hardy release.
  + debian/nut-powerman-pdu.install, debian/nut-powerman-pdu.manpages: dropped for now.
  + debian/nut.links: must create the init script link, used if the upse needs to be powered down
    (LP: #357583)
  + debian/nut.postinst: Update udevadm trigger.
  + Dropped:
    - debian/patches/02-fix-trust-pw4130m.dpatch: No longer needed.
* New upstream release (Closes: #544390, #528222, #539747, #526811,
  #562064)
* debian/nut.install, debian/nut.manpages:
  - remove cyberpower driver and manpage
  - add bestfortress, clone and ivtscd drivers and manpages
* debian/rules:
  - change udev dir to /lib/udev (Closes: #522327)
  - replace deprecated calls to 'dh_clean -k' by dh_prep (Closes: #536599)
* debian/rules, debian/nut.install, debian/nut.install,
  debian/nut.README.Debian: install configuration files, without the
  sample suffix (Closes: #528641)
* debian/nut.links: restored (Closes: #522506)
* debian/nut.init:
  - source nut.conf instead of default/nut for POWEROFF_WAIT(Closes:
    #538173)
  - fix status checking (Closes: #538785)
  - improve detection of non configured system and beautify related
    output (Closes: #563112)
  - use 'invoke-rc.d' instead of calling the reboot script directly
  - add $remote_fs to Required-Start and Required-Stop
* debian/nut.postrm: remove udev files and simplify cleanup (Closes:
  #541629)
* debian/control:
  - remove Luca Filipozzi from the Uploaders list (Closes: #568987)
  - update Standards-Version to 3.8.4
  - remove the debconf dependency
  - bump debhelper version to (>= 7) in Build-Depends, for dh_prep
  - add Breaks on nut-hal-drivers to ensure we have correct udev version
* Remove debconf support since it was related to really old nut
  version (Closes: #518056):
  - remove nut-cgi.config, nut.config, nut-cgi.templates, nut.templates,
    and po/ directory
  - update nut-cgi.postinst
* debian/nut.dirs: remove /var/run/nut to conform to Debian Policy
* debian/nut.postint:
  - create /var/run/nut if needed
  - improve security checks
* debian/nut.README.Debian: add a security note for ups.conf
* debian/watch: URL update
* debian/patches/02-fix-trust-pw4130m.dpatch: Fix issues with Trust
  PW-4130M UPS. (LP: #447586) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Network UPS Tools: drivers
2
2
 
3
 
# by default, link programs in this directory with libcommon.a
 
3
# by default, link programs in this directory with libcommon.la
 
4
# (libtool version of the static lib, in order to access LTLIBOBJS)
4
5
#FIXME: SERLIBS is only useful for LDADD_DRIVERS_SERIAL not for LDADD_COMMON
5
 
LDADD_COMMON = ../common/libcommon.a ../common/libparseconf.la
 
6
LDADD_COMMON = ../common/libcommon.la ../common/libparseconf.la
6
7
LDADD_DRIVERS = $(LDADD_COMMON) main.o dstate.o
7
8
LDADD_HAL_DRIVERS = $(LDADD_COMMON) libnuthalmain.a
8
9
LDADD_DRIVERS_SERIAL = $(LDADD_DRIVERS) $(SERLIBS) serial.o
22
23
if WITH_SNMP
23
24
  AM_CFLAGS += $(LIBNETSNMP_CFLAGS)
24
25
endif
25
 
if WITH_SNMP
26
 
  AM_CFLAGS += $(LIBSSL_CFLAGS)
27
 
endif
28
 
if WITH_NEONXML
 
26
if WITH_NEON
29
27
  AM_CFLAGS += $(LIBNEON_CFLAGS)
30
28
endif
31
29
if WITH_LIBPOWERMAN
32
30
  AM_CFLAGS += $(LIBPOWERMAN_CFLAGS)
33
31
endif
 
32
if WITH_IPMI
 
33
  AM_CFLAGS += $(LIBIPMI_CFLAGS)
 
34
endif
34
35
 
35
 
SERIAL_DRIVERLIST = apcsmart bcmxcp belkin belkinunv bestfcom   \
36
 
 bestuferrups bestups cyberpower dummy-ups etapro everups       \
37
 
 gamatronic genericups isbmex liebert masterguard megatec metasys       \
 
36
SERIAL_DRIVERLIST = bcmxcp belkin belkinunv bestfcom    \
 
37
 bestfortress bestuferrups bestups dummy-ups etapro everups     \
 
38
 gamatronic genericups isbmex liebert liebert-esp2 masterguard metasys  \
38
39
 mge-shut mge-utalk microdowell newmge-shut oneac optiups powercom rhino        \
39
40
 safenet skel solis tripplite tripplitesu upscode2 victronups powerpanel \
40
 
 blazer_ser
 
41
 blazer_ser clone clone-outlet ivtscd apcsmart apcsmart-old
41
42
SNMP_DRIVERLIST = snmp-ups
42
 
USB_LIBUSB_DRIVERLIST = usbhid-ups bcmxcp_usb tripplite_usb megatec_usb \
 
43
USB_LIBUSB_DRIVERLIST = usbhid-ups bcmxcp_usb tripplite_usb \
43
44
 blazer_usb richcomm_usb
44
45
USB_DRIVERLIST = $(USB_LIBUSB_DRIVERLIST)
45
46
HAL_DRIVERLIST = hald-addon-usbhid-ups hald-addon-bcmxcp_usb \
46
 
 hald-addon-tripplite_usb hald-addon-megatec_usb
 
47
 hald-addon-tripplite_usb hald-addon-blazer_usb
47
48
NEONXML_DRIVERLIST = netxml-ups
48
49
 
49
50
# distribute all drivers, even ones that are not built by default
67
68
   halexecdir = $(HAL_CALLOUTS_PATH)
68
69
   halexec_PROGRAMS = $(HAL_DRIVERLIST)
69
70
endif
70
 
if WITH_NEONXML
 
71
if WITH_NEON
71
72
   driverexec_PROGRAMS += $(NEONXML_DRIVERLIST)
72
73
endif
73
74
if WITH_LIBPOWERMAN
74
75
   driverexec_PROGRAMS += powerman-pdu
75
76
endif
 
77
if WITH_IPMI
 
78
   driverexec_PROGRAMS += nut-ipmipsu
 
79
endif
76
80
else
77
81
   driverexec_PROGRAMS += skel
78
82
endif
88
92
upsdrvctl_LDADD = $(LDADD_COMMON)
89
93
 
90
94
# serial drivers: all of them use standard LDADD and CFLAGS
91
 
apcsmart_SOURCES = apcsmart.c
 
95
apcsmart_SOURCES = apcsmart.c apcsmart_tabs.c
 
96
apcsmart_old_SOURCES = apcsmart-old.c
92
97
bcmxcp_SOURCES = bcmxcp.c bcmxcp_ser.c
 
98
bcmxcp_LDADD = $(LDADD) -lm
93
99
belkin_SOURCES = belkin.c
94
100
belkinunv_SOURCES = belkinunv.c
95
101
bestfcom_SOURCES = bestfcom.c
97
103
bestups_SOURCES = bestups.c
98
104
blazer_ser_SOURCES = blazer.c blazer_ser.c
99
105
blazer_ser_LDADD = $(LDADD) -lm
100
 
cyberpower_SOURCES = cyberpower.c
101
106
etapro_SOURCES = etapro.c
102
107
everups_SOURCES = everups.c
103
108
gamatronic_SOURCES = gamatronic.c
104
109
genericups_SOURCES = genericups.c
105
110
isbmex_SOURCES = isbmex.c
106
111
isbmex_LDADD = $(LDADD) -lm
 
112
ivtscd_SOURCES = ivtscd.c
107
113
liebert_SOURCES = liebert.c
 
114
liebert_esp2_SOURCES = liebert-esp2.c
108
115
masterguard_SOURCES = masterguard.c
109
 
megatec_SOURCES = megatec.c
110
116
metasys_SOURCES = metasys.c
111
 
mge_shut_SOURCES = mge-shut.c hidparser.c 
 
117
mge_shut_SOURCES = mge-shut.c hidparser.c
112
118
mge_utalk_SOURCES = mge-utalk.c
113
119
microdowell_SOURCES = microdowell.c
114
120
oneac_SOURCES = oneac.c
133
139
# dummy
134
140
dummy_ups_SOURCES = dummy-ups.c
135
141
dummy_ups_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/clients
136
 
dummy_ups_LDADD = $(LDADD_DRIVERS) ../clients/libupsclient.la 
 
142
dummy_ups_LDADD = $(LDADD_DRIVERS) ../clients/libupsclient.la
137
143
if WITH_SSL
138
144
  dummy_ups_CFLAGS += $(LIBSSL_CFLAGS)
139
 
  dummy_ups_LDADD += $(LIBSSL_LDFLAGS)
 
145
  dummy_ups_LDADD += $(LIBSSL_LIBS)
140
146
endif
141
147
 
 
148
# Clone drivers
 
149
clone_SOURCES = clone.c
 
150
clone_outlet_SOURCES = clone-outlet.c
 
151
 
142
152
# sample skeleton driver
143
153
 
144
154
skel_SOURCES = skel.c
146
156
 
147
157
# USB
148
158
USBHID_UPS_SUBDRIVERS = apc-hid.c belkin-hid.c cps-hid.c explore-hid.c \
149
 
 liebert-hid.c mge-hid.c tripplite-hid.c
 
159
 liebert-hid.c mge-hid.c powercom-hid.c tripplite-hid.c idowell-hid.c
150
160
usbhid_ups_SOURCES = usbhid-ups.c libhid.c libusb.c hidparser.c \
151
161
 usb-common.c $(USBHID_UPS_SUBDRIVERS)
152
 
usbhid_ups_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LDFLAGS)
153
 
if WITH_SSL
154
 
  usbhid_ups_LDADD += $(LIBSSL_LDFLAGS)
155
 
endif
 
162
usbhid_ups_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS)
156
163
 
157
164
tripplite_usb_SOURCES = tripplite_usb.c libusb.c usb-common.c
158
 
tripplite_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LDFLAGS) -lm
159
 
 
160
 
bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c nut_usb.c usb-common.c
161
 
bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LDFLAGS)
162
 
 
163
 
megatec_usb_SOURCES = megatec.c megatec_usb.c libusb.c usb-common.c
164
 
megatec_usb_CFLAGS = $(AM_CFLAGS) -DMEGATEC_SUBDRV
165
 
megatec_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LDFLAGS)
 
165
tripplite_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
 
166
 
 
167
bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c usb-common.c
 
168
bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS)
166
169
 
167
170
blazer_usb_SOURCES = blazer.c blazer_usb.c libusb.c usb-common.c
168
 
blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LDFLAGS) -lm
 
171
blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
169
172
 
170
173
richcomm_usb_SOURCES = richcomm_usb.c usb-common.c
171
 
richcomm_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LDFLAGS)
 
174
richcomm_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS)
172
175
 
173
176
# HID-over-serial
174
177
newmge_shut_SOURCES = usbhid-ups.c libshut.c libhid.c hidparser.c mge-hid.c
177
180
newmge_shut_LDADD = $(LDADD)
178
181
 
179
182
# SNMP
180
 
snmp_ups_SOURCES = snmp-ups.c
181
 
snmp_ups_LDADD = $(LDADD_DRIVERS) $(LIBNETSNMP_LDFLAGS)
 
183
snmp_ups_SOURCES = snmp-ups.c apc-mib.c baytech-mib.c compaq-mib.c eaton-mib.c \
 
184
 ietf-mib.c mge-mib.c netvision-mib.c powerware-mib.c raritan-pdu-mib.c \
 
185
 bestpower-mib.c cyberpower-mib.c
 
186
snmp_ups_LDADD = $(LDADD_DRIVERS) $(LIBNETSNMP_LIBS)
182
187
 
183
188
# HAL
184
189
hald_addon_usbhid_ups_SOURCES = usbhid-ups.c libhid.c libusb.c hidparser.c      \
185
190
 $(USBHID_UPS_SUBDRIVERS)
186
 
hald_addon_usbhid_ups_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LDFLAGS) $(LIBHAL_LDFLAGS) $(LIBSSL_LDFLAGS)
 
191
hald_addon_usbhid_ups_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LIBS) $(LIBHAL_LIBS)
187
192
 
188
193
hald_addon_tripplite_usb_SOURCES = tripplite_usb.c libusb.c
189
 
hald_addon_tripplite_usb_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LDFLAGS) $(LIBHAL_LDFLAGS) -lm
190
 
 
191
 
hald_addon_bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c nut_usb.c
192
 
hald_addon_bcmxcp_usb_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LDFLAGS) $(LIBHAL_LDFLAGS)
193
 
 
194
 
hald_addon_megatec_usb_SOURCES = megatec.c megatec_usb.c libusb.c
195
 
hald_addon_megatec_usb_CFLAGS = $(AM_CFLAGS) -DMEGATEC_SUBDRV
196
 
hald_addon_megatec_usb_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LDFLAGS) $(LIBHAL_LDFLAGS)
 
194
hald_addon_tripplite_usb_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LIBS) $(LIBHAL_LIBS) -lm
 
195
 
 
196
hald_addon_bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c
 
197
hald_addon_bcmxcp_usb_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LIBS) $(LIBHAL_LIBS)
 
198
 
 
199
hald_addon_blazer_usb_SOURCES = blazer.c blazer_usb.c libusb.c
 
200
hald_addon_blazer_usb_LDADD = $(LDADD_HAL_DRIVERS) $(LIBUSB_LIBS) $(LIBHAL_LIBS) -lm
197
201
 
198
202
# NEON XML/HTTP
199
203
netxml_ups_SOURCES = netxml-ups.c mge-xml.c
200
 
netxml_ups_LDADD = $(LDADD_DRIVERS) $(LIBNEON_LDFLAGS)
 
204
netxml_ups_LDADD = $(LDADD_DRIVERS) $(LIBNEON_LIBS)
201
205
 
202
206
# Powerman
203
207
powerman_pdu_SOURCES = powerman-pdu.c
204
 
powerman_pdu_LDADD = $(LDADD) $(LIBPOWERMAN_LDFLAGS)
 
208
powerman_pdu_LDADD = $(LDADD) $(LIBPOWERMAN_LIBS)
 
209
 
 
210
# IPMI PSU
 
211
nut_ipmipsu_SOURCES = nut-ipmipsu.c
 
212
if WITH_FREEIPMI
 
213
  nut_ipmipsu_SOURCES += nut-libfreeipmi.c 
 
214
endif
 
215
nut_ipmipsu_LDADD = $(LDADD) $(LIBIPMI_LIBS)
205
216
 
206
217
# ----------------------------------------------------------------------
207
218
# List of header files. The purpose of this list is not dependency
208
219
# tracking (which is automatic), but to ensure these files are
209
220
# distributed by "make dist".
210
221
 
211
 
dist_noinst_HEADERS = apccmib.h apc-hid.h apcsmart.h bcmxcp.h bcmxcp_io.h belkin.h      \
212
 
 belkin-hid.h blazer.h cps-hid.h dstate.h dstate-hal.h dummy-ups.h eaton-aphel-mib.h    \
213
 
 explore-hid.h gamatronic.h genericups.h hidparser.h hidtypes.h ietfmib.h libhid.h      \
214
 
 libshut.h libusb.h liebert-hid.h main.h main-hal.h megatec.h mge-hid.h mgemib.h        \
215
 
 mge-shut.h mge-utalk.h mge-xml.h microdowell.h netvisionmib.h netxml-ups.h nut_usb.h oneac.h   \
216
 
 powercom.h powerpanel.h powerp-bin.h powerp-txt.h pwmib.h raritan-mib.h        \
217
 
 safenet.h serial.h snmp-ups.h solis.h tripplite.h tripplite-hid.h upshandler.h         \
218
 
 usb-common.h usbhid-ups.h
 
222
dist_noinst_HEADERS = apc-mib.h apc-hid.h baytech-mib.h bcmxcp.h        \
 
223
 bcmxcp_io.h belkin.h belkin-hid.h bestpower-mib.h blazer.h cps-hid.h dstate.h \
 
224
 dstate-hal.h dummy-ups.h eaton-mib.h explore-hid.h gamatronic.h genericups.h   \
 
225
 hidparser.h hidtypes.h ietf-mib.h libhid.h libshut.h libusb.h liebert-hid.h    \
 
226
 main.h main-hal.h mge-hid.h mge-mib.h mge-shut.h mge-utalk.h           \
 
227
 mge-xml.h microdowell.h netvision-mib.h netxml-ups.h nut-ipmi.h oneac.h                \
 
228
 powercom.h powerpanel.h powerp-bin.h powerp-txt.h powerware-mib.h raritan-pdu-mib.h    \
 
229
 safenet.h serial.h snmp-ups.h solis.h tripplite.h tripplite-hid.h                      \
 
230
 upshandler.h usb-common.h usbhid-ups.h powercom-hid.h compaq-mib.h idowell-hid.h \
 
231
 apcsmart.h apcsmart_tabs.h apcsmart-old.h cyberpower-mib.h
219
232
 
220
233
# Define a dummy library so that Automake builds rules for the
221
234
# corresponding object files.  This library is not actually built,
225
238
# the nuthalmain library combines the code for main-hal.c and
226
239
# dstate-hal.c. It is necessary for Automake-technical reasons,
227
240
# because per-object CFLAGS can only be specified for libraries, not
228
 
# for object files. This library is used during the build process, 
 
241
# for object files. This library is used during the build process,
229
242
# and is not meant to be installed.
230
243
 
231
244
EXTRA_LIBRARIES += libnuthalmain.a