1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/mt-daapd/files/mt-daapd.sh.in
Ion-Mihai Tetcu b817e22842 - Update to 0.2.4
- convert to USE_RC_SUBR
- make sure thread libs are detected/used correctly on all OSVERSIONs
- change default database directory to /var/db/mt-daapd.
- change default mp3 dir to ${PREFIX}/share/mt-daap
- tell users whatvariables to they can set to customize their installation
- move pkg-deinstall, pkg-install and files/mt-daapd.conf in FILESDIR to be
able to respect user choices.
- portlint

PR:		ports/95190 reworked extensively by me
Submitted by:	Alexander Botero-Lowry <alex@foxybanana.com> (now maintianer)
2006-06-25 13:17:25 +00:00

22 lines
460 B
Bash

#!/bin/sh
#
# $FreeBSD$
# formerly $ FreeBSD: ports/audio/mt-daapd/files/mt-daapd.sh,v 1.1 2004/07/19 09:18:51 edwin Exp $
# PROVIDE: mt-daapd
# REQUIRE: LOGIN
. %%RC_SUBR%%
name="mtdaapd"
rcvar="mt_daapd_enable"
command="%%PREFIX%%/sbin/mt-daapd"
command_args="-c %%PREFIX%%/etc/mt-daapd.conf"
pidfile="/var/run/mt-daapd.pid"
required_dirs="%%DAAPD_DBDIR%%"
required_files="%%PREFIX%%/etc/mt-daapd.conf.sample"
load_rc_config "$name"
run_rc_command "$1"