blob: b2cc1ed18b51ce453516e1569af8ec89ba5f3afb (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
.PHONY: all matterbridge.tar.xz sync test
all: help
help:
@echo "Available commands:"
@echo -en "\tmake matterbridge.tar.xz"
@echo -n " # Create a tarball with the matterbridge binary and service"
@echo " file"
@echo -en "\tmake matterbridge.toml "
@echo -n " # Create the matterbridge configuration."
@echo " Requires credentials .netrc"
@echo -en "\tmake test "
@echo "# Test the matterbridge.toml configuration locally"
matterbridge.tar.xz:
rm -f $@
rm -f matterbridge.tar
cp `guix pack \
--save-provenance -RR \
--compression=xz \
matterbridge \
--symlink=/usr/bin/matterbridge=bin/matterbridge` $@
unxz $@
chmod +w 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
sync: matterbridge.toml
rsync matterbridge.toml root@git.replicant.us:/etc/
test: matterbridge.toml
matterbridge -conf matterbridge.toml
|