via

Simple pubsub server inspired by https://patchbay.pub/
git clone https://git.ce9e.org/via.git

commit
377b516fa93e782ebcf990418c6ff3a1a632744e
parent
b2b84881b705bb9823fab7395e05004e6052041c
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-03-22 20:14
add some packaging

Diffstat

A .gitignore 2 ++
M Makefile 5 +++++
A PKGBUILD 10 ++++++++++
A via.service 15 +++++++++++++++

4 files changed, 32 insertions, 0 deletions


diff --git a/.gitignore b/.gitignore

@@ -0,0 +1,2 @@
   -1     1 via
   -1     2 *.deb

diff --git a/Makefile b/Makefile

@@ -1,2 +1,7 @@
    1     1 via: via.go
    2     2 	go build -o $@ $<
   -1     3 
   -1     4 .PHONY: install
   -1     5 install:
   -1     6 	install -D -m 755 via "${DESTDIR}/usr/bin/via"
   -1     7 	install -D -m 644 via.service "${DESTDIR}/lib/systemd/system/via.service"

diff --git a/PKGBUILD b/PKGBUILD

@@ -0,0 +1,10 @@
   -1     1 pkgname='via'
   -1     2 pkgdesc='Simple pubsub server'
   -1     3 arch=('amd64')
   -1     4 url='https://github.com/xi/via'
   -1     5 license='MIT'
   -1     6 
   -1     7 package() {
   -1     8 	make
   -1     9 	make DESTDIR="$pkgdir" install
   -1    10 }

diff --git a/via.service b/via.service

@@ -0,0 +1,15 @@
   -1     1 [Unit]
   -1     2 Description=Simple pubsub server
   -1     3 After=network.target
   -1     4 
   -1     5 [Service]
   -1     6 Type=simple
   -1     7 ExecStart=/usr/bin/via localhost:8001
   -1     8 Restart=always
   -1     9 DynamicUser=yes
   -1    10 ProtectSystem=strict
   -1    11 ProtectHome=yes
   -1    12 MemoryDenyWriteExecute=yes
   -1    13 
   -1    14 [Install]
   -1    15 WantedBy=multi-user.target