SPECS: egroupware.spec - create openldap-schema-egroupware

glen glen at pld-linux.org
Fri Jun 2 22:58:47 CEST 2006


Author: glen                         Date: Fri Jun  2 20:58:47 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- create openldap-schema-egroupware

---- Files affected:
SPECS:
   egroupware.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SPECS/egroupware.spec
diff -u SPECS/egroupware.spec:1.26 SPECS/egroupware.spec:1.27
--- SPECS/egroupware.spec:1.26	Wed May 31 02:54:46 2006
+++ SPECS/egroupware.spec	Fri Jun  2 22:58:41 2006
@@ -4,7 +4,7 @@
 # - list of bundled software (to use pld packages instead):
 # - everything
 
-%define	_rel 0.15
+%define	_rel 0.20
 Summary:	eGroupWare - a web-based groupware suite written in PHP
 Summary(pl):	eGroupWAre - oparte na WWW oprogramowanie do pracy grupowej napisane w PHP
 Name:		egroupware
@@ -52,6 +52,7 @@
 %define		_webapp		%{name}
 %define		_sysconfdir	%{_webapps}/%{_webapp}
 %define		_appdir		%{_datadir}/%{_webapp}
+%define		schemadir	/usr/share/openldap/schema
 
 %description
 eGroupWare is a multi-user, web-based groupware suite developed on a
@@ -504,6 +505,16 @@
 Ten wirtualny pakiet dostarcza backend bazy danych MS SQL dla
 eGroupware.
 
+%package -n openldap-schema-egroupware
+Summary:	eGroupWare LDAP schemas
+Group:		Networking/Daemons
+Requires(post,postun):	sed >= 4.0
+Requires:	openldap-servers
+Requires:	sed >= 4.0
+
+%description -n openldap-schema-egroupware
+This package contains phpgwaccount.schema and phpgwcontact.schema for openldap.
+
 %prep
 %setup -q -n %{name} -a1
 mv %{name}/* .
@@ -532,6 +543,11 @@
 # using PLD package
 rm -r projectmanager/inc/ttf-bitstream-vera-1.10
 
+# support just OpenLDAP
+mv phpgwapi/doc/ldap/phpgw{account,contact}.schema .
+mv phpgwapi/doc/ldap/README README.ldap
+rm -rf phpgwapi/doc/ldap
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/{lib/%{name}/default/{files,backup},run/%{name}}}
@@ -549,6 +565,10 @@
 # needed by setup script
 install header.inc.php.template $RPM_BUILD_ROOT%{_appdir}
 
+# LDAP Schemas
+install -d $RPM_BUILD_ROOT%{schemadir}
+cp -a *.schema $RPM_BUILD_ROOT%{schemadir}
+
 rm -rf $RPM_BUILD_ROOT%{_appdir}/doc
 
 %clean
@@ -566,9 +586,19 @@
 %triggerun core -- apache < 2.2.0, apache-base
 %webapp_unregister httpd %{_webapp}
 
+%post -n openldap-schema-egroupware
+%openldap_schema_register %{schemadir}/phpgw{account,contact}.schema
+%service -q ldap restart
+
+%postun -n openldap-schema-egroupware
+if [ "$1" = "0" ]; then
+	%openldap_schema_unregister %{schemadir}/phpgw{account,contact}.schema
+	%service -q ldap restart
+fi
+
 %files
 %defattr(644,root,root,755)
-%doc doc/*
+%doc doc/* README.ldap
 
 %files core
 %defattr(644,root,root,755)
@@ -779,12 +809,20 @@
 %files db-mssql
 %defattr(644,root,root,755)
 
+%files -n openldap-schema-egroupware
+%defattr(644,root,root,755)
+%{schemadir}/phpgwaccount.schema
+%{schemadir}/phpgwcontact.schema
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2006/06/02 20:58:41  glen
+- create openldap-schema-egroupware
+
 Revision 1.26  2006/05/31 00:54:46  glen
 - -projects requires -infolog
 
================================================================

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



More information about the pld-cvs-commit mailing list