sysutils/swapusage: create port

Very small utility that reports the percentage of swap space that is
used. Report can be piped to a Prometheus textfile without processing.

WWW: https://github.com/aduitsis/freebsd_swapusage

PR:		236979
Submitted by:	Athanasios Douitsis <aduitsis@douitsis.com>
This commit is contained in:
Steve Wills 2019-05-26 19:32:08 +00:00
parent 81fb22a4de
commit f069ace4a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502748
4 changed files with 31 additions and 0 deletions

View file

@ -1284,6 +1284,7 @@
SUBDIR += swapd
SUBDIR += swapexd
SUBDIR += swapmon
SUBDIR += swapusage
SUBDIR += sweeper
SUBDIR += symlinks
SUBDIR += symon

View file

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= swapusage
PORTVERSION= 1.0.0
CATEGORIES= sysutils
MAINTAINER= aduitsis@douitsis.com
COMMENT= Get swap usage on a FreeBSD system
LICENSE= BSD2CLAUSE
GH_ACCOUNT= aduitsis
GH_PROJECT= freebsd_swapusage
USE_GITHUB= yes
INSTALL_TARGET= # empty
PLIST_FILES= bin/swapusage
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/swapusage ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1554155920
SHA256 (aduitsis-freebsd_swapusage-1.0.0_GH0.tar.gz) = c713845bdf217991ff9578bbc4b6c9b27d8635cfa2bcfe920b5fb515f5cacffe
SIZE (aduitsis-freebsd_swapusage-1.0.0_GH0.tar.gz) = 1735

View file

@ -0,0 +1,4 @@
Very small utility that reports the percentage of swap space that is
used. Report can be piped to a Prometheus textfile without processing.
WWW: https://github.com/aduitsis/freebsd_swapusage