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.
1. Add a $FreeBSD Id
2. Remove the spurious FreeBSD KEYWORD
3. s#/etc/rc.subr#%%RC_SUBR%%#
4. s#/usr/local#%%PREFIX%%#
5. Move load_rc_config to after the method definition and move
the default _enable assignment after it.
6. The _stop method was a less efficient version of the default, so remove it
reliable way. If any of the source interfaces fails, ifdepd sets all
destination interfaces to state down. If all source interfaces are active,
ifdepd sets all destination interfaces to state up.
For example, it can be used with carp(4) to provide failover functionality
on gateways/firewalls.
ifdepd is a simple replacement for ifstated and was written because of problems
with ifstated.
PR: ports/78819
Submitted by: Alexander Hausner <alex@hugo.bmg.gv.at>