Skip to content
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

Closed

Conversation

bjacquin
Copy link
Contributor

@bjacquin bjacquin commented Oct 5, 2016

HOMEPAGE="https://deviceatlas.com"
SRC_URI="https://deviceatlas.com/download/api/enterprise/c -> ${MY_P}.zip"

LICENSE="public-domain"
Copy link
Contributor

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?

Copy link
Contributor

@devnexen devnexen Oct 6, 2016

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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 !

Copy link
Contributor Author

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 ?

Copy link
Contributor

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>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

Copy link
Contributor Author

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.

@gktrk
Copy link
Member

gktrk commented Oct 8, 2016

@idl0r

@gktrk gktrk added the assigned PR successfully assigned to the package maintainer(s). label Oct 8, 2016
@monsieurp
Copy link
Member

ping

@idl0r
Copy link
Contributor

idl0r commented Oct 21, 2016

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.

@bjacquin bjacquin force-pushed the dev/beber/haproxy-deviceatlas branch from a7faa29 to 1f2920b Compare November 13, 2016 23:56
@mgorny mgorny added the help wanted The submitter explicitly needs help moving the PR forward. Please help if you can. label Nov 25, 2016

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"
Copy link
Contributor

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"

Copy link
Contributor Author

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"
Copy link
Member

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.

Copy link
Contributor Author

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}]"
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

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 )
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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.

Copy link
Contributor Author

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 )
Copy link
Member

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.

Copy link
Contributor Author

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>
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in last PR

Copy link
Contributor

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),)
Copy link
Member

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?

Copy link
Contributor

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 mgorny added new package The PR is adding a new package. and removed help wanted The submitter explicitly needs help moving the PR forward. Please help if you can. labels Nov 25, 2016
@ulm
Copy link
Member

ulm commented Nov 26, 2016 via email

Copy link
Contributor

@robbat2 robbat2 left a 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

@bjacquin bjacquin force-pushed the dev/beber/haproxy-deviceatlas branch 2 times, most recently from 9f97317 to f4c523f Compare December 14, 2016 00:24
@bjacquin bjacquin force-pushed the dev/beber/haproxy-deviceatlas branch from f4c523f to c24b89e Compare January 11, 2017 01:48
@bjacquin bjacquin force-pushed the dev/beber/haproxy-deviceatlas branch from c24b89e to e25fbc2 Compare January 11, 2017 02:03
@gentoo-repo-qa-bot
Copy link
Collaborator

👍 All QA issues have been fixed!

@bjacquin bjacquin deleted the dev/beber/haproxy-deviceatlas branch January 28, 2017 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). new package The PR is adding a new package.
Projects
None yet
10 participants