Import irc/thales version 1.0_2
[dports.git] / irc / thales / files / thales.in
1 #!/bin/sh
2 #
3 # $FreeBSD: ports/irc/thales/files/thales.in,v 1.2 2012/11/17 05:58:30 svnexp Exp $
4 #
5
6 # PROVIDE: thales
7 # REQUIRE: NETWORKING SERVERS
8 # BEFORE: DAEMON
9 # KEYWORD: shutdown
10
11 #
12 # Add the following line to /etc/rc.conf to enable Thales:
13 # thales_enable (bool): Set to "NO" by default.
14 #                       Set it to "YES" to enable Thales
15 #
16
17 . /etc/rc.subr
18
19 name="thales"
20 rcvar=thales_enable
21
22 command="%%PREFIX%%/sbin/thales"
23
24 [ -z "$thales_enable" ] && thales_enable="NO"
25
26 required_files="%%PREFIX%%/etc/thales.conf"
27
28 load_rc_config $name
29 run_rc_command "$1"