mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- forgot somehow to add the cflowd.sh sample startup script $FILESDIR
- bump port revision, since port has now better functionality
This commit is contained in:
parent
46490f4de0
commit
bddf7a3c91
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40351
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= cflowd
|
||||
PORTVERSION= 2-1-b1
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ftp://ftp.caida.org/pub/cflowd/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
36
net-mgmt/cflowd/files/cflowd.sh
Normal file
36
net-mgmt/cflowd/files/cflowd.sh
Normal file
@ -0,0 +1,36 @@
|
||||
#! /bin/sh
|
||||
|
||||
# rc script for cflowd
|
||||
# Andreas Klemm <andreas@FreeBSD.org>, So 25 Mär 2001 12:46:10 CEST
|
||||
# $FreeBSD$
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
[ -x $PREFIX/sbin/cflowdmux -a -s $PREFIX/etc/cflowd.conf ] \
|
||||
&& $PREFIX/sbin/cflowdmux $PREFIX/etc/cflowd.conf \
|
||||
&& echo -n " cflowdmux"
|
||||
sleep 2
|
||||
[ -x $PREFIX/sbin/cflowd -a -s $PREFIX/etc/cflowd.conf ] \
|
||||
&& $PREFIX/sbin/cflowd $PREFIX/etc/cflowd.conf \
|
||||
&& echo -n " cflowd"
|
||||
sleep 2
|
||||
[ -x $PREFIX/sbin/cfdcollect -a -s $PREFIX/etc/cfdcollect.conf ] \
|
||||
&& $PREFIX/sbin/cfdcollect $PREFIX/etc/cfdcollect.conf \
|
||||
&& echo -n " cfdcollect"
|
||||
;;
|
||||
|
||||
'stop')
|
||||
for i in cfdcollect cflowd cflowdmux
|
||||
do
|
||||
sleep 2
|
||||
killall -15 $i && echo "graceful shutdown of $i"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= cflowd
|
||||
PORTVERSION= 2-1-b1
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ftp://ftp.caida.org/pub/cflowd/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
36
net/cflowd/files/cflowd.sh
Normal file
36
net/cflowd/files/cflowd.sh
Normal file
@ -0,0 +1,36 @@
|
||||
#! /bin/sh
|
||||
|
||||
# rc script for cflowd
|
||||
# Andreas Klemm <andreas@FreeBSD.org>, So 25 Mär 2001 12:46:10 CEST
|
||||
# $FreeBSD$
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
'start')
|
||||
[ -x $PREFIX/sbin/cflowdmux -a -s $PREFIX/etc/cflowd.conf ] \
|
||||
&& $PREFIX/sbin/cflowdmux $PREFIX/etc/cflowd.conf \
|
||||
&& echo -n " cflowdmux"
|
||||
sleep 2
|
||||
[ -x $PREFIX/sbin/cflowd -a -s $PREFIX/etc/cflowd.conf ] \
|
||||
&& $PREFIX/sbin/cflowd $PREFIX/etc/cflowd.conf \
|
||||
&& echo -n " cflowd"
|
||||
sleep 2
|
||||
[ -x $PREFIX/sbin/cfdcollect -a -s $PREFIX/etc/cfdcollect.conf ] \
|
||||
&& $PREFIX/sbin/cfdcollect $PREFIX/etc/cfdcollect.conf \
|
||||
&& echo -n " cfdcollect"
|
||||
;;
|
||||
|
||||
'stop')
|
||||
for i in cfdcollect cflowd cflowdmux
|
||||
do
|
||||
sleep 2
|
||||
killall -15 $i && echo "graceful shutdown of $i"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user