Система трансляции экранов компьютеров учеников на доску
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
doskast/Makefile

34 lines
1.4 KiB

PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
SBINDIR ?= $(PREFIX)/sbin
DATADIR ?= $(PREFIX)/share
SYSCONFDIR ?= /etc
UNITDIR ?= /lib/systemd/system
# TODO: make a custom location with a separate web server
CGI_DIR ?= /var/www/cgi-bin
install:
# TODO: make a custom location with separate web server
mkdir -p --mode=0755 $(DESTDIR)$(CGI_DIR)
install -m0755 doskast-trigger-connect.cgi $(DESTDIR)$(CGI_DIR)
mkdir -p --mode=0755 $(DESTDIR)$(UNITDIR)
install -m0644 doskast-student.service $(DESTDIR)$(UNITDIR)
mkdir -p --mode=0755 $(DESTDIR)/etc/systemd/system/doskast-student.service.d
install -m0644 doskast-student-firewall.conf $(DESTDIR)/etc/systemd/system/doskast-student.service.d
mkdir -p --mode=0755 $(DESTDIR)$(BINDIR)
mkdir -p --mode=0755 $(DESTDIR)$(SBINDIR)
install -m0755 doskast-server-watcher.sh $(DESTDIR)$(BINDIR)/doskast-server-watcher
install -m0755 doskast-student-config.sh $(DESTDIR)$(SBINDIR)/doskast-student-config
echo -e '#!/bin/sh\npkexec $(SBINDIR)/doskast-student-config "$$@"' > $(DESTDIR)$(BINDIR)/doskast-student-config
chmod 0755 $(DESTDIR)$(BINDIR)/doskast-student-config
mkdir -p --mode=0755 $(DESTDIR)$(SYSCONFDIR)/xdg/autostart
install -m0644 doskast-server-watcher.desktop $(DESTDIR)$(SYSCONFDIR)/xdg/autostart
mkdir -p --mode=0755 $(DESTDIR)$(DATADIR)/polkit-1/actions
install -m0644 ru.mos.doskast-student-config.policy $(DESTDIR)$(DATADIR)/polkit-1/actions