From d8258c35d5ca21f08beceadd365816353f5695b8 Mon Sep 17 00:00:00 2001 From: Marty R Date: Wed, 15 Oct 2014 21:30:25 -0700 Subject: 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 --- .../patches/001-fix-missing-libmath-flags.patch | 22 +++++++++++++++++ net/nut/patches/010-ignore_automake_k_bug.patch | 28 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 net/nut/patches/001-fix-missing-libmath-flags.patch create mode 100644 net/nut/patches/010-ignore_automake_k_bug.patch (limited to 'net/nut/patches') 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)' ;; \ -- cgit v1.2.3