/[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.6 - (hide annotations) (download)
Fri Dec 13 21:38:45 2013 UTC (10 years, 10 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-egroupware-1_8_005-4_el5_sme
Changes since 1.5: +8 -2 lines
* Fri Dec 13 2013 JP Pialasse <tests@pialasse.com> 1.8.005-4.sme
- fixed deletion script see [SME: 8040] comment 25

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

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