mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
ce822e5b44
- Set a list of these scripts to USE_RC_SUBR - Use SUB_FILES for pkg-message - Use PLIST_SUB to substitute EBNETD_RUNDIR macro in pkg-plist - Remove obsolete WWW url from pkg-descr - Rename some patch files to pet portlint PR: ports/176866 Submitted by: Yasuhiro KIMURA (maintainer)
35 lines
718 B
Bash
35 lines
718 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: ebnetd
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable ebnetd:
|
|
# ebnetd_enable (bool): Set to "NO" by default.
|
|
# Set it to "YES" to enable ebnetd.
|
|
# ebnetd_flags (str): Set to "" by default.
|
|
# Extra flags passed to start ebnetd.
|
|
|
|
. /etc/rc.subr
|
|
|
|
# ebnetd
|
|
name=ebnetd
|
|
rcvar=ebnetd_enable
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
pidfile="/var/run/ebnetd/ebnd.pid"
|
|
required_dirs="/var/run/ebnetd"
|
|
required_files=%%PREFIX%%/etc/ebnetd.conf
|
|
|
|
ebnetd_enable=${ebnetd_enable:-"NO"}
|
|
ebnetd_flags=${ebnetd_flags:-""}
|
|
|
|
sig_reload=SIGHUP
|
|
extra_commands="reload"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|