summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/smarty/smarty_4.5.5.bb28
-rw-r--r--meta-oe/recipes-support/smarty/smarty_5.4.2.bb40
2 files changed, 40 insertions, 28 deletions
diff --git a/meta-oe/recipes-support/smarty/smarty_4.5.5.bb b/meta-oe/recipes-support/smarty/smarty_4.5.5.bb
deleted file mode 100644
index e8a63a74a7..0000000000
--- a/meta-oe/recipes-support/smarty/smarty_4.5.5.bb
+++ /dev/null
@@ -1,28 +0,0 @@
1DESCRIPTION = "the compiling PHP template engine"
2SECTION = "console/network"
3HOMEPAGE = "https://www.smarty.net/"
4
5LICENSE = "GPL-3.0-only"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=2c0f216b2120ffc367e20f2b56df51b3"
7
8DEPENDS += "php"
9
10SRC_URI = "git://github.com/smarty-php/smarty.git;protocol=https;branch=support/4"
11
12SRCREV = "c4851c12e34ff80073ddeb7d98b059d57dea9de2"
13
14S = "${WORKDIR}/git"
15
16do_install() {
17 install -d ${D}${datadir}/php/smarty3/libs/
18 install -m 0644 ${S}/libs/*.php ${D}${datadir}/php/smarty3/libs/
19
20 install -d ${D}${datadir}/php/smarty3/libs/plugins
21 install -m 0644 ${S}/libs/plugins/*.php ${D}${datadir}/php/smarty3/libs/plugins/
22
23 install -d ${D}${datadir}/php/smarty3/libs/sysplugins
24 install -m 0644 ${S}/libs/sysplugins/*.php ${D}${datadir}/php/smarty3/libs/sysplugins/
25}
26FILES:${PN} = "${datadir}/php/smarty3/"
27
28CVE_STATUS[CVE-2020-10375] = "cpe-incorrect: The recipe used in the meta-openembedded is a different smarty package compared to the one which has the CVE issue."
diff --git a/meta-oe/recipes-support/smarty/smarty_5.4.2.bb b/meta-oe/recipes-support/smarty/smarty_5.4.2.bb
new file mode 100644
index 0000000000..95673e2bb9
--- /dev/null
+++ b/meta-oe/recipes-support/smarty/smarty_5.4.2.bb
@@ -0,0 +1,40 @@
1SUMMARY = "Template engine for PHP"
2DESCRIPTION = "\
3 Smarty facilitates the separation of presentation (HTML/CSS) from \
4 application logic. This implies that PHP code is application logic, and is \
5 separated from the presentation. \
6"
7HOMEPAGE = "https://smarty-php.github.io/smarty/"
8BUGTRACKER = "https://github.com/smarty-php/smarty/issues"
9
10LICENSE = "GPL-3.0-only"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=2c0f216b2120ffc367e20f2b56df51b3"
12
13SRC_URI = "git://github.com/smarty-php/smarty.git;protocol=https;branch=master"
14
15SRCREV = "642a97adcc2bf6c1b2458d6afeeb36ae001c1c2f"
16
17S = "${UNPACKDIR}/git"
18
19INHIBIT_DEFAULT_DEPS = "1"
20
21inherit allarch
22
23# `make clean` removes files, they can't be rebuild with `make all`
24CLEANBROKEN = "1"
25
26do_configure[noexec] = "1"
27do_compile[noexec] = "1"
28
29do_install() {
30 install -d ${D}${datadir}/php/smarty3/libs/
31 install -m 0644 ${S}/libs/*.php ${D}${datadir}/php/smarty3/libs/
32
33 install -d ${D}${datadir}/php/smarty3/src/
34 cp -rf ${S}/src/* ${D}${datadir}/php/smarty3/src/
35}
36FILES:${PN} += "${datadir}/php/smarty3/"
37
38RDEPENDS:${PN} = "php"
39
40CVE_STATUS[CVE-2020-10375] = "cpe-incorrect: The recipe used in the meta-openembedded is a different smarty package compared to the one which has the CVE issue."