mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +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.
33 lines
696 B
Bash
33 lines
696 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: noip
|
|
# REQUIRE: NETWORKING SYSLOG DAEMON
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# noip_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable noip.
|
|
# noip_config (path): Set to %%PREFIX%%/etc/no-ip2.conf by default.
|
|
# noip_flags: Set to -c %%PREFIX%%/etc/no-ip2.conf by default.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="noip"
|
|
rcvar=noip_enable
|
|
|
|
command="%%PREFIX%%/bin/noip2"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${noip_enable="NO"}
|
|
: ${noip_config="%%PREFIX%%/etc/no-ip2.conf"}
|
|
: ${noip_flags="-c $noip_config"}
|
|
: ${noip_user="noip"}
|
|
: ${noip_group="noip"}
|
|
|
|
required_files=${noip_config}
|
|
|
|
run_rc_command "$1"
|