diff options
author | Marty R <martin.p.rowe@gmail.com> | 2014-10-15 21:30:25 -0700 |
---|---|---|
committer | Marty R <martin.p.rowe@gmail.com> | 2014-10-15 21:30:25 -0700 |
commit | d8258c35d5ca21f08beceadd365816353f5695b8 (patch) | |
tree | afea7096f6103872a72d6d57f2e467e05c4605ac /net/nut/patches | |
parent | 1f22b19d04042771102acec84a99e93496c018f1 (diff) |
nut: New package for Network UPS Tools
An older version of nut is in oldpackages. This commit is based on that
package and bumps the version to the latest release along with unifying
the server and client packages. More build options are provided for any
custom configuration but the defaults provide a working client and
server install which only needs a UPS driver. Drivers still build as
individual packages to minimise bloat. SSL support has also been added.
Signed-off-by: Martin Rowe <cyanidium@users.noreply.github.com>
Diffstat (limited to 'net/nut/patches')
-rw-r--r-- | net/nut/patches/001-fix-missing-libmath-flags.patch | 22 | ||||
-rw-r--r-- | net/nut/patches/010-ignore_automake_k_bug.patch | 28 |
2 files changed, 50 insertions, 0 deletions
diff --git a/net/nut/patches/001-fix-missing-libmath-flags.patch b/net/nut/patches/001-fix-missing-libmath-flags.patch new file mode 100644 index 000000000..88996be6e --- /dev/null +++ b/net/nut/patches/001-fix-missing-libmath-flags.patch @@ -0,0 +1,22 @@ +--- a/drivers/Makefile.am ++++ b/drivers/Makefile.am +@@ -171,7 +171,7 @@ tripplite_usb_SOURCES = tripplite_usb.c + tripplite_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm + + bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c usb-common.c +-bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) ++bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm + + blazer_usb_SOURCES = blazer.c blazer_usb.c libusb.c usb-common.c + blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm +--- a/drivers/Makefile.in ++++ b/drivers/Makefile.in +@@ -785,7 +785,7 @@ usbhid_ups_LDADD = $(LDADD_DRIVERS) $(LI + tripplite_usb_SOURCES = tripplite_usb.c libusb.c usb-common.c + tripplite_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm + bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c usb-common.c +-bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) ++bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm + blazer_usb_SOURCES = blazer.c blazer_usb.c libusb.c usb-common.c + blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm + nutdrv_atcl_usb_SOURCES = nutdrv_atcl_usb.c usb-common.c diff --git a/net/nut/patches/010-ignore_automake_k_bug.patch b/net/nut/patches/010-ignore_automake_k_bug.patch new file mode 100644 index 000000000..8d3645d09 --- /dev/null +++ b/net/nut/patches/010-ignore_automake_k_bug.patch @@ -0,0 +1,28 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -431,12 +431,6 @@ distclean-libtool: + # (2) otherwise, pass the desired values on the `make' command line. + $(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ +- for f in x $$MAKEFLAGS; do \ +- case $$f in \ +- *=* | --[!k]*);; \ +- *k*) failcom='fail=yes';; \ +- esac; \ +- done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ +@@ -456,12 +450,6 @@ $(RECURSIVE_TARGETS): + + $(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ +- for f in x $$MAKEFLAGS; do \ +- case $$f in \ +- *=* | --[!k]*);; \ +- *k*) failcom='fail=yes';; \ +- esac; \ +- done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |