--- rpms/smeserver-phpldapadmin/contribs8/smeserver-phpldapadmin.spec 2013/03/03 21:22:48 1.1 +++ rpms/smeserver-phpldapadmin/contribs8/smeserver-phpldapadmin.spec 2013/11/06 22:45:29 1.7 @@ -1,25 +1,45 @@ -# $Id: smeserver-phpldapadmin.spec,v 1.4 2008/11/25 16:20:28 slords Exp $ +# $Id: smeserver-phpldapadmin.spec,v 1.6 2013/11/05 20:55:07 unnilennium Exp $ # Authority: nocvs # Name: Michel Van hees Summary: PhpLdapAdmin for SME server %define name smeserver-phpldapadmin Name: %{name} -%define version 0.9.8.3 -%define release 1 +%define version 1.2.3 +%define release 5 Version: %{version} Release: %{release}%{?dist} License: Freely distributable Group: Apache Source: %{name}-%{version}.tar.gz -#Patch0: %{name}-%{version}.patch.yyyymmddnn +Patch0: smeserver-phpldapadmin-1.2.3-dbinit.patch +Patch1: smeserver-phpldapadmin-1.2.3-template.patch +Patch2: smeserver-phpldapadmin-1.2.3-bigone.patch +Patch3: smeserver-phpldapadmin-1.2.3-authpatch.patch +#{name}-%{version}.patch.yyyymmddnn BuildRoot: /var/tmp/e-smith-buildroot BuildRequires: e-smith-devtools BuildArchitectures: noarch -Requires: smeserver-release >= 7 +Requires: smeserver-release >= 8 +Requires: phpldapadmin >= 1.2.3 AutoReqProv: no %changelog +* Wed Nov 6 2013 JP Pialasse 1.2.3-5.sme +- fix bug [SME: 5762] +- default admin read only but kamikaze mod for root modify access. + +* Mon Nov 4 2013 JP Pialasse 1.2.3-4.sme +- wrong template path for config file [SME: 7975] +- patching also incorrect template. +- error binding to server swith to http auth to prevent + +* Sun May 26 2013 JP Pialasse 1.2.3-1.sme +- remove phpldapadmin from package +- added Requires phpldapadmin-1.2.3-1 +- clean spec file +- added default db value (patch file) + * Thu Jun 26 2007 Michel Van hees - Restart contrib from scratch - Use of phpldapadmin 0.9.8.3 @@ -29,8 +49,10 @@ SME server - phpmyadmin multiuser for sm %prep %setup -#%patch0 -p1 -#%patch1 -p1 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build perl createlinks @@ -50,45 +72,8 @@ rm -rf $RPM_BUILD_ROOT %preun %post -/sbin/e-smith/db configuration set phpldapadmin service -/sbin/e-smith/db configuration setprop phpldapadmin access private - -/sbin/e-smith/expand-template /opt/phpldapadmin/config/config.php -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf -service httpd-e-smith sigusr1 - - -case "${LANG:0:2}" in - fr) - echo "" - echo "Vous pouvez maintenant acceder à phpldapadmin via un browser web de la maniere suivante https://nom_server/phpldapadmin" - echo "Vous pouvez vous connecter avec le login admin et le mot de passe du système" - echo "" - echo "Attention !!!!!" - echo "phpldapadmin est limité en accès au réseau interne, donc pas depuis internet" - echo "Vous pouvez changer cette option avec les commandes :" - echo "db configuration setprop phpldapadmin access public" - echo "signal-events console-save" - echo "" - ;; - *) - echo "" - echo "Now you can access phpldapadmin though your browser at https://server_name/phpldapadmin" - echo "You can connect using system admin login and password" - echo "" - echo "BEWARE !!!" - echo "phpldapadmin is now limited to internal network, so it couldn't be access from internet" - echo "You can change this with the following command :" - echo "db configuration setprop phpldapadmin access public" - echo "signal-events console-save" - echo "" - ;; -esac %postun -/sbin/e-smith/db configuration delete phpldapadmin -/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf -service httpd-e-smith sigusr1 %files -f %{name}-%{version}-filelist %defattr(-,root,root)