pkgsrc/chat/anope/files/anope.sh
nia 9aa8cfdf16 anope: Update to 2.0.7
The notable changes includes:

Fix not sending login data on successful NickServ GROUP
Fix m_httpd to not consider headers to be case sensitive
Add InspIRCd 3 protocol support
Add 'n' email token for use in the email change template
Add logging for NickServ UNGROUP
Fix setting swhois on UnrealIRCd
Add nickserv/recover permission to allow opers to recover other users
Fix superadmin not being removed when deopering
Fix setting nickserv access list in webcpanel
Add support for post-handshake SASL in Unreal 4.2.2+
Add logging for channel memo deletionso
2019-12-08 03:55:05 +00:00

37 lines
925 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: anope.sh,v 1.3 2019/12/08 03:55:05 nia Exp $
#
# PROVIDE: anope
# REQUIRE: DAEMON
. /etc/rc.subr
name="anope"
rcvar=${name}
command="@PREFIX@/bin/anope"
command_args="--confdir=@PKG_SYSCONFDIR@"
command_args="${command_args} --dbdir=@PREFIX@/anope/data"
command_args="${command_args} --localedir=@PREFIX@/@PKGLOCALEDIR@/locale"
command_args="${command_args} --logdir=@PREFIX@/anope/logs"
command_args="${command_args} --modulesdir=@PREFIX@/lib/anope"
required_files="@PKG_SYSCONFDIR@/anope/services.conf"
pidfile="@PREFIX@/anope/${name}.pid"
anope_user="@ANOPE_USER@"
anope_group="@ANOPE_GROUP@"
extra_commands="support"
support_cmd="anope_support"
anope_support()
{
if [ ! -f ${required_files} ]; then
warn "${required_files} does not exist."
return 1;
fi
su -m ${anope_user}:${anope_group} -c "${command} ${command_args} --support"
}
load_rc_config $name
run_rc_command "$1"