aboutsummaryrefslogtreecommitdiffstats
path: root/irc/anope/files
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-06-19 21:03:29 +0800
committermat <mat@FreeBSD.org>2014-06-19 21:03:29 +0800
commit2e972fac7b8a36ef46cf424ffef60911edaf5152 (patch)
treef94ecf746239fe88d1e422cdb4570e2a9ab0ff04 /irc/anope/files
parent32e4656d9b92811b72a10a3f687e39b8c946a154 (diff)
downloadfreebsd-ports-gnome-2e972fac7b8a36ef46cf424ffef60911edaf5152.tar.gz
freebsd-ports-gnome-2e972fac7b8a36ef46cf424ffef60911edaf5152.tar.zst
freebsd-ports-gnome-2e972fac7b8a36ef46cf424ffef60911edaf5152.zip
- Update to 1.8.9
- Stage - Cleanup rc script - Take [1] Approved by: maintainer [1] Sponsored by: Absolight
Diffstat (limited to 'irc/anope/files')
-rw-r--r--irc/anope/files/anope.in16
1 files changed, 9 insertions, 7 deletions
diff --git a/irc/anope/files/anope.in b/irc/anope/files/anope.in
index 124e3947dd84..f4b6aa18ac9a 100644
--- a/irc/anope/files/anope.in
+++ b/irc/anope/files/anope.in
@@ -1,29 +1,31 @@
#!/bin/sh
#
+# $FreeBSD$
+#
# PROVIDE: anope
# REQUIRE: LOGIN mysql
+# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable anope:
-#anope_enable="YES"
+# anope_enable=YES
#
# Also, to prevent running anope as root You may use
# anope_user="nobody"
# and
-# anope_chroot="%%PREFIX%%/share/anope"
+# anope_chdir="%%PREFIX%%/share/anope"
#
. /etc/rc.subr
-name="anope"
+name=anope
rcvar=anope_enable
-command=%%PREFIX%%/libexec/anope/services
-
-# set defaults
load_rc_config $name
-: ${anope_enable="NO"}
+command=%%PREFIX%%/libexec/anope/services
+
+anope_enable=${anope_enable:-"NO"}
run_rc_command "$1"