Bug 211844 - [NEW PORT] databases/libzbxpgsql: PostgreSQL monitoring module for zabbix-agent
Summary: [NEW PORT] databases/libzbxpgsql: PostgreSQL monitoring module for zabbix-agent
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: Matthew Seaman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-14 20:01 UTC by Martin Waschbüsch
Modified: 2016-08-16 08:02 UTC (History)
1 user (show)

See Also:


Attachments
shar archive of new port (3.60 KB, application/x-shar)
2016-08-14 20:01 UTC, Martin Waschbüsch
no flags Details
shar archive of new port (3.57 KB, application/x-shar)
2016-08-15 18:10 UTC, Martin Waschbüsch
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Waschbüsch 2016-08-14 20:01:39 UTC
Created attachment 173672 [details]
shar archive of new port

Port of libzbxpgsql providing comprehensive monitoring of PostgreSQL servers using a
natively compiled Zabbix agent module, written in C.

The module enables discovery and monitoring of tablespaces, databases,
namespaces, tables, indexes, etc.

A preconfigured Zabbix Template is also included for convenience.
Comment 1 Martin Waschbüsch 2016-08-14 20:02:52 UTC
Passes portlint -AC and poudriere, both on an amd64 10.3 box.
Comment 2 Matthew Seaman freebsd_committer freebsd_triage 2016-08-15 16:05:16 UTC
There are a number of problems with the port as stands, which would be
picked up by 'poudriere testport' (ie. so poudriere runs the developmer mode QA checks)

* You've got both a pkg-plist file and PLIST_FILES defined, which leads to 
  duplicated entries in the plist.
* You don't need the @dir entry -- pkg(8) will create any directories it
  needs to so it can install all the files in the plist.
* ${NONEXISTENT} in {BUILD,RUN}_DEPENDS is an error.

On the first point, I just deleted pkg-plist and had PLIST_FILES defined like so:

PLIST_FILES=    lib/libzbxpgsql.so \
                @sample share/examples/libzbxpgsql/template_postgresql_server.xml
Comment 3 Martin Waschbüsch 2016-08-15 16:24:05 UTC
Hi (In reply to Matthew Seaman from comment #2)
Hi Matthew,

thanks for looking this over and your comments - very helpful!
While the first two observations make sense to me, the third one does not:

In Section 5.8.10 of the Porter's Handbook (https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-depend.html), it says:

To depend on another port unconditionally, use the variable ${NONEXISTENT}.
So, why do you consider this an error?

Thanks a lot for your help!

Martin
Comment 4 Martin Waschbüsch 2016-08-15 18:10:14 UTC
Created attachment 173708 [details]
shar archive of new port

poudriere testport now runs without issues
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-08-16 07:58:20 UTC
A commit references this bug:

Author: matthew
Date: Tue Aug 16 07:57:22 UTC 2016
New revision: 420269
URL: https://svnweb.freebsd.org/changeset/ports/420269

Log:
  This project provides comprehensive monitoring of PostgreSQL servers using a
  natively compiled Zabbix agent module, written in C.

  The module enables discovery and monitoring of tablespaces, databases,
  namespaces, tables, indexes, etc.

  A preconfigured Zabbix Template is also included for your convenience.

  WWW: http://cavaliercoder.com/libzbxpgsql/

  PR:		211844
  Submitted by:	Martin Waschbuesch <martin@waschbuesch.de>

Changes:
  head/databases/Makefile
  head/databases/libzbxpgsql/
  head/databases/libzbxpgsql/Makefile
  head/databases/libzbxpgsql/distinfo
  head/databases/libzbxpgsql/files/
  head/databases/libzbxpgsql/files/patch-src_libzbxpgsql.c
  head/databases/libzbxpgsql/pkg-descr
  head/databases/libzbxpgsql/pkg-message
  head/databases/libzbxpgsql/pkg-plist
Comment 6 commit-hook freebsd_committer freebsd_triage 2016-08-16 08:01:22 UTC
A commit references this bug:

Author: matthew
Date: Tue Aug 16 08:00:53 UTC 2016
New revision: 49286
URL: https://svnweb.freebsd.org/changeset/doc/49286

Log:
  Add entry for Martin Waschbuesch <martin@waschbuesch.de>

  PR:		211844

Changes:
  head/en_US.ISO8859-1/articles/contributors/contrib.additional.xml
Comment 7 Matthew Seaman freebsd_committer freebsd_triage 2016-08-16 08:02:18 UTC
Committed, thanks!