source: raptor-distribution/RPMs/raptor-server/trunk/raptor-server-1.0.0-11.spec @ 1670

Revision 1670, 3.2 KB checked in by rhyssmith, 5 years ago (diff)

Adding raptor-server v1-r11-1 RPM sources

Line 
1Name:          raptor-server
2Version:       1.0.0
3Release:       11
4Summary:       MUA and Web components of the 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-mua = 1.1.3
15Requires:      raptor-web = 1.1.0
16Conflicts:     raptor-all
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 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 
37%build
38# Nothing to do
39
40
41 
42%install
43
44# Create fixed-location directories in /opt
45install -d %{buildroot}/opt/raptor/server
46
47# Install fixed-location files to correct locations
48cp -r %{_builddir}/%{name}-%{version}/version.txt %{buildroot}/opt/raptor/server/version.txt
49
50
51 
52%clean
53
54# Remove everything in the buildroot
55[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
56
57 
58 
59%post
60
61# Once the RPMs are installed, key exchange between each component should take place
62# But only if installing, not ugprading!
63if [ $1 == 1 ] ; then
64
65    # Only run these commands if keytool exists
66    if command -v keytool > /dev/null; then
67
68        # Swap keys between MUA and Web
69        keytool -import -noprompt -keystore /opt/raptor/web/keys/authorised-keys.jks -storepass changeit -alias raptormua -file /opt/raptor/mua/keys/raptor-mua-public.crt
70        keytool -import -noprompt -keystore /opt/raptor/mua/keys/authorised-keys.jks -storepass changeit -alias raptorweb -file /opt/raptor/web/keys/raptor-web-public.crt
71    else
72        echo ERROR: keytool command not found - automatic certificate exchange has not taken place and must be performed manually!
73    fi
74fi
75 
76 
77 
78%preun
79
80
81 
82%postun
83
84 
85%files
86
87%defattr(-,root,root,-)
88%dir /opt/raptor
89%dir /opt/raptor/server
90/opt/raptor/server/version.txt
91
92%changelog
93* Sat Aug 25 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-11
94- Bumped raptor-mua to v1.1.3.
95
96* Fri Aug 24 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-10
97- Bumped raptor-mua to v1.1.2.
98
99* Sun Aug 19 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-9
100- Rerelease of v1.1 (containing v1.1.1, v1.1.0)
101
102* Fri Aug 10 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-8
103- Bumped raptor-mua to v1.1.0
104
105* Fri Jul 6 2012  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-7
106- Bumped raptor-mua, and raptor-web to v1.1.0
107
108* Mon Dec 19 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-6
109- Bumped raptor-mua, and raptor-web to v1.0.1
110
111* Mon Dec 05 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-5
112- Bumped raptor-mua, and raptor-web to v1.0.0
113
114* Wed Sep 28 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-4
115- Bumped raptor-mua to v0.2.1
116
117* Sat Sep 17 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-3
118- Bumped raptor-mua and raptor-web to v0.2.0
119
120* Fri Jun 3 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-2
121- Bumped raptor-mua and raptor-web to v0.1.1
122
123* Mon May 16 2011  Rhys Smith <smith@cardiff.ac.uk>  1.0.0-1
124- First version.
Note: See TracBrowser for help on using the repository browser.