0c89a5c8dd
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
33 lines
1,021 B
Ruby
33 lines
1,021 B
Ruby
require 'formula'
|
|
|
|
class Phpmyadmin < Formula
|
|
homepage 'http://www.phpmyadmin.net/documentation'
|
|
url 'http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.7/phpMyAdmin-3.4.7-all-languages.tar.gz'
|
|
md5 'b422d003ed6239bc9f96c02af6c66405'
|
|
|
|
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
|