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

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

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


Revision 1.2 - (hide annotations) (download)
Sat Jul 30 04:46:38 2022 UTC (21 months, 2 weeks ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +15 -27 lines
* Sat Jul 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.8.6-3.sme
- update to httpd 2.4 syntax [SME: 12044]
- waiting for SME10 version

1 jpp 1.2 # $Id: smeserver-egroupware.spec,v 1.1 2021/01/18 10:41:47 brianr Exp $
2 brianr 1.1 # Authority: cool34000
3     # Name: Sylvain Gomez
4    
5     %define name smeserver-egroupware
6     %define version 1.8.6
7 jpp 1.2 %define release 3
8 brianr 1.1 %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 jpp 1.2 Patch2: smeserver-egroupware-1.8.005-sme5127.patch
19     Patch3: smeserver-egroupware-1.8.6-bz12044-24syntax.patch
20    
21 brianr 1.1 URL: http://www.egroupware.org
22     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
23     BuildArchitectures: noarch
24     BuildRequires: e-smith-devtools
25 jpp 1.2 Requires: e-smith-base, e-smith-release >= 10
26 brianr 1.1 Requires: eGroupware >= 1.8
27     Requires: eGroupware-gallery >= 1.8
28 jpp 1.2 Requires: e-smith-apache >= 2.6.0-19
29     Requires: smeserver-php >= 3.0.0-43
30 brianr 1.1
31     %description
32 jpp 1.2 This RPM is an unofficial addon for the SME Server 10.x and above.
33 brianr 1.1 eGroupWare is a free enterprise ready groupware software for your network.
34     It enables you to manage contacts, appointments, todos and many more for your whole business.
35     eGroupWare is a groupware server. It comes with a native web-interface which allowes to access
36     your data from any platform all over the planet. Moreover you also have the choice to access the
37     eGroupWare server with your favorite groupware client (Kontact, Evolution, Outlook) and also with
38     your mobile or PDA via SyncML.
39     eGroupWare is international. At the time, it supports more than 25 languages including rtl support.
40     eGroupWare is platform independent. The server runs on Linux, Mac, Windows and many more other
41     operating systems. On the client side, all you need is a internetbrowser such as Firefox,
42     Konqueror, Internet Explorer and many more.
43     https://yourdomain.com/egroupware
44    
45    
46     %changelog
47 jpp 1.2 * Sat Jul 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.8.6-3.sme
48     - update to httpd 2.4 syntax [SME: 12044]
49     - waiting for SME10 version
50    
51 brianr 1.1 * Mon Sep 01 2014 stephane de Labrusse <stephdl@de-laabrusse.fr> 1.8.6-2.sme
52 jpp 1.2 - Added patch Patch2 forgotten by the script of JP Pialasse
53 brianr 1.1
54     * Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 1.8.6-1.sme
55     - initial import to SME9 contribs
56    
57     * Sun Dec 15 2013 JP Pialasse <tests@pialasse.com> 1.8.005-5.sme
58     - fix hostname [SME: 5127]
59    
60     * Fri Dec 13 2013 JP Pialasse <tests@pialasse.com> 1.8.005-4.sme
61     - fixed deletion script see [SME: 8040] comment 25
62    
63     * Thu Dec 12 2013 JP Pialasse <tests@pialasse.com> 1.8.005-3.sme
64     - upgrade to eGroupware 1.8 using opensuse rpm for Centos5
65     - built for eGroupware-1.8.005.20131007
66     - see [SME: 8040]
67     - 2 revert back some configuration in spec
68     - will need to move to an event
69     - 3 fix tmp and sess directory
70     - fix default g2data path
71    
72     * Tue Jun 04 2013 JP Pialasse <tests@pialasse.com> 1.4.004-2.sme
73     - fix upload dir not defined [SME 7653]
74     - updated e-smith-release >8
75    
76     * Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr>
77     - [1.4.004-1] Update to new version 1.4.004
78     Update eGroupWare and Gallery to latest available versions
79     - Apache template modified for FCKeditor (thanks to 'atariblau')
80     - Default database updated
81    
82     * Fri Oct 26 2007 Sylvain Gomez <sylvaingomez@free.fr>
83     - [1.4.002-3] Improving SME integration
84     MySQL init templates added
85     - Events added for DomainName changes
86     - MySQL importation method changed
87     - Security is now improved on header.inc.php after an update
88     - Gallery2 added (but not installed by default)
89     - Type changed from service to url
90     - Fudforum obsolete lines commented in Apache template
91    
92     * Sun Oct 21 2007 Sylvain Gomez <sylvaingomez@free.fr>
93     - [1.4.002-2] Improving upgradability&MySQL DataBase
94     MySQL DataBase rebuilt in utf-8 (new installations only!)
95     - Fixed Spanish lang in login page (new installations only!)
96     - Fixed MySQL rights after when updating from older version
97     - Fixed files not upgrading from v1.4.001 to v1.4.002
98     - Security is now reset when updating
99     - phpSysInfo security improved in Apache template
100     - Generating shorter passwords (new installations only!)
101     - Description text updated
102     - More comments at the install stage
103    
104     * Sat Oct 20 2007 Sylvain Gomez <sylvaingomez@free.fr>
105     - [1.4.002-1] Improving upgradability&RPM structure
106     BETA VERSION
107     - RPM renamed to smeserver-egroupware-1.4.002
108     - Fixed RPM structure
109     - Fixed iCal bug installing old version 1.4.001
110     - Improved Sitemgr (create link instead of moving the folder - new installations only!)
111     - MySQL database rebuilt from scratch
112     - Updating the RPM is now possible
113     - Security improved on header.inc.php (new installations only!)
114     - Some useless items are now deleted
115     - phpSysInfo default configuration review (config.php+SME styled icon)
116    
117     * Wed Oct 17 2007 Dietmar Berteld <dietmar@berteld.com>
118     - [1.4-10] Fixing little bugs and better languages support
119     - Fixed Apache not restarting correctly when uninstalling
120     - Fixed security on Header.inc.php
121    
122     * Mon Oct 15 2007 Dietmar Berteld <dietmar@berteld.com>
123     - [1.4-9] Changing to new version 1.4.002
124     Fixed HTTPS redirection (Thanks to Sylvain Gomez)
125     - Improved Apache template for better security
126     - Improved integration in SME (https option; PublicAccess local/global - global&https is default)
127     - Cron job added
128    
129     * Tue Jul 10 2007 Dietmar Berteld <dietmar@berteld.com>
130     - [1.4-8] Preparing xmlrpc for synctools; integrate php5 as cgi-bin moduls
131    
132     * Fri Jun 29 2007 Dietmar Berteld <dietmar@berteld.com>
133     - [1.4-7] Changing to utf-8
134    
135     * Thu Jun 19 2007 Dietmar Berteld <dietmar@berteld.com>
136     - [1.4-6] Fixing MySQL errors
137    
138     * Thu Jun 17 2007 Dietmar Berteld <dietmar@berteld.com>
139     - [1.4-5] Fixing max_allowed_packet issue
140    
141     * Thu Jun 14 2007 Dietmar Berteld <dietmar@berteld.com>
142     - [1.4-4] New basis eGW 1.4, delete php5-based sync-tool
143    
144     * Wed May 30 2007 Dietmar Berteld <dietmar@berteld.com>
145     - [1.2.106-3] Automatic domain configuration and integrate php5-based sync-tool
146    
147     * Tue May 29 2007 Dietmar Berteld <dietmar@berteld.com>
148     - [1.2.106-2] Change MySQL-creating method to SME and fixing bugs
149    
150     * Thu Jan 23 2007 Dietmar Berteld <dietmar@berteld.com>
151     - [1.2.106-1] Initial version
152    
153    
154     %prep
155    
156    
157     %setup
158     %patch2 -p1
159 jpp 1.2 %patch3 -p1
160 brianr 1.1
161     %build
162     # Creating templates2adjust
163     perl createlinks
164    
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     /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    
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     # echo "Backup folder: /opt/eGW_RPM_BACKUP"
193     mkdir -p /opt/eGW_RPM_BACKUP
194     # cd /opt
195     # echo "Backing up installation files..."
196     # tar -czf /opt/eGW_RPM_BACKUP/egroupware.tar.gz egroupware
197     echo "Backing up MySQL database..."
198     mysqldump egroupware > /opt/eGW_RPM_BACKUP/egroupware$(date +%Y-%m-%d).sql
199     /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     echo "Initializing SME DB"
207     /etc/e-smith/events/actions/initialize-default-databases 2>/dev/null
208     echo " "
209    
210     # Variables
211     DOMAIN=$(/sbin/e-smith/db configuration get DomainName)
212     EGPASS=$(/sbin/e-smith/db configuration getprop egroupware DbPassword)
213     UPDATE=$(ls /usr/share/ | grep -c egroupware)
214    
215     #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     echo "Preparing phpSysInfo..."
221     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    
247     # fixed this one adding .php, not sure if still necessary
248     #if [ "$UPDATE" = "0" ] ; then
249     # echo "Preparing Site-Mgr..."
250     # cd /usr/share/egroupware
251     # ln -s sitemgr/sitemgr-link.php
252     #fi
253    
254     echo "Preparing header.inc.php..."
255     # 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     # *) mv -f /opt/egroupware/html/header.inc.php /opt/egroupware/ 2>/dev/null ;;
262     #esacc
263     #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     echo " "
268    
269     # the integration is complete Ithink now.....
270     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    
277     chmod 640 /usr/share/egroupware/gallery/gallery2/config.php
278     chown www:www /usr/share/egroupware/gallery/gallery2/config.php
279     echo " "
280    
281     ### this one will be done by event
282     echo "MySQL installation:"
283     #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     /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    
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     mv /usr/share/doc/eGroupWare-1.8.005/Sources/DO_NOT_USE_OR_DELETE/eGW-Full-Uninstall.sh /root/
353     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