Discussion:
[yocto] [PATCH] Use lynis download link from github releases
Stefan Lendl
2018-11-15 14:13:59 UTC
Permalink
Unlike the official download page, it also works for older releases

Signed-off-by: Stefan Lendl <***@gmail.com>
---
meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb b/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
index c25b804..1ee71ef 100644
--- a/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
+++ b/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
@@ -6,12 +6,12 @@ HOMEDIR = "https://cisofy.com/"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1"

-SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz"
+SRC_URI = "https://github.com/CISOfy/lynis/archive/${PV}.tar.gz"

-SRC_URI[md5sum] = "5b9da89c616344bbc73cbc5688a4a0bd"
-SRC_URI[sha256sum] = "7a09c6fc71c65d572ca702df7b4394d71f9037484062ef71b76f59a2c498b029"
+SRC_URI[md5sum] = "f91840acc0801b77844363fc55c5d688"
+SRC_URI[sha256sum] = "e143eaefec3222f98a0f74dd6dcb3818aa348dea3d0379bd3a45455911b6ee2a"

-S = "${WORKDIR}/${BPN}"
+S = "${WORKDIR}/${BPN}-${PV}"

inherit autotools-brokensep
--
2.14.5

--
Burton, Ross
2018-11-15 14:36:50 UTC
Permalink
Post by Stefan Lendl
-SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz"
+SRC_URI = "https://github.com/CISOfy/lynis/archive/${PV}.tar.gz"
NAK.

Those tarballs are generated on demand by github so over time *will*
change. If they don't host generated tarballs (similar URL but the
filename isn't the tag name) then the only alternative is to use the
git fetcher.

Ross
--
Stefan Lendl
2018-11-15 14:39:01 UTC
Permalink
Unlike the official download page, it also works for older releases

Signed-off-by: Stefan Lendl <***@gmail.com>
---
meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb b/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
index c25b804..1ee71ef 100644
--- a/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
+++ b/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
@@ -6,12 +6,12 @@ HOMEDIR = "https://cisofy.com/"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1"

-SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz"
+SRC_URI = "https://github.com/CISOfy/lynis/archive/${PV}.tar.gz"

-SRC_URI[md5sum] = "5b9da89c616344bbc73cbc5688a4a0bd"
-SRC_URI[sha256sum] = "7a09c6fc71c65d572ca702df7b4394d71f9037484062ef71b76f59a2c498b029"
+SRC_URI[md5sum] = "f91840acc0801b77844363fc55c5d688"
+SRC_URI[sha256sum] = "e143eaefec3222f98a0f74dd6dcb3818aa348dea3d0379bd3a45455911b6ee2a"

-S = "${WORKDIR}/${BPN}"
+S = "${WORKDIR}/${BPN}-${PV}"

inherit autotools-brokensep
--
2.14.5

--
Joshua Watt
2018-11-15 14:40:18 UTC
Permalink
Post by Stefan Lendl
Unlike the official download page, it also works for older releases
---
meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/meta-security-compliance/recipes-auditors/lynis/
lynis_2.5.1.bb b/meta-security-compliance/recipes-auditors/lynis/
lynis_2.5.1.bb
index c25b804..1ee71ef 100644
--- a/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
+++ b/meta-security-compliance/recipes-auditors/lynis/lynis_2.5.1.bb
@@ -6,12 +6,12 @@ HOMEDIR = "https://cisofy.com/"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1"
-SRC_URI = "https://cisofy.com/files/${BPN}-${PV}.tar.gz"
+SRC_URI = "https://github.com/CISOfy/lynis/archive/${PV}.tar.gz"
Using the archive links from GitHub in the past has caused problems because
the checksums change. I think most other recipes use the git fetcher and
specify the sha1 that corresponds to the release.
Post by Stefan Lendl
-SRC_URI[md5sum] = "5b9da89c616344bbc73cbc5688a4a0bd"
-SRC_URI[sha256sum] =
"7a09c6fc71c65d572ca702df7b4394d71f9037484062ef71b76f59a2c498b029"
+SRC_URI[md5sum] = "f91840acc0801b77844363fc55c5d688"
+SRC_URI[sha256sum] =
"e143eaefec3222f98a0f74dd6dcb3818aa348dea3d0379bd3a45455911b6ee2a"
-S = "${WORKDIR}/${BPN}"
+S = "${WORKDIR}/${BPN}-${PV}"
inherit autotools-brokensep
--
2.14.5
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Loading...