Updated to current code. Added patch to include strings.h for NetBSD.
Fix patch-aa (diff file paths were incorrect). Package still fails during
build. From ChangeLog:

  Fix Solaris build
  Fix testminiwget.sh for BSD
  Fixed Makefile for *BSD
  Update Makefile to use JNAerator version 0.11
  Fix testminiwget.sh for use with dash
  Use $(DESTDIR) in Makefile
  Fix testminiwget with no IPv6 support
  Rename all include guards to not clash with C99 (7.1.3 Reserved identifiers).
  Added -e option to upnpc program (set description for port mappings)
  Python 3 support (thanks to Christopher Foo)
  Fix a memory link in UPNP_GetValidIGD()
  Try to handle scope id in link local IPv6 URL under MS Windows
  Disable HAS_IP_MREQN on DragonFly BSD
  GetUPNPUrls() now inserts scope into link-local IPv6 addresses
  More error return checks in upnpc.c
  #define MINIUPNPC_GET_SRC_ADDR enables receivedata() to get scope_id
  parseURL() now parses IPv6 addresses scope
  new parameter for miniwget() : IPv6 address scope
  increment API_VERSION to 9
  fixed CMakeLists.txt
  Improvements in testminiwget.sh
  Cleanup settings of CFLAGS in Makefile
  Fix signed/unsigned integer comparaisons
  Allow to specify protocol with TCP or UDP for -A option
  Only try to fetch XML description once in UPNP_GetValidIGD()
  Added -ansi flag to compilation, and fixed C++ comments to ANSI C comments.
  minor improvements to minihttptestserver.c
  upnperrors.c returns valid error string for unrecognized error codes
  make minihttptestserver listen on loopback interface instead of 0.0.0.0
  Maven installation thanks to Alexey Kuznetsov
  Replace WIN32 macro by _WIN32
  Fixes in java wrappers thanks to Alexey Kuznetsov :
    https://github.com/axet/miniupnp/tree/fix-javatest/miniupnpc
  Make and install .deb packages (python) thanks to Alexey Kuznetsov :
    https://github.com/axet/miniupnp/tree/feature-debbuild/miniupnpc
  The multicast interface can now be specified by name with IPv4.
  Install man page
  added header to Port Mappings list in upnpc.c
  Makefile : make clean now removes jnaerator generated files.
  MINIUPNPC_VERSION in miniupnpc.h (updated by make)
  added rootdescURL to UPNPUrls structure.