summaryrefslogtreecommitdiff
path: root/frontend/cgi/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-06-25 09:04:42 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-06-25 09:04:42 +0200
commit86746ac72fb9dc558e40914de9aea26ad58d19b1 (patch)
treec8b99efde0ed4d6e77351eb9cc189d635162e188 /frontend/cgi/Makefile
parent1807e40dd3666564851b2b0d855513bd004a927d (diff)
downloadvyos-live-build-86746ac72fb9dc558e40914de9aea26ad58d19b1.tar.gz
vyos-live-build-86746ac72fb9dc558e40914de9aea26ad58d19b1.zip
Reorganizing frontend in source tree.
Diffstat (limited to 'frontend/cgi/Makefile')
-rw-r--r--frontend/cgi/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/cgi/Makefile b/frontend/cgi/Makefile
new file mode 100644
index 000000000..8ac08ddac
--- /dev/null
+++ b/frontend/cgi/Makefile
@@ -0,0 +1,21 @@
+# Makefile
+
+install:
+ install -D -m 0755 live-build-cgi $(DESTDIR)/usr/lib/cgi-bin/live-build
+ install -D -m 0755 live-build-cgi.cron $(DESTDIR)/etc/cron.hourly/live-build-cgi
+ install -D -m 0644 live-build-cgi.crontab $(DESTDIR)/etc/cron.d/live-build-cgi
+ install -D -m 0644 live-build-cgi.default $(DESTDIR)/etc/default/live-build-cgi
+ install -D -m 0644 live-build-cgi.logrotate $(DESTDIR)/etc/logrotate.d/live-build-cgi
+
+ install -d -m 0755 $(DESTDIR)/var/log
+ touch $(DESTDIR)/var/log/live
+ chown www-data:www-data $(DESTDIR)/var/log/live
+
+uninstall:
+ rm -f $(DESTDIR)/usr/lib/cgi-bin/live-build
+ rm -f $(DESTDIR)/etc/cron.d/live-build-cgi
+ rm -f $(DESTDIR)/etc/cron.hourly/live-build-cgi
+ rm -f $(DESTDIR)/etc/default/live-build-cgi
+ rm -f $(DESTDIR)/etc/logrotate.d/live-build-cgi
+
+reinstall: uninstall install