summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <rr@antcom.de>2025-01-19 16:42:50 +0000
committerRoland Reichwein <rr@antcom.de>2025-01-19 16:42:50 +0000
commit7f54b359f0261ae5b70f303a2080b13dd70cd0c2 (patch)
tree8486ff0d5e9748d1dc611cbc0b50ad2e0baf25a7
parent843ba599dba0c250d18dce724ac4c963fb29190d (diff)
Fix debian package
-rw-r--r--MIDIPlayer.cpp2
-rw-r--r--Makefile3
-rw-r--r--debian/README.Debian7
3 files changed, 10 insertions, 2 deletions
diff --git a/MIDIPlayer.cpp b/MIDIPlayer.cpp
index e160d33..cb6a6bf 100644
--- a/MIDIPlayer.cpp
+++ b/MIDIPlayer.cpp
@@ -44,7 +44,7 @@ void MIDIPlayer::start()
if (m_child.valid() && m_child.running()) {
stop();
} else {
- m_child = bp::child(fmt::format("aplaymidi-mp -c -p{} \"{}\"", m_client, m_file).c_str());//, bp::std_out > bp::null);
+ m_child = bp::child(fmt::format("aplaymidi-mp -c -p{} \"{}\"", m_client, (m_dir / m_file).string()).c_str());//, bp::std_out > bp::null);
if (!m_child.valid() || !m_child.running()) {
throw std::runtime_error("aplaymidi not started");
}
diff --git a/Makefile b/Makefile
index 2c74d22..2199c43 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,8 @@ install:
mkdir -p $(DESTDIR)/usr/lib/midiplay
cp $(TARGET) $(DESTDIR)/usr/lib/midiplay
cp -r html $(DESTDIR)/usr/lib/midiplay
- cp debian/nginx-sites-available /etc/nginx/sites-available/midiplay
+ mkdir -p $(DESTDIR)/etc/nginx/sites-available
+ cp debian/nginx-sites-available $(DESTDIR)/etc/nginx/sites-available/midiplay
clean:
-rm -rf *.o $(TARGET) aplaymidi-mp
diff --git a/debian/README.Debian b/debian/README.Debian
index 54311ff..44f14a4 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -3,3 +3,10 @@ MIDIPLAY in Debian
Debian package of midiplay - a hardware-software solution for MIDI and/or audio player
including clock, web interface
+
+To enable:
+
+Replace the link default in /etc/nginx/sites-enabled with a link pointing to /etc/nginx/sites-available/midiplay:
+
+# rm /etc/nginx/sites-enabled/default
+# ln -s /etc/nginx/sites-available/midiplay /etc/nginx/sites-enabled/midiplay