/[smecontribs]/rpms/smeserver-rocketchat/contribs10/smeserver-rocketchat.spec
ViewVC logotype

Contents of /rpms/smeserver-rocketchat/contribs10/smeserver-rocketchat.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Jul 27 15:49:53 2023 UTC (16 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-rocketchat-0_4-1, HEAD
Import smeserver-rocketchat-0.4-1

1 %define name smeserver-rocketchat
2 %define version 0.4
3 %define release 1
4 Summary: Plugin to enable RocketChat
5 Name: %{name}
6 Version: %{version}
7 Release: %{release}
8 License: GNU GPL version 2
9 URL: http://libreswan.org/
10 Group: SMEserver/addon
11 Source: %{name}-%{version}.tar.gz
12 BuildRoot: /var/tmp/%{name}-%{version}
13 BuildArchitectures: noarch
14 BuildRequires: e-smith-devtools
15 Requires: e-smith-release >= 10.0
16 Requires: mongodb-org-server >= 4.2
17 Requires: smeserver-docker
18
19 AutoReqProv: no
20
21 %description
22 The ultimate Free Open Source Solution for team communications.
23
24 %changelog
25 * Wed Jul 26 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.4-1.sme
26 - First import to smecontribs [SME: 12390]
27 - Simplify and revert to docker templates
28
29 * Tue Sep 03 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-3.sme
30 - tidy spec file
31
32 * Wed Aug 21 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-2.sme
33 - Add profile.d cleanup script
34 - Add DB configuration for mongod so it autostarts
35
36 * Wed Aug 21 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme
37 - Remove support for Mongo < 4.0
38
39 * Mon Apr 29 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-9.sme
40 - Add Mongo 34 support
41
42 * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-8.sme
43 - Add replica set in mongod.conf - needs rs.initialise in mongo
44
45 * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-7.sme
46 - Update mongodb32 conf file for YAML
47 - requires rh-mongodb32-mongodb & requires: rh-mongodb32-mongo-tools
48
49 * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-6.sme
50 - remove required for mongo 2.6 and 3.0upg
51
52 * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-5.sme
53 - Delete erroneous docker config files
54 - Add createlink expand docker-compose.yml
55
56 * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4.sme
57 - create /var/opt/data/db as standard db location
58 - set mongodb30upg and mongodb32 conf to use standard DB dir
59
60 * Mon Jan 14 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-3.sme
61 - Add service links
62
63 * Mon Jan 14 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-2.sme
64 - remove old rocketchat service now we use docker
65 - add settings for mongodb30upg and mongodb32
66
67 * Fri Aug 17 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1.sme
68 - Move to using Docker
69
70 * Tue Jan 09 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme
71 - Update SME Version
72 - Update node version
73 - Fix missing quote
74
75 * Thu Jul 27 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-14.sme
76 - Proxy template does not work on Apache 2.2
77 - Revised proxy templates that also work with letsencrypt
78
79 * Thu Jun 01 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-13.sme
80 - Update httpd proxy template as per recommendation
81 - https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy
82
83 * Thu Apr 20 2017 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-12.sme
84 - Add new kill links
85 - Add log rotate
86 - bump nodejs requires for newer version of rocketchat
87 - mailcomposer patch removed as this is now in Meteor
88 - Remove mongo service createlinks
89
90 * Wed Dec 21 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-11.sme
91 - Fix incorrect link in createlinks
92
93 * Tue Dec 20 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-10.sme
94 - Fix incorrect logrotate template location
95
96 * Tue Dec 20 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-9.sme
97 - Fix incorrect curly brace in 20variables
98
99 * Thu Nov 24 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-8.sme
100 - Modify SSL Support
101 - Add SSLProxy key
102
103 * Wed Nov 23 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme
104 - add logrotate template
105 - Remove /home from http redirect
106
107 * Mon Oct 31 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme
108 - Update for Rocket v0.40+ allowing for higher version of node
109
110 * Fri Aug 26 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5.sme
111 - Fix Proxy pass for letsencrypt
112
113 * Tue Aug 16 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4.sme
114 - Add SSL / proxy support
115
116 * Mon Aug 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-3.sme
117 - Small fixes
118
119 * Mon Aug 15 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2.sme
120 - Lots of changes to scripts an file locations
121
122 * Fri May 06 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1.sme
123 - Initial build
124
125
126 %prep
127 %setup
128
129 %build
130 perl createlinks
131
132 %install
133 rm -rf $RPM_BUILD_ROOT
134 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
135 rm -f %{name}-%{version}-filelist
136 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
137 echo "%doc COPYING" >> %{name}-%{version}-filelist
138
139
140 %clean
141 cd ..
142 rm -rf %{name}-%{version}
143
144 %files -f %{name}-%{version}-filelist
145
146 %defattr(-,root,root)
147
148 %pre
149 %preun
150 %post
151
152 Not required for mongo 4
153 #if [[ -d /var/opt/data/db ]];
154 #then mkdir -p /var/opt/data/db;
155 #chown mongodb:mongodb /var/opt/data/db;
156 #fi
157
158 Probably not needed for mongo
159 # chown mongodb:mongodb /var/lib/mongo;
160
161
162 # if exists remove the following
163 if [[ -f /etc/e-smith/templates/etc/profile.d/scls-nodejs010.sh ]];
164 then rm -f /etc/e-smith/templates/etc/profile.d/scls-nodejs010.sh;
165 fi
166
167 if [[ ! -e /etc/profile.d/scls-nodejs010.sh ]];
168 then rm -f /etc/profile.d/scls-nodejs010.sh;
169 fi
170
171 echo "Remove old mongo scripts"
172 for file in /etc/profile.d/scls-rh-mon*
173 do
174 rm -f $file
175 done
176
177
178
179 # Need to clean old symlinks
180
181 rm -f /etc/rc.d/rc0.d/K21rh-mongodb26-mongod 2> /dev/null
182 rm -f /etc/rc.d/rc1.d/K21rh-mongodb26-mongod 2> /dev/null
183 rm -f /etc/rc.d/rc6.d/K21rh-mongodb26-mongod 2> /dev/null
184
185 rm -f /etc/rc.d/rc0.d/K21rocketchat 2> /dev/null
186 rm -f /etc/rc.d/rc1.d/K21rocketchat 2> /dev/null
187 rm -f /etc/rc.d/rc6.d/K21rocketchat 2> /dev/null
188
189 echo "****************************************"
190 echo "https://wiki.contribs.org/Rocket_Chat"
191
192 echo "****************************************"
193
194 %postun

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed