66 lines
1.3 KiB
Makefile
66 lines
1.3 KiB
Makefile
all:
|
|
echo OK
|
|
|
|
install: install-rustdek install-services generate-keypair
|
|
|
|
install-rustdek:
|
|
mkdir -p /opt/rustdesk
|
|
cp -vf bin/hbbr /opt/rustdesk/
|
|
cp -vf bin/hbbs /opt/rustdesk/
|
|
cp -vf bin/rustdesk-utils /opt/rustdesk/
|
|
cp -vf bin/gen-keys.sh /opt/rustdesk/
|
|
mkdir -p /var/log/rustdesk
|
|
|
|
install-services:
|
|
cp -vf sysconfig-hbbs /etc/default/hbbs
|
|
cp -vf hbbr.service /etc/systemd/system/
|
|
cp -vf hbbs.service /etc/systemd/system/
|
|
systemctl daemon-reload
|
|
|
|
generate-keypair:
|
|
/opt/rustdesk/gen-keys.sh
|
|
|
|
generate-new-keypair: cleanup-old-keys generate-keypair
|
|
|
|
|
|
start:
|
|
systemctl start hbbr hbbs
|
|
|
|
stop:
|
|
systemctl stop hbbr hbbs;true
|
|
|
|
enable:
|
|
systemctl enable hbbr hbbs
|
|
|
|
disable:
|
|
systemctl disable hbbr hbbs
|
|
|
|
status:
|
|
systemctl status hbbr hbbs
|
|
|
|
|
|
cleanup-old-settings:
|
|
rm -vf /opt/rustdesk/db_v2.*
|
|
rm -vf /etc/default/hbbs
|
|
|
|
cleanup-old-keys:
|
|
rm -vf /opt/rustdesk/id_ed25519*
|
|
|
|
cleanup-old-services: stop
|
|
rm -vf /etc/systemd/system/hbbr.service;true
|
|
rm -vf /etc/systemd/system/hbbs.service;true
|
|
|
|
cleanup-binaries:
|
|
rm -vf /opt/rustdesk/hbbr
|
|
rm -vf /opt/rustdesk/hbbs
|
|
rm -vf /opt/rustdesk/gen-keys.sh
|
|
rm -vf /opt/rustdesk/rustdesk-utils
|
|
|
|
cleanup-logs:
|
|
rm -vf /var/log/rustdesk/*.log
|
|
|
|
distclean: cleanup-old-services cleanup-old-settings cleanup-old-keys cleanup-binaries
|
|
|
|
download:
|
|
bash download-latest.sh
|