annotate files/turnserver.in @ 34:691d748c5811

More comments on PROMETHEUS in the Makefile
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 17 Mar 2025 12:24:40 +0100
parents f271ad092ec7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 #!/bin/sh
19
f271ad092ec7 The original turnserver v4.5.2 from current ports tree as of 2021-09-01
Franz Glasner <fzglas.hg@dom66.de>
parents: 1
diff changeset
2
1
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
3 # PROVIDE: turnserver
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
4 # REQUIRE: LOGIN
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
5 # KEYWORD: shutdown
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
6 #
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
7 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
8 # to enable this service:
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9 #
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
10 # turnserver_enable (bool): Set to NO by default.
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
11 # Set it to YES to enable turnserver.
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12 # turnserver_config (path): Set to %%PREFIX%%/etc/turnserver.conf
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13 # by default.
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
15 . /etc/rc.subr
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17 name=turnserver
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
18 rcvar=turnserver_enable
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 load_rc_config $name
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
22 : ${turnserver_enable:=no}
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
23 : ${turnserver_config=%%PREFIX%%/etc/turnserver.conf}
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
24
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
25 command="%%PREFIX%%/bin/${name}"
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
26 command_args="--daemon -c ${turnserver_config}"
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27 required_files=${turnserver_config}
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
28
1a06bf451a04 ADD: net/turnserver: the original upstream version 4.5.1.1_2 from the ports tree as of 2020-03-26
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
29 run_rc_command "$1"