mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
istatd is a daemon serving statistics to your iStat iPhone application
from Linux, Solaris & FreeBSD. istatd collects data such as CPU, memory, network and disk usage and keeps the history. Once connecting from the iPhone and entering the lock code this data will be sent to the iPhone and shown in fancy graphs. WWW: http://code.google.com/p/istatd/ Submitted by: Babak Farrokhi <farrokhi at FreeBSD.org>
This commit is contained in:
parent
c4b0d49ac0
commit
d1b4b165e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245105
@ -366,6 +366,7 @@
|
||||
SUBDIR += isomaster
|
||||
SUBDIR += isomd5sum
|
||||
SUBDIR += ispman
|
||||
SUBDIR += istatd
|
||||
SUBDIR += jailadmin
|
||||
SUBDIR += jailctl
|
||||
SUBDIR += jailer
|
||||
|
37
sysutils/istatd/Makefile
Normal file
37
sysutils/istatd/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# New ports collection makefile for: istatd
|
||||
# Date created: 2009-12-01
|
||||
# Whom: Babak Farrokhi <farrokhi@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= istatd
|
||||
PORTVERSION= 0.5.4
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= GOOGLE_CODE
|
||||
|
||||
MAINTAINER= farrokhi@FreeBSD.org
|
||||
COMMENT= Daemon for iStat iPhone application
|
||||
|
||||
LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
MAN1= istatd.1
|
||||
MAN5= istat.conf.5
|
||||
|
||||
PLIST_FILES= bin/istatd etc/istat.conf-dist
|
||||
SUB_FILES+= pkg-message
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/istatd ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/istatd ${PREFIX}/etc/rc.d
|
||||
${INSTALL_DATA} ${WRKSRC}/resource/istat.conf ${PREFIX}/etc/istat.conf-dist
|
||||
${INSTALL_MAN} ${WRKSRC}/resource/istatd.1 ${MAN1PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/resource/istat.conf.5 ${MAN5PREFIX}/man/man5
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
3
sysutils/istatd/distinfo
Normal file
3
sysutils/istatd/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (istatd-0.5.4.tar.gz) = e2906d3b71a003c2e06bf1cfa99d34e1
|
||||
SHA256 (istatd-0.5.4.tar.gz) = 454a5d9a04e8af4c22875adf962e52d7e4a35b808ccc3e249dd45b7e3b716f0a
|
||||
SIZE (istatd-0.5.4.tar.gz) = 147932
|
28
sysutils/istatd/files/istatd.in
Normal file
28
sysutils/istatd/files/istatd.in
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: istatd
|
||||
# REQUIRE: LOGIN
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# istatd_enable (bool): Set to NO by default.
|
||||
# Set it to YES to enable istatd.
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="istatd"
|
||||
rcvar=${name}_enable
|
||||
|
||||
command=%%PREFIX%%/bin/${name}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${istatd_enable="NO"}
|
||||
: ${istatd_config="%%PREFIX%%/etc/istat.conf"}
|
||||
|
||||
command_args="-d -c $istatd_config"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
21
sysutils/istatd/files/patch-main.cpp
Normal file
21
sysutils/istatd/files/patch-main.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- main.cpp.orig
|
||||
+++ main.cpp
|
||||
@@ -97,11 +97,11 @@
|
||||
|
||||
string cf_network_addr = arguments.get("a", config.get("network_addr", "0.0.0.0"));
|
||||
string cf_network_port = arguments.get("p", config.get("network_port", "5109"));
|
||||
- string cf_server_user = arguments.get("u", config.get("server_user", "istat"));
|
||||
- string cf_server_group = arguments.get("g", config.get("server_group", "istat"));
|
||||
- string cf_server_pid = arguments.get("pid", config.get("server_pid", "/var/run/istat/istatd.pid"));
|
||||
+ string cf_server_user = arguments.get("u", config.get("server_user", "nobody"));
|
||||
+ string cf_server_group = arguments.get("g", config.get("server_group", "nobody"));
|
||||
+ string cf_server_pid = arguments.get("pid", config.get("server_pid", "/var/run/istatd.pid"));
|
||||
string cf_server_socket = arguments.get("socket", config.get("server_socket", "/tmp/istatd.sock"));
|
||||
- string cf_cache_dir = arguments.get("cache", config.get("cache_dir", "/var/cache/istat"));
|
||||
+ string cf_cache_dir = arguments.get("cache", config.get("cache_dir", "/var/db/istatd"));
|
||||
|
||||
#ifdef HAVE_LIBKSTAT
|
||||
if(-1 == kstat_init()) return 1;
|
6
sysutils/istatd/files/pkg-message.in
Normal file
6
sysutils/istatd/files/pkg-message.in
Normal file
@ -0,0 +1,6 @@
|
||||
================================================================================
|
||||
|
||||
Please copy %%PREFIX%%/etc/istat.conf-dist to %%PREFIX%%/etc/istat.conf and
|
||||
change necessary variables before starting the daemon.
|
||||
|
||||
================================================================================
|
7
sysutils/istatd/pkg-descr
Normal file
7
sysutils/istatd/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
istatd is a daemon serving statistics to your iStat iPhone application
|
||||
from Linux, Solaris & FreeBSD. istatd collects data such as CPU, memory,
|
||||
network and disk usage and keeps the history. Once connecting from the
|
||||
iPhone and entering the lock code this data will be sent to the iPhone
|
||||
and shown in fancy graphs.
|
||||
|
||||
WWW: http://code.google.com/p/istatd/
|
Loading…
Reference in New Issue
Block a user