diff options
Diffstat (limited to 'meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.2.2.bb')
-rw-r--r-- | meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.2.2.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.2.2.bb b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.2.2.bb new file mode 100644 index 0000000000..f0e8b749aa --- /dev/null +++ b/meta-webserver/recipes-php/phpmyadmin/phpmyadmin_5.2.2.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | SUMMARY = "Web-based MySQL administration interface" | ||
2 | HOMEPAGE = "http://www.phpmyadmin.net" | ||
3 | # Main code is GPLv2, vendor/tecnickcom/tcpdf is under LGPLv3, js/jquery is under MIT | ||
4 | LICENSE = "GPL-2.0-only & LGPL-3.0-only & MIT" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
6 | file://vendor/tecnickcom/tcpdf/LICENSE.TXT;md5=72bda492a00ee8c4121987c6afdefc07 \ | ||
7 | file://js/vendor/jquery/MIT-LICENSE.txt;md5=de877aa6d744cc160ff41c26a8e4811f \ | ||
8 | " | ||
9 | |||
10 | SRC_URI = "https://files.phpmyadmin.net/phpMyAdmin/${PV}/phpMyAdmin-${PV}-all-languages.tar.xz \ | ||
11 | file://apache.conf \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[sha256sum] = "f881819a3b11e653b0212afaf0cc105db85c767715cb3f5852670f7fc36c9669" | ||
15 | |||
16 | UPSTREAM_CHECK_URI = "https://www.phpmyadmin.net/downloads/" | ||
17 | UPSTREAM_CHECK_REGEX = "phpMyAdmin-(?P<pver>\d+(\.\d+)+)-all-languages.tar.xz" | ||
18 | |||
19 | S = "${UNPACKDIR}/phpMyAdmin-${PV}-all-languages" | ||
20 | |||
21 | inherit allarch | ||
22 | |||
23 | do_install() { | ||
24 | install -d ${D}${datadir}/${BPN} | ||
25 | cp -R --no-dereference --preserve=mode,links -v * ${D}${datadir}/${BPN} | ||
26 | chown -R root:root ${D}${datadir}/${BPN} | ||
27 | # Don't install patches to target | ||
28 | rm -rf ${D}${datadir}/${BPN}/patches | ||
29 | |||
30 | install -d ${D}${sysconfdir}/apache2/conf.d | ||
31 | install -m 0644 ${UNPACKDIR}/apache.conf ${D}${sysconfdir}/apache2/conf.d/phpmyadmin.conf | ||
32 | |||
33 | # Remove a few scripts that explicitly require bash (!) | ||
34 | rm -f ${D}${datadir}/phpmyadmin/libraries/transformations/*.sh | ||
35 | } | ||
36 | |||
37 | FILES:${PN} = "${datadir}/${BPN} \ | ||
38 | ${sysconfdir}/apache2/conf.d" | ||
39 | |||
40 | RDEPENDS:${PN} += "bash php-cli" | ||