Skip to content
Snippets Groups Projects
Unverified Commit e11cd565 authored by Philipp Michael Breuch's avatar Philipp Michael Breuch
Browse files

Changes for Deploying. Add manpage

parent 787afd7c
No related branches found
No related tags found
No related merge requests found
# buzzer-panel
buzzer-panel is a server application to manage the opening state and the HDMI switch in the student council.
## Required dependencies:
* pulseaudio-alsa
* python-sounddevice
......
= buzzer-panel(1)
Philipp Breuch, Dennis Baurichter
:doctype: manpage
:release-version:
:man manual: buzzer-panel Manual
:man source: buzzer-panel {release-version}
:page-layout: base
NAME
----
buzzer-panel - tool to manage the opening state / buzzer and HDMI switch in the student council
SYNOPSIS
--------
*buzzer-panel*
DESCRIPTION
-----------
*buzzer-panel* is a server application to manage the opening state and the HDMI switch in the student council.
This program has no further options.
BUGS
----
Bugs? Mmh... I think you ment a happy little accident... Anyway, please write a mail to rbfsmi@uni-paderborn.de.
RESOURCES
---------
*Project web site:* https://git.cs.uni-paderborn.de/rbfsmi/buzzer-panel
FILES
-----
_/etc/buzzer-panel.conf_:: Configuration file
_/usr/share/buzzer-panel/scripts/dashboard_off_switcher.py_:: Script to switch off the monitor for a X11 or Wayland session depending on the buzzers' opening state.
_/usr/share/buzzer-panel/assets/_:: Soundfiles for the buzzer module.
_/usr/share/buzzer-panel/frontend/_:: Webfrontend which should be served via a webserver.
COPYING
-------
Copyright \(C) 2021 Philipp Breuch, Dennis Baurichter and contributors.
Free use of this software is granted under the terms of the MIT License.
# Maintainer: Philipp Breuch <pbreuch@mail.uni-paderborn.de>
pkgname=buzzer-panel-git
pkgver=0.1.r9.g323a414
pkgrel=1
pkgdesc="buzzer-panel"
arch=('any')
url="https://git.cs.uni-paderborn.de/rbfsmi/buzzer-panel"
license=('MIT')
depends=('python-twisted' 'python-sounddevice' 'python-scipy')
makedepends=('git' 'asciidoc')
optdepends=('pulseaudio-alsa' 'pipewire-alsa')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('buzzer-panel::git+https://git.cs.uni-paderborn.de/rbfsmi/buzzer-panel#branch=wip/phi')
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long --tags --always | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
sed -i "s/\(^:release-version:\).*/\1 $pkgver/" buzzer-panel.asciidoc
sed -i "s/\(^[\t ]*configuration_file =\).*/\1 \'\/etc\/buzzer-panel.conf\'/" buzzer-panel.py
sed -i "s/\(^soundfile_closed =\).*/\1 \/usr\/share\/${pkgname%-git}\/assets\/closed.wav/" server.conf
sed -i "s/\(^soundfile_will_close =\).*/\1 \/usr\/share\/${pkgname%-git}\/assets\/will_close.wav/" server.conf
sed -i "s/\(^soundfile_limbo =\).*/\1 \/usr\/share\/${pkgname%-git}\/assets\/limbo.wav/" server.conf
}
build() {
cd "$srcdir/${pkgname%-git}"
a2x -f manpage buzzer-panel.asciidoc
gzip --force buzzer-panel.1
}
package() {
cd "$srcdir/${pkgname%-git}"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -Dm755 dashboard_off_switcher.py -t "$pkgdir/usr/share/${pkgname%-git}/scripts"
install -Dm644 frontend/* -t "$pkgdir/usr/share/${pkgname%-git}/frontend"
install -Dm644 assets/* -t "$pkgdir/usr/share/${pkgname%-git}/assets"
install -Dm644 buzzer-panel.1.gz -t "$pkgdir/usr/share/man/man1/"
install -Dm644 buzzer-panel.service -t "$pkgdir/usr/lib/systemd/system"
install -Dm644 buzzer_modules/* -t "$pkgdir/$site_packages/buzzer_modules"
install -Dm644 server.conf "$pkgdir/etc/buzzer-panel.conf"
install -Dm755 buzzer-panel.py "$pkgdir/usr/bin/buzzer-panel"
}
......@@ -9,7 +9,7 @@ soundfile_will_close = assets/will_close.wav
soundfile_limbo = assets/limbo.wav
[hdmi]
switch_host = 192.168.1.50
switch_host = 192.168.1.2
switch_port = 5000
port_number = 8
......@@ -31,7 +31,7 @@ port_4_enabled = True
port_5_enabled = True
port_6_enabled = True
port_7_enabled = True
port_8_enabled = False
port_8_enabled = True
# generic, dashboard, workstation, table
port_1_type = dashboard
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment