New package: phpMyAdmin-4.4.14.1

This commit is contained in:
Steve Prybylski 2015-09-17 23:13:11 -04:00
parent 84b7c4ded9
commit 73b6318897
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,2 @@
phpMyAdmin has been installed to:
/usr/share/webapps/phpmyadmin

View File

@ -0,0 +1,11 @@
# phpMyAdmin default Apache configuration
Alias /phpmyadmin "/usr/share/webapps/phpmyadmin"
<Directory "/usr/share/webapps/phpmyadmin">
AllowOverride All
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>

View File

@ -0,0 +1,27 @@
# Alias for phpMyAdmin directory
alias.url += (
"/phpmyadmin" => "/usr/share/webapps/phpmyadmin",
)
# Disallow access to libraries
$HTTP["url"] =~ "^/phpmyadmin/libraries" {
url.access-deny = ( "" )
}
$HTTP["url"] =~ "^/phpmyadmin/setup/lib" {
url.access-deny = ( "" )
}
# Limit access to setup script
$HTTP["url"] =~ "^/phpmyadmin/setup" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/phpmyadmin/htpasswd.setup"
auth.require = (
"/" => (
"method" => "basic",
"realm" => "phpMyAdmin Setup",
"require" => "valid-user"
)
)
}

View File

@ -0,0 +1,24 @@
# Template file for 'phpMyAdmin'
pkgname=phpMyAdmin
version=4.4.14.1
revision=1
create_wrksrc=yes
noarch=yes
build_style=fetch
depends="php php-mysql"
short_desc="Web-based MySQL administration tool"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2"
homepage="http://www.phpmyadmin.net"
distfiles="https://files.phpmyadmin.net/phpMyAdmin/${version}/phpMyAdmin-${version}-all-languages.tar.gz>${pkgname}-${version}.tar.gz"
checksum=d522758817c14e7f6a518565f3282526de75a025c74c9ed35f6858444ba60faa
do_install() {
tar -zxvf ${pkgname}-${version}.tar.gz
vmkdir usr/share/webapps
vcopy ${pkgname}-${version}-all-languages usr/share/webapps/phpmyadmin
vinstall ${FILESDIR}/apache.conf 644 /etc/phpmyadmin/
vinstall ${FILESDIR}/lighttpd.conf 644 /etc/phpmyadmin/
}