aboutsummaryrefslogtreecommitdiff
path: root/net-im/prosody
diff options
context:
space:
mode:
authorDavid Thiel <lx@FreeBSD.org>2010-06-13 00:47:57 +0000
committerDavid Thiel <lx@FreeBSD.org>2010-06-13 00:47:57 +0000
commit2f2a66103c8f1553a1b0ff9efa223bee7fb7c797 (patch)
treec56dd1ab71e0bf6b4a7444812d9ca0332a34dd63 /net-im/prosody
parent885dba08c553b3c94926e07b453b67a0d42ed67d (diff)
downloadports-2f2a66103c8f1553a1b0ff9efa223bee7fb7c797.tar.gz
ports-2f2a66103c8f1553a1b0ff9efa223bee7fb7c797.zip
Notes
Diffstat (limited to 'net-im/prosody')
-rw-r--r--net-im/prosody/Makefile2
-rw-r--r--net-im/prosody/files/prosody.in21
2 files changed, 12 insertions, 11 deletions
diff --git a/net-im/prosody/Makefile b/net-im/prosody/Makefile
index e5c77bec7727..1cdcaa27671b 100644
--- a/net-im/prosody/Makefile
+++ b/net-im/prosody/Makefile
@@ -7,7 +7,7 @@
PORTNAME= prosody
PORTVERSION= 0.5.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-im
MASTER_SITES= http://prosody.im/downloads/source/
diff --git a/net-im/prosody/files/prosody.in b/net-im/prosody/files/prosody.in
index e3502447b4cc..3c14232335ce 100644
--- a/net-im/prosody/files/prosody.in
+++ b/net-im/prosody/files/prosody.in
@@ -1,13 +1,16 @@
#!/bin/sh
+# $FreeBSD$
+#
# PROVIDE: prosody
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# prosody_enable (bool): Set to NO by default.
# Set it to YES to enable Prosody
-#
. /etc/rc.subr
@@ -19,19 +22,17 @@ command="%%PREFIX%%/bin/prosodyctl"
load_rc_config $name
prosody=${prosody_enable-"NO"}
-command_args="$1"
-status_cmd=prosody_status_cmd
-stop_cmd=prosody_stop_cmd
+extra_commands="status"
-prosody_stop_cmd()
-{
- /usr/local/bin/prosodyctl stop
-}
+start_cmd="prosody_cmd start"
+stop_cmd="prosody_cmd stop"
+restart_cmd="$stop_cmd; $start_cmd"
+status_cmd="prosody_cmd status"
-prosody_status_cmd()
+prosody_cmd()
{
- %%PREFIX%%/bin/prosodyctl status
+ %%PREFIX%%/bin/prosodyctl $1
}
run_rc_command "$1"