mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
83eb2c3700
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
28 lines
515 B
Bash
28 lines
515 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: adsuck
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable adsuck:
|
|
#
|
|
# adsuck_enable (bool): Set to NO by default.
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="adsuck"
|
|
rcvar=adsuck_enable
|
|
|
|
command=%%PREFIX%%/sbin/${name}
|
|
extra_commands="reload"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${adsuck_enable="NO"}
|
|
: ${adsuck_flags="-c /var/adsuck -f resolv.conf -r regex Hosts.blc Hosts.pub Hosts.rsk Hosts.trc hosts.small hosts.yoyo"}
|
|
|
|
run_rc_command "$1"
|