/[smecontribs]/rpms/smeserver-phpmyadmin-multiuser/contribs7/smeserver-phpmyadmin-multiuser-2.11.3.spec
ViewVC logotype

Contents of /rpms/smeserver-phpmyadmin-multiuser/contribs7/smeserver-phpmyadmin-multiuser-2.11.3.spec

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


Revision 1.1 - (show annotations) (download)
Tue Dec 25 05:00:57 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package smeserver-phpmyadmin-multiuser-2.11.3-1.src.rpm

1 Summary: PhpMyAdmin for SME server
2 %define name smeserver-phpmyadmin-multiuser
3 Name: %{name}
4 %define version 2.11.3
5 %define release 1
6 Version: %{version}
7 Release: %{release}
8 Copyright: Freely distributable
9 Group: Apache
10 Source: %{name}-%{version}.tar.gz
11 #Patch0: %{name}-%{version}.patch.yyyymmddnn
12 Packager: Michel Van hees <michel@vanhees.cc>
13 BuildRoot: /var/tmp/e-smith-buildroot
14 BuildRequires: e-smith-devtools
15 BuildArchitectures: noarch
16 Requires: smeserver-release >= 7
17 AutoReqProv: no
18
19 %changelog
20 * Wed Dec 13 2007 Michel Van hees <michel@vanhees.cc>
21 - update contrib to phpmyadmin 2.11.3
22
23 * Fri Nov 23 2007 Michel Van hees <michel@vanhees.cc>
24 - update contrib to phpmyadmin 2.11.2.2
25
26 * Tue Nov 13 2007 Michel Van hees <michel@vanhees.cc>
27 - update contrib to phpmyadmin 2.11.2.1
28
29 * Mon Oct 29 2007 Michel Van hees <michel@vanhees.cc>
30 - update contrib to phpmyadmin 2.11.2
31
32 * Mon Oct 22 2007 Michel Van hees <michel@vanhees.cc>
33 - update contrib to phmyadmin 2.11.1.2
34
35 * Sat Sep 22 2007 Michel Van hees <michel@vanhees.cc>
36 - Update contrib to phpmyadmin 2.11.1
37
38 * Mon Aug 27 2007 Michel Van hees <michel@vanhees.cc>
39 - Update contrib to phpmyadmin 2.11.0
40 - Add all available themes
41
42 * Wed Jul 25 2007 Michel Van hees <michel@vanhees.cc>
43 - Update contrib to phpmyadmin 2.10.3
44
45 * Mon Jun 18 2007 Michel Van hees <michel@vanhees.cc>
46 - Update contrib to phpmyadmin 2.10.2
47 - Adding redirection from http to https
48 - Securing httpd.conf configuration
49 - Adding ability to limit access to internal network - That's the default option!
50
51 * Thu May 24 2007 Michel Van hees <michel@vanhees.cc>
52 - update contrib to phpmyadmin 2.10.1
53
54 * Sun Mar 04 2007 Michel Van hees <michel@vanhees.cc>
55 - update contrib to phpmyadmin 2.10.0.2
56
57 * Thu Jan 18 2007 Michel Van hees <michel@vanhees.cc>
58 - update contrib to phpmyadmin 2.9.2
59
60 * Wed Jan 10 2007 Michel Van hees <michel@vanhees.cc>
61 - Template move
62
63 * Mon Nov 20 2006 Michel Van hees <michel@vanhees.cc>
64 - update contrib to phpmyadmin 2.9.1.1
65
66 * Fri Nov 17 2006 Michel Van hees <michel@vanhees.cc>
67 - update contrib to phpmyadmin 2.9.1
68
69 * Fri Nov 03 2006 Michel Van hees <michel@vanhees.cc>
70 - update contrib to phpmyadmin version 2.9.0.3
71
72 * Sun Oct 29 2006 Michel Van hees <michel@vanhees.cc>
73 - update contrib to last version of phpmyadmin
74
75 * Sat Jun 06 2006 Michel Van hees <mvanhees@vanhees.homeip.net>
76 - initial release
77
78 %description
79 SME server - phpmyadmin multiuser for smeserver
80
81 %prep
82 %setup
83 #%patch0 -p1
84 #%patch1 -p1
85
86 %build
87 perl createlinks
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
92 rm -f %{name}-%{version}-filelist
93 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
94 echo "%doc COPYING" >> %{name}-%{version}-filelist
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %pre
100 /sbin/e-smith/db accounts set phpmyadminmulti reserved
101
102 %preun
103
104 %post
105 /sbin/e-smith/db configuration set phpmyadminmulti service
106 /sbin/e-smith/db configuration setprop phpmyadminmulti access private
107
108 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
109 service httpd-e-smith sigusr1
110
111 if [ $1 = 1 ] ; then
112 mysql --execute="grant all privileges on *.* to admin@localhost identified by 'admin' WITH GRANT OPTION"
113 mysql --execute="flush privileges"
114 fi
115
116 case "${LANG:0:2}" in
117 fr)
118 echo ""
119 echo "Vous pouvez maintenant acceder à phpmyadmin via un browser web de la maniere suivante https://nom_server/myadmin"
120 echo "Vous pourrez vous loger sous admin avec comme mot de pass admin. N'oublier pas de le changer!"
121 echo "Si vous mettez à jour une version 2.1 ou supérieur, le mot de passe admin n'aura pas changer!"
122 echo ""
123 echo "Attention !!!!!"
124 echo "PHPMyadmin est limité en accès au réseau interne, donc pas depuis internet"
125 echo "Vous pouvez changer cette option avec les commandes :"
126 echo "db configuration setprop phpmyadminmulti access public"
127 echo "signal-events console-save"
128 echo ""
129 ;;
130 *)
131 echo ""
132 echo "Now you can access phpmyadmin though your browser at https://server_name/myadmin"
133 echo "You can connect using login admin and password admin. Don't forget to change it"
134 echo "If you update a 2.1 version of this contribs, admin password don't change!"
135 echo ""
136 echo "BEWARE !!!"
137 echo "PHPMyadmin is now limited to internal network, so it couldn't be access from internet"
138 echo "You can change this with the following command :"
139 echo "db configuration setprop phpmyadminmulti access public"
140 echo "signal-events console-save"
141 echo ""
142 ;;
143 esac
144
145 %postun
146 /sbin/e-smith/db configuration delete phpmyadminmulti
147 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
148 /sbin/e-smith/db accounts delete phpmyadminmulti
149 service httpd-e-smith sigusr1
150 if [ $1 = 0 ] ; then
151 mysql --execute="delete from mysql.user where User='admin'"
152 mysql --execute="flush privileges"
153 fi
154
155 %files -f %{name}-%{version}-filelist
156 %defattr(-,root,root)

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