/[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.3 - (hide annotations) (download)
Thu Dec 12 17:03:05 2013 UTC (10 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-egroupware-1_8_005-1_el5_sme
Changes since 1.2: +101 -89 lines
* Thu Dec 12 2013 JP Pialasse <tests@pialasse.com> 1.8.005-1.sme
- upgrade to eGroupware 1.8 using opensuse rpm for Centos5
- built for eGroupware-1.8.005.20131007
- see [SME: 8040]

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

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