#usr/lib/systemd/system/mympd.service
#usr/lib/systemd/user
#usr/lib/systemd/user/mympd.service
-#usr/share/doc/mympd
-#usr/share/doc/mympd/CHANGELOG.md
-#usr/share/doc/mympd/LICENSE.md
-#usr/share/doc/mympd/README.md
-#usr/share/doc/mympd/SECURITY.md
-#usr/share/man/man1/mympd-config.1.gz
-#usr/share/man/man1/mympd-script.1.gz
-#usr/share/man/man1/mympd.1.gz
var/ipfire/backup/addons/includes/mympd
var/lib/mympd
#var/lib/mympd/config
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = mympd
-PAK_VER = 14
+PAK_VER = 15
DEPS = mpd libmpdclient
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/mympd-22.0.4_Simplify_ending_newline_detection.patch
# Do not try to re-define _FORTIFY_SOURCE
cd $(DIR_APP) && sed -e "/D_FORTIFY_SOURCE/d" -i CMakeLists.txt
cd $(DIR_APP) && mkdir -p build
cd $(DIR_APP)/build && cmake -Wno-dev \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release ..
+ -D CMAKE_INSTALL_PREFIX=/usr \
+ -D MYMPD_DOC=OFF \
+ -D MYMPD_ENABLE_SYSTEMD=OFF \
+ -D MYMPD_MANPAGES=OFF \
+ -D CMAKE_BUILD_TYPE=Release ..
cd $(DIR_APP)/build && make $(MAKETUNING)
cd $(DIR_APP)/build && make install
--- /dev/null
+From c6eeec3614bd6e91f3313f37a723a2b37467ec6a Mon Sep 17 00:00:00 2001
+From: jcorporation <mail@jcgames.de>
+Date: Fri, 10 Oct 2025 15:45:06 +0200
+Subject: [PATCH] Fix: Simplify ending newline detection #1470
+
+---
+ build.sh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/build.sh b/build.sh
+index 366e3e619..1f20fcdb0 100755
+--- a/build.sh
++++ b/build.sh
+@@ -217,7 +217,7 @@ createassets() {
+ [ "$F" = "js/long-press-event.js" ] && continue
+ [ "$F" = "js/version.js" ] && continue
+ JSSRCFILES="$JSSRCFILES htdocs/$F"
+- if tail -1 "htdocs/$F" | perl -npe 'exit 1 if m/\n/; exit 0'
++ if [ -n "$(tail -c 1 "htdocs/$F")" ]
+ then
+ echo_error "$F don't end with newline character"
+ exit 1
+@@ -241,7 +241,7 @@ createassets() {
+ JSFILES="$JSFILES $MYMPD_BUILDDIR/htdocs/js/*.min.js"
+ for F in $JSFILES
+ do
+- if tail -1 "$F" | perl -npe 'exit 1 if m/\n/; exit 0'
++ if [ -n "$(tail -c 1 "$F")" ]
+ then
+ echo_error "$F don't end with newline character"
+ exit 1
+