1 |
|
# $Id: smeserver-egroupware.spec,v 1.2 2008/04/02 15:03:57 slords Exp $ |
2 |
|
# Authority: cool34000 |
3 |
|
# Name: Sylvain Gomez |
4 |
|
|
5 |
%define name smeserver-egroupware |
%define name smeserver-egroupware |
6 |
%define version 1.4.002 |
%define version 1.4.004 |
7 |
%define release 3 |
%define release 1 |
8 |
%define rpmver 4.0.4 |
%define rpmver 4.0.4 |
9 |
|
|
10 |
|
|
12 |
Name: %{name} |
Name: %{name} |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
License: GPL |
License: GPL |
16 |
Group: Web/Application |
Group: Web/Application |
17 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
18 |
URL: http://www.egroupware.org |
URL: http://www.egroupware.org |
38 |
|
|
39 |
|
|
40 |
%changelog |
%changelog |
41 |
|
|
42 |
|
* Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr> |
43 |
|
- [1.4.004-1] Update to new version 1.4.004 |
44 |
|
Update eGroupWare and Gallery to latest available versions |
45 |
|
- Apache template modified for FCKeditor (thanks to 'atariblau') |
46 |
|
- Default database updated |
47 |
|
|
48 |
|
* Mon May 12 2008 Sylvain Gomez <sylvaingomez@free.fr> |
49 |
|
- [1.4.004-1] Update to new version 1.4.004 |
50 |
|
Update eGroupWare and Gallery to latest available versions |
51 |
|
- Apache template modified for FCKeditor (thanks to 'atariblau') |
52 |
|
- Default database updated |
53 |
|
|
54 |
* Fri Oct 26 2007 Sylvain Gomez <sylvaingomez@free.fr> |
* Fri Oct 26 2007 Sylvain Gomez <sylvaingomez@free.fr> |
55 |
- 1.4.002-3] Improving SME integration |
- [1.4.002-3] Improving SME integration |
56 |
MySQL init templates added |
MySQL init templates added |
57 |
- Events added for DomainName changes |
- Events added for DomainName changes |
58 |
- MySQL importation method changed |
- MySQL importation method changed |
191 |
|
|
192 |
echo "Decompressing files..." |
echo "Decompressing files..." |
193 |
mkdir -p /opt/egroupware/{files/g2data,backup,tmp} |
mkdir -p /opt/egroupware/{files/g2data,backup,tmp} |
194 |
tar xzf /usr/share/doc/eGroupWare-1.4.002/Sources/eGroupWare-1.4.002.tar.gz -C /opt/egroupware |
tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-1.4.004.tar.gz -C /opt/egroupware |
195 |
tar xzf /usr/share/doc/eGroupWare-1.4.002/Sources/eGroupWare-egw-pear-1.4.002.tar.gz -C /opt/egroupware |
tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-egw-pear-1.4.004.tar.gz -C /opt/egroupware |
196 |
tar xzf /usr/share/doc/eGroupWare-1.4.002/Sources/eGroupWare-gallery-1.4.002.tar.gz -C /opt/egroupware |
tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-gallery-1.4.004.tar.gz -C /opt/egroupware |
197 |
cp -f /usr/share/doc/eGroupWare-1.4.002/Sources/phpSysInfo/config.php /opt/egroupware/html/phpsysinfo/ |
cp -f /usr/share/doc/eGroupWare-1.4.004/Sources/phpSysInfo/config.php /opt/egroupware/html/phpsysinfo/ |
198 |
cp -f /usr/share/doc/eGroupWare-1.4.002/Sources/phpSysInfo/Redhat.png /opt/egroupware/html/phpsysinfo/images/ |
cp -f /usr/share/doc/eGroupWare-1.4.004/Sources/phpSysInfo/Redhat.png /opt/egroupware/html/phpsysinfo/images/ |
199 |
|
|
200 |
echo "Cleaning Install..." |
echo "Cleaning Install..." |
201 |
rm -rf /opt/egroupware/egroupware |
rm -rf /opt/egroupware/egroupware |
228 |
|
|
229 |
echo "Preparing header.inc.php..." |
echo "Preparing header.inc.php..." |
230 |
case $UPDATE in |
case $UPDATE in |
231 |
0) sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.4.002/Sources/header.inc.php > /opt/egroupware/header.inc.php ;; |
0) sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.4.004/Sources/header.inc.php > /opt/egroupware/header.inc.php ;; |
232 |
*) mv -f /opt/egroupware/html/header.inc.php /opt/egroupware/ 2>/dev/null ;; |
*) mv -f /opt/egroupware/html/header.inc.php /opt/egroupware/ 2>/dev/null ;; |
233 |
esac |
esac |
234 |
chown www:www /opt/egroupware/header.inc.php |
chown www:www /opt/egroupware/header.inc.php |
240 |
if [ -f /opt/egroupware/html/gallery/gallery2/config.php ] ; then |
if [ -f /opt/egroupware/html/gallery/gallery2/config.php ] ; then |
241 |
touch /opt/egroupware/html/gallery/gallery2/config.php |
touch /opt/egroupware/html/gallery/gallery2/config.php |
242 |
else |
else |
243 |
sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.4.002/Sources/Gallery2/config.php > /opt/egroupware/html/gallery/gallery2/config.php |
sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.4.004/Sources/Gallery2/config.php > /opt/egroupware/html/gallery/gallery2/config.php |
244 |
fi |
fi |
245 |
chmod 640 /opt/egroupware/html/gallery/gallery2/config.php |
chmod 640 /opt/egroupware/html/gallery/gallery2/config.php |
246 |
chown www:www /opt/egroupware/html/gallery/gallery2/config.php |
chown www:www /opt/egroupware/html/gallery/gallery2/config.php |
248 |
|
|
249 |
echo "MySQL installation:" |
echo "MySQL installation:" |
250 |
if [ "$UPDATE" = "0" ] ; then |
if [ "$UPDATE" = "0" ] ; then |
251 |
cp /usr/share/doc/eGroupWare-1.4.002/Sources/81egw_database.sql /etc/e-smith/sql/init/ |
cp /usr/share/doc/eGroupWare-1.4.004/Sources/81egw_database.sql /etc/e-smith/sql/init/ |
252 |
fi |
fi |
253 |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80egw_mysql.sql |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80egw_mysql.sql |
254 |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/81egw_domain.sql |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/81egw_domain.sql |
315 |
|
|
316 |
%preun |
%preun |
317 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
318 |
mv /usr/share/doc/eGroupWare-1.4.002/Sources/DO_NOT_USE_OR_DELETE/eGW-Full-Uninstall.sh /root/ |
mv /usr/share/doc/eGroupWare-1.4.004/Sources/DO_NOT_USE_OR_DELETE/eGW-Full-Uninstall.sh /root/ |
319 |
fi |
fi |
320 |
|
|
321 |
|
|