Система трансляции экранов компьютеров учеников на доску
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.
|
|
|
PREFIX ?= /usr
|
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
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)
|
|
|
|
install -m0755 doskast-server-watcher.sh $(DESTDIR)$(BINDIR)/doskast-server-watcher
|
|
|
|
|
|
|
|
mkdir -p --mode=0755 $(DESTDIR)$(SYSCONFDIR)/xdg/autostart
|
|
|
|
install -m0644 doskast-server-watcher.desktop $(DESTDIR)$(SYSCONFDIR)/xdg/autostart
|
|
|
|
|
|
|
|
rpm:
|
|
|
|
rpmbuild --define "_sourcedir $$PWD" -bb doskast.spec
|