SPECS: egroupware.spec - added apache config

glen glen at pld-linux.org
Thu Aug 25 09:28:30 CEST 2005


Author: glen                         Date: Thu Aug 25 07:28:30 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added apache config

---- Files affected:
SPECS:
   egroupware.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/egroupware.spec
diff -u SPECS/egroupware.spec:1.4 SPECS/egroupware.spec:1.5
--- SPECS/egroupware.spec:1.4	Thu Aug 25 03:51:28 2005
+++ SPECS/egroupware.spec	Thu Aug 25 09:28:25 2005
@@ -6,16 +6,18 @@
 Summary(pl):	eGroupWAre - oparte na WWW oprogramowanie do pracy grupowej napisane w PHP
 Name:		egroupware
 Version:	1.0.0.009
-Release:	0.1
+Release:	0.4
 Epoch:		0
 License:	GPL
 Group:		Applications/WWW
 Source0:	http://dl.sourceforge.net/egroupware/eGroupWare-%{version}.tar.bz2
 # Source0-md5:	2ed2f3041ab4ff235f56ed23dfa7274b
+Source1:	%{name}.conf
 URL:		http://www.egroupware.org/
 Requires:	php >= 3:4.1.2
 Requires:	php-mysql
 Requires:	php-pgsql
+#Requires:	php(pgsql||mysql) <- that would be neat
 Requires:	php-pcre
 Requires:	php-gd
 Requires:	php-mbstring
@@ -23,6 +25,7 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_appdir %{_datadir}/%{name}
+%define		_sysconfdir /etc/%{name}
 
 %description
 eGroupWare is a multi-user, web-based groupware suite developed on a
@@ -51,7 +54,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_appdir}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
 
 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
 cp -a addressbook admin backup bookmarks calendar comic developer_tools \
@@ -60,11 +63,27 @@
 phpsysinfo polls preferences projects registration setup sitemgr stocks tts \
 wiki $RPM_BUILD_ROOT%{_appdir}
 
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerin -- apache1 >= 1.3.33-2
+%apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
+
+%triggerun -- apache1 >= 1.3.33-2
+%apache_config_uninstall -v 1
+
+%triggerin -- apache >= 2.0.0
+%apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
+
+%triggerun -- apache >= 2.0.0
+%apache_config_uninstall -v 2
+
 %files
 %defattr(644,root,root,755)
+%attr(710,root,http) %dir %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %doc doc/*
 %{_appdir}
 
@@ -74,6 +93,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/08/25 07:28:25  glen
+- added apache config
+
 Revision 1.4  2005/08/25 01:51:28  wolvverine
 - add R
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/egroupware.spec?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list