diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-10-02 10:08:36 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-10-09 11:09:23 +0200 |
commit | edc5dd9a2247a38b38905f2bc41805aa91c0617f (patch) | |
tree | 7f59fa872d2a6c7245c9d3a7dedc66464bdcce23 | |
parent | 0cd6b15d729c7f4b17ac02180e7c5462b91ed9e4 (diff) | |
download | meta-openembedded-edc5dd9a2247a38b38905f2bc41805aa91c0617f.tar.gz |
phpmyadmin: add new recipe
Add new recipe for phpMyAdmin 3.5.2.2, borrowing the apache.conf file
from Debian (with the addition of "Require all granted" to enable
access).
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r-- | meta-webserver/recipes-php/phpmyadmin/phpmyadmin/apache.conf | 42 | ||||
-rw-r--r-- | meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb | 30 |
2 files changed, 72 insertions, 0 deletions
diff --git a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/apache.conf b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/apache.conf new file mode 100644 index 000000000..94cbd865c --- /dev/null +++ b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin/apache.conf | |||
@@ -0,0 +1,42 @@ | |||
1 | # phpMyAdmin default Apache configuration | ||
2 | |||
3 | Alias /phpmyadmin /usr/share/phpmyadmin | ||
4 | |||
5 | <Directory /usr/share/phpmyadmin> | ||
6 | Options FollowSymLinks | ||
7 | DirectoryIndex index.php | ||
8 | Require all granted | ||
9 | |||
10 | <IfModule mod_php5.c> | ||
11 | AddType application/x-httpd-php .php | ||
12 | |||
13 | php_flag magic_quotes_gpc Off | ||
14 | php_flag track_vars On | ||
15 | php_flag register_globals Off | ||
16 | php_admin_flag allow_url_fopen Off | ||
17 | php_value include_path . | ||
18 | php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp | ||
19 | php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/ | ||
20 | </IfModule> | ||
21 | </Directory> | ||
22 | |||
23 | # Authorize for setup | ||
24 | <Directory /usr/share/phpmyadmin/setup> | ||
25 | <IfModule mod_authn_file.c> | ||
26 | AuthType Basic | ||
27 | AuthName "phpMyAdmin Setup" | ||
28 | AuthUserFile /etc/phpmyadmin/htpasswd.setup | ||
29 | </IfModule> | ||
30 | Require valid-user | ||
31 | </Directory> | ||
32 | |||
33 | # Disallow web access to directories that don't need it | ||
34 | <Directory /usr/share/phpmyadmin/libraries> | ||
35 | Order Deny,Allow | ||
36 | Deny from All | ||
37 | </Directory> | ||
38 | <Directory /usr/share/phpmyadmin/setup/lib> | ||
39 | Order Deny,Allow | ||
40 | Deny from All | ||
41 | </Directory> | ||
42 | |||
diff --git a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb new file mode 100644 index 000000000..e3a581c67 --- /dev/null +++ b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_3.5.2.2.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "Web-based MySQL administration interface" | ||
2 | HOMEPAGE = "http://www.phpmyadmin.net" | ||
3 | # Main code is GPLv2, libraries/tcpdf is under LGPLv3, js/jquery is under MIT | ||
4 | LICENSE = "GPLv2 & LGPLv3 & MIT" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=eb723b61539feef013de476e68b5c50a \ | ||
6 | file://libraries/tcpdf/LICENSE.TXT;md5=5c87b66a5358ebcc495b03e0afcd342c" | ||
7 | |||
8 | PR = "r0" | ||
9 | |||
10 | SRC_URI = "${SOURCEFORGE_MIRROR}/phpmyadmin/phpMyAdmin/${PV}/phpMyAdmin-${PV}-all-languages.tar.xz \ | ||
11 | file://apache.conf" | ||
12 | |||
13 | SRC_URI[md5sum] = "3f8993fe0f2fee1a022768278c6a270b" | ||
14 | SRC_URI[sha256sum] = "d02de081c522d3026f4a8418538f7ff05adf280afa404851a5f7f4ef895b4a7d" | ||
15 | |||
16 | S = "${WORKDIR}/phpMyAdmin-${PV}-all-languages" | ||
17 | |||
18 | inherit allarch | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${datadir}/${PN} | ||
22 | cp -a * ${D}${datadir}/${PN} | ||
23 | |||
24 | install -d ${D}${sysconfdir}/apache2/conf.d | ||
25 | install -m 0644 ${WORKDIR}/apache.conf ${D}${sysconfdir}/apache2/conf.d/phpmyadmin.conf | ||
26 | } | ||
27 | |||
28 | FILES_${PN} = "${datadir}/${PN} \ | ||
29 | ${sysconfdir}/apache2/conf.d" | ||
30 | |||