- Add rrdcached daemon
- Add license PR: ports/15578 Submitted by: falz <me@falz.net>
This commit is contained in:
parent
8cca378797
commit
626d9c289e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274337
2 changed files with 34 additions and 0 deletions
|
@ -19,8 +19,11 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
|||
xml2:${PORTSDIR}/textproc/libxml2 \
|
||||
pangocairo-1\.0.0:${PORTSDIR}/x11-toolkits/pango
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
CONFLICTS= rrdtool-1.0* rrdtool-1.2*
|
||||
|
||||
USE_RC_SUBR= rrdcached
|
||||
USE_AUTOTOOLS= libtool
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
|
31
databases/rrdtool/files/rrdcached.in
Normal file
31
databases/rrdtool/files/rrdcached.in
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: rrdcached
|
||||
# REQUIRE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following line to /etc/rc.conf to enable rrdcached:
|
||||
#
|
||||
# rrdcached_enable (bool): Set to "NO" by default.
|
||||
# Set to "YES" to enable rrdcached
|
||||
#
|
||||
# rrdcached_flags (str): Set to "" by default.
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=rrdcached
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
# Set defaults
|
||||
: ${rrdcached_enable="NO"}
|
||||
: ${rrdcached_flags="-s www -l /var/run/rrdcached.sock -p /var/run/rrdcached.pid"}
|
||||
|
||||
pidfile=/var/run/${name}.pid
|
||||
command=%%PREFIX%%/bin/${name}
|
||||
|
||||
run_rc_command "$1"
|
Loading…
Reference in a new issue