summaryrefslogtreecommitdiff
path: root/cgi/Makefile
blob: 555f8448e3cfd88bcf1ea62ade8fae09a9fb141f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Makefile

install:
	install -D -m 0755 cgi $(DESTDIR)/usr/lib/cgi-bin/live-helper
	install -D -m 0755 cron $(DESTDIR)/etc/cron.d/live-helper.cgi
	install -D -m 0644 default $(DESTDIR)/etc/default/live-helper.cgi
	install -D -m 0644 logrotate $(DESTDIR)/etc/logrotate.d/live-helper.cgi

	install -d -m 0755 $(DESTDIR)/var/log
	touch $(DESTDIR)/var/log/live
	chown www-data:www-data $(DESTDIR)/var/log/live

uninstall:
	rm $(DESTDIR)/usr/lib/cgi-bin/live-helper
	rm $(DESTDIR)/etc/cron.d/live-helper.cgi
	rm $(DESTDIR)/etc/default/live-helper.cgi
	rm $(DESTDIR)/etc/logrotate.d/live-helper.cgi

reinstall: uninstall install