Bug 250174 - new port: sysutils/p5-BSD-getloadavg: a perl interface to getloadavg(3)
Summary: new port: sysutils/p5-BSD-getloadavg: a perl interface to getloadavg(3)
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: Matthias Andree
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-07 09:29 UTC by Gert Doering
Modified: 2020-12-09 21:43 UTC (History)
1 user (show)

See Also:


Attachments
shar attachment containing the port subdirectory (1.36 KB, patch)
2020-10-07 09:29 UTC, Gert Doering
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 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 2020-12-09 21:43:47 UTC
Thanks for the contribution, please review the automatic commit log for more commentary.