slitaz-forge view tank/Makefile @ rev 315

pkgs: Add Swedish translations (thanks Emil Eklund). @Pascal Bellard: Please, update this repo; website pkgs.slitaz.org have newer code than in this repo.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 15 02:48:20 2012 +0000 (2012-07-15)
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