homebrew-core/Formula/phpmyadmin.rb
Arnaud Lafon 1ed92575c1 phpmyadmin 3.4.7
Quoted from official homepage : phpMyAdmin is a free software tool
written in PHP intended to handle the administration of MySQL over the
World Wide Web. phpMyAdmin supports a wide range of operations with
MySQL. The most frequently used operations are supported by the user
interface (managing databases, tables, fields, relations, indexes,
users, permissions, etc), while you still have the ability to directly
execute any SQL statement.

phpMyAdmin requires mcrypt for php which is not installed by default
on Lion. See pull request : https://github.com/mxcl/homebrew/pull/8339

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-12-21 14:51:25 -08:00

34 lines
1 KiB
Ruby

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