source: raptor-distribution/RPMs/raptor-all/trunk/raptor-all-1.0.0-9.spec @ 1694

Revision 1694, 3.5 KB checked in by rhyssmith, 5 years ago (diff)

Adding raptor-all v1-r9-1 RPM sources

Line 
1Name:          raptor-all
2Version:       1.0.0
3Release:       9
4Summary:       All components of Raptor Software Suite
5Group:         Productivity/Other
6License:       Apache 2.0
7URL:           http://iam.cf.ac.uk/Raptor
8Source:        %{name}-%{version}.zip
9BuildArch:     noarch
10BuildRoot:     %{_tmppath}/%{name}-%{version}-build
11
12BuildRequires: unzip
13Requires:      java >= 1.6.0
14Requires:      raptor-ica = 1.1.0
15Requires:      raptor-mua = 1.1.1
16Requires:      raptor-web = 1.1.0
17
18
19
20%description
21Raptor is a software tool designed to report upon authentication
22information for access management systems such as the Shibboleth IdP
23and EZproxy. This is a metapackage that installs the ICA, MUA, and Web
24components of Raptor.
25
26
27
28%prep
29
30# Remove anything that already exists, unzip source, and cd into it
31%{__rm} -rf %{name}-%{version}
32%{__unzip} -q %{_sourcedir}/%{name}-%{version}.zip
33cd %{name}-%{version}
34
35 
36%build
37# Nothing to do
38
39
40 
41%install
42
43# Create fixed-location directories in /opt
44install -d %{buildroot}/opt/raptor/all
45
46# Install fixed-location files to correct locations
47cp %{_builddir}/%{name}-%{version}/version.txt %{buildroot}/opt/raptor/all/version.txt
48
49
50 
51%clean
52
53# Remove everything in the buildroot
54[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
55
56 
57 
58%post
59
60# Once the RPMs are installed, key exchange between each component should take place
61# But only if installing, not ugprading!
62if [ $1 == 1 ] ; then
63
64    # Only run these commands if keytool exists
65    if command -v keytool > /dev/null; then
66   
67        # First swap keys between ICA and MUA
68        keytool -import -noprompt -keystore /opt/raptor/ica/keys/authorised-keys.jks -storepass changeit -alias raptormua -file /opt/raptor/mua/keys/raptor-mua-public.crt
69        keytool -import -noprompt -keystore /opt/raptor/mua/keys/authorised-keys.jks -storepass changeit -alias raptorica -file /opt/raptor/ica/keys/raptor-ica-public.crt
70
71        # Then between MUA and Web
72        keytool -import -noprompt -keystore /opt/raptor/web/keys/authorised-keys.jks -storepass changeit -alias raptormua -file /opt/raptor/mua/keys/raptor-mua-public.crt
73        keytool -import -noprompt -keystore /opt/raptor/mua/keys/authorised-keys.jks -storepass changeit -alias raptorweb -file /opt/raptor/web/keys/raptor-web-public.crt
74    else
75        echo ERROR: keytool command not found - automatic certificate exchange has not taken place and must be performed manually!
76    fi
77fi
78
79 
80 
81%preun
82
83
84 
85%postun
86
87 
88%files
89
90%defattr(-,root,root,-)
91%dir /opt/raptor
92%dir /opt/raptor/all
93/opt/raptor/all/version.txt
94
95
96%changelog
97* Sun Aug 19 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-9
98- Rerelease of v1.1 (containing v1.1.0, v1.1.1, v1.1.0)
99
100* Fri Aug 10 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-8
101- Bumped raptor-mua to v1.1.0
102
103* Fri Jul 6 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-7
104- Bumped raptor-ica, raptor-mua, and raptor-web to v1.1.0
105
106* Mon Dec 19 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-6
107- Bumped raptor-ica, raptor-mua, and raptor-web to v1.0.1
108
109* Mon Dec 05 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-5
110- Bumped raptor-ica, raptor-mua, and raptor-web to v1.0.0
111
112* Wed Sep 28 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-4
113- Bumped raptor-mua to v0.2.1
114
115* Sat Sep 17 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-3
116- Bumped raptor-ica, raptor-mua, and raptor-web to v0.2.0
117
118* Fri Jun 3 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-2
119- Bumped raptor-mua and raptor-web to v0.1.1
120
121* Mon May 16 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-1
122- First version.
Note: See TracBrowser for help on using the repository browser.