New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net-proxy/haproxy: Add support for DeviceAtlas API #2487
Conversation
HOMEPAGE="https://deviceatlas.com" | ||
SRC_URI="https://deviceatlas.com/download/api/enterprise/c -> ${MY_P}.zip" | ||
|
||
LICENSE="public-domain" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really the correct license for this fetch-restricted package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a registration to the website is the only requirement to get the source code as direct redistribution is not allowed, would it be possible to get either this a custom licence text
License
The free of charge offering has a restricted use license, for own usage only; no redistribution or derivative works are permitted. Contact https://www.deviceatlas.com/contact-us to upgrade or to enable usage as part of a service offering.
or like the FreeBSD port
https://svnweb.freebsd.org/ports/head/net/haproxy/Makefile?revision=421150&view=markup
an equivalent to the RESTRICTED ?
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devnexen LICENSE is specified as "public-domain" since there is no explicit license in the source code or in the zip file available to download. I believe the license you are quoting will not be enough for legal purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough then anyway by registering to the website you agree to the statement above. Otherwise the rest is very ok to me thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well my point was, would you mind adding an explicit license so we can replace public-domain ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<hat type="Licenses">
I can't find any actual license text on their website either
all-rights-reserved is available in tree:
LICENSE=all-rights-reserved
.
You also must add RESTRICT='fetch mirror bindist'
</hat>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devnexen I read that URL already; it's just instructions for building HAProxy really.
This is a description of a license, but is NOT a license text itself:
The free of charge offering has a restricted use license, for own usage only; no redistribution or derivative works are permitted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix in last PR, thanks for looking at this.
ping |
I didn't get to it yet. I know there's a bug about it already and IIRC I even got a mail. I need to take some time to take a look at it. I am also not sure re licensing/restriction etc. |
a7faa29
to
1f2920b
Compare
|
||
DESCRIPTION="API to detect devices based on the User-Agent HTTP header" | ||
HOMEPAGE="https://deviceatlas.com" | ||
SRC_URI="https://deviceatlas.com/download/api/enterprise/c -> ${MY_P}.zip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a manual-download-only distfile, this should be JUST:
SRC_URI="${MY_P}.zip"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in last PR. Thanks
KEYWORDS="~amd64 ~arm ~ppc ~x86" | ||
IUSE="doc examples" | ||
|
||
RESTRICT="fetch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put this below dependencies. While specific order of variables is not strictly requires, it helps other people read your ebuilds and reduces the risk that someone will miss something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in last PR
|
||
RESTRICT="fetch" | ||
|
||
CDEPEND="dev-libs/libpcre[${MULTILIB_USEDEP}]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use one-letter dependency-like variables, to avoid potential collisions in the future. In this case, you don't need an additional variable, just put RDEPEND first and assing DEPEND from it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense, fixed in last PR
} | ||
|
||
multilib_src_install_all() { | ||
default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strictly speaking, default
is emake install+einstalldocs. The former you probably don't want here, the latter you do further on. So remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense, fixed in last PR
default | ||
|
||
if use doc ; then | ||
HTML_DOCS=( Documentation ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can make this variable local.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in last PR
|
||
if use examples ; then | ||
insinto /usr/share/doc/${P} | ||
doins examples/daexutil.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is equivalent to dodoc ...
since EAPI 5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a typo, fixed in last PR. Thanks
doins examples/daexutil.h | ||
doins examples/example{0,1,2,3}.c | ||
doins examples/util.c | ||
DOC+=( examples/EXAMPLES.USAGE ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is not used. You probably meant DOCS
. However, you should note that appending to DOCS
won't work as you expect it to, so you either need to list all the files or call dodoc
explicitly. In fact, it'd probably make sense to just put one big dodoc
call here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was part of the typo as well. Thanks for spotting this.
<email>bertrand@jacquin.bzh</email> | ||
<name>Bertrand Jacquin</name> | ||
</maintainer> | ||
<longdescription> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add proxy-maint project here as well, unless you have some other developer who wants to commit for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in last PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjacquin what last PR; I don't see a new PR with just dev-libs/device-atlas-api-c
DEVICEATLAS_SRC = | ||
DEVICEATLAS_INC = $(DEVICEATLAS_SRC) | ||
DEVICEATLAS_LIB = $(DEVICEATLAS_SRC) | ||
+ifeq ($(DEVICEATLAS_LIB),) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit suspicious to me. Do I understand correctly that the else
branch was used to compile DeviceAtlas in place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjacquin reping for this part. Also is this still needed for 1.6.10 / 1.7 releases?
@mgorny requested changes on this pull request.
------------------------------------------------------------------------------
In dev-libs/device-atlas-api-c/device-atlas-api-c-2.1.ebuild:
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="doc examples"
+
+RESTRICT="fetch"
Please put this below dependencies. While specific order of
variables is not strictly requires, it helps other people read your
ebuilds and reduces the risk that someone will miss something.
Huh? RESTRICT belongs in the second variable block (namely LICENSE,
SLOT, KEYWORDS, IUSE, RESTRICT), see skel.ebuild. Especially, LICENSE
and RESTRICT should stay close together, not be separated by a
potentially long list of dependencies.
So the only issue I see here is that the empty line before RESTRICT
should be deleted. (And of course, "bindist" must be added as
mentioned earlier.)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have implemented the HAProxy parts for Device indentification: DeviceAtlas, 51Degrees, WURFL; please abandon this PR and generate a new PR for just dev-libs/device-atlas-api-c
9f97317
to
f4c523f
Compare
f4c523f
to
c24b89e
Compare
…Agent HTTP header Package-Manager: portage-2.3.0
Bug: https://bugs.gentoo.org/show_bug.cgi?id=564160 Package-Manager: portage-2.3.0
c24b89e
to
e25fbc2
Compare
👍 All QA issues have been fixed! |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=564160