1*4882a593SmuzhiyunSUMMARY = "Web-based MySQL administration interface" 2*4882a593SmuzhiyunHOMEPAGE = "http://www.phpmyadmin.net" 3*4882a593Smuzhiyun# Main code is GPLv2, vendor/tecnickcom/tcpdf is under LGPLv3, js/jquery is under MIT 4*4882a593SmuzhiyunLICENSE = "GPL-2.0-only & LGPL-3.0-only & MIT" 5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 6*4882a593Smuzhiyun file://vendor/tecnickcom/tcpdf/LICENSE.TXT;md5=dd6470bbcd3436ca317f82d34abaf688 \ 7*4882a593Smuzhiyun file://js/vendor/jquery/MIT-LICENSE.txt;md5=de877aa6d744cc160ff41c26a8e4811f \ 8*4882a593Smuzhiyun" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunSRC_URI = "https://files.phpmyadmin.net/phpMyAdmin/${PV}/phpMyAdmin-${PV}-all-languages.tar.xz \ 11*4882a593Smuzhiyun file://apache.conf \ 12*4882a593Smuzhiyun file://CVE-2023-25727.patch \ 13*4882a593Smuzhiyun" 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunSRC_URI[sha256sum] = "c562feddc0f8ff5e69629113f273a0d024a65fb928c48e89ce614744d478296f" 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://www.phpmyadmin.net/downloads/" 18*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "phpMyAdmin-(?P<pver>\d+(\.\d+)+)-all-languages.tar.xz" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunS = "${WORKDIR}/phpMyAdmin-${PV}-all-languages" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyuninherit allarch 23*4882a593Smuzhiyun 24*4882a593Smuzhiyundo_install() { 25*4882a593Smuzhiyun install -d ${D}${datadir}/${BPN} 26*4882a593Smuzhiyun cp -R --no-dereference --preserve=mode,links -v * ${D}${datadir}/${BPN} 27*4882a593Smuzhiyun chown -R root:root ${D}${datadir}/${BPN} 28*4882a593Smuzhiyun # Don't install patches to target 29*4882a593Smuzhiyun rm -rf ${D}${datadir}/${BPN}/patches 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun install -d ${D}${sysconfdir}/apache2/conf.d 32*4882a593Smuzhiyun install -m 0644 ${WORKDIR}/apache.conf ${D}${sysconfdir}/apache2/conf.d/phpmyadmin.conf 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun # Remove a few scripts that explicitly require bash (!) 35*4882a593Smuzhiyun rm -f ${D}${datadir}/phpmyadmin/libraries/transformations/*.sh 36*4882a593Smuzhiyun} 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunFILES:${PN} = "${datadir}/${BPN} \ 39*4882a593Smuzhiyun ${sysconfdir}/apache2/conf.d" 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunRDEPENDS:${PN} += "bash php-cli" 42