From: Ralph Ronnquist Date: Sat, 29 Apr 2023 05:53:23 +0000 (+1000) Subject: added deb building X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=9aa1fc124895b514707e1dc9b49fa721d93d4e96;p=rrq%2Fnewlisp%2Falsa-dispatcher.git added deb building --- diff --git a/Makefile b/Makefile index cd60bf5..6649bf9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,37 @@ -default: alsa-dispatcher.8 +# Local building +default: alsa-dispatcher.8 alsa-dispatcher -%8: %8.adoc +ALSACONF = $(DESTDIR)/etc/alsa/conf.d/51-dispatcher.conf + +%.8: %.8.adoc asciidoctor -b manpage $< + +$(HOME)/.asoundrc: example.alsa.conf + grep -q ^pcm.dispatch $@ || cat $< >> $@ + +clean:: + rm -f alsa-dispatcher alsa-dispatcher.8 + +# Installation building +BIN = $(DESTDIR)/usr/bin/alsa-dispatcher +CFG = $(DESTDIR)/etc/alsa/conf.d/51-alsa-dispatcher.conf +MAN = $(DESTDIR)/usr/share/man/man8/alsa-dispatcher.8.gz + +$(BIN): alsa-dispatcher.lsp + mkdir -p $$(dirname $@) + newlisp -x $< $@ + chmod a+x $@ + +$(MAN): alsa-dispatcher.8.adoc + mkdir -p $$(dirname $@) + asciidoctor -b manpage $< -o - | gzip > $@ + +$(CFG): example.alsa.conf + mkdir -p $$(dirname $@) + cp $< $@ + +install: $(BIN) $(CFG) $(MAN) + +clean:: + rm -rf debian/alsa-dispatcher debian/alsa-dispatcher.substvars + rm -f debian/files debian/debhelper-build-stamp diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..3cc16c4 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package alsa-dispatcher +---------------------------- + +Comments regarding the Package + + -- Ralph Ronnquist Sat, 29 Apr 2023 13:18:58 +1000 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..3540506 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +alsa-dispatcher for Debian +------------------------- + + + + -- Ralph Ronnquist Sat, 29 Apr 2023 13:18:58 +1000 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..3fe60a8 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +alsa-dispatcher for Debian +------------------------- + + + + + + -- Ralph Ronnquist Sat, 29 Apr 2023 13:18:58 +1000 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f3d52bf --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +alsa-dispatcher (0.1) unstable; urgency=medium + + * Initial Release. + + -- Ralph Ronnquist Sat, 29 Apr 2023 13:18:58 +1000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..dadd371 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: alsa-dispatcher +Section: unknown +Priority: optional +Maintainer: Ralph Ronnquist +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.1 +Homepage: https://git.rrq.au/?p=ralph/alsa-dispatcher.git +Vcs-Browser: https://git.rrq.au/?p=ralph/alsa-dispatcher.git +Vcs-Git: https://git.rrq.au/git/ralph/alsa-dispatcher.git +Rules-Requires-Root: no + +Package: alsa-dispatcher +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: ALSA priority dispatcher for occasional playback endpoints. + This is an ALSA utility that handles dispatch of audio playback via a + priority list of possible endpoints. The dispatch logic works through + the list trying to open each ALSA PCM device in order until one + succeeds, and thereafter alsa-dispatcher.lsp simply channels the + playback audio stream from its standard input to the successfully + opened PCM playback device. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f32f064 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: alsa-dispatcher +Upstream-Contact: Ralph Ronnquist +Source: https://git.rrq.au/?p=ralph/alsa-dispatcher.git + +Files: * +Copyright: 2023 Ralph Ronnquist +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..9e711eb --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)