Created attachment 415508 [details, diff] DeviceAtlas option Haproxy 1.6 came with mobile device detection optional support, hence enabling it via custom USE flag. Can be applied to future 1.6.1 ebuild as well. Hope it s useful.
David, having an ebuild for DeviceAtlas would be a more straight forward option for user. This package is not shipped with Gentoo portage so far. Can we work on that first ?
For sure ! But it is due to the fact you need to register in this page https://deviceatlas.com/deviceatlas-haproxy-module in order to get the source code. Same "problem" applied to the FreeBSD port version I submitted awhile ago https://svnweb.freebsd.org/ports/head/net/haproxy/Makefile?revision=421150&view=markup Kind regards.
Preliminary work can be found on https://github.com/gentoo/gentoo/pull/2487 A small patch was needed in order to link to the .so file created by device-atlas-api-c instead of compiling files from /usr/include (dev-libs/device-atlas-api-c does not install the mentioned .c files but anyway that would result with sandbox violation). It would be great to have a proper 'install' target in device-atlas-api-c cmake files in order to make installation less hacky. May I request this for future release ? dev-libs/device-atlas-api-c does not contain any license file so for now, license is 'public-domain'
Good suggestion about install target will keep it in mind. Cheers.
(In reply to David Carlier from comment #4) > Good suggestion about install target will keep it in mind. Please note that input is requested from you David in the github merge request ;)
The HAProxy parts are in place for 1.6.10 and 1.7 now (along with support for other implementations of device detection: 51Degrees & WURFL). We still need ebuilds for the API/libraries of those device detection libraries, which should be in separate bugs.
Current ebuild is borken, please see https://github.com/gentoo/gentoo/pull/2487 for proper DeviceAtlas implementation. This bug should be reopened. Thanks