172383174SJose Luis Duran#!/bin/sh 272383174SJose Luis Duran# 372383174SJose Luis Duran# Copyright (c) 2016 The FreeBSD Foundation 472383174SJose Luis Duran# 572383174SJose Luis Duran# This software was developed by Kurt Lidl under sponsorship from the 672383174SJose Luis Duran# FreeBSD Foundation. 772383174SJose Luis Duran# 872383174SJose Luis Duran# Redistribution and use in source and binary forms, with or without 972383174SJose Luis Duran# modification, are permitted provided that the following conditions 1072383174SJose Luis Duran# are met: 1172383174SJose Luis Duran# 1. Redistributions of source code must retain the above copyright 1272383174SJose Luis Duran# notice, this list of conditions and the following disclaimer. 1372383174SJose Luis Duran# 2. Redistributions in binary form must reproduce the above copyright 1472383174SJose Luis Duran# notice, this list of conditions and the following disclaimer in the 1572383174SJose Luis Duran# documentation and/or other materials provided with the distribution. 1672383174SJose Luis Duran# 1772383174SJose Luis Duran# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1872383174SJose Luis Duran# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1972383174SJose Luis Duran# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2072383174SJose Luis Duran# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2172383174SJose Luis Duran# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2272383174SJose Luis Duran# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2372383174SJose Luis Duran# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2472383174SJose Luis Duran# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2572383174SJose Luis Duran# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2672383174SJose Luis Duran# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2772383174SJose Luis Duran# SUCH DAMAGE. 2872383174SJose Luis Duran# 2972383174SJose Luis Duran# 3072383174SJose Luis Duran 3172383174SJose Luis Duran# PROVIDE: blocklistd 32*79e37421SJose Luis Duran# REQUIRE: netif ipfilter ipfw pf 3372383174SJose Luis Duran 3472383174SJose Luis Duran. /etc/rc.subr 3572383174SJose Luis Duran 3672383174SJose Luis Duranname="blocklistd" 3772383174SJose Luis Durandesc="System blocklist daemon" 3872383174SJose Luis Duranrcvar="blocklistd_enable" 3972383174SJose Luis Durancommand="/usr/sbin/${name}" 4072383174SJose Luis Duranrequired_files="/etc/blocklistd.conf" 4172383174SJose Luis Duran 4272383174SJose Luis Duran# no svcj options needed 4372383174SJose Luis Duran: ${blocklistd_svcj_options:=""} 4472383174SJose Luis Duran 4572383174SJose Luis Duranload_rc_config $name 4672383174SJose Luis Duranrun_rc_command "$1" 47