[docs] Update FreeBSD install scripts

- Add required protobuf-c package
- Remove version numbers so we don't need to keep them updated
This commit is contained in:
ejurgensen
2021-09-01 17:08:46 +02:00
parent 7584e6377f
commit a18c73d732
2 changed files with 6 additions and 5 deletions

25
scripts/freebsd_start.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
# PROVIDE: owntone
# REQUIRE: avahi_daemon dbus
# Add the following lines to /etc/rc.conf to enable `owntone':
#
# owntone_enable="YES"
# owntone_flags="<set as needed>"
. /etc/rc.subr
name="owntone"
rcvar=`set_rcvar`
command="/usr/local/sbin/owntone"
command_args="-P /var/run/owntone.pid"
pidfile="/var/run/owntone.pid"
required_files="/usr/local/etc/owntone.conf"
# read configuration and set defaults
load_rc_config "$name"
: ${owntone_enable="NO"}
run_rc_command "$1"