/[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.2 - (hide annotations) (download)
Tue Jun 4 21:03:24 2013 UTC (11 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-egroupware-1_4_004-2_el5_sme
Changes since 1.1: +8 -4 lines
* Tue Jun 04 2013 JP Pialasse <tests@pialasse.com> 1.4.004-2.sme
- fix upload dir not defined [SME 7653]
- updated e-smith-release >8

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

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