import repository from arizona
[raven.git] / apps / logmon / Makefile
1 RPM_DIR = RPMS
2
3 rpms: logmonrpm logmonwwwrpm logmonserverrpm
4
5 logmonrpm:
6         cp analyze.py build/logmon/usr/local/bin/
7         chmod +x build/logmon/usr/local/bin/analyze.py
8         cp classify.txt build/logmon/usr/local/bin/
9         cp do_logmon.sh build/logmon/usr/local/bin
10         chmod +x build/logmon/usr/local/bin/do_logmon.sh
11         cp logmon.cron build/logmon/etc/cron.hourly
12         chmod +x build/logmon/etc/cron.hourly/logmon.cron
13         ravenbuilder logmon build/logmon $(RPM_DIR)
14
15 logmonwwwrpm:
16         cp analyze.py build/logmon_www/usr/local/bin/
17         chmod +x build/logmon_www/usr/local/bin/analyze.py
18         cp classify.txt build/logmon_www/usr/local/bin/
19         cp do_logmon_www.sh build/logmon_www/usr/local/bin
20         chmod +x build/logmon_www/usr/local/bin/do_logmon_www.sh
21         cp logmon_www.cron build/logmon_www/etc/cron.hourly
22         chmod +x build/logmon_www/etc/cron.hourly/logmon_www.cron
23         ravenbuilder logmon_www build/logmon_www $(RPM_DIR)
24
25 logmonserverrpm:
26         mkdir -p build/logmon_server/usr/local/logmon
27         mkdir -p build/logmon_server/etc/httpd/conf.d
28         cp index.py db.py errlogging.py html.py build/logmon_server/usr/local/logmon/
29         cp searchhelp.html build/logmon_server/usr/local/logmon/
30         cp logmon.conf build/logmon_server/etc/httpd/conf.d
31         chmod +x build/logmon_server/usr/local/logmon/index.py
32         ravenbuilder logmon_server build/logmon_server $(RPM_DIR)