import repository from arizona
[raven.git] / rpm_builds / SPECS / grm.spec.template
1 Summary: grm (sirius)
2 Name: grm
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/grm-@VER@.tar.gz
9 Vendor: University of Arizona
10 BuildRoot: %{_tmppath}/%{name}-root
11 requires: arizona-lib httpd
12
13 %description
14 This rpm provides the basic setup of the GRM. It requires both Apache to run.
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/grm/bin
25 #install -d -o 0 -g 0 %{buildroot}/usr/local/grm/bin/sfa
26 #install -d -o 0 -g 0 %{buildroot}/usr/local/grm/bin/sfa/trust
27 #install -d -o 0 -g 0 %{buildroot}/usr/local/grm/bin/sfa/util
28 install -d -o 0 -g 0 %{buildroot}/usr/local/grm/etc
29 install -d -o 0 -g 0 %{buildroot}/usr/local/grm/scripts
30 install -d -o 0 -g 0 %{buildroot}/usr/local/grm/tmp
31 install -d -o 0 -g 0 %{buildroot}/usr/local/grm/var
32 install -d -o 0 -g 0 %{buildroot}/usr/local/grm/var/private
33 install -d -o 0 -g 0 %{buildroot}/usr/local/grm/var/private/keys
34 install -d -o 0 -g 0 %{buildroot}/usr/local/grm/var/trusted_roots
35
36 install -d -o 0 -g 0 %{buildroot}/etc
37 install -d -o 0 -g 0 %{buildroot}/etc/httpd
38 install -d -o 0 -g 0 %{buildroot}/etc/httpd/conf.d
39
40 install -d -o 0 -g 0 %{buildroot}/repository
41 install -d -o 0 -g 0 %{buildroot}/repository/canopus
42 install -d -o 0 -g 0 %{buildroot}/repository/info
43 install -d -o 0 -g 0 %{buildroot}/repository/static
44
45 install index.py %{buildroot}/repository/canopus
46
47 install grm.conf %{buildroot}/usr/local/grm/etc
48 install grm-apache.conf %{buildroot}/etc/httpd/conf.d
49
50 install grmfrontend.py %{buildroot}/usr/local/grm/bin
51 install frontend.py %{buildroot}/usr/local/grm/bin
52 install repoauth.py %{buildroot}/usr/local/grm/bin
53 install html.py %{buildroot}/usr/local/grm/bin
54 install passfile.py %{buildroot}/usr/local/grm/bin
55 install repoconfig.py %{buildroot}/usr/local/grm/bin
56 install repogeni.py %{buildroot}/usr/local/grm/bin
57 install repoplc.py %{buildroot}/usr/local/grm/bin
58 install repoutil.py %{buildroot}/usr/local/grm/bin
59 install gackshandle.py %{buildroot}/usr/local/grm/bin
60 install gacksjob.py %{buildroot}/usr/local/grm/bin
61 install gacksclient.py %{buildroot}/usr/local/grm/bin
62 install gacksreceipt.py %{buildroot}/usr/local/grm/bin
63 install gackslog.py %{buildroot}/usr/local/grm/bin
64 install gackslog_mysql.py %{buildroot}/usr/local/grm/bin
65
66 # Geniwrapper stuff
67 #install __init__.py %{buildroot}/usr/local/grm/bin/sfa
68 #install __init__.py %{buildroot}/usr/local/grm/bin/sfa/trust
69 #install certificate.py %{buildroot}/usr/local/grm/bin/sfa/trust
70 #install credential.py %{buildroot}/usr/local/grm/bin/sfa/trust
71 #install gid.py %{buildroot}/usr/local/grm/bin/sfa/trust
72 #install rights.py %{buildroot}/usr/local/grm/bin/sfa/trust
73 #install trustedroot.py %{buildroot}/usr/local/grm/bin/sfa/trust
74
75 #install __init__.py %{buildroot}/usr/local/grm/bin/sfa/util
76 #install client.py %{buildroot}/usr/local/grm/bin/sfa/util
77 #install faults.py %{buildroot}/usr/local/grm/bin/sfa/util
78 #install sfaticket.py %{buildroot}/usr/local/grm/bin/sfa/util
79 #install misc.py %{buildroot}/usr/local/grm/bin/sfa/util
80 #install namespace.py %{buildroot}/usr/local/grm/bin/sfa/util
81 #install parameter.py %{buildroot}/usr/local/grm/bin/sfa/util
82 #install record.py %{buildroot}/usr/local/grm/bin/sfa/util
83 #install row.py %{buildroot}/usr/local/grm/bin/sfa/util
84 #install report.py %{buildroot}/usr/local/grm/bin/sfa/util
85 #install rspec.py %{buildroot}/usr/local/grm/bin/sfa/util
86 #install xmlrpcprotocol.py %{buildroot}/usr/local/grm/bin/sfa/util
87
88 install errorpage.stemp %{buildroot}/usr/local/grm/etc
89 install gacks_detail.stemp %{buildroot}/usr/local/grm/etc
90 install gacks_footer.stemp %{buildroot}/usr/local/grm/etc
91 install gacks_header.stemp %{buildroot}/usr/local/grm/etc
92 install gacks_home.stemp %{buildroot}/usr/local/grm/etc
93 install gacks_gethandle.stemp %{buildroot}/usr/local/grm/etc
94 install gacks_login_error.stemp %{buildroot}/usr/local/grm/etc
95 install gacks_login.stemp %{buildroot}/usr/local/grm/etc
96 install gacks_reserve.stemp %{buildroot}/usr/local/grm/etc
97 install gacks_reserve_cores.stemp %{buildroot}/usr/local/grm/etc
98 install gacks_reserve_asap.stemp %{buildroot}/usr/local/grm/etc
99 install gacks_result_debug.stemp %{buildroot}/usr/local/grm/etc
100 install gacks_result.stemp %{buildroot}/usr/local/grm/etc
101 install gacks_viewlog.stemp %{buildroot}/usr/local/grm/etc
102 install gacks_viewupdate.stemp %{buildroot}/usr/local/grm/etc
103
104 install pbpl.png %{buildroot}/repository/static
105 install powered_by_pl_grey.png %{buildroot}/repository/static
106 install stork.css %{buildroot}/repository/static
107 install stork-header.png %{buildroot}/repository/static
108 install canopus-header.png %{buildroot}/repository/static
109 install template_logo_small_grey.png %{buildroot}/repository/static
110 install uacs.png %{buildroot}/repository/static
111
112 %clean
113 rm -rf %{buildroot}
114
115 %post
116 mkdir /repository/keys        2>/dev/null
117 mkdir -p /usr/local/grm/var 2>/dev/null
118 mkdir -p /usr/local/grm/var/private 2>/dev/null
119 mkdir -p /usr/local/grm/var/private/keys 2>/dev/null
120 mkdir -p /usr/local/grm/var/trusted_roots 2>/dev/null
121 chown -R apache /repository
122 chown -R apache /usr/local/grm
123
124 # restart the httpd daemon
125 /etc/init.d/httpd restart
126
127
128 echo " ************************* IMPORTANT ******************************"
129 echo " *                                                                *"
130 echo " * To complete the configuration of the grm  *"
131 echo " * please go to:                                                  *"
132 echo " * http://www.cs.arizona.edu/ FINISH ME *"
133 echo " *                                                                *"
134 echo " ******************************************************************"
135
136
137
138 %preun
139
140
141 %files
142 %defattr(-,root,root)
143 /repository/canopus/index.py
144
145 /usr/local/grm/etc/grm.conf
146 /etc/httpd/conf.d/grm-apache.conf
147
148 /usr/local/grm/etc/errorpage.stemp
149 /usr/local/grm/etc/gacks_detail.stemp
150 /usr/local/grm/etc/gacks_footer.stemp
151 /usr/local/grm/etc/gacks_header.stemp
152 /usr/local/grm/etc/gacks_home.stemp
153 /usr/local/grm/etc/gacks_gethandle.stemp
154 /usr/local/grm/etc/gacks_login_error.stemp
155 /usr/local/grm/etc/gacks_login.stemp
156 /usr/local/grm/etc/gacks_reserve.stemp
157 /usr/local/grm/etc/gacks_reserve_cores.stemp
158 /usr/local/grm/etc/gacks_reserve_asap.stemp
159 /usr/local/grm/etc/gacks_result_debug.stemp
160 /usr/local/grm/etc/gacks_result.stemp
161 /usr/local/grm/etc/gacks_viewlog.stemp
162 /usr/local/grm/etc/gacks_viewupdate.stemp
163
164 /usr/local/grm/bin/grmfrontend.py
165 /usr/local/grm/bin/frontend.py
166 /usr/local/grm/bin/repoauth.py
167 /usr/local/grm/bin/html.py
168 /usr/local/grm/bin/passfile.py
169 /usr/local/grm/bin/repoconfig.py
170 /usr/local/grm/bin/repogeni.py
171 /usr/local/grm/bin/repoplc.py
172 /usr/local/grm/bin/repoutil.py
173 /usr/local/grm/bin/gackshandle.py
174 /usr/local/grm/bin/gacksjob.py
175 /usr/local/grm/bin/gacksclient.py
176 /usr/local/grm/bin/gacksreceipt.py
177 /usr/local/grm/bin/gackslog.py
178 /usr/local/grm/bin/gackslog_mysql.py
179
180 /repository/static/pbpl.png
181 /repository/static/powered_by_pl_grey.png
182 /repository/static/stork.css
183 /repository/static/stork-header.png
184 /repository/static/canopus-header.png
185 /repository/static/template_logo_small_grey.png
186 /repository/static/uacs.png
187
188 # geniwrapper stuff
189 #/usr/local/grm/bin/sfa/__init__.py
190 #/usr/local/grm/bin/sfa/trust/__init__.py
191 #/usr/local/grm/bin/sfa/trust/certificate.py
192 #/usr/local/grm/bin/sfa/trust/credential.py
193 #/usr/local/grm/bin/sfa/trust/gid.py
194 #/usr/local/grm/bin/sfa/trust/rights.py
195 #/usr/local/grm/bin/sfa/trust/trustedroot.py
196
197 #/usr/local/grm/bin/sfa/util/__init__.py
198 #/usr/local/grm/bin/sfa/util/client.py
199 #/usr/local/grm/bin/sfa/util/faults.py
200 #/usr/local/grm/bin/sfa/util/sfaticket.py
201 #/usr/local/grm/bin/sfa/util/misc.py
202 #/usr/local/grm/bin/sfa/util/namespace.py
203 #/usr/local/grm/bin/sfa/util/parameter.py
204 #/usr/local/grm/bin/sfa/util/record.py
205 #/usr/local/grm/bin/sfa/util/report.py
206 #/usr/local/grm/bin/sfa/util/row.py
207 #/usr/local/grm/bin/sfa/util/rspec.py
208 #/usr/local/grm/bin/sfa/util/xmlrpcprotocol.py
209
210