/[smecontribs]/rpms/smeserver-egroupware/contribs7/smeserver-egroupware.spec
ViewVC logotype

Contents of /rpms/smeserver-egroupware/contribs7/smeserver-egroupware.spec

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


Revision 1.3 - (show annotations) (download)
Wed May 14 13:40:49 2008 UTC (16 years ago) by slords
Branch: MAIN
Changes since 1.2: +27 -14 lines
New import

1 # $Id: smeserver-egroupware.spec,v 1.2 2008/04/02 15:03:57 slords Exp $
2 # Authority: cool34000
3 # Name: Sylvain Gomez
4
5 %define name smeserver-egroupware
6 %define version 1.4.004
7 %define release 1
8 %define rpmver 4.0.4
9
10
11 Summary: eGroupware web application for SME >7
12 Name: %{name}
13 Version: %{version}
14 Release: %{release}%{?dist}
15 License: GPL
16 Group: Web/Application
17 Source: %{name}-%{version}.tar.gz
18 URL: http://www.egroupware.org
19 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20 BuildArchitectures: noarch
21 BuildRequires: e-smith-devtools
22 Requires: e-smith-base, e-smith-release >= 7
23
24
25 %description
26 This RPM is an unofficial addon for the SME Server 7.x and above.
27 eGroupWare is a free enterprise ready groupware software for your network.
28 It enables you to manage contacts, appointments, todos and many more for your whole business.
29 eGroupWare is a groupware server. It comes with a native web-interface which allowes to access
30 your data from any platform all over the planet. Moreover you also have the choice to access the
31 eGroupWare server with your favorite groupware client (Kontact, Evolution, Outlook) and also with
32 your mobile or PDA via SyncML.
33 eGroupWare is international. At the time, it supports more than 25 languages including rtl support.
34 eGroupWare is platform independent. The server runs on Linux, Mac, Windows and many more other
35 operating systems. On the client side, all you need is a internetbrowser such as Firefox,
36 Konqueror, Internet Explorer and many more.
37 https://yourdomain.com/egroupware
38
39
40 %changelog
41
42 * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>
43 - [1.4.004-1] Update to new version 1.4.004
44 Update eGroupWare and Gallery to latest available versions
45 - Apache template modified for FCKeditor (thanks to 'atariblau')
46 - Default database updated
47
48 * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>
49 - [1.4.004-1] Update to new version 1.4.004
50 Update eGroupWare and Gallery to latest available versions
51 - Apache template modified for FCKeditor (thanks to 'atariblau')
52 - Default database updated
53
54 * Fri Oct 26 2007 Sylvain Gomez <sylvaingomez@free.fr>
55 - [1.4.002-3] Improving SME integration
56 MySQL init templates added
57 - Events added for DomainName changes
58 - MySQL importation method changed
59 - Security is now improved on header.inc.php after an update
60 - Gallery2 added (but not installed by default)
61 - Type changed from service to url
62 - Fudforum obsolete lines commented in Apache template
63
64 * Sun Oct 21 2007 Sylvain Gomez <sylvaingomez@free.fr>
65 - [1.4.002-2] Improving upgradability&MySQL DataBase
66 MySQL DataBase rebuilt in utf-8 (new installations only!)
67 - Fixed Spanish lang in login page (new installations only!)
68 - Fixed MySQL rights after when updating from older version
69 - Fixed files not upgrading from v1.4.001 to v1.4.002
70 - Security is now reset when updating
71 - phpSysInfo security improved in Apache template
72 - Generating shorter passwords (new installations only!)
73 - Description text updated
74 - More comments at the install stage
75
76 * Sat Oct 20 2007 Sylvain Gomez <sylvaingomez@free.fr>
77 - [1.4.002-1] Improving upgradability&RPM structure
78 BETA VERSION
79 - RPM renamed to smeserver-egroupware-1.4.002
80 - Fixed RPM structure
81 - Fixed iCal bug installing old version 1.4.001
82 - Improved Sitemgr (create link instead of moving the folder - new installations only!)
83 - MySQL database rebuilt from scratch
84 - Updating the RPM is now possible
85 - Security improved on header.inc.php (new installations only!)
86 - Some useless items are now deleted
87 - phpSysInfo default configuration review (config.php+SME styled icon)
88
89 * Wed Oct 17 2007 Dietmar Berteld <dietmar@berteld.com>
90 - [1.4-10] Fixing little bugs and better languages support
91 - Fixed Apache not restarting correctly when uninstalling
92 - Fixed security on Header.inc.php
93
94 * Mon Oct 15 2007 Dietmar Berteld <dietmar@berteld.com>
95 - [1.4-9] Changing to new version 1.4.002
96 Fixed HTTPS redirection (Thanks to Sylvain Gomez)
97 - Improved Apache template for better security
98 - Improved integration in SME (https option; PublicAccess local/global - global&https is default)
99 - Cron job added
100
101 * Tue Jul 10 2007 Dietmar Berteld <dietmar@berteld.com>
102 - [1.4-8] Preparing xmlrpc for synctools; integrate php5 as cgi-bin moduls
103
104 * Fri Jun 29 2007 Dietmar Berteld <dietmar@berteld.com>
105 - [1.4-7] Changing to utf-8
106
107 * Thu Jun 19 2007 Dietmar Berteld <dietmar@berteld.com>
108 - [1.4-6] Fixing MySQL errors
109
110 * Thu Jun 17 2007 Dietmar Berteld <dietmar@berteld.com>
111 - [1.4-5] Fixing max_allowed_packet issue
112
113 * Thu Jun 14 2007 Dietmar Berteld <dietmar@berteld.com>
114 - [1.4-4] New basis eGW 1.4, delete php5-based sync-tool
115
116 * Wed May 30 2007 Dietmar Berteld <dietmar@berteld.com>
117 - [1.2.106-3] Automatic domain configuration and integrate php5-based sync-tool
118
119 * Tue May 29 2007 Dietmar Berteld <dietmar@berteld.com>
120 - [1.2.106-2] Change MySQL-creating method to SME and fixing bugs
121
122 * Thu Jan 23 2007 Dietmar Berteld <dietmar@berteld.com>
123 - [1.2.106-1] Initial version
124
125
126 %prep
127
128
129 %setup
130
131
132 %build
133 # Creating templates2adjust
134 perl createlinks
135
136 # Default DB parameters
137 DEFAULTS1=root/etc/e-smith/db/configuration/defaults/egroupware
138 DEFAULTS2=root/etc/e-smith/db/accounts/defaults/egroupware
139 mkdir -p $DEFAULTS1
140 mkdir -p $DEFAULTS2
141 echo "egroupware" > $DEFAULTS1/DbName
142 echo "egwuser" > $DEFAULTS1/DbUser
143 echo "on" > $DEFAULTS1/HTTPS
144 echo "eGroupWare" > $DEFAULTS1/Name
145 echo "global" > $DEFAULTS1/PublicAccess
146 echo "url" > $DEFAULTS1/type
147 echo "reserved" > $DEFAULTS2/type
148
149
150 %install
151 rm -rf $RPM_BUILD_ROOT
152 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
153 rm -f %{name}-%{version}-filelist
154 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
155
156
157 %clean
158 rm -rf $RPM_BUILD_ROOT
159
160
161 %pre
162 # Checking if eGW files are present before updating
163 # If present, installation files + MySQL DB are saved
164 UPDATE=$(ls /opt | grep -c egroupware)
165 case $UPDATE in
166 0)
167 echo "Installing eGroupware... Please wait!"
168 ;;
169 *)
170 echo "Updating eGroupware... Please wait!"
171 echo "Backup folder: /opt/eGW_RPM_BACKUP"
172 mkdir -p /opt/eGW_RPM_BACKUP
173 cd /opt
174 echo "Backing up installation files..."
175 tar -czf /opt/eGW_RPM_BACKUP/egroupware.tar.gz egroupware
176 echo "Backing up MySQL database..."
177 mysqldump egroupware > /opt/eGW_RPM_BACKUP/egroupware.sql
178 /sbin/e-smith/db configuration show egroupware > /opt/eGW_RPM_BACKUP/config.txt
179 ;;
180 esac
181
182
183 %post
184 # Initializing SME DB
185 /etc/e-smith/events/actions/initialize-default-databases
186
187 # Variables
188 DOMAIN=$(/sbin/e-smith/db configuration get DomainName)
189 EGPASS=$(/sbin/e-smith/db configuration getprop egroupware DbPassword)
190 UPDATE=$(ls /opt | grep -c egroupware)
191
192 echo "Decompressing files..."
193 mkdir -p /opt/egroupware/{files/g2data,backup,tmp}
194 tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-1.4.004.tar.gz -C /opt/egroupware
195 tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-egw-pear-1.4.004.tar.gz -C /opt/egroupware
196 tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-gallery-1.4.004.tar.gz -C /opt/egroupware
197 cp -f /usr/share/doc/eGroupWare-1.4.004/Sources/phpSysInfo/config.php /opt/egroupware/html/phpsysinfo/
198 cp -f /usr/share/doc/eGroupWare-1.4.004/Sources/phpSysInfo/Redhat.png /opt/egroupware/html/phpsysinfo/images/
199
200 echo "Cleaning Install..."
201 rm -rf /opt/egroupware/egroupware
202 rm -rf /opt/egroupware/html/debian
203 rm -f /opt/egroupware/html/.htaccess
204
205 echo "Setting file access rules:"
206 cd /opt/egroupware
207 echo " - Changing owner recursivly..."
208 chown -R root:root /opt/egroupware/html
209 echo " - Recursive CHMOD 755 on folders..."
210 find html -type d -exec chmod 755 {} \;
211 echo " - Recursive CHMOD 644 on files..."
212 find html -type f -exec chmod 644 {} \;
213 echo " - Customization of CHMOD for a few folders..."
214 chmod 770 /opt/egroupware/backup
215 chmod 770 /opt/egroupware/files
216 chmod 770 /opt/egroupware/files/g2data
217 chmod 770 /opt/egroupware/tmp
218 chown www:www /opt/egroupware/backup
219 chown www:www /opt/egroupware/files
220 chown www:www /opt/egroupware/files/g2data
221 chown www:www /opt/egroupware/tmp
222
223 if [ "$UPDATE" = "0" ] ; then
224 echo "Preparing Site-Mgr..."
225 cd /opt/egroupware/html
226 ln -s sitemgr/sitemgr-link
227 fi
228
229 echo "Preparing header.inc.php..."
230 case $UPDATE in
231 0) sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.4.004/Sources/header.inc.php > /opt/egroupware/header.inc.php ;;
232 *) mv -f /opt/egroupware/html/header.inc.php /opt/egroupware/ 2>/dev/null ;;
233 esac
234 chown www:www /opt/egroupware/header.inc.php
235 chmod 640 /opt/egroupware/header.inc.php
236 cd /opt/egroupware/html
237 ln -s ../header.inc.php 2>/dev/null
238
239 echo "Preparing Gallery2..."
240 if [ -f /opt/egroupware/html/gallery/gallery2/config.php ] ; then
241 touch /opt/egroupware/html/gallery/gallery2/config.php
242 else
243 sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.4.004/Sources/Gallery2/config.php > /opt/egroupware/html/gallery/gallery2/config.php
244 fi
245 chmod 640 /opt/egroupware/html/gallery/gallery2/config.php
246 chown www:www /opt/egroupware/html/gallery/gallery2/config.php
247 echo " "
248
249 echo "MySQL installation:"
250 if [ "$UPDATE" = "0" ] ; then
251 cp /usr/share/doc/eGroupWare-1.4.004/Sources/81egw_database.sql /etc/e-smith/sql/init/
252 fi
253 /sbin/e-smith/expand-template /etc/e-smith/sql/init/80egw_mysql.sql
254 /sbin/e-smith/expand-template /etc/e-smith/sql/init/81egw_domain.sql
255 /etc/rc.d/init.d/mysql.init start
256 echo " "
257
258 echo "Applying modifications to services..."
259 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
260 /etc/rc7.d/S86httpd-e-smith sigusr1
261 /etc/rc.d/init.d/crond restart
262 echo " "
263
264 echo "-------------------------------------------------------------------------------"
265 case $UPDATE in
266 0) echo "eGroupWare Installation completed, you must finish the installation!" ;;
267 *) echo "eGroupWare update completed, you must finish the update!" ;;
268 esac
269 echo "Please go to https://$DOMAIN/egroupware/setup"
270 echo "-------------------------------------------------------------------------------"
271 echo "For more details, see http://wiki.contribs.org/Egroupware"
272 echo " "
273 case $UPDATE in
274 0)
275 echo "Reminder:"
276 echo " - Website open globally"
277 echo " - https mode enabled with automatic redirection"
278 echo " - Header-Admin-Login = header-admin, pw = 'admin'"
279 echo " - Config-Admin-Login = config-admin, pw = 'admin'"
280 echo " - SME users can login with their user and password (mail auth. method)"
281 echo " "
282 echo "Start https://$DOMAIN/egroupware/setup"
283 echo "Login with the Config-Admin (user=config-admin, pw=admin)"
284 echo "ToDo's:"
285 echo " - Create eGroupWare's admin account with an existing SME account/password"
286 echo " - Configure Gallery2 if needed"
287 ;;
288 *)
289 echo "Reminder:"
290 echo " - The old install was backed up and can be found in /opt/eGW_RPM_BACKUP"
291 echo " PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!"
292 echo " - Start https://$DOMAIN/egroupware/setup"
293 echo " - Login with your existing 'Config-Admin' creditentials"
294 echo " - Finish the upgrade if needed"
295 echo " - Configure Gallery2 if needed"
296 ;;
297 esac
298
299 echo " "
300 echo " "
301 echo "Current configuration:"
302 /sbin/e-smith/config show egroupware
303 echo " "
304 echo "Following DB parameters are allowed:"
305 echo " # config setprop egroupware HTTPS on/off"
306 echo " # config setprop egroupware PublicAccess local/global"
307 echo " "
308 echo "Don't forget to apply modifications with following commands:"
309 echo " # expand-template /etc/httpd/conf/httpd.conf"
310 echo " # service httpd-e-smith restart"
311 echo " "
312 echo "For more details, see http://wiki.contribs.org/Egroupware"
313 echo "-------------------------------------------------------------------------------"
314
315
316 %preun
317 if [ $1 = 0 ] ; then
318 mv /usr/share/doc/eGroupWare-1.4.004/Sources/DO_NOT_USE_OR_DELETE/eGW-Full-Uninstall.sh /root/
319 fi
320
321
322 %postun
323 if [ $1 = 0 ] ; then
324 echo "Restarting services..."
325 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
326 /etc/rc7.d/S86httpd-e-smith sigusr1
327 /etc/rc.d/init.d/crond restart
328 echo " "
329 echo " "
330 echo "Uninstallation finished!"
331 echo " "
332 echo "If you want to completly remove eGroupWare"
333 echo "(installation files and MySQL user+database)"
334 echo "please issue the following command at the prompt:"
335 echo "# sh /root/eGW-Full-Uninstall.sh"
336 fi
337
338
339 %files -f %{name}-%{version}-filelist
340
341
342 %defattr(-,root,root)

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