/[smecontribs]/rpms/smeserver-phpldapadmin/contribs8/smeserver-phpldapadmin.spec
ViewVC logotype

Contents of /rpms/smeserver-phpldapadmin/contribs8/smeserver-phpldapadmin.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Mon May 27 02:45:51 2013 UTC (10 years, 11 months ago) by unnilennium
Branch: MAIN
Changes since 1.1: +8 -3 lines
* Sun May 26 2013 JP Pialasse <tests@pialasse.com> 1.2.3-1.sme
- remove phpldapadmin from package
- added Requires phpldapadmin-1.2.3-1

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed