Bug 221436 - net-mgmt/riemann: Update 0.2.14
Summary: net-mgmt/riemann: Update 0.2.14
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Danilo G. Baio
URL: https://github.com/riemann/riemann/bl...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-12 10:16 UTC by Dave Cottlehuber
Modified: 2017-09-01 00:20 UTC (History)
2 users (show)

See Also:
dbaio: maintainer-feedback+


Attachments
v1 patch (3.83 KB, patch)
2017-08-12 10:16 UTC, Dave Cottlehuber
dch: maintainer-approval+
Details | Diff
v2 valid svn diff (3.83 KB, patch)
2017-08-12 12:08 UTC, Dave Cottlehuber
dch: maintainer-approval+
Details | Diff
riemann-simple.patch (4.52 KB, patch)
2017-08-31 18:52 UTC, Danilo G. Baio
no flags Details | Diff
v3 patch with Danilos' changes and even simpler pid management (4.72 KB, patch)
2017-08-31 22:43 UTC, Dave Cottlehuber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cottlehuber freebsd_committer freebsd_triage 2017-08-12 10:16:53 UTC
Created attachment 185314 [details]
v1 patch

# QA

- portlint OK
- poudriere OK in the matrix (10 & 11, vs i386 & amd64)

# commit message

net-mgmt/riemann: update 0.2.12 to 0.2.14

upstream changes:

- speed improvements
- support microsecond resolution internally and in GPB wire format
- kafka, netuitive, telegraph, msteams plugins added
- elasticsearch, telegram, pushover plugins updated 

full details at https://github.com/riemann/riemann/blob/master/CHANGES.markdown

port changes:

- move pids to /var/run/riemann/ so we have a pid for daemon(8) and riemann
- improve SIGHUP handling with new pid dir arrangement
- ensure daemon(8) invocation has matching title in ps(1) output
- bump lowest JAVA_VERSION to 1.8+ missed from last release
Comment 1 Dave Cottlehuber freebsd_committer freebsd_triage 2017-08-12 12:08:20 UTC
Created attachment 185316 [details]
v2 valid svn diff
Comment 2 Danilo G. Baio freebsd_committer freebsd_triage 2017-08-12 17:55:55 UTC
Hi Dave.

Thanks for your work.

One doubt in the Makefile.

> RIEMANN_USER?=  ${PORTNAME}
> RIEMANN_GROUP?= ${PORTNAME}
> 
> .if ${RIEMANN_USER} == "${PORTNAME}"
> USERS=  ${PORTNAME}
> .endif
> .if ${RIEMANN_GROUP} == "${PORTNAME}"
> GROUPS= ${PORTNAME}
> .endif

Are there some reason for this?

Regards.
Comment 3 Dave Cottlehuber freebsd_committer freebsd_triage 2017-08-30 12:28:48 UTC
sorry for the delay, I've been on vacation.

TBH this section would have been copied from whatever JVM port I originally used
as a template - this was my first port. I don't see any issue with removing it
and just using riemann/riemann as std group and port. Is there an alternative
solution you'd recommend?
Comment 4 Danilo G. Baio freebsd_committer freebsd_triage 2017-08-31 02:46:22 UTC

(In reply to Dave Cottlehuber from comment #3)


Hi Dave.
So I'll just simplify this.
Thanks for the feedback.
Comment 5 Danilo G. Baio freebsd_committer freebsd_triage 2017-08-31 18:52:58 UTC
Created attachment 185953 [details]
riemann-simple.patch

Take a look if this patch is ok for you, the idea is to keep Makefile simple because riemann is not a MASTER_PORT.
Comment 6 Dave Cottlehuber freebsd_committer freebsd_triage 2017-08-31 22:43:05 UTC
Created attachment 185965 [details]
v3 patch with Danilos' changes and even simpler pid management

Thanks Danilo. I like your new uid/gid approach, its much more readable.

For pidfile management, just a clarification: we need to be able to SIGHUP the
JVM directly, to allow reloading the configuration, as daemon(8) doesn't
propagate this signal down.

Now that I am using the pkill approach to identify the correct JVM process,
limited by group, we can just use a single pidfile for daemon(8).

Does this look ok to you? "works for me here"..
Comment 7 commit-hook freebsd_committer freebsd_triage 2017-09-01 00:08:41 UTC
A commit references this bug:

Author: dbaio
Date: Fri Sep  1 00:07:49 UTC 2017
New revision: 449053
URL: https://svnweb.freebsd.org/changeset/ports/449053

Log:
  net-mgmt/riemann: Update 0.2.14

  Bump lowest JAVA_VERSION to 1.8+ missed from the last release and
  simplify port because it's not a master port.

  PR:		221436
  Submitted by:	Dave Cottlehuber <dch@skunkwerks.at> (maintainer)

Changes:
  head/net-mgmt/riemann/Makefile
  head/net-mgmt/riemann/distinfo
  head/net-mgmt/riemann/files/riemann.in
  head/net-mgmt/riemann/pkg-plist
Comment 8 Danilo G. Baio freebsd_committer freebsd_triage 2017-09-01 00:20:41 UTC
Committed, thanks!