mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
New port: net/hsflowd:
The Host sFlow agent exports physical and virtual server performance metrics using the sFlow protocol. The agent provides scalable, multi-vendor, multi-OS performance monitoring with minimal impact on the systems being monitored. WWW: http://host-sflow.sourceforge.net/ Feature safe: yes
This commit is contained in:
parent
01b1da6177
commit
ba90b3874b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308443
@ -229,6 +229,7 @@
|
||||
SUBDIR += hs-sendfile
|
||||
SUBDIR += hs-simple-sendfile
|
||||
SUBDIR += hs-socks
|
||||
SUBDIR += hsflowd
|
||||
SUBDIR += htpdate
|
||||
SUBDIR += http_ping
|
||||
SUBDIR += httping
|
||||
|
36
net/hsflowd/Makefile
Normal file
36
net/hsflowd/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= hsflowd
|
||||
PORTVERSION= 1.22.2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= SF/host-sflow/REL-1_22/ \
|
||||
http://mirrors.rit.edu/zi/
|
||||
|
||||
MAINTAINER= zi@FreeBSD.org
|
||||
COMMENT= Agent that exports metrics using the sFlow protocol
|
||||
|
||||
MAKE_JOBS_UNSAFE= no
|
||||
SUB_FILES= pkg-message
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
MAKE_ENV= BINDIR=${PREFIX}/sbin INITDIR=${PREFIX}/etc/rc.d \
|
||||
CONFDIR=${ETCDIR}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' \
|
||||
-e '/scripts\/hsflowd /d' \
|
||||
-e 's|hsflowd.conf|hsflowd.conf.sample|g' \
|
||||
${WRKSRC}/src/FreeBSD/Makefile ${WRKSRC}/src/sflow/Makefile \
|
||||
${WRKSRC}/src/json/Makefile
|
||||
@${REINPLACE_CMD} -e 's|/etc|${ETCDIR}|g' ${WRKSRC}/src/FreeBSD/hsflowd.h
|
||||
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
|
||||
${WRKSRC}/src/FreeBSD/scripts/hsflowd
|
||||
@${MV} ${WRKSRC}/src/FreeBSD/scripts/hsflowd.conf \
|
||||
${WRKSRC}/src/FreeBSD/scripts/hsflowd.conf.sample
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${ETCDIR}/hsflowd.conf ]; then \
|
||||
${CP} ${ETCDIR}/hsflowd.conf.sample ${ETCDIR}/hsflowd.conf ; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/hsflowd/distinfo
Normal file
2
net/hsflowd/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (hsflowd-1.22.2.tar.gz) = 648806afa02cb5588dd69aba54be0d5810f56af112003a861df0aadd6c28611c
|
||||
SIZE (hsflowd-1.22.2.tar.gz) = 1841547
|
29
net/hsflowd/files/hsflowd.in
Normal file
29
net/hsflowd/files/hsflowd.in
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# init(1) startup script for hsflowd daemon
|
||||
#
|
||||
# description: Host sFlow Daemon
|
||||
# processname: hsflowd
|
||||
# pidfile: /var/run/hsflowd.pid
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
|
||||
name=hsflowd
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
hsflowd_enable=${hsflowd_enable:-"NO"}
|
||||
|
||||
stop_postcmd="hsflowd_postcmd"
|
||||
|
||||
command="%%PREFIX%%/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
hsflowd_postcmd() {
|
||||
rm -f $pidfile
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
4
net/hsflowd/files/pkg-message.in
Normal file
4
net/hsflowd/files/pkg-message.in
Normal file
@ -0,0 +1,4 @@
|
||||
Please edit %%ETCDIR%%/hsflowd.conf based on your needs and add the following
|
||||
to /etc/rc.conf:
|
||||
|
||||
hsflowd_enable="YES"
|
6
net/hsflowd/pkg-descr
Normal file
6
net/hsflowd/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
The Host sFlow agent exports physical and virtual server performance
|
||||
metrics using the sFlow protocol. The agent provides scalable,
|
||||
multi-vendor, multi-OS performance monitoring with minimal impact on
|
||||
the systems being monitored.
|
||||
|
||||
WWW: http://host-sflow.sourceforge.net/
|
6
net/hsflowd/pkg-plist
Normal file
6
net/hsflowd/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $FreeBSD$
|
||||
etc/hsflowd/hsflowd.conf.sample
|
||||
sbin/hsflowd
|
||||
@dirrmtry etc/hsflowd
|
||||
@unexec if cmp -s %D/etc/hsflowd/hsflowd.conf %D/etc/hsflowd.conf.sample; then rm -f %D/etc/hsflowd.conf; fi
|
||||
@unexec if [ -d %%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files."; fi
|
Loading…
Reference in New Issue
Block a user