Skip to content

Commit

Permalink
Add Debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
oscaracena committed Jan 2, 2025
1 parent 7eab6ba commit 564954a
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
*.o
.vscode
jackrtpmidid
debian/debhelper-build-stamp
debian/files
debian/jackrtpmidid.debhelper.log
debian/jackrtpmidid.substvars
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# File: Makefile
# JACK RTP-MIDI daemon for Zynthian
# Author: Oscar Aceña
#

TARGET = jackrtpmidid
OBJECTS = \
jackrtpmidid.o \
Expand Down Expand Up @@ -30,7 +36,6 @@ $(TARGET): $(OBJECTS)
clean:
$(RM) -frv *.o $(TARGET)


## Other helper rules

run:
Expand All @@ -41,3 +46,9 @@ run-with-gdb:
-ex 'set print pretty on' \
-ex run \
$(TARGET)

package:
ian build -c

package-clean: clean
ian clean
9 changes: 9 additions & 0 deletions Makefile.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- mode: makefile-gmake; coding: utf-8 -*-
DESTDIR ?= ~

all:

install:
FIXME: Install your scripts/binaries/libraries/...
install -vd $(DESTDIR)/usr/bin
install -v -m 555 bin/your-script.sh $(DESTDIR)/usr/bin/
31 changes: 26 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
jackrtpmidid is a Linux daemon designed specifically for the Zynthian Open Source Synthesizer : https://zynthian.org/ but nothing prevents it to be used on any other Linux machine.
## About

The daemon is used by the Zynthian to create the RTP-MIDI endpoint which can be activated via the Zynthian's Admin menu.
`jackrtpmidid` is a Linux daemon designed specifically for the Zynthian Open Source Synthesizer (https://zynthian.org/), but nothing prevents it to be used on any other Linux machine.

In order to compile the daemon, you will need files from these libraries :
* https://github.com/bbouchez/BEBSDK
* https://github.com/bbouchez/RTP-MIDI
The daemon is used by the Zynthian to create the RTP-MIDI endpoint, which can be activated via the Zynthian's Admin menu.


## Install

You can download a precompiled Debian package (for Zynthian) from the releases page:

* [Jackrtpmidi releases](https://github.com/oscaracena/jackrtpmidid/releases)


## Build

You can compile the daemon in Linux, with GNU Make. Just clone the repo in the specific branch, and run `make`:

git clone --branch gnu-make --recurse-submodules https://github.com/oscaracena/jackrtpmidid.git
make


## License and authors

This software is under the terms of the MIT License. And these are the authors:

* Source Code: 2019-2024 Benoit BOUCHEZ
* Debian Package: 2025 Oscar Aceña
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jackrtpmidid (1.0-1) unstable; urgency=low

* Initial Debian release, changes from 07/07/2024.

-- Oscar Aceña Herrera <oscaracena@gmail.com> Thu, 02 Jan 2025 10:27:53 +0100
21 changes: 21 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Source: jackrtpmidid
Section: utils
Priority: optional
Maintainer: Oscar Aceña Herrera <oscaracena@gmail.com>
Build-Depends:
debhelper (>= 7.0.50~),
debhelper-compat (= 12),
quilt,
libjack-jackd2-dev
Standards-Version: 4.6.0.1

Package: jackrtpmidid
Architecture: any
Depends:
${misc:Depends},
pipewire-jack | libjack-jackd2-0,
${shlibs:Depends},
Description: RTP-MIDI bridge to Jack
This daemon is used by the Zynthian to create an RTP-MIDI endpoint, which
can be activated via the Zynthian's Admin menu. It forwards events between
RTP and Jack.
3 changes: 3 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copyright 2025 Oscar Aceña Herrera <oscaracena@gmail.com>

License: GPL (/usr/share/common-licenses/GPL)
1 change: 1 addition & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jackrtpmidid usr/bin
2 changes: 2 additions & 0 deletions debian/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jackrtpmidid: no-manual-page usr/bin/jackrtpmidid
jackrtpmidid: initial-upload-closes-no-bugs
8 changes: 8 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/make -f

%:
dh $@

# to fix: `dpkg-shlibdeps: error: no dependency information found for ...libjack.so.0`
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
1 change: 1 addition & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jackrtpmidid source: debian-watch-file-is-missing

0 comments on commit 564954a

Please sign in to comment.