diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-16 19:04:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-16 19:04:02 +0000 |
commit | 1cd859fecd3b1fdbca7465e269436f80384aeee5 (patch) | |
tree | 90c244a7558bf0c33017bbfdd2e0985ea14fa621 | |
parent | 3eab27426aa39497d87a9fb768fd860f924e10be (diff) | |
download | pfsense-packages-1cd859fecd3b1fdbca7465e269436f80384aeee5.tar.gz pfsense-packages-1cd859fecd3b1fdbca7465e269436f80384aeee5.tar.bz2 pfsense-packages-1cd859fecd3b1fdbca7465e269436f80384aeee5.zip |
Adding darkstat pacakge.
-rw-r--r-- | packages/darkstat/darkstat.sh | 22 | ||||
-rw-r--r-- | packages/darkstat/darkstat.xml | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/packages/darkstat/darkstat.sh b/packages/darkstat/darkstat.sh new file mode 100644 index 00000000..a7706142 --- /dev/null +++ b/packages/darkstat/darkstat.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +rc_start() { + /usr/local/sbin/darkstat --detach +} + +rc_stop() { + killall darkstat +} + +case $1 in + start) + rc_start + ;; + stop) + rc_stop + ;; + restart) + rc_stop + rc_start + ;; +esac diff --git a/packages/darkstat/darkstat.xml b/packages/darkstat/darkstat.xml new file mode 100644 index 00000000..1db6a795 --- /dev/null +++ b/packages/darkstat/darkstat.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8" ?> +<packagegui> + <title>Diagnostics: Darkstat</title> + <name>Darkstat</name> + <version>3.0</version> + <menu> + <name>Darkstat</name> + <tooltiptext>Access Darkstat</tooltiptext> + <section>Diagnostics</section> + <url>http://$myurl:666</url> + </menu> + <additional_files_needed> + <prefix>/usr/local/etc/rc.d/</prefix> + <chmod>0755</chmod> + <item>http://www.pfsense.com/packages/config/darkstat/darkstat.sh</item> + </additional_files_needed> + <service> + <name>Darkstat</name> + <rcfile>darkstat.sh</rcfile> + <executable>darkstat</executable> + </service> +</packagegui> |