import repository from arizona
[raven.git] / rpm_builds / SPECS / gackscentral.spec.template
1 Summary: Gacks Central
2 Name: gackscentral
3 Version: @VER@
4 Release: @REL@
5 License: Public Domain
6 Group: Raven at U of Arizona
7 URL: http://www.cs.arizona.edu/
8 Source RPM: ftp://quadrus.cs.arizona.edu/PlanetLab/V3/gackscentral-@VER@.tar.gz
9 Vendor: University of Arizona
10 BuildRoot: %{_tmppath}/%{name}-root
11 requires: arizona-lib >= 2.2.8, httpd
12
13 %description
14 This rpm provides gacks central.
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/gackscentral
24 install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/bin
25 #install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/bin/sfa
26 #install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/bin/sfa/trust
27 #install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/bin/sfa/util
28 install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/scripts
29 install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/var
30 install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/var/trusted_roots
31 install -d -o 0 -g 0 %{buildroot}/usr/local/gackscentral/var/log
32
33 install -d -o 0 -g 0 %{buildroot}/etc
34 install -d -o 0 -g 0 %{buildroot}/etc/httpd
35 install -d -o 0 -g 0 %{buildroot}/etc/httpd/conf.d
36
37 install -d -o 0 -g 0 %{buildroot}/etc/cron.d
38
39 install gacks-api.conf %{buildroot}/etc/httpd/conf.d
40
41 install API.py %{buildroot}/usr/local/gackscentral/bin
42 install ModPython.py %{buildroot}/usr/local/gackscentral/bin
43 install BaseApi.py %{buildroot}/usr/local/gackscentral/bin
44 install AuthenticatedApi.py %{buildroot}/usr/local/gackscentral/bin
45 install ApiExceptionCodes.py  %{buildroot}/usr/local/gackscentral/bin
46
47 install testGacksCalendar.py %{buildroot}/usr/local/gackscentral/bin
48 install gacksaccount.py %{buildroot}/usr/local/gackscentral/bin
49 install gacksaccountmanager.py %{buildroot}/usr/local/gackscentral/bin
50 install gacksaccount_test.py %{buildroot}/usr/local/gackscentral/bin
51 install gacksauth.py %{buildroot}/usr/local/gackscentral/bin
52 install gacksreset.py %{buildroot}/usr/local/gackscentral/bin
53 install gackscalendar.py %{buildroot}/usr/local/gackscentral/bin
54 install gackscalendar_list.py %{buildroot}/usr/local/gackscentral/bin
55 install gackscalendar_mysql.py %{buildroot}/usr/local/gackscentral/bin
56 install gackscalendar_db.py %{buildroot}/usr/local/gackscentral/bin
57 install gackscli.py %{buildroot}/usr/local/gackscentral/bin
58 install gacksclient.py %{buildroot}/usr/local/gackscentral/bin
59 install gacksexcep.py %{buildroot}/usr/local/gackscentral/bin
60 install gacksenforce.py %{buildroot}/usr/local/gackscentral/bin
61 install gackshandle.py %{buildroot}/usr/local/gackscentral/bin
62 install gacksinvoice.py %{buildroot}/usr/local/gackscentral/bin
63 install gacksjob.py %{buildroot}/usr/local/gackscentral/bin
64 install gacksnodepicker.py %{buildroot}/usr/local/gackscentral/bin
65 install gackspolicy.py %{buildroot}/usr/local/gackscentral/bin
66 install gacksqueue.py %{buildroot}/usr/local/gackscentral/bin
67 install gacksqueue_mysql.py %{buildroot}/usr/local/gackscentral/bin
68 install gacksreceipt.py %{buildroot}/usr/local/gackscentral/bin
69 install gacksresource.py %{buildroot}/usr/local/gackscentral/bin
70 install gacksrspec.py %{buildroot}/usr/local/gackscentral/bin
71 install gackslog.py %{buildroot}/usr/local/gackscentral/bin
72 install gackslog_mysql.py %{buildroot}/usr/local/gackscentral/bin
73
74 install localhost-gacks-defragment.sh %{buildroot}/usr/local/gackscentral/bin
75 install localhost-gacks-garbagecollect.sh %{buildroot}/usr/local/gackscentral/bin
76 install localhost-gacks-runasap.sh %{buildroot}/usr/local/gackscentral/bin
77 install gackscentral.cron %{buildroot}/etc/cron.d
78
79 # Geniwrapper stuff
80 #install __init__.py %{buildroot}/usr/local/gackscentral/bin/sfa
81 #install __init__.py %{buildroot}/usr/local/gackscentral/bin/sfa/trust
82 #install certificate.py %{buildroot}/usr/local/gackscentral/bin/sfa/trust
83 #install credential.py %{buildroot}/usr/local/gackscentral/bin/sfa/trust
84 #install gid.py %{buildroot}/usr/local/gackscentral/bin/sfa/trust
85 #install rights.py %{buildroot}/usr/local/gackscentral/bin/sfa/trust
86 #install trustedroot.py %{buildroot}/usr/local/gackscentral/bin/sfa/trust
87
88 #install __init__.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
89 #install client.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
90 #install faults.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
91 #install sfaticket.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
92 #install misc.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
93 #install namespace.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
94 #install parameter.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
95 #install record.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
96 #install report.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
97 #install rspec.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
98 #install xmlrpcprotocol.py %{buildroot}/usr/local/gackscentral/bin/sfa/util
99
100 %clean
101 rm -rf %{buildroot}
102
103 %post
104 mkdir -p /usr/local/gackscentral/var 2>/dev/null
105 mkdir -p /usr/local/gackscentral/var/log 2>/dev/null
106 mkdir -p /usr/local/gackscentral/var/trusted_roots 2>/dev/null
107
108 ln -sf /usr/local/gackscentral/bin/gackscli.py /usr/bin/gackscli
109
110 # apache can't seem to write the log files
111 chown -R apache /usr/local/gackscentral/var/log
112
113 %preun
114 if [ $1 = 0 ]; then
115   rm -f /usr/bin/gackscli
116 fi
117
118 %files
119 %defattr(-,root,root)
120
121 /etc/httpd/conf.d/gacks-api.conf
122
123 /usr/local/gackscentral/bin/API.py
124 /usr/local/gackscentral/bin/ModPython.py
125 /usr/local/gackscentral/bin/BaseApi.py
126 /usr/local/gackscentral/bin/AuthenticatedApi.py
127 /usr/local/gackscentral/bin/ApiExceptionCodes.py
128
129 /usr/local/gackscentral/bin/testGacksCalendar.py
130 /usr/local/gackscentral/bin/gacksaccount.py
131 /usr/local/gackscentral/bin/gacksaccountmanager.py
132 /usr/local/gackscentral/bin/gacksaccount_test.py
133 /usr/local/gackscentral/bin/gacksauth.py
134 /usr/local/gackscentral/bin/gacksreset.py
135 /usr/local/gackscentral/bin/gackscalendar.py
136 /usr/local/gackscentral/bin/gackscalendar_list.py
137 /usr/local/gackscentral/bin/gackscalendar_mysql.py
138 /usr/local/gackscentral/bin/gackscalendar_db.py
139 /usr/local/gackscentral/bin/gackscli.py
140 /usr/local/gackscentral/bin/gacksclient.py
141 /usr/local/gackscentral/bin/gacksenforce.py
142 /usr/local/gackscentral/bin/gacksexcep.py
143 /usr/local/gackscentral/bin/gackshandle.py
144 /usr/local/gackscentral/bin/gacksinvoice.py
145 /usr/local/gackscentral/bin/gacksjob.py
146 /usr/local/gackscentral/bin/gacksnodepicker.py
147 /usr/local/gackscentral/bin/gackspolicy.py
148 /usr/local/gackscentral/bin/gacksqueue.py
149 /usr/local/gackscentral/bin/gacksqueue_mysql.py
150 /usr/local/gackscentral/bin/gacksreceipt.py
151 /usr/local/gackscentral/bin/gacksresource.py
152 /usr/local/gackscentral/bin/gacksrspec.py
153 /usr/local/gackscentral/bin/gackslog.py
154 /usr/local/gackscentral/bin/gackslog_mysql.py
155
156 /usr/local/gackscentral/bin/localhost-gacks-defragment.sh
157 /usr/local/gackscentral/bin/localhost-gacks-garbagecollect.sh
158 /usr/local/gackscentral/bin/localhost-gacks-runasap.sh
159 %attr(0644,root,root) /etc/cron.d/gackscentral.cron
160
161 # geniwrapper stuff
162 #/usr/local/gackscentral/bin/sfa/__init__.py
163 #/usr/local/gackscentral/bin/sfa/trust/__init__.py
164 #/usr/local/gackscentral/bin/sfa/trust/certificate.py
165 #/usr/local/gackscentral/bin/sfa/trust/credential.py
166 #/usr/local/gackscentral/bin/sfa/trust/gid.py
167 #/usr/local/gackscentral/bin/sfa/trust/rights.py
168 #/usr/local/gackscentral/bin/sfa/trust/trustedroot.py
169
170 #/usr/local/gackscentral/bin/sfa/util/__init__.py
171 #/usr/local/gackscentral/bin/sfa/util/client.py
172 #/usr/local/gackscentral/bin/sfa/util/faults.py
173 #/usr/local/gackscentral/bin/sfa/util/sfaticket.py
174 #/usr/local/gackscentral/bin/sfa/util/misc.py
175 #/usr/local/gackscentral/bin/sfa/util/namespace.py
176 #/usr/local/gackscentral/bin/sfa/util/parameter.py
177 #/usr/local/gackscentral/bin/sfa/util/record.py
178 #/usr/local/gackscentral/bin/sfa/util/report.py
179 #/usr/local/gackscentral/bin/sfa/util/rspec.py
180 #/usr/local/gackscentral/bin/sfa/util/xmlrpcprotocol.py
181