mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mpd: Add procd mdns definition from MPD config file
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2007-2016 OpenWrt.org
|
# Copyright (C) 2015-2016 Ted Hess
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=mpd
|
PKG_NAME:=mpd
|
||||||
PKG_VERSION:=0.19.19
|
PKG_VERSION:=0.19.19
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.19/
|
PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.19/
|
||||||
|
|||||||
@@ -18,7 +18,11 @@ start_service() {
|
|||||||
mkdir -m 0755 -p $pld
|
mkdir -m 0755 -p $pld
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local lport=`grep ^port "$CONFIGFILE" | cut -d "\"" -f 2`
|
||||||
|
[ -z $lport ] && lport=6600
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
|
procd_add_mdns "mpd" "tcp" "$lport"
|
||||||
procd_set_param command "$PROG" --no-daemon "$CONFIGFILE"
|
procd_set_param command "$PROG" --no-daemon "$CONFIGFILE"
|
||||||
# Give MPD some real-time priority
|
# Give MPD some real-time priority
|
||||||
procd_set_param nice "$NICEPRIO"
|
procd_set_param nice "$NICEPRIO"
|
||||||
|
|||||||
Reference in New Issue
Block a user