ports/127348: [PATCH] net-im/ejabberd: Fix rc script's status command
Ulrich Spoerlein
uspoerlein at gmail.com
Sat Sep 13 10:50:02 UTC 2008
>Number: 127348
>Category: ports
>Synopsis: [PATCH] net-im/ejabberd: Fix rc script's status command
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Sep 13 10:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ulrich Spoerlein
>Release: FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
>Description:
- Make /usr/local/etc/rc.d/ejabberd status work
- Make /usr/local/etc/rc.d/ejabberd reload work
- Make /usr/local/etc/rc.d/ejabberd restart actually restart all of ejabberd processes
- Remove unnecessary chdir()
- pet portlint(1)
Port maintainer (shaun at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
Try running /usr/local/etc/rc.d/ejabberd status, it will complain about unknown directive.
>Fix:
--- ejabberd-1.1.4_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-im/ejabberd/Makefile,v
retrieving revision 1.27
diff -u -p -u -r1.27 Makefile
--- Makefile 6 Jun 2008 13:51:43 -0000 1.27
+++ Makefile 13 Sep 2008 10:29:30 -0000
@@ -7,7 +7,7 @@
PORTNAME= ejabberd
PORTVERSION= 1.1.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-im
MASTER_SITES= http://www.process-one.net/downloads/ejabberd/${PORTVERSION}/ \
http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
@@ -15,12 +15,12 @@ MASTER_SITES= http://www.process-one.net
MAINTAINER= shaun at FreeBSD.org
COMMENT= Free and Open Source distributed fault-tolerant Jabber server
-OPTIONS= ODBC "Enable ODBC support" off
-
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
+OPTIONS= ODBC "Enable ODBC support" off
+
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_ICONV= yes
Index: files/ejabberd.sh.in
===================================================================
RCS file: /home/ncvs/ports/net-im/ejabberd/files/ejabberd.sh.in,v
retrieving revision 1.4
diff -u -p -u -r1.4 ejabberd.sh.in
--- files/ejabberd.sh.in 8 May 2006 12:37:38 -0000 1.4
+++ files/ejabberd.sh.in 13 Sep 2008 10:29:30 -0000
@@ -13,7 +13,7 @@
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
-ejabberd_enable="${ejabberd_enable-NO}"
+: ejabberd_enable=${ejabberd_enable="NO"}
. %%RC_SUBR%%
@@ -21,12 +21,10 @@ name=ejabberd
rcvar=`set_rcvar`
reload_cmd="ejabberd_reload"
-restart_cmd="ejabberd_reload"
start_cmd="ejabberd_start"
status_cmd="ejabberd_status"
stop_cmd="ejabberd_stop"
-
-cd %%PREFIX%% # Why is this needed!?
+extra_commands="reload status"
# Include ejabberd defaults if available
[ -f %%PREFIX%%/etc/ejabberd/ejabberd.defaults ] && . %%PREFIX%%/etc/ejabberd/ejabberd.defaults
--- ejabberd-1.1.4_3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list