From d177342e7fe83ecb537d61218d7c474c5cab012e Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Sat, 18 Oct 2003 16:59:17 +0000 Subject: Initial version, closes #29548. --- net-analyzer/darkstat/files/darkstat-confd | 4 ++++ net-analyzer/darkstat/files/darkstat-init | 20 ++++++++++++++++++++ net-analyzer/darkstat/files/digest-darkstat-2.5 | 1 + 3 files changed, 25 insertions(+) create mode 100644 net-analyzer/darkstat/files/darkstat-confd create mode 100644 net-analyzer/darkstat/files/darkstat-init create mode 100644 net-analyzer/darkstat/files/digest-darkstat-2.5 (limited to 'net-analyzer/darkstat/files') diff --git a/net-analyzer/darkstat/files/darkstat-confd b/net-analyzer/darkstat/files/darkstat-confd new file mode 100644 index 000000000000..017822ee122a --- /dev/null +++ b/net-analyzer/darkstat/files/darkstat-confd @@ -0,0 +1,4 @@ +# Config file for /etc/init.d/darkstat +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/files/darkstat-confd,v 1.1 2003/10/18 16:59:12 zul Exp $ +# Set preferred options here +DARKSTAT_OPTS="-i ppp0" diff --git a/net-analyzer/darkstat/files/darkstat-init b/net-analyzer/darkstat/files/darkstat-init new file mode 100644 index 000000000000..f708a6a5bb51 --- /dev/null +++ b/net-analyzer/darkstat/files/darkstat-init @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +depend() { + need net +} + +start() { + ebegin "Starting darkstat" + start-stop-daemon --start --quiet --exec /usr/sbin/darkstat -- --detach -d /var/spool/darkstat ${DARKSTAT_OPTS} >/dev/null + eend $? +} + +stop() { + ebegin "Stopping darkstat" + start-stop-daemon --stop --quiet --retry 5 --exec /usr/sbin/darkstat + eend $? +} diff --git a/net-analyzer/darkstat/files/digest-darkstat-2.5 b/net-analyzer/darkstat/files/digest-darkstat-2.5 new file mode 100644 index 000000000000..8f0f639ff62c --- /dev/null +++ b/net-analyzer/darkstat/files/digest-darkstat-2.5 @@ -0,0 +1 @@ +MD5 4e1b67a55b6aa2c1242f40ee61df7a40 darkstat-2.5.tar.gz 203834 -- cgit v1.2.3-65-gdbad