slitaz-forge view tank/Makefile @ rev 338

mirror-search.sh: fix wget_url links
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 04 21:23:50 2012 +0100 (2012-11-04)
parents 49aa1db4bf6e
children 50a406984716
line source
1 # Makefile for Tank tools.
2 # Check the README for more information.
3 #
4 PREFIX?=/usr
5 DESTDIR?=
6 WEB?=/home/slitaz/www
8 all:
10 install:
11 mkdir -p $(DESTDIR)$(PREFIX)/bin \
12 $(DESTDIR)$(PREFIX)/share \
13 $(WEB)/tank/log/rrd \
14 $(WEB)/tank/images/rrd
15 cp -f tank $(DESTDIR)$(PREFIX)/bin
16 cp -a files/var $(DESTDIR)/
17 chmod 0600 $(DESTDIR)/var/spool/cron/crontabs/root
18 cp -a files/etc $(DESTDIR)/
19 cp -a files/usr/bin $(DESTDIR)/
20 /etc/init.d/crond restart
21 /etc/init.d/lighttpd restart
23 uninstall:
24 rm -f $(PREFIX)/bin/tank
25 rm -rf $(PREFIX)/share/tank
26 rm -rf /etc/awstats/*.slitaz.org.conf