diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-09-27 14:09:21 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-28 08:01:10 +0100 |
commit | afefe7de281e558ed823460f80ddc631e718feb3 (patch) | |
tree | 69cc46fb93265fcbc2bcf9064829b088fa2dbed5 /meta/recipes-extended | |
parent | 35708f8860adbf51549b2b2b07c176ba34eed812 (diff) | |
download | poky-afefe7de281e558ed823460f80ddc631e718feb3.tar.gz |
meta: fix version checks in all github recipes using the github-releases class
(From OE-Core rev: b04316bdd28b7945c2c91b4e43c007b650eedc14)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/cronie/cronie_1.6.1.bb | 7 | ||||
-rw-r--r-- | meta/recipes-extended/cups/cups.inc | 7 | ||||
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate_3.20.1.bb | 7 | ||||
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.5.2.bb | 6 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 6 |
5 files changed, 15 insertions, 18 deletions
diff --git a/meta/recipes-extended/cronie/cronie_1.6.1.bb b/meta/recipes-extended/cronie/cronie_1.6.1.bb index 6d150dd3c7..078187534e 100644 --- a/meta/recipes-extended/cronie/cronie_1.6.1.bb +++ b/meta/recipes-extended/cronie/cronie_1.6.1.bb | |||
@@ -14,9 +14,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=dd2a592170760e1386c769e1043b3722 \ | |||
14 | 14 | ||
15 | SECTION = "utils" | 15 | SECTION = "utils" |
16 | 16 | ||
17 | UPSTREAM_CHECK_URI = "https://github.com/cronie-crond/${BPN}/releases/" | 17 | GITHUB_BASE_URI = "https://github.com/cronie-crond/${BPN}/releases/" |
18 | 18 | ||
19 | SRC_URI = "https://github.com/cronie-crond/cronie/releases/download/cronie-${PV}/cronie-${PV}.tar.gz \ | 19 | SRC_URI = "${GITHUB_BASE_URI}/download/cronie-${PV}/cronie-${PV}.tar.gz \ |
20 | file://crond.init \ | 20 | file://crond.init \ |
21 | file://crontab \ | 21 | file://crontab \ |
22 | file://crond.service \ | 22 | file://crond.service \ |
@@ -27,7 +27,8 @@ PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" | |||
27 | 27 | ||
28 | SRC_URI[sha256sum] = "2cd0f0dd1680e6b9c39bf1e3a5e7ad6df76aa940de1ee90a453633aa59984e62" | 28 | SRC_URI[sha256sum] = "2cd0f0dd1680e6b9c39bf1e3a5e7ad6df76aa940de1ee90a453633aa59984e62" |
29 | 29 | ||
30 | inherit autotools update-rc.d useradd systemd | 30 | inherit autotools update-rc.d useradd systemd github-releases |
31 | UPSTREAM_CHECK_REGEX = "releases/tag/cronie-(?P<pver>\d+(\.\d+)+)" | ||
31 | 32 | ||
32 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" | 33 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
33 | 34 | ||
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index 4592980766..9c920bb133 100644 --- a/meta/recipes-extended/cups/cups.inc +++ b/meta/recipes-extended/cups/cups.inc | |||
@@ -8,7 +8,7 @@ SECTION = "console/utils" | |||
8 | LICENSE = "Apache-2.0" | 8 | LICENSE = "Apache-2.0" |
9 | DEPENDS = "libpng jpeg dbus zlib libusb1" | 9 | DEPENDS = "libpng jpeg dbus zlib libusb1" |
10 | 10 | ||
11 | SRC_URI = "https://github.com/OpenPrinting/cups/releases/download/v${PV}/cups-${PV}-source.tar.gz \ | 11 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/cups-${PV}-source.tar.gz \ |
12 | file://0001-use-echo-only-in-init.patch \ | 12 | file://0001-use-echo-only-in-init.patch \ |
13 | file://0002-don-t-try-to-run-generated-binaries.patch \ | 13 | file://0002-don-t-try-to-run-generated-binaries.patch \ |
14 | file://libexecdir.patch \ | 14 | file://libexecdir.patch \ |
@@ -17,8 +17,7 @@ SRC_URI = "https://github.com/OpenPrinting/cups/releases/download/v${PV}/cups-${ | |||
17 | file://cups-volatiles.conf \ | 17 | file://cups-volatiles.conf \ |
18 | " | 18 | " |
19 | 19 | ||
20 | UPSTREAM_CHECK_URI = "https://github.com/OpenPrinting/cups/releases" | 20 | GITHUB_BASE_URI = "https://github.com/OpenPrinting/cups/releases" |
21 | UPSTREAM_CHECK_REGEX = "cups-(?P<pver>(?!.+\d(b|rc)\d.+).+)-source.tar" | ||
22 | 21 | ||
23 | # Issue only applies to MacOS | 22 | # Issue only applies to MacOS |
24 | CVE_CHECK_IGNORE += "CVE-2008-1033" | 23 | CVE_CHECK_IGNORE += "CVE-2008-1033" |
@@ -33,7 +32,7 @@ LEAD_SONAME = "libcupsdriver.so" | |||
33 | 32 | ||
34 | CLEANBROKEN = "1" | 33 | CLEANBROKEN = "1" |
35 | 34 | ||
36 | inherit autotools-brokensep binconfig useradd systemd pkgconfig multilib_script | 35 | inherit autotools-brokensep binconfig useradd systemd pkgconfig multilib_script github-releases |
37 | 36 | ||
38 | USERADD_PACKAGES = "${PN}" | 37 | USERADD_PACKAGES = "${PN}" |
39 | GROUPADD_PARAM:${PN} = "--system lpadmin" | 38 | GROUPADD_PARAM:${PN} = "--system lpadmin" |
diff --git a/meta/recipes-extended/logrotate/logrotate_3.20.1.bb b/meta/recipes-extended/logrotate/logrotate_3.20.1.bb index 35977535aa..034c37b429 100644 --- a/meta/recipes-extended/logrotate/logrotate_3.20.1.bb +++ b/meta/recipes-extended/logrotate/logrotate_3.20.1.bb | |||
@@ -10,10 +10,7 @@ DEPENDS="coreutils popt" | |||
10 | 10 | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
12 | 12 | ||
13 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | 13 | SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.xz" |
14 | UPSTREAM_CHECK_REGEX = "logrotate-(?P<pver>\d+(\.\d+)+).tar" | ||
15 | |||
16 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz" | ||
17 | 14 | ||
18 | SRC_URI[sha256sum] = "742f6d6e18eceffa49a4bacd933686d3e42931cfccfb694d7f6369b704e5d094" | 15 | SRC_URI[sha256sum] = "742f6d6e18eceffa49a4bacd933686d3e42931cfccfb694d7f6369b704e5d094" |
19 | 16 | ||
@@ -47,7 +44,7 @@ EXTRA_OEMAKE = "\ | |||
47 | # INSTALL=install and BASEDIR=/usr. | 44 | # INSTALL=install and BASEDIR=/usr. |
48 | OS_NAME = "Linux" | 45 | OS_NAME = "Linux" |
49 | 46 | ||
50 | inherit autotools systemd | 47 | inherit autotools systemd github-releases |
51 | 48 | ||
52 | SYSTEMD_SERVICE:${PN} = "\ | 49 | SYSTEMD_SERVICE:${PN} = "\ |
53 | ${BPN}.service \ | 50 | ${BPN}.service \ |
diff --git a/meta/recipes-extended/pam/libpam_1.5.2.bb b/meta/recipes-extended/pam/libpam_1.5.2.bb index 081986ef43..bde7fef8a2 100644 --- a/meta/recipes-extended/pam/libpam_1.5.2.bb +++ b/meta/recipes-extended/pam/libpam_1.5.2.bb | |||
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7eb5c1bf854e8881005d673599ee74d3 \ | |||
12 | file://libpamc/License;md5=a4da476a14c093fdc73be3c3c9ba8fb3 \ | 12 | file://libpamc/License;md5=a4da476a14c093fdc73be3c3c9ba8fb3 \ |
13 | " | 13 | " |
14 | 14 | ||
15 | SRC_URI = "https://github.com/linux-pam/linux-pam/releases/download/v${PV}/Linux-PAM-${PV}.tar.xz \ | 15 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/Linux-PAM-${PV}.tar.xz \ |
16 | file://99_pam \ | 16 | file://99_pam \ |
17 | file://pam.d/common-account \ | 17 | file://pam.d/common-account \ |
18 | file://pam.d/common-auth \ | 18 | file://pam.d/common-auth \ |
@@ -42,7 +42,7 @@ CFLAGS:append = " -fPIC " | |||
42 | 42 | ||
43 | S = "${WORKDIR}/Linux-PAM-${PV}" | 43 | S = "${WORKDIR}/Linux-PAM-${PV}" |
44 | 44 | ||
45 | inherit autotools gettext pkgconfig systemd ptest | 45 | inherit autotools gettext pkgconfig systemd ptest github-releases |
46 | 46 | ||
47 | PACKAGECONFIG ??= "" | 47 | PACKAGECONFIG ??= "" |
48 | PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit," | 48 | PACKAGECONFIG[audit] = "--enable-audit,--disable-audit,audit," |
@@ -180,6 +180,6 @@ CONFFILES:${PN}-runtime += "${sysconfdir}/pam.d/common-session-noninteractive" | |||
180 | CONFFILES:${PN}-runtime += "${sysconfdir}/pam.d/common-account" | 180 | CONFFILES:${PN}-runtime += "${sysconfdir}/pam.d/common-account" |
181 | CONFFILES:${PN}-runtime += "${sysconfdir}/security/limits.conf" | 181 | CONFFILES:${PN}-runtime += "${sysconfdir}/security/limits.conf" |
182 | 182 | ||
183 | UPSTREAM_CHECK_URI = "https://github.com/linux-pam/linux-pam/releases" | 183 | GITHUB_BASE_URI = "https://github.com/linux-pam/linux-pam/releases" |
184 | 184 | ||
185 | CVE_PRODUCT = "linux-pam" | 185 | CVE_PRODUCT = "linux-pam" |
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 414bf467ba..a87e23569b 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -10,8 +10,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c9a450b7be84eac23e6353efecb60b5b \ | |||
10 | 10 | ||
11 | DEPENDS = "virtual/crypt" | 11 | DEPENDS = "virtual/crypt" |
12 | 12 | ||
13 | UPSTREAM_CHECK_URI = "https://github.com/shadow-maint/shadow/releases" | 13 | GITHUB_BASE_URI = "https://github.com/shadow-maint/shadow/releases" |
14 | SRC_URI = "https://github.com/shadow-maint/shadow/releases/download/${PV}/${BP}.tar.gz \ | 14 | SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \ |
15 | file://0001-shadow-use-relaxed-usernames.patch \ | 15 | file://0001-shadow-use-relaxed-usernames.patch \ |
16 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ | 16 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ |
17 | file://useradd \ | 17 | file://useradd \ |
@@ -42,7 +42,7 @@ PAM_SRC_URI = "file://pam.d/chfn \ | |||
42 | file://pam.d/passwd \ | 42 | file://pam.d/passwd \ |
43 | file://pam.d/su" | 43 | file://pam.d/su" |
44 | 44 | ||
45 | inherit autotools gettext | 45 | inherit autotools gettext github-releases |
46 | 46 | ||
47 | export CONFIG_SHELL="/bin/sh" | 47 | export CONFIG_SHELL="/bin/sh" |
48 | 48 | ||