1 |
# $Id: smeserver-phpldapadmin.spec,v 1.1 2013/03/03 21:22:48 unnilennium Exp $ |
# $Id: smeserver-phpldapadmin.spec,v 1.4 2013/11/05 00:21:58 unnilennium Exp $ |
2 |
# Authority: nocvs |
# Authority: nocvs |
3 |
# Name: Michel Van hees |
# Name: Michel Van hees |
4 |
|
|
6 |
%define name smeserver-phpldapadmin |
%define name smeserver-phpldapadmin |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 1.2.3 |
%define version 1.2.3 |
9 |
%define release 1 |
%define release 3 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Freely distributable |
License: Freely distributable |
13 |
Group: Apache |
Group: Apache |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
#Patch0: %{name}-%{version}.patch.yyyymmddnn |
Patch0: smeserver-phpldapadmin-1.2.3-dbinit.patch |
16 |
|
Patch1: smeserver-phpldapadmin-1.2.3-template.patch |
17 |
|
Patch2: smeserver-phpldapadmin-1.2.3-bigone.patch |
18 |
|
#{name}-%{version}.patch.yyyymmddnn |
19 |
BuildRoot: /var/tmp/e-smith-buildroot |
BuildRoot: /var/tmp/e-smith-buildroot |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
AutoReqProv: no |
AutoReqProv: no |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
|
* Mon Nov 4 2013 JP Pialasse <tests@pialasse.com> 1.2.3-3.sme |
28 |
|
- wrong tempalte path for config file [SME: 7975] |
29 |
|
- patching also incorrect template. |
30 |
|
- error binding to server swith to http auth to prevent |
31 |
|
|
32 |
* Sun May 26 2013 JP Pialasse <tests@pialasse.com> 1.2.3-1.sme |
* Sun May 26 2013 JP Pialasse <tests@pialasse.com> 1.2.3-1.sme |
33 |
- remove phpldapadmin from package |
- remove phpldapadmin from package |
34 |
- added Requires phpldapadmin-1.2.3-1 |
- added Requires phpldapadmin-1.2.3-1 |
35 |
|
- clean spec file |
36 |
|
- added default db value (patch file) |
37 |
|
|
38 |
* Thu Jun 26 2007 Michel Van hees <michel@vanhees.cc> |
* Thu Jun 26 2007 Michel Van hees <michel@vanhees.cc> |
39 |
- Restart contrib from scratch |
- Restart contrib from scratch |
44 |
|
|
45 |
%prep |
%prep |
46 |
%setup |
%setup |
47 |
#%patch0 -p1 |
%patch0 -p1 |
48 |
#%patch1 -p1 |
%patch1 -p1 |
49 |
|
%patch2 -p1 |
50 |
|
|
51 |
|
|
52 |
%build |
%build |
53 |
perl createlinks |
perl createlinks |
67 |
%preun |
%preun |
68 |
|
|
69 |
%post |
%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 |
|
70 |
|
|
71 |
%postun |
%postun |
|
/sbin/e-smith/db configuration delete phpldapadmin |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
service httpd-e-smith sigusr1 |
|
72 |
|
|
73 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
74 |
%defattr(-,root,root) |
%defattr(-,root,root) |