mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op
29 lines
543 B
Bash
29 lines
543 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: yaunc
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# yaunc_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable yaunc.
|
|
# yaunc_config (path): Set to %%PREFIX%%/etc/yaunc.conf
|
|
# by default.
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="yaunc"
|
|
rcvar=yaunc_enable
|
|
|
|
command=%%PREFIX%%/bin/${name}
|
|
|
|
load_rc_config $name
|
|
|
|
: ${yaunc_enable="NO"}
|
|
: ${yaunc_config="%%PREFIX%%/etc/yaunc.conf"}
|
|
|
|
command_args="-f $yaunc_config"
|
|
|
|
run_rc_command "$1"
|