blob: f74d0657bbbd2e0dbb1514163796c7574f41b237 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require 'formula'
class Phpmyadmin < Formula
url 'http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.7/phpMyAdmin-3.4.7-all-languages.tar.gz'
homepage 'http://www.phpmyadmin.net/documentation'
md5 'b422d003ed6239bc9f96c02af6c66405'
version '3.4.7'
depends_on 'mcrypt-php'
def install
(share+'phpmyadmin').install Dir['*']
end
def caveats; <<-EOS.undent
Note that this formula will NOT install mysql. It is not
required since you might want to get connected to a remote
database server.
Webserver configuration example (add this at the end of
your /etc/apache2/httpd.conf for instance) :
Alias /phpmyadmin #{HOMEBREW_PREFIX}/share/phpmyadmin
<Directory #{HOMEBREW_PREFIX}/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Then, open http://localhost/phpmyadmin
More documentation : file://#{share}/phpmyadmin/Documentation.html
EOS
end
end
|