blob: efbf89942fa1f544d49db0df7e724b364fbb5864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
.PHONY: all matterbridge.tar.xz
all: help
help:
@echo "Available commands:"
@echo -en "\tmake matterbridge.tar.xz"
@echo " # Create a tarball with the matterbridge binary and service file"
@echo -en "\tmake matterbridge.toml "
@echo -n " # Create the matterbridge configuration."
@echo " Requires credentials .netrc"
matterbridge.tar.xz:
rm -f $@
cp `guix pack \
--save-provenance -RR \
--compression=xz \
matterbridge \
--symlink=/usr/bin/matterbridge=bin/matterbridge` $@
unxz $@
chmod +x matterbridge.tar
tar -rf matterbridge.tar \
matterbridge.service \
--transform='s/^/.\/etc\/systemd\/system\//'
xz -9e -T 2 --verbose matterbridge.tar
matterbridge.toml: matterbridge.toml.example generate-matterbridge-config.py
./generate-matterbridge-config.py
|