diff options
-rw-r--r-- | meta-oe/recipes-support/smarty/smarty_4.5.5.bb | 28 | ||||
-rw-r--r-- | meta-oe/recipes-support/smarty/smarty_5.4.2.bb | 40 |
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 @@ | |||
1 | DESCRIPTION = "the compiling PHP template engine" | ||
2 | SECTION = "console/network" | ||
3 | HOMEPAGE = "https://www.smarty.net/" | ||
4 | |||
5 | LICENSE = "GPL-3.0-only" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2c0f216b2120ffc367e20f2b56df51b3" | ||
7 | |||
8 | DEPENDS += "php" | ||
9 | |||
10 | SRC_URI = "git://github.com/smarty-php/smarty.git;protocol=https;branch=support/4" | ||
11 | |||
12 | SRCREV = "c4851c12e34ff80073ddeb7d98b059d57dea9de2" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | do_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 | } | ||
26 | FILES:${PN} = "${datadir}/php/smarty3/" | ||
27 | |||
28 | CVE_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 @@ | |||
1 | SUMMARY = "Template engine for PHP" | ||
2 | DESCRIPTION = "\ | ||
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 | " | ||
7 | HOMEPAGE = "https://smarty-php.github.io/smarty/" | ||
8 | BUGTRACKER = "https://github.com/smarty-php/smarty/issues" | ||
9 | |||
10 | LICENSE = "GPL-3.0-only" | ||
11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2c0f216b2120ffc367e20f2b56df51b3" | ||
12 | |||
13 | SRC_URI = "git://github.com/smarty-php/smarty.git;protocol=https;branch=master" | ||
14 | |||
15 | SRCREV = "642a97adcc2bf6c1b2458d6afeeb36ae001c1c2f" | ||
16 | |||
17 | S = "${UNPACKDIR}/git" | ||
18 | |||
19 | INHIBIT_DEFAULT_DEPS = "1" | ||
20 | |||
21 | inherit allarch | ||
22 | |||
23 | # `make clean` removes files, they can't be rebuild with `make all` | ||
24 | CLEANBROKEN = "1" | ||
25 | |||
26 | do_configure[noexec] = "1" | ||
27 | do_compile[noexec] = "1" | ||
28 | |||
29 | do_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 | } | ||
36 | FILES:${PN} += "${datadir}/php/smarty3/" | ||
37 | |||
38 | RDEPENDS:${PN} = "php" | ||
39 | |||
40 | CVE_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." | ||