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

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

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

Revision 1.1 by unnilennium, Sun Mar 3 21:22:48 2013 UTC Revision 1.3 by unnilennium, Tue May 28 03:01:16 2013 UTC
# Line 1  Line 1 
1  # $Id: smeserver-phpldapadmin.spec,v 1.4 2008/11/25 16:20:28 slords Exp $  # $Id: smeserver-phpldapadmin.spec,v 1.2 2013/05/27 02:45:51 unnilennium Exp $
2  # Authority: nocvs  # Authority: nocvs
3  # Name: Michel Van hees  # Name: Michel Van hees
4    
5  Summary: PhpLdapAdmin for SME server  Summary: PhpLdapAdmin for SME server
6  %define name smeserver-phpldapadmin  %define name smeserver-phpldapadmin
7  Name: %{name}  Name: %{name}
8  %define version 0.9.8.3  %define version 1.2.3
9  %define release 1  %define release 1
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    #{name}-%{version}.patch.yyyymmddnn
17  BuildRoot: /var/tmp/e-smith-buildroot  BuildRoot: /var/tmp/e-smith-buildroot
18  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
19  BuildArchitectures: noarch  BuildArchitectures: noarch
20  Requires: smeserver-release >= 7  Requires: smeserver-release >= 8
21    Requires: phpldapadmin >= 1.2.3
22  AutoReqProv: no  AutoReqProv: no
23    
24  %changelog  %changelog
25    * Sun May 26 2013 JP Pialasse <tests@pialasse.com> 1.2.3-1.sme
26    - remove phpldapadmin from package
27    - added Requires phpldapadmin-1.2.3-1
28    - clean spec file
29    - added default db value (patch file)
30    
31  * Thu Jun  26 2007 Michel Van hees <michel@vanhees.cc>  * Thu Jun  26 2007 Michel Van hees <michel@vanhees.cc>
32  - Restart contrib from scratch  - Restart contrib from scratch
33  - Use of phpldapadmin 0.9.8.3  - Use of phpldapadmin 0.9.8.3
# Line 29  SME server - phpmyadmin multiuser for sm Line 37  SME server - phpmyadmin multiuser for sm
37    
38  %prep  %prep
39  %setup  %setup
40  #%patch0 -p1  %patch0 -p1
41  #%patch1 -p1  #%patch1 -p1
42    
43  %build  %build
# Line 50  rm -rf $RPM_BUILD_ROOT Line 58  rm -rf $RPM_BUILD_ROOT
58  %preun  %preun
59    
60  %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  
61    
62  %postun  %postun
 /sbin/e-smith/db configuration delete phpldapadmin  
 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  
 service httpd-e-smith sigusr1  
63    
64  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
65  %defattr(-,root,root)  %defattr(-,root,root)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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