1 |
Summary: PhpLdapAdmin for SME server |
2 |
%define name smeserver-phpldapadmin |
3 |
Name: %{name} |
4 |
%define version 0.9.8.3 |
5 |
%define release 1 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: Freely distributable |
9 |
Group: Apache |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
#Patch0: %{name}-%{version}.patch.yyyymmddnn |
12 |
BuildRoot: /var/tmp/e-smith-buildroot |
13 |
BuildRequires: e-smith-devtools |
14 |
BuildArchitectures: noarch |
15 |
Requires: smeserver-release >= 7 |
16 |
AutoReqProv: no |
17 |
|
18 |
%changelog |
19 |
* Thu Jun 26 2007 Michel Van hees <michel@vanhees.cc> |
20 |
- Restart contrib from scratch |
21 |
- Use of phpldapadmin 0.9.8.3 |
22 |
|
23 |
%description |
24 |
SME server - phpmyadmin multiuser for smeserver |
25 |
|
26 |
%prep |
27 |
%setup |
28 |
#%patch0 -p1 |
29 |
#%patch1 -p1 |
30 |
|
31 |
%build |
32 |
perl createlinks |
33 |
|
34 |
%install |
35 |
rm -rf $RPM_BUILD_ROOT |
36 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
37 |
rm -f %{name}-%{version}-filelist |
38 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
39 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
40 |
|
41 |
%clean |
42 |
rm -rf $RPM_BUILD_ROOT |
43 |
|
44 |
%pre |
45 |
|
46 |
%preun |
47 |
|
48 |
%post |
49 |
/sbin/e-smith/db configuration set phpldapadmin service |
50 |
/sbin/e-smith/db configuration setprop phpldapadmin access private |
51 |
|
52 |
/sbin/e-smith/expand-template /opt/phpldapadmin/config/config.php |
53 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
54 |
service httpd-e-smith sigusr1 |
55 |
|
56 |
|
57 |
case "${LANG:0:2}" in |
58 |
fr) |
59 |
echo "" |
60 |
echo "Vous pouvez maintenant acceder à phpldapadmin via un browser web de la maniere suivante https://nom_server/phpldapadmin" |
61 |
echo "Vous pouvez vous connecter avec le login admin et le mot de passe du système" |
62 |
echo "" |
63 |
echo "Attention !!!!!" |
64 |
echo "phpldapadmin est limité en accès au réseau interne, donc pas depuis internet" |
65 |
echo "Vous pouvez changer cette option avec les commandes :" |
66 |
echo "db configuration setprop phpldapadmin access public" |
67 |
echo "signal-events console-save" |
68 |
echo "" |
69 |
;; |
70 |
*) |
71 |
echo "" |
72 |
echo "Now you can access phpldapadmin though your browser at https://server_name/phpldapadmin" |
73 |
echo "You can connect using system admin login and password" |
74 |
echo "" |
75 |
echo "BEWARE !!!" |
76 |
echo "phpldapadmin is now limited to internal network, so it couldn't be access from internet" |
77 |
echo "You can change this with the following command :" |
78 |
echo "db configuration setprop phpldapadmin access public" |
79 |
echo "signal-events console-save" |
80 |
echo "" |
81 |
;; |
82 |
esac |
83 |
|
84 |
%postun |
85 |
/sbin/e-smith/db configuration delete phpldapadmin |
86 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
87 |
service httpd-e-smith sigusr1 |
88 |
|
89 |
%files -f %{name}-%{version}-filelist |
90 |
%defattr(-,root,root) |