# HG changeset patch # User Christophe Lincoln # Date 1333453268 -7200 # Node ID e8fc5365d589ce002636979c68952d547923ed25 # Parent c2dc5f6fade6e02b4e78a537376427a35737c829 Makefile install config file for server and add uninstall diff -r c2dc5f6fade6 -r e8fc5365d589 Makefile --- a/Makefile Tue Apr 03 13:21:56 2012 +0200 +++ b/Makefile Tue Apr 03 13:41:08 2012 +0200 @@ -44,12 +44,21 @@ # On SliTaz vhost: make install-server WEB=/home/slitaz/www install-server: + install -m 0777 -d $(DESTDIR)/etc/slitaz install -m 0700 -d $(DESTDIR)$(VAR)/people install -m 0700 -d $(DESTDIR)$(VAR)/auth install -m 0777 -d $(DESTDIR)$(PREFIX)/share/doc/tazbug + install -m 0644 tazbug.conf $(DESTDIR)/etc/slitaz touch $(DESTDIR)$(VAR)/auth/people chmod 0600 $(DESTDIR)$(VAR)/auth/people cp -a web $(DESTDIR)$(WEB)/bugs cp README $(DESTDIR)$(PREFIX)/share/doc/tazbug chown -R www.www $(DESTDIR)$(VAR)/* chown -R www.www $(DESTDIR)$(WEB)/bugs/bug + +# Uninstall client + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/tazbug* + rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug* + rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf