Fix the check command to the rcscript.

While there, disable the transport in the example configuration file.

Lots of feedback and OK ajacoutot@, jasper@ on earlier version.
This commit is contained in:
sebastia 2014-10-20 09:22:49 +00:00
parent d904710a2a
commit dd983e4f0c
3 changed files with 24 additions and 9 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.18 2014/01/25 10:07:59 espie Exp $
# $OpenBSD: Makefile,v 1.19 2014/10/20 09:22:49 sebastia Exp $
COMMENT = XMPP transport/gateway
DISTNAME = spectrum-1.4.8
CATEGORIES = net
REVISION = 0
REVISION = 1
HOMEPAGE = http://spectrum.im/
MASTER_SITES = https://github.com/downloads/hanzz/libtransport/

View File

@ -1,9 +1,21 @@
$OpenBSD: patch-spectrum_cfg,v 1.3 2013/08/16 10:06:14 sthen Exp $
$OpenBSD: patch-spectrum_cfg,v 1.4 2014/10/20 09:22:49 sebastia Exp $
Fix paths in var for OpenBSD usage
Example service disabled by default
--- spectrum.cfg.orig Sat Jun 11 14:17:44 2011
+++ spectrum.cfg Thu Aug 15 15:16:05 2013
--- spectrum.cfg.orig Sat Jun 11 15:17:44 2011
+++ spectrum.cfg Sun Oct 19 12:03:43 2014
@@ -8,8 +8,8 @@
################################################################################
[service]
-# enable this spectrum instance
-enable=1
+# set to 1 to enable this spectrum instance
+enable=0
# one of: aim, facebook, gg, icq, irc, msn, myspace, qq, simple, xmpp, yahoo
protocol=icq
@@ -30,7 +30,7 @@ password=secret
# component port
port=5347

View File

@ -1,19 +1,22 @@
#!/bin/sh
#
# $OpenBSD: spectrum.rc,v 1.3 2011/03/20 11:20:16 ajacoutot Exp $
# $OpenBSD: spectrum.rc,v 1.4 2014/10/20 09:22:49 sebastia Exp $
daemon="${TRUEPREFIX}/sbin/spectrumctl"
daemon_flags="--config-dir=${SYSCONFDIR}/spectrum"
. /etc/rc.d/rc.subr
pexp="${TRUEPREFIX}/sbin/spectrum .*\.cfg$"
rc_start() {
${rcexec} "${daemon} start"
${rcexec} "${daemon} ${daemon_flags} start"
}
rc_stop() {
${daemon} stop
${daemon} ${daemon_flags} stop
}
rc_reload() {
${daemon} reload
${daemon} ${daemon_flags} reload
}
rc_cmd $1