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

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

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


Revision 1.4 - (show annotations) (download)
Sat Dec 22 22:18:29 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.3: +0 -1 lines
Remove Packager/Distribution (added by buildsys)

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

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