diff options
| -rw-r--r-- | recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch | 51 | ||||
| -rw-r--r-- | recipes-compliance/lynis/lynis_3.1.1.bb (renamed from recipes-compliance/lynis/lynis_3.0.9.bb) | 6 |
2 files changed, 2 insertions, 55 deletions
diff --git a/recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch b/recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch deleted file mode 100644 index d365ec1..0000000 --- a/recipes-compliance/lynis/files/0001-osdetection-add-OpenEmbedded-and-Poky.patch +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | From 4b1de197ee0dd259cc05d5faf7fd38b580d841d2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Armin Kuster <akuster808@gmail.com> | ||
| 3 | Date: Tue, 2 May 2023 16:22:13 -0400 | ||
| 4 | Subject: [PATCH] osdetection: add OpenEmbedded and Poky | ||
| 5 | |||
| 6 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | https://github.com/CISOfy/lynis/pull/1390 | ||
| 10 | |||
| 11 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
| 12 | |||
| 13 | --- | ||
| 14 | include/osdetection | 14 ++++++++++++++ | ||
| 15 | 1 file changed, 14 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/include/osdetection b/include/osdetection | ||
| 18 | index 989b1b3..e5974e5 100644 | ||
| 19 | --- a/include/osdetection | ||
| 20 | +++ b/include/osdetection | ||
| 21 | @@ -308,6 +308,12 @@ | ||
| 22 | OS_REDHAT_OR_CLONE=1 | ||
| 23 | OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') | ||
| 24 | ;; | ||
| 25 | + "nodistro") | ||
| 26 | + LINUX_VERSION="openembedded" | ||
| 27 | + OS_NAME="OpenEmbedded" | ||
| 28 | + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') | ||
| 29 | + OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') | ||
| 30 | + ;; | ||
| 31 | "opensuse-tumbleweed") | ||
| 32 | LINUX_VERSION="openSUSE Tumbleweed" | ||
| 33 | # It's rolling release but has a snapshot version (the date of the snapshot) | ||
| 34 | @@ -330,6 +336,14 @@ | ||
| 35 | OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') | ||
| 36 | OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') | ||
| 37 | ;; | ||
| 38 | + "poky") | ||
| 39 | + LINUX_VERSION="Poky" | ||
| 40 | + OS_NAME="openembedded" | ||
| 41 | + LINUX_VERSION_LIKE="openembedded" | ||
| 42 | + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') | ||
| 43 | + OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') | ||
| 44 | + | ||
| 45 | + ;; | ||
| 46 | "pop") | ||
| 47 | LINUX_VERSION="Pop!_OS" | ||
| 48 | LINUX_VERSION_LIKE="Ubuntu" | ||
| 49 | -- | ||
| 50 | 2.25.1 | ||
| 51 | |||
diff --git a/recipes-compliance/lynis/lynis_3.0.9.bb b/recipes-compliance/lynis/lynis_3.1.1.bb index b8b97a5..b69f4df 100644 --- a/recipes-compliance/lynis/lynis_3.0.9.bb +++ b/recipes-compliance/lynis/lynis_3.1.1.bb | |||
| @@ -6,11 +6,9 @@ HOMEDIR = "https://cisofy.com/" | |||
| 6 | LICENSE = "GPL-3.0-only" | 6 | LICENSE = "GPL-3.0-only" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3edd6782854304fd11da4975ab9799c1" |
| 8 | 8 | ||
| 9 | SRC_URI = "https://downloads.cisofy.com/lynis/${BPN}-${PV}.tar.gz \ | 9 | SRC_URI = "https://downloads.cisofy.com/lynis/${BPN}-${PV}.tar.gz" |
| 10 | file://0001-osdetection-add-OpenEmbedded-and-Poky.patch \ | ||
| 11 | " | ||
| 12 | 10 | ||
| 13 | SRC_URI[sha256sum] = "f394df7d20391fb76e975ae88f3eba1da05ac9c4945e2c7f709326e185e17025" | 11 | SRC_URI[sha256sum] = "d72f4ee7325816bb8dbfcf31eb104207b9fe58a2493c2a875373746a71284cc3" |
| 14 | 12 | ||
| 15 | #UPSTREAM_CHECK = "https://downloads.cisofy.com/lynis" | 13 | #UPSTREAM_CHECK = "https://downloads.cisofy.com/lynis" |
| 16 | 14 | ||
