Bug 250174

Summary: new port: sysutils/p5-BSD-getloadavg: a perl interface to getloadavg(3)
Product: Ports & Packages Reporter: Gert Doering <gert>
Component: Individual Port(s)Assignee: Matthias Andree <mandree>
Status: Closed FIXED    
Severity: Affects Only Me CC: mandree
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
shar attachment containing the port subdirectory none

Description Gert Doering 2020-10-07 09:29:44 UTC
Created attachment 218586 [details]
shar attachment containing the port subdirectory

Good morning.

This module provides a lightweight interface to getloadavg(3) from perl.

It has been submitted previously, in 2006, in PR #104832, and that PR was closed because alternatives exist (sysutils/p5-Sys-CpuLoad).

I'm trying again (with the current version), because p5-Sys-CpuLoad is much heavier (bringing in two extra dependent modules etc.) so all our software uses BSD::getloadavg, which comes with no extra dependencies and does the same job.

I have tried to find guidelines about "different packages with somewhat overlapping functionality", but couldn't find any specifics what FreeBSD does in such cases.

thanks.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-12-09 21:43:39 UTC
A commit references this bug:

Author: mandree
Date: Wed Dec  9 21:43:06 UTC 2020
New revision: 557388
URL: https://svnweb.freebsd.org/changeset/ports/557388

Log:
  new port: sysutils/p5-BSD-getloadavg: a perl interface to getloadavg(3)

  This module allows you to access load average from perl scripts
  without invoking uptime(1).

  WWW: https://metacpan.org/release/BSD-getloadavg

  Versus the original contribution, I've made two changes:
  - dropped .packlist from the pkg-plist (complaints in poudriere
    and in live system)
  - dropped PORTREVISION=1 - a new port starts out with
    PORTREVISION=0, and since that is a default we normally omit
    it on ports that stand alone.

  PR:		250174
  Submitted by:	Gert D?ring <gert@greenie.muc.de>

Changes:
  head/sysutils/Makefile
  head/sysutils/p5-BSD-getloadavg/
  head/sysutils/p5-BSD-getloadavg/Makefile
  head/sysutils/p5-BSD-getloadavg/distinfo
  head/sysutils/p5-BSD-getloadavg/pkg-descr
  head/sysutils/p5-BSD-getloadavg/pkg-plist
Comment 2 Matthias Andree freebsd_committer freebsd_triage 2020-12-09 21:43:47 UTC
Thanks for the contribution, please review the automatic commit log for more commentary.