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

Annotation of /rpms/smeserver-egroupware/contribs8/smeserver-egroupware.spec

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


Revision 1.4 - (hide annotations) (download)
Thu Dec 12 21:42:30 2013 UTC (10 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-egroupware-1_8_005-2_el5_sme
Changes since 1.3: +44 -34 lines
* Thu Dec 12 2013 JP Pialasse <tests@pialasse.com> 1.8.005-2.sme
- upgrade to eGroupware 1.8 using opensuse rpm for Centos5
- built for eGroupware-1.8.005.20131007
- see [SME: 8040]
- revert back some configuration in spec
- will need to move to an event

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

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