Checkpoint

This commit is contained in:
Jonathan Cremin 2021-04-11 16:00:07 +01:00
parent e17f84ad8a
commit 1e03c32201
32 changed files with 556 additions and 298 deletions

View file

@ -0,0 +1,21 @@
[Unit]
Description=Scream receiver
Documentation=https://github.com/duncanthrax/scream
Wants=network-pre.target
After=network-pre.target
[Service]
ExecStart=/usr/local/bin/scream -t 10
Restart=on-failure
RuntimeDirectory=scream
RuntimeDirectoryMode=0755
StateDirectory=scream
StateDirectoryMode=0750
CacheDirectory=scream
CacheDirectoryMode=0750
Type=simple
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,51 @@
---
- name: Install dependencies
dnf:
name:
- pulseaudio-libs-devel
state: present
become: yes
- name: Clone duncanthrax/scream
git:
repo: 'https://github.com/duncanthrax/scream.git'
version: master
dest: /tmp/duncanthrax-scream
- name: Create build dir
file:
dest: /tmp/duncanthrax-scream/Receivers/unix/build
mode: '0755'
state: directory
- name: Cmake the Makefiles
command:
chdir: /tmp/duncanthrax-scream/Receivers/unix/build
cmd: cmake ..
creates: /tmp/duncanthrax-scream/Receivers/unix/build/Makefile
- name: Make all the things
command:
chdir: /tmp/duncanthrax-scream/Receivers/unix/build
cmd: make
creates: /tmp/duncanthrax-scream/Receivers/unix/build/scream
- name: make install
command:
chdir: /tmp/duncanthrax-scream/Receivers/unix/build
cmd: make install
creates: /usr/local/bin/scream
become: yes
- name: Create systemd dir
file:
dest: ~/.config/systemd/user
mode: '0755'
state: directory
- name: Create systemd unit
copy:
src: scream.service
mode: '0755'
dest: ~/.config/systemd/user/scream.service