import repository from arizona
[raven.git] / rpm_builds / SPECS / stork-failsafe.spec.template
1 Summary: stork failsafe package
2 Name: stork-failsafe
3 Version: @VER@
4 Release: @REL@
5 License: Public Domain
6 Group: stork at U of Arizona
7 URL: http://www.cs.arizona.edu/
8 Source RPM: ftp://quadrus.cs.arizona.edu/PlanetLab/V3/stork-failsafe-@VER@.tar.gz
9 Vendor: University of Arizona
10 BuildRoot: %{_tmppath}/%{name}-root
11 requires: wget
12 %description
13 TODO: add description of this library
14
15 %prep
16 %setup -q
17
18 %build
19
20 %install
21 rm -rf %\{buildroot]
22 install -d -o 0 -g 0 %{buildroot}/usr
23 install -d -o 0 -g 0 %{buildroot}/usr/local
24 install -d -o 0 -g 0 %{buildroot}/usr/local/stork
25 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/failsafe
26 install -d -o 0 -g 0 %{buildroot}/etc
27 install -d -o 0 -g 0 %{buildroot}/etc/cron.d
28
29 install failsafe.sh %{buildroot}/usr/local/stork/failsafe
30 install initscript %{buildroot}/usr/local/stork/failsafe
31 install stork-failsafe.cron %{buildroot}/etc/cron.d
32
33 %clean
34 rm -rf %{buildroot}
35
36 %post
37 /etc/init.d/crond restart
38
39 %preun
40
41 %files
42 %defattr(-,root,root)
43 /usr/local/stork/failsafe/failsafe.sh
44 /usr/local/stork/failsafe/initscript
45 %attr(0644,root,root) /etc/cron.d/stork-failsafe.cron
46