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

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

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 17 19:16:38 2014 UTC (9 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-egroupware-1_8_6-1_el6_sme, smeserver-egroupware-1_8_6-1
Initial import to v9

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

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