import repository from arizona
[raven.git] / apps / servicemonitor / Makefile
1 rpm:
2         mkdir -p RPMS
3         rm -rf /tmp/servicemonitor
4         mkdir -p /tmp/servicemonitor/usr/local/bin
5         mkdir -p /tmp/servicemonitor/etc/cron.d
6         mkdir -p /tmp/servicemonitor/etc/servicemonitor.d
7         mkdir -p /tmp/servicemonitor/var/log
8         cp build/servicemonitor.version /tmp/servicemonitor/.version
9         cp build/servicemonitor.hash /tmp/servicemonitor/.hash
10         chmod +x servicemonitor.py
11         cp servicemonitor.py /tmp/servicemonitor/usr/local/bin/
12         cp autorun.sh /tmp/servicemonitor/
13         cp cron.d/servicemonitor /tmp/servicemonitor/etc/cron.d
14         ravenbuilder servicemonitor /tmp/servicemonitor RPMS/
15         cp /tmp/servicemonitor/.version build/servicemonitor.version
16         cp /tmp/servicemonitor/.hash build/servicemonitor.hash
17
18 install:
19         rpm --install --upgrade RPMS/servicemonitor*.rpm
20
21 install-sample:
22         mkdir -p /etc/servicemonitor.d
23         cp sample/sample.conf /etc/servicemonitor.d
24         cp sample/sample.py /usr/local/bin/
25         cp sample/sample.init /etc/init.d/