summaryrefslogtreecommitdiff
path: root/media-sound/mpd/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-17 16:50:14 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-17 16:50:14 +0000
commit15c3fc2a40a699512a1334df4d40ba25f9bba2b4 (patch)
tree6bd189cf84d5a5365aeae0d6a02949d73b95e50f /media-sound/mpd/files
parent6b5b302ba9ccdf5f2b4ee5d76852e15f06a258f4 (diff)
media-sound/mpd : fix build with media-video/ffmpeg-6.1
Diffstat (limited to 'media-sound/mpd/files')
-rw-r--r--media-sound/mpd/files/mpd-0.21.1.logrotate9
-rw-r--r--media-sound/mpd/files/mpd-0.21.4.init34
-rw-r--r--media-sound/mpd/files/mpd-0.23.13-ffmpeg61.patch11
3 files changed, 54 insertions, 0 deletions
diff --git a/media-sound/mpd/files/mpd-0.21.1.logrotate b/media-sound/mpd/files/mpd-0.21.1.logrotate
new file mode 100644
index 00000000..597c4fb2
--- /dev/null
+++ b/media-sound/mpd/files/mpd-0.21.1.logrotate
@@ -0,0 +1,9 @@
+/var/lib/mpd/log {
+ missingok
+ weekly
+ delaycompress
+ compress
+ postrotate
+ /etc/init.d/mpd --quiet reload
+ endscript
+}
diff --git a/media-sound/mpd/files/mpd-0.21.4.init b/media-sound/mpd/files/mpd-0.21.4.init
new file mode 100644
index 00000000..72fede85
--- /dev/null
+++ b/media-sound/mpd/files/mpd-0.21.4.init
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+: CFGFILE=${CFGFILE:=/etc/mpd.conf}
+
+depend() {
+ need localmount
+ use net netmount nfsmount alsasound esound pulseaudio
+ config ${CFGFILE}
+}
+
+get_config() {
+ x=$1
+ test -e ${CFGFILE} || return 1
+ sed -n \
+ -e '/^[ \t]*'${x}'/{s:^[ \t]*'${x}'[ \t]\+"\?\([^#"]\+\)[^"]*"\?$:\1: ; p }' \
+ ${CFGFILE}
+}
+
+extra_started_commands='reload'
+# Required by io_uring
+rc_ulimit="-l 65535"
+command=/usr/bin/mpd
+command_args=${CFGFILE}
+required_files=${CFGFILE}
+pidfile=$(get_config pid_file)
+description="Music Player Daemon"
+
+reload() {
+ ebegin "Reloading ${RC_SVCNAME}"
+ start-stop-daemon --pidfile ${pidfile} --signal HUP
+ eend $?
+ }
diff --git a/media-sound/mpd/files/mpd-0.23.13-ffmpeg61.patch b/media-sound/mpd/files/mpd-0.23.13-ffmpeg61.patch
new file mode 100644
index 00000000..1f6cb51b
--- /dev/null
+++ b/media-sound/mpd/files/mpd-0.23.13-ffmpeg61.patch
@@ -0,0 +1,11 @@
+diff -Nur a/src/decoder/plugins/FfmpegIo.cxx b/src/decoder/plugins/FfmpegIo.cxx
+--- a/src/decoder/plugins/FfmpegIo.cxx 2023-05-22 18:46:38.000000000 +0100
++++ b/src/decoder/plugins/FfmpegIo.cxx 2023-12-17 16:45:32.172757417 +0000
+@@ -26,6 +26,7 @@
+
+ extern "C" {
+ #include <libavutil/mem.h>
++#include <libavutil/error.h>
+ }
+
+ AvioStream::~AvioStream()