From 92863eb437f0ef2d15d471ae6f98b8202b35b0cc Mon Sep 17 00:00:00 2001 From: fhajny Date: Thu, 31 Jul 2014 10:31:51 +0000 Subject: Control script relies on $HOME, so 'su -m' will not cut it. Changed to just su in the rc.d script and adjusted the SMF manifest similarly. Bump PKGREVISION. Fixes pkg/49052. --- chat/ejabberd/Makefile | 3 ++- chat/ejabberd/files/ejabberd.sh | 10 +++++----- chat/ejabberd/files/smf/manifest.xml | 3 +++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/chat/ejabberd/Makefile b/chat/ejabberd/Makefile index 21cddb64e01..2aebae8315b 100644 --- a/chat/ejabberd/Makefile +++ b/chat/ejabberd/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.42 2014/07/30 09:45:38 fhajny Exp $ +# $NetBSD: Makefile,v 1.43 2014/07/31 10:31:51 fhajny Exp $ DISTNAME= ejabberd-14.07 +PKGREVISION= 1 CATEGORIES= chat MASTER_SITES= http://www.process-one.net/downloads/ejabberd/${PKGVERSION_NOREV}/ EXTRACT_SUFX= .tgz diff --git a/chat/ejabberd/files/ejabberd.sh b/chat/ejabberd/files/ejabberd.sh index 76f75d5f334..a3403de9a31 100644 --- a/chat/ejabberd/files/ejabberd.sh +++ b/chat/ejabberd/files/ejabberd.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: ejabberd.sh,v 1.3 2013/10/11 13:32:25 fhajny Exp $ +# $NetBSD: ejabberd.sh,v 1.4 2014/07/31 10:31:51 fhajny Exp $ # $FreeBSD: ejabberd.sh.in,v 1.1 2005/08/28 15:51:48 vsevolod Exp $ # # PROVIDE: ejabberd @@ -29,7 +29,7 @@ EJABBERDCTL=@PREFIX@/sbin/ejabberdctl ejabberd_status() { - su -m $ejabberd_user -c "$EJABBERDCTL status >/dev/null" + su $ejabberd_user -c "$EJABBERDCTL status >/dev/null" } ejabberd_start() @@ -39,7 +39,7 @@ ejabberd_start() echo " already running." exit 1 else - su -m $ejabberd_user -c "$EJABBERDCTL start" + su $ejabberd_user -c "$EJABBERDCTL start" fi echo "$name." } @@ -47,7 +47,7 @@ ejabberd_start() ejabberd_stop() { echo -n "Stopping $name: " - if su -m $ejabberd_user -c "$EJABBERDCTL stop"; then + if su $ejabberd_user -c "$EJABBERDCTL stop"; then cnt=0 while ejabberd_status; do cnt=`expr $cnt + 1` @@ -68,7 +68,7 @@ ejabberd_reload() { echo -n "Restarting $name: " if ejabberd_status; then - su -m $ejabberd_user -c "$EJABBERDCTL restart" + su $ejabberd_user -c "$EJABBERDCTL restart" else ejabberd_start fi diff --git a/chat/ejabberd/files/smf/manifest.xml b/chat/ejabberd/files/smf/manifest.xml index e14a37c4c17..0f5408dd840 100644 --- a/chat/ejabberd/files/smf/manifest.xml +++ b/chat/ejabberd/files/smf/manifest.xml @@ -23,6 +23,9 @@ + + + -- cgit v1.2.3