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

« back to all changes in this revision

Viewing changes to Makefile.in

  • 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
 
# Makefile.in generated by automake 1.10.1 from Makefile.am.
 
1
# Makefile.in generated by automake 1.11.1 from Makefile.am.
2
2
# @configure_input@
3
3
 
4
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
 
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
5
# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
 
6
# Inc.
6
7
# This Makefile.in is free software; the Free Software Foundation
7
8
# gives unlimited permission to copy and/or distribute it,
8
9
# with or without modifications, as long as this notice is preserved.
17
18
# top-level Makefile for NUT
18
19
VPATH = @srcdir@
19
20
pkgdatadir = $(datadir)/@PACKAGE@
 
21
pkgincludedir = $(includedir)/@PACKAGE@
20
22
pkglibdir = $(libdir)/@PACKAGE@
21
 
pkgincludedir = $(includedir)/@PACKAGE@
 
23
pkglibexecdir = $(libexecdir)/@PACKAGE@
22
24
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23
25
install_sh_DATA = $(install_sh) -c -m 644
24
26
install_sh_PROGRAM = $(install_sh) -c
36
38
target_triplet = @target@
37
39
subdir = .
38
40
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
39
 
        $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
40
 
        ChangeLog INSTALL NEWS compile config.guess config.sub depcomp \
41
 
        install-sh ltmain.sh missing
 
41
        $(srcdir)/Makefile.in $(top_srcdir)/configure \
 
42
        $(top_srcdir)/scripts/HP-UX/nut.psf.in \
 
43
        $(top_srcdir)/scripts/avahi/nut.service.in \
 
44
        $(top_srcdir)/scripts/ufw/nut.ufw.profile.in AUTHORS COPYING \
 
45
        ChangeLog INSTALL NEWS TODO compile config.guess config.sub \
 
46
        depcomp install-sh ltmain.sh missing
42
47
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43
 
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_create_stdint_h.m4 \
 
48
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
44
49
        $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
45
50
        $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
46
51
        $(top_srcdir)/m4/lt~obsolete.m4 \
47
52
        $(top_srcdir)/m4/nut_arg_with.m4 \
48
 
        $(top_srcdir)/m4/nut_check_ipv6.m4 \
 
53
        $(top_srcdir)/m4/nut_check_asciidoc.m4 \
 
54
        $(top_srcdir)/m4/nut_check_libavahi.m4 \
 
55
        $(top_srcdir)/m4/nut_check_libfreeipmi.m4 \
49
56
        $(top_srcdir)/m4/nut_check_libgd.m4 \
50
57
        $(top_srcdir)/m4/nut_check_libhal.m4 \
 
58
        $(top_srcdir)/m4/nut_check_libltdl.m4 \
51
59
        $(top_srcdir)/m4/nut_check_libneon.m4 \
52
60
        $(top_srcdir)/m4/nut_check_libnetsnmp.m4 \
53
61
        $(top_srcdir)/m4/nut_check_libpowerman.m4 \
55
63
        $(top_srcdir)/m4/nut_check_libusb.m4 \
56
64
        $(top_srcdir)/m4/nut_check_libwrap.m4 \
57
65
        $(top_srcdir)/m4/nut_check_os.m4 \
 
66
        $(top_srcdir)/m4/nut_config_libhal.m4 \
58
67
        $(top_srcdir)/m4/nut_report_feature.m4 \
59
68
        $(top_srcdir)/m4/nut_type_socklen_t.m4 \
60
69
        $(top_srcdir)/configure.in
64
73
 configure.lineno config.status.lineno
65
74
mkinstalldirs = $(install_sh) -d
66
75
CONFIG_HEADER = $(top_builddir)/include/config.h
67
 
CONFIG_CLEAN_FILES =
 
76
CONFIG_CLEAN_FILES = scripts/avahi/nut.service scripts/HP-UX/nut.psf \
 
77
        scripts/ufw/nut.ufw.profile
 
78
CONFIG_CLEAN_VPATH_FILES =
68
79
SOURCES =
69
80
DIST_SOURCES =
70
81
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
76
87
        ps-recursive uninstall-recursive
77
88
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
78
89
  distclean-recursive maintainer-clean-recursive
 
90
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
 
91
        $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
 
92
        distdir dist dist-all distcheck
79
93
ETAGS = etags
80
94
CTAGS = ctags
81
95
DIST_SUBDIRS = $(SUBDIRS)
83
97
distdir = $(PACKAGE)-$(VERSION)
84
98
top_distdir = $(distdir)
85
99
am__remove_distdir = \
86
 
  { test ! -d $(distdir) \
87
 
    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
88
 
         && rm -fr $(distdir); }; }
 
100
  { test ! -d "$(distdir)" \
 
101
    || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
 
102
         && rm -fr "$(distdir)"; }; }
 
103
am__relativize = \
 
104
  dir0=`pwd`; \
 
105
  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
 
106
  sed_rest='s,^[^/]*/*,,'; \
 
107
  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
 
108
  sed_butlast='s,/*[^/]*$$,,'; \
 
109
  while test -n "$$dir1"; do \
 
110
    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
 
111
    if test "$$first" != "."; then \
 
112
      if test "$$first" = ".."; then \
 
113
        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
 
114
        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
 
115
      else \
 
116
        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
 
117
        if test "$$first2" = "$$first"; then \
 
118
          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
 
119
        else \
 
120
          dir2="../$$dir2"; \
 
121
        fi; \
 
122
        dir0="$$dir0"/"$$first"; \
 
123
      fi; \
 
124
    fi; \
 
125
    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
 
126
  done; \
 
127
  reldir="$$dir2"
89
128
DIST_ARCHIVES = $(distdir).tar.gz
90
129
GZIP_ENV = --best
91
130
distuninstallcheck_listfiles = find . -type f -print
 
131
distcleancheck_listfiles = find . -type f -print
 
132
A2X = @A2X@
92
133
ACLOCAL = @ACLOCAL@
93
134
AMTAR = @AMTAR@
94
135
AR = @AR@
 
136
ASCIIDOC = @ASCIIDOC@
95
137
AUTOCONF = @AUTOCONF@
96
138
AUTOHEADER = @AUTOHEADER@
97
139
AUTOMAKE = @AUTOMAKE@
98
140
AWK = @AWK@
 
141
BINDIR = @BINDIR@
99
142
CC = @CC@
100
143
CCDEPMODE = @CCDEPMODE@
101
144
CFLAGS = @CFLAGS@
103
146
CPP = @CPP@
104
147
CPPFLAGS = @CPPFLAGS@
105
148
CYGPATH_W = @CYGPATH_W@
 
149
DBLATEX = @DBLATEX@
106
150
DEFS = @DEFS@
107
151
DEPDIR = @DEPDIR@
 
152
DLLTOOL = @DLLTOOL@
 
153
DOC_BUILD_LIST = @DOC_BUILD_LIST@
108
154
DRIVER_BUILD_LIST = @DRIVER_BUILD_LIST@
109
155
DRIVER_INSTALL_TARGET = @DRIVER_INSTALL_TARGET@
110
156
DRIVER_MAN_LIST = @DRIVER_MAN_LIST@
121
167
HAL_DEVICE_MATCH_KEY = @HAL_DEVICE_MATCH_KEY@
122
168
HAL_FDI_PATH = @HAL_FDI_PATH@
123
169
HAL_USER = @HAL_USER@
124
 
HAVE_GLIB_2_14 = @HAVE_GLIB_2_14@
125
170
INSTALL = @INSTALL@
126
171
INSTALL_DATA = @INSTALL_DATA@
127
172
INSTALL_PROGRAM = @INSTALL_PROGRAM@
129
174
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
130
175
LD = @LD@
131
176
LDFLAGS = @LDFLAGS@
 
177
LIBAVAHI_CFLAGS = @LIBAVAHI_CFLAGS@
 
178
LIBAVAHI_LIBS = @LIBAVAHI_LIBS@
132
179
LIBGD_CFLAGS = @LIBGD_CFLAGS@
133
180
LIBGD_LDFLAGS = @LIBGD_LDFLAGS@
134
181
LIBHAL_CFLAGS = @LIBHAL_CFLAGS@
135
 
LIBHAL_LDFLAGS = @LIBHAL_LDFLAGS@
 
182
LIBHAL_LIBS = @LIBHAL_LIBS@
 
183
LIBIPMI_CFLAGS = @LIBIPMI_CFLAGS@
 
184
LIBIPMI_LIBS = @LIBIPMI_LIBS@
 
185
LIBLTDL_CFLAGS = @LIBLTDL_CFLAGS@
 
186
LIBLTDL_LIBS = @LIBLTDL_LIBS@
136
187
LIBNEON_CFLAGS = @LIBNEON_CFLAGS@
137
 
LIBNEON_LDFLAGS = @LIBNEON_LDFLAGS@
 
188
LIBNEON_LIBS = @LIBNEON_LIBS@
138
189
LIBNETSNMP_CFLAGS = @LIBNETSNMP_CFLAGS@
139
 
LIBNETSNMP_LDFLAGS = @LIBNETSNMP_LDFLAGS@
 
190
LIBNETSNMP_LIBS = @LIBNETSNMP_LIBS@
140
191
LIBOBJS = @LIBOBJS@
141
192
LIBPOWERMAN_CFLAGS = @LIBPOWERMAN_CFLAGS@
142
 
LIBPOWERMAN_LDFLAGS = @LIBPOWERMAN_LDFLAGS@
 
193
LIBPOWERMAN_LIBS = @LIBPOWERMAN_LIBS@
143
194
LIBS = @LIBS@
144
195
LIBSSL_CFLAGS = @LIBSSL_CFLAGS@
145
 
LIBSSL_LDFLAGS = @LIBSSL_LDFLAGS@
 
196
LIBSSL_LIBS = @LIBSSL_LIBS@
146
197
LIBTOOL = @LIBTOOL@
147
198
LIBUSB_CFLAGS = @LIBUSB_CFLAGS@
148
 
LIBUSB_LDFLAGS = @LIBUSB_LDFLAGS@
 
199
LIBUSB_LIBS = @LIBUSB_LIBS@
149
200
LIBWRAP_CFLAGS = @LIBWRAP_CFLAGS@
150
 
LIBWRAP_LDFLAGS = @LIBWRAP_LDFLAGS@
 
201
LIBWRAP_LIBS = @LIBWRAP_LIBS@
151
202
LIPO = @LIPO@
152
203
LN_S = @LN_S@
153
204
LTLIBOBJS = @LTLIBOBJS@
154
205
MAINT = @MAINT@
155
206
MAKEINFO = @MAKEINFO@
 
207
MANIFEST_TOOL = @MANIFEST_TOOL@
156
208
MKDIR_P = @MKDIR_P@
157
209
NETLIBS = @NETLIBS@
158
210
NM = @NM@
159
211
NMEDIT = @NMEDIT@
 
212
NUT_NETVERSION = @NUT_NETVERSION@
 
213
OBJDUMP = @OBJDUMP@
160
214
OBJEXT = @OBJEXT@
161
215
OS_NAME = @OS_NAME@
162
216
OTOOL = @OTOOL@
166
220
PACKAGE_NAME = @PACKAGE_NAME@
167
221
PACKAGE_STRING = @PACKAGE_STRING@
168
222
PACKAGE_TARNAME = @PACKAGE_TARNAME@
 
223
PACKAGE_URL = @PACKAGE_URL@
169
224
PACKAGE_VERSION = @PACKAGE_VERSION@
170
225
PATH_SEPARATOR = @PATH_SEPARATOR@
 
226
PIDPATH = @PIDPATH@
 
227
PKG_CONFIG = @PKG_CONFIG@
 
228
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
 
229
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
 
230
PORT = @PORT@
171
231
RANLIB = @RANLIB@
172
232
RUN_AS_GROUP = @RUN_AS_GROUP@
173
233
RUN_AS_USER = @RUN_AS_USER@
 
234
SBINDIR = @SBINDIR@
174
235
SED = @SED@
175
236
SERLIBS = @SERLIBS@
176
237
SET_MAKE = @SET_MAKE@
178
239
STATEPATH = @STATEPATH@
179
240
STRIP = @STRIP@
180
241
SUN_LIBUSB = @SUN_LIBUSB@
 
242
TREE_VERSION = @TREE_VERSION@
181
243
VERSION = @VERSION@
182
244
WORDS_BIGENDIAN = @WORDS_BIGENDIAN@
183
245
abs_builddir = @abs_builddir@
184
246
abs_srcdir = @abs_srcdir@
185
247
abs_top_builddir = @abs_top_builddir@
186
248
abs_top_srcdir = @abs_top_srcdir@
 
249
ac_ct_AR = @ac_ct_AR@
187
250
ac_ct_CC = @ac_ct_CC@
188
251
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
189
252
am__include = @am__include@
219
282
libexecdir = @libexecdir@
220
283
localedir = @localedir@
221
284
localstatedir = @localstatedir@
222
 
lt_ECHO = @lt_ECHO@
223
285
mandir = @mandir@
224
286
mkdir_p = @mkdir_p@
225
287
oldincludedir = @oldincludedir@
232
294
sharedstatedir = @sharedstatedir@
233
295
srcdir = @srcdir@
234
296
sysconfdir = @sysconfdir@
 
297
systemdsystemshutdowndir = @systemdsystemshutdowndir@
 
298
systemdsystemunitdir = @systemdsystemunitdir@
235
299
target = @target@
236
300
target_alias = @target_alias@
237
301
target_cpu = @target_cpu@
238
302
target_os = @target_os@
239
303
target_vendor = @target_vendor@
 
304
top_build_prefix = @top_build_prefix@
240
305
top_builddir = @top_builddir@
241
306
top_srcdir = @top_srcdir@
242
307
udevdir = @udevdir@
245
310
ACLOCAL_AMFLAGS = -I m4
246
311
 
247
312
# subdirectories to build and distribute. The order matters, as
248
 
# several subdirectories depend on stuff in "common" being built first
249
 
SUBDIRS = include common clients conf data docs drivers lib man \
250
 
  tools scripts server
251
 
 
252
 
EXTRA_DIST = MAINTAINERS UPGRADING
 
313
# several subdirectories depend on stuff in "common" or tools being built first
 
314
SUBDIRS = include common clients conf data tools docs drivers \
 
315
  lib scripts server
 
316
 
 
317
 
 
318
# COPYING is included automatically.
 
319
EXTRA_DIST = LICENSE-GPL2 LICENSE-GPL3 MAINTAINERS UPGRADING
253
320
 
254
321
# ----------------------------------------------------------------------
255
322
# flags to pass to ./configure when calling "make distcheck" and "make
256
323
# distcheck-light". Try to check as many features as possible! Also
257
324
# need to give hotplug-dir and udev-dir, so that staged install does
258
325
# not fail.
259
 
DISTCHECK_FLAGS = --with-all --with-ssl --with-ipv6
260
 
DISTCHECK_LIGHT_FLAGS = --with-all=auto --with-ssl=auto --with-ipv6=auto
 
326
DISTCHECK_FLAGS = --with-all --with-ssl --with-doc=auto
 
327
DISTCHECK_LIGHT_FLAGS = --with-all=auto --with-ssl=auto --with-doc=auto
261
328
DISTCHECK_CONFIGURE_FLAGS = ${DISTCHECK_FLAGS}          \
262
329
 --with-hotplug-dir='$${prefix}/etc/hotplug'            \
263
330
 --with-udev-dir='$${prefix}/etc/udev'
264
331
 
265
332
 
266
 
# workaround the dist generated files that are also part of the distribution
267
 
distcleancheck_listfiles = \
268
 
        find -type f -exec sh -c 'test -f $(srcdir)/{} || echo {}' ';'
269
 
 
 
333
# Automatically generate the ChangeLog from SVN logs:
 
334
MAINTAINERCLEAN_FILES = ChangeLog
270
335
 
271
336
# ----------------------------------------------------------------------
272
337
# targets from old build system (pre-automake).
281
346
        @for dep in $?; do \
282
347
          case '$(am__configure_deps)' in \
283
348
            *$$dep*) \
284
 
              echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
285
 
              cd $(srcdir) && $(AUTOMAKE) --gnu  \
 
349
              echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
 
350
              $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
286
351
                && exit 0; \
287
352
              exit 1;; \
288
353
          esac; \
289
354
        done; \
290
 
        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
291
 
        cd $(top_srcdir) && \
292
 
          $(AUTOMAKE) --gnu  Makefile
 
355
        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
 
356
        $(am__cd) $(top_srcdir) && \
 
357
          $(AUTOMAKE) --gnu Makefile
293
358
.PRECIOUS: Makefile
294
359
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
295
360
        @case '$?' in \
305
370
        $(SHELL) ./config.status --recheck
306
371
 
307
372
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
308
 
        cd $(srcdir) && $(AUTOCONF)
 
373
        $(am__cd) $(srcdir) && $(AUTOCONF)
309
374
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
310
 
        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
 
375
        $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
 
376
$(am__aclocal_m4_deps):
 
377
scripts/avahi/nut.service: $(top_builddir)/config.status $(top_srcdir)/scripts/avahi/nut.service.in
 
378
        cd $(top_builddir) && $(SHELL) ./config.status $@
 
379
scripts/HP-UX/nut.psf: $(top_builddir)/config.status $(top_srcdir)/scripts/HP-UX/nut.psf.in
 
380
        cd $(top_builddir) && $(SHELL) ./config.status $@
 
381
scripts/ufw/nut.ufw.profile: $(top_builddir)/config.status $(top_srcdir)/scripts/ufw/nut.ufw.profile.in
 
382
        cd $(top_builddir) && $(SHELL) ./config.status $@
311
383
 
312
384
mostlyclean-libtool:
313
385
        -rm -f *.lo
316
388
        -rm -rf .libs _libs
317
389
 
318
390
distclean-libtool:
319
 
        -rm -f libtool
 
391
        -rm -f libtool config.lt
320
392
 
321
393
# This directory's subdirectories are mostly independent; you can cd
322
394
# into them and run `make' without going through this Makefile.
325
397
#     (which will cause the Makefiles to be regenerated when you run `make');
326
398
# (2) otherwise, pass the desired values on the `make' command line.
327
399
$(RECURSIVE_TARGETS):
328
 
        @failcom='exit 1'; \
 
400
        @fail= failcom='exit 1'; \
329
401
        for f in x $$MAKEFLAGS; do \
330
402
          case $$f in \
331
403
            *=* | --[!k]*);; \
342
414
          else \
343
415
            local_target="$$target"; \
344
416
          fi; \
345
 
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
 
417
          ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
346
418
          || eval $$failcom; \
347
419
        done; \
348
420
        if test "$$dot_seen" = "no"; then \
350
422
        fi; test -z "$$fail"
351
423
 
352
424
$(RECURSIVE_CLEAN_TARGETS):
353
 
        @failcom='exit 1'; \
 
425
        @fail= failcom='exit 1'; \
354
426
        for f in x $$MAKEFLAGS; do \
355
427
          case $$f in \
356
428
            *=* | --[!k]*);; \
376
448
          else \
377
449
            local_target="$$target"; \
378
450
          fi; \
379
 
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
 
451
          ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
380
452
          || eval $$failcom; \
381
453
        done && test -z "$$fail"
382
454
tags-recursive:
383
455
        list='$(SUBDIRS)'; for subdir in $$list; do \
384
 
          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
 
456
          test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
385
457
        done
386
458
ctags-recursive:
387
459
        list='$(SUBDIRS)'; for subdir in $$list; do \
388
 
          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
 
460
          test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
389
461
        done
390
462
 
391
463
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
393
465
        unique=`for i in $$list; do \
394
466
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
395
467
          done | \
396
 
          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
 
468
          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
397
469
              END { if (nonempty) { for (i in files) print i; }; }'`; \
398
470
        mkid -fID $$unique
399
471
tags: TAGS
400
472
 
401
473
TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
402
474
                $(TAGS_FILES) $(LISP)
403
 
        tags=; \
 
475
        set x; \
404
476
        here=`pwd`; \
405
477
        if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
406
478
          include_option=--etags-include; \
412
484
        list='$(SUBDIRS)'; for subdir in $$list; do \
413
485
          if test "$$subdir" = .; then :; else \
414
486
            test ! -f $$subdir/TAGS || \
415
 
              tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
 
487
              set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
416
488
          fi; \
417
489
        done; \
418
490
        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
421
493
          done | \
422
494
          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
423
495
              END { if (nonempty) { for (i in files) print i; }; }'`; \
424
 
        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
 
496
        shift; \
 
497
        if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
425
498
          test -n "$$unique" || unique=$$empty_fix; \
426
 
          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
427
 
            $$tags $$unique; \
 
499
          if test $$# -gt 0; then \
 
500
            $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
 
501
              "$$@" $$unique; \
 
502
          else \
 
503
            $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
 
504
              $$unique; \
 
505
          fi; \
428
506
        fi
429
507
ctags: CTAGS
430
508
CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
431
509
                $(TAGS_FILES) $(LISP)
432
 
        tags=; \
433
510
        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
434
511
        unique=`for i in $$list; do \
435
512
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
436
513
          done | \
437
514
          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
438
515
              END { if (nonempty) { for (i in files) print i; }; }'`; \
439
 
        test -z "$(CTAGS_ARGS)$$tags$$unique" \
 
516
        test -z "$(CTAGS_ARGS)$$unique" \
440
517
          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
441
 
             $$tags $$unique
 
518
             $$unique
442
519
 
443
520
GTAGS:
444
521
        here=`$(am__cd) $(top_builddir) && pwd` \
445
 
          && cd $(top_srcdir) \
446
 
          && gtags -i $(GTAGS_ARGS) $$here
 
522
          && $(am__cd) $(top_srcdir) \
 
523
          && gtags -i $(GTAGS_ARGS) "$$here"
447
524
 
448
525
distclean-tags:
449
526
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
450
527
 
451
528
distdir: $(DISTFILES)
452
529
        $(am__remove_distdir)
453
 
        test -d $(distdir) || mkdir $(distdir)
 
530
        test -d "$(distdir)" || mkdir "$(distdir)"
454
531
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
455
532
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
456
533
        list='$(DISTFILES)'; \
466
543
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
467
544
          if test -d $$d/$$file; then \
468
545
            dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
 
546
            if test -d "$(distdir)/$$file"; then \
 
547
              find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
 
548
            fi; \
469
549
            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
470
 
              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
 
550
              cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
 
551
              find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
471
552
            fi; \
472
 
            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
 
553
            cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
473
554
          else \
474
 
            test -f $(distdir)/$$file \
475
 
            || cp -p $$d/$$file $(distdir)/$$file \
 
555
            test -f "$(distdir)/$$file" \
 
556
            || cp -p $$d/$$file "$(distdir)/$$file" \
476
557
            || exit 1; \
477
558
          fi; \
478
559
        done
479
 
        list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
 
560
        @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
480
561
          if test "$$subdir" = .; then :; else \
481
562
            test -d "$(distdir)/$$subdir" \
482
563
            || $(MKDIR_P) "$(distdir)/$$subdir" \
483
564
            || exit 1; \
484
 
            distdir=`$(am__cd) $(distdir) && pwd`; \
485
 
            top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
486
 
            (cd $$subdir && \
 
565
          fi; \
 
566
        done
 
567
        @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
 
568
          if test "$$subdir" = .; then :; else \
 
569
            dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
 
570
            $(am__relativize); \
 
571
            new_distdir=$$reldir; \
 
572
            dir1=$$subdir; dir2="$(top_distdir)"; \
 
573
            $(am__relativize); \
 
574
            new_top_distdir=$$reldir; \
 
575
            echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
 
576
            echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
 
577
            ($(am__cd) $$subdir && \
487
578
              $(MAKE) $(AM_MAKEFLAGS) \
488
 
                top_distdir="$$top_distdir" \
489
 
                distdir="$$distdir/$$subdir" \
 
579
                top_distdir="$$new_top_distdir" \
 
580
                distdir="$$new_distdir" \
490
581
                am__remove_distdir=: \
491
582
                am__skip_length_check=: \
 
583
                am__skip_mode_fix=: \
492
584
                distdir) \
493
585
              || exit 1; \
494
586
          fi; \
495
587
        done
496
 
        -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
 
588
        -test -n "$(am__skip_mode_fix)" \
 
589
        || find "$(distdir)" -type d ! -perm -755 \
 
590
                -exec chmod u+rwx,go+rx {} \; -o \
497
591
          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
498
592
          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
499
593
          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
500
 
        || chmod -R a+r $(distdir)
 
594
        || chmod -R a+r "$(distdir)"
501
595
dist-gzip: distdir
502
596
        tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
503
597
        $(am__remove_distdir)
510
604
        tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
511
605
        $(am__remove_distdir)
512
606
 
 
607
dist-xz: distdir
 
608
        tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
 
609
        $(am__remove_distdir)
 
610
 
513
611
dist-tarZ: distdir
514
612
        tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
515
613
        $(am__remove_distdir)
533
631
distcheck: dist
534
632
        case '$(DIST_ARCHIVES)' in \
535
633
        *.tar.gz*) \
536
 
          GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
 
634
          GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
537
635
        *.tar.bz2*) \
538
 
          bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
 
636
          bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
539
637
        *.tar.lzma*) \
540
 
          unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
 
638
          lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
 
639
        *.tar.xz*) \
 
640
          xz -dc $(distdir).tar.xz | $(am__untar) ;;\
541
641
        *.tar.Z*) \
542
642
          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
543
643
        *.shar.gz*) \
544
 
          GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
 
644
          GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
545
645
        *.zip*) \
546
646
          unzip $(distdir).zip ;;\
547
647
        esac
549
649
        mkdir $(distdir)/_build
550
650
        mkdir $(distdir)/_inst
551
651
        chmod a-w $(distdir)
 
652
        test -d $(distdir)/_build || exit 0; \
552
653
        dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
553
654
          && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
554
 
          && cd $(distdir)/_build \
 
655
          && am__cwd=`pwd` \
 
656
          && $(am__cd) $(distdir)/_build \
555
657
          && ../configure --srcdir=.. --prefix="$$dc_install_base" \
556
658
            $(DISTCHECK_CONFIGURE_FLAGS) \
557
659
          && $(MAKE) $(AM_MAKEFLAGS) \
573
675
          && rm -rf "$$dc_destdir" \
574
676
          && $(MAKE) $(AM_MAKEFLAGS) dist \
575
677
          && rm -rf $(DIST_ARCHIVES) \
576
 
          && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
 
678
          && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
 
679
          && cd "$$am__cwd" \
 
680
          || exit 1
577
681
        $(am__remove_distdir)
578
682
        @(echo "$(distdir) archives ready for distribution: "; \
579
683
          list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
580
684
          sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
581
685
distuninstallcheck:
582
 
        @cd $(distuninstallcheck_dir) \
 
686
        @$(am__cd) '$(distuninstallcheck_dir)' \
583
687
        && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
584
688
           || { echo "ERROR: files left after uninstall:" ; \
585
689
                if test -n "$(DESTDIR)"; then \
587
691
                fi ; \
588
692
                $(distuninstallcheck_listfiles) ; \
589
693
                exit 1; } >&2
590
 
distcleancheck: distclean
591
 
        @if test '$(srcdir)' = . ; then \
592
 
          echo "ERROR: distcleancheck can only run from a VPATH build" ; \
593
 
          exit 1 ; \
594
 
        fi
595
 
        @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
596
 
          || { echo "ERROR: files left in build directory after distclean:" ; \
597
 
               $(distcleancheck_listfiles) ; \
598
 
               exit 1; } >&2
599
694
check-am: all-am
600
695
check: check-recursive
601
696
all-am: Makefile
621
716
 
622
717
distclean-generic:
623
718
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
719
        -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
624
720
 
625
721
maintainer-clean-generic:
626
722
        @echo "This command is intended for maintainers to use"
641
737
 
642
738
html: html-recursive
643
739
 
 
740
html-am:
 
741
 
644
742
info: info-recursive
645
743
 
646
744
info-am:
649
747
 
650
748
install-dvi: install-dvi-recursive
651
749
 
 
750
install-dvi-am:
 
751
 
652
752
install-exec-am:
653
753
 
654
754
install-html: install-html-recursive
655
755
 
 
756
install-html-am:
 
757
 
656
758
install-info: install-info-recursive
657
759
 
 
760
install-info-am:
 
761
 
658
762
install-pdf: install-pdf-recursive
659
763
 
 
764
install-pdf-am:
 
765
 
660
766
install-ps: install-ps-recursive
661
767
 
 
768
install-ps-am:
 
769
 
662
770
installcheck-am:
663
771
 
664
772
maintainer-clean: maintainer-clean-recursive
681
789
 
682
790
uninstall-am:
683
791
 
684
 
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
685
 
        install-strip
 
792
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
 
793
        install-am install-strip tags-recursive
686
794
 
687
795
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
688
796
        all all-am am--refresh check check-am clean clean-generic \
689
797
        clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
690
 
        dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
691
 
        distclean distclean-generic distclean-libtool distclean-tags \
692
 
        distcleancheck distdir distuninstallcheck dvi dvi-am html \
693
 
        html-am info info-am install install-am install-data \
694
 
        install-data-am install-dvi install-dvi-am install-exec \
695
 
        install-exec-am install-html install-html-am install-info \
696
 
        install-info-am install-man install-pdf install-pdf-am \
697
 
        install-ps install-ps-am install-strip installcheck \
698
 
        installcheck-am installdirs installdirs-am maintainer-clean \
699
 
        maintainer-clean-generic mostlyclean mostlyclean-generic \
700
 
        mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
701
 
        uninstall uninstall-am
 
798
        dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
 
799
        distcheck distclean distclean-generic distclean-libtool \
 
800
        distclean-tags distcleancheck distdir distuninstallcheck dvi \
 
801
        dvi-am html html-am info info-am install install-am \
 
802
        install-data install-data-am install-dvi install-dvi-am \
 
803
        install-exec install-exec-am install-html install-html-am \
 
804
        install-info install-info-am install-man install-pdf \
 
805
        install-pdf-am install-ps install-ps-am install-strip \
 
806
        installcheck installcheck-am installdirs installdirs-am \
 
807
        maintainer-clean maintainer-clean-generic mostlyclean \
 
808
        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
 
809
        tags tags-recursive uninstall uninstall-am
702
810
 
703
811
 
704
812
distcheck-light:
705
813
        $(MAKE) $(AM_MAKEFLAGS) DISTCHECK_FLAGS="$(DISTCHECK_LIGHT_FLAGS)" distcheck
706
814
 
 
815
# workaround the dist generated files that are also part of the distribution
 
816
# Note that distcleancheck is disabled for now, while waiting for a proper
 
817
# solution, that do not break older unix systems
 
818
#distcleancheck_listfiles = \
 
819
#       find . -type f -exec sh -c 'test -f $(srcdir)/{} || echo {}' ';'
 
820
distcleancheck:
 
821
        @:
 
822
# Force ChangeLog regeneration upon make dist (due to inexistant 'dummy-stamp'),
 
823
# in case it has already been generated previously
 
824
dummy-stamp:
 
825
ChangeLog: tools/svn2cl.authors dummy-stamp
 
826
        svn2cl --group-by-day --include-rev --authors=$< --reparagraph --revision 'HEAD:2332' --output=$@ || \
 
827
                echo "svn2cl failed to generate the ChangeLog. See http://trac.networkupstools.org/projects/nut/timeline" > $@
 
828
 
 
829
@HAVE_ASCIIDOC_TRUE@website:
 
830
@HAVE_ASCIIDOC_TRUE@    cd docs;  $(MAKE) $(AM_MAKEFLAGS) website
 
831
@HAVE_ASCIIDOC_TRUE@    cd docs/man;  $(MAKE) $(AM_MAKEFLAGS) html-man
 
832
@HAVE_ASCIIDOC_TRUE@    cd tools;  $(MAKE) $(AM_MAKEFLAGS) website
 
833
@HAVE_ASCIIDOC_TRUE@    cd docs/website;  $(MAKE) $(AM_MAKEFLAGS) website
 
834
@HAVE_ASCIIDOC_FALSE@website:
 
835
@HAVE_ASCIIDOC_FALSE@   @echo "Not building website since 'asciidoc' was not found."
 
836
 
707
837
build:
708
838
        @echo $(WARN)
709
839
        @echo "Warning: 'make build' is deprecated. Use 'make all' instead."
753
883
setver:
754
884
        @echo "Error: 'make setver' no longer exists."
755
885
        @echo "Edit configure.in to set version number."
 
886
 
756
887
# Tell versions [3.59,3.63) of GNU make to not export all variables.
757
888
# Otherwise a system limit (for SysV at least) may be exceeded.
758
889
.NOEXPORT: