diff options
author | mm <mm@FreeBSD.org> | 2008-06-20 19:57:30 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2008-06-20 19:57:30 +0800 |
commit | f5248cf6d5c3cbb7009ad0112f4aea2f25a3d917 (patch) | |
tree | 4a766da555155b37b011c573aa79d37c8ba5efa7 /net-im/jabberd/files | |
parent | c35304a4d04c3dd21ccd65d14b820cc47386b502 (diff) | |
download | freebsd-ports-gnome-f5248cf6d5c3cbb7009ad0112f4aea2f25a3d917.tar.gz freebsd-ports-gnome-f5248cf6d5c3cbb7009ad0112f4aea2f25a3d917.tar.zst freebsd-ports-gnome-f5248cf6d5c3cbb7009ad0112f4aea2f25a3d917.zip |
- Add runtime dependency on perl
- Improve startup script
- Bump PORTREVISION
Diffstat (limited to 'net-im/jabberd/files')
-rw-r--r-- | net-im/jabberd/files/jabberd.in | 22 | ||||
-rw-r--r-- | net-im/jabberd/files/patch-tools-jabberd.in | 21 |
2 files changed, 29 insertions, 14 deletions
diff --git a/net-im/jabberd/files/jabberd.in b/net-im/jabberd/files/jabberd.in index ee69c736dc78..6526adc8c992 100644 --- a/net-im/jabberd/files/jabberd.in +++ b/net-im/jabberd/files/jabberd.in @@ -22,21 +22,25 @@ jabberd_user=${jabberd_user-"%%JABBER_USER%%"} name="jabberd" rcvar=`set_rcvar` +command_interpreter="%%PERL%%" command="${prefix}/bin/jabberd" -command_args="&" -procname="${prefix}/bin/router" +command_args="-b" +stop_postcmd=jabberd_post_stopcmd load_rc_config $name -pidfile="${jabberd_chdir}/router.pid" +jabberd_post_stopcmd() +{ + for file in c2s resolver router s2s sm; do + rm -f ${jabberd_chdir}/$file.pid + done +} case "$1" in - stop|faststop|onestop) - echo "Stopping Jabber2" - killall -u ${jabberd_user} jabberd c2s resolver router s2s sm - for file in c2s resolver router s2s sm; do - rm -f ${jabberd_chdir}/$file.pid - done + forcestop) + echo "Stopping jabberd." + killall -u ${jabberd_user} c2s resolver router s2s sm + jabberd_post_stopcmd ;; *) run_rc_command "$1" diff --git a/net-im/jabberd/files/patch-tools-jabberd.in b/net-im/jabberd/files/patch-tools-jabberd.in index 00c37af3de79..ae11dd7d64db 100644 --- a/net-im/jabberd/files/patch-tools-jabberd.in +++ b/net-im/jabberd/files/patch-tools-jabberd.in @@ -1,6 +1,17 @@ ---- tools/jabberd.in.orig Wed Jun 22 22:32:05 2005 -+++ tools/jabberd.in Sat Oct 7 16:27:19 2006 -@@ -28,8 +28,7 @@ +--- tools/jabberd.in.orig 2008-05-22 17:36:30.000000000 +0200 ++++ tools/jabberd.in 2008-06-20 13:24:34.000000000 +0200 +@@ -1,9 +1,4 @@ +-#!/bin/sh +-#-*-Perl-*- +- +-exec perl -w -x $0 "$@" +- +-#!perl ++#!%%PERL%% + + ############################################################################## + # +@@ -27,8 +22,7 @@ my $Bin = "@bindir@"; my $VERSION = "@VERSION@"; my $config_dir = "@sysconfdir@"; @@ -10,7 +21,7 @@ my $debug = 0; my $daemon = 0; my $select = IO::Select->new(); -@@ -43,13 +42,20 @@ +@@ -42,13 +36,20 @@ # Process the command line arguments #----------------------------------------------------------------------------- my %opts; @@ -32,7 +43,7 @@ $debug = 1 if exists($opts{D}); $daemon = 1 if exists($opts{b}); -@@ -123,6 +129,7 @@ +@@ -113,6 +114,7 @@ &debug("jabberd","stdout","debug on\n"); &debug("jabberd","stdout","version($VERSION)\n"); &debug("jabberd","stdout","config_dir($config_dir)\n"); |