libcoap: add new package

This patch adds the libcoap implementation [0]. The most common use of
this library is to use it with contiki os. That's one reason why the
current buildsystem isn't "well". The added patches replace the current
buildsystem with a better one. The replacement had the goal to made less
changes to the current libcoap implementation.

The libcoap implementation do a include of autoconf "config.h" header
file in the API headers. The patches adds a new libcoap_config.h with a
LIBCOAP_ prefix to all defines and replace the use of these defines in
the API headers. That's too not well but offers a workaround to make a
clean install of this library and other autotools software can use it.

I found in the current release some things which are broken like some
disable features in configure call and others things which are not well.
I don't fix it in the patches, I will try to send the fixes to the
maintainer of this project and hopefully it's fixed in the next release.

Libcoap is still the best known C implementation of the coap protocol,
but also it's a bleeding edge implementation of a draft [1].

[0] http://sourceforge.net/projects/libcoap/
[1] http://tools.ietf.org/html/draft-ietf-core-coap-18

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
[mol: simplify first patch]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
libcgi: add some patches with fixes, partly queued upstream

Upstream migrated the old code base to github in 2011:
https://github.com/rafaelsteil/libcgi – I got the old ptxdist patches
merged in 2012 and two fixes for mem leakes as well. Meanwhile I made
pull requests for Michael's patch from last year and another fix of
mine. However I doubt the maintainer will do another release soon or
even at all, so I add my patches here, too. I'm sorry, I squeezed the
ptxdist patches into one upstream, so Robert lost his credit there, but
this is not topic of this series discussion. ;-)

Patch series is reorganized with ptx magic according to Michael's
suggestions.

Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
libusb: drop libusb and use libusbx

This patch drops the libusb support and add the libusbx instead.

We can do that because libusb and libusbx offers the same API, original
text from libusbx project website:

"If you are an existing user of libusb, you don't have to change
anything. Just download the libusbx library and use it in your code. The
library is designed as a drop in replacement for libusb, so please give
it a try. If you don't like it, which we very much doubt, you can always
revert..."

Another point is that libusbx website says that the libusb project is
somehow died and will not longer release new releases:

"The reason for the fork is that, despite having dedicated members,
libusb has still not been able to produce a new release for the past 2
years. When a project fails to produce regular releases, we consider
that you, its user, are paying the ultimate price. This is because it
means that patches and new feature are being witheld and you end up
wasting your time."

This patch fix also a few bugs which I detected:

i) switch to "--disable-static", otherwise it was "--enable-shared
   --enable-static"

ii) correct use of --disable-log and --enable-debug-log, there was an
   option for these two configure flags but also was a static
   "--disable-log --disable-debug-log" in the configure call, which
   makes no sense.

iii) Fix Jürgen Beisert's mail address.

iv) cleanup and remove _ENV and _PATH setting.

new features:

i) Add LIBUSB_SYSTEM_LOG which could enable --enable-system-log flag.

ii) also adding some new disable flag --disable-tests-build

iii) I add "--disable-udev" there but we should have a --enable-udev...
    The old one has no kind of udev support and I got a recursive
    dependency detection because udev-legacy needs usbutils which needs
    libusb. We should look at this in the near future.

iv) change "libusb" entry to "libusbx"

v) rename LIBUSB_DISBALE_LOG to LIBUSB_LOG and change logic.

I also keep the patch from libusb and port it to libusbx because I saw
that libusbx uses also pthreads.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
libgmp: version bump 4.2.4 -> 6.0.0a

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
file: upgrade to 5.18

Patch series dropped, because applied upstream meanwhile. This fixes
security issues and regressions.

Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
usbutils: version bump 004 -> 007

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
migrate: add patters for PTXCONF_LIBUSB_DISABLE_LOG -> PTXCONF_LIBUSB_LOG

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>