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

app-admin/filebeat: new package #2585

Closed
wants to merge 2 commits into from
Closed

Conversation

hydrapolic
Copy link
Contributor

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

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
@hydrapolic
Copy link
Contributor Author

@gktrk
Copy link
Member

gktrk commented Oct 19, 2016

@gentoo/proxy-maint

@gktrk gktrk added bugfix new package The PR is adding a new package. assigned PR successfully assigned to the package maintainer(s). labels Oct 19, 2016
S="${BEATS}"

src_unpack() {
mkdir -p "${ELASTIC}"
Copy link
Member

Choose a reason for hiding this comment

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

Missing || dies.

src_unpack() {
mkdir -p "${ELASTIC}"
unpack ${P}.tar.gz
mv beats-${PV} "${BEATS}"
Copy link
Member

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

@monsieurp monsieurp Oct 22, 2016

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

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

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

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.

@hydrapolic
Copy link
Contributor Author

Thank you very much @monsieurp for the review.

Package-Manager: portage-2.3.1
@gentoo-repo-qa-bot
Copy link
Collaborator

😞 The QA check for this pull request has found the following issues:

Issues inherited from Gentoo (may be modified by PR):
https://qa-reports.gentoo.org/output/gentoo-ci/3f7ca69/output.html#x11-base/xorg-drivers

@hydrapolic hydrapolic deleted the filebeat branch November 4, 2016 21:03
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
4 participants