Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 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 |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 4 | LICENSE = "GPL-2.0-only & LGPL-3.0-only & MIT" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 6 | file://vendor/tecnickcom/tcpdf/LICENSE.TXT;md5=d0ff7e060074497f34481cf574e8a581 \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 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 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "373f9599dfbd96d6fe75316d5dad189e68c305f297edf42377db9dd6b41b2557" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 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 = "${WORKDIR}/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 ${WORKDIR}/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" |