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
app-admin/filebeat: new package #2585
Conversation
Filebeat is part of the Beats family by Elasticsearch. It's a lightweight log forwarder to Logstash & Elasticsearch. We already have a binary version of the package in tree, but this non-binary should eventually remove it. Package-Manager: portage-2.3.1
@gentoo/proxy-maint |
S="${BEATS}" | ||
|
||
src_unpack() { | ||
mkdir -p "${ELASTIC}" |
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.
Missing || die
s.
src_unpack() { | ||
mkdir -p "${ELASTIC}" | ||
unpack ${P}.tar.gz | ||
mv beats-${PV} "${BEATS}" |
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.
Ditto.
} | ||
|
||
src_compile() { | ||
export GOPATH="${WORKDIR}" |
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.
Nope. Instead, you should be doing:
cd ${BEATS}/filebeat || die
GOPATH="${WORKDIR}" emake
} | ||
|
||
checkconfig() { | ||
if [ ! -e ${FILEBEAT_CONFIG} ]; then |
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.
Use [[
and ]]
for consistency.
@@ -0,0 +1,5 @@ | |||
#FILEBEAT_USER="" |
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.
If this is meant to be configured by the user, adding some documentation and explaining what these variables are about would be useful.
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
DEPEND="dev-lang/go" |
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.
Also, since there's already a binary version in the tree, installing both versions should be somehow forbidden. Make sure to add !app-admin/filebeat-bin
to DEPEND.
Thank you very much @monsieurp for the review. |
Package-Manager: portage-2.3.1
😞 The QA check for this pull request has found the following issues: Issues inherited from Gentoo (may be modified by PR): |
Filebeat is part of the Beats family by Elasticsearch. It's a
lightweight log forwarder to Logstash & Elasticsearch.
We already have a binary version of the package in tree,
but this non-binary should eventually remove it.
Package-Manager: portage-2.3.1