diff options
Diffstat (limited to 'meta/recipes-extended/cups/cups.inc')
-rw-r--r-- | meta/recipes-extended/cups/cups.inc | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index be5a11c944..df23825466 100644 --- a/meta/recipes-extended/cups/cups.inc +++ b/meta/recipes-extended/cups/cups.inc | |||
@@ -8,18 +8,17 @@ 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/apple/cups/releases/download/v${PV}/${BP}-source.tar.gz \ | 11 | SRC_URI = "https://github.com/OpenPrinting/cups/releases/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://0003-cups_1.4.6.bb-Fix-build-on-ppc64.patch \ | 14 | file://libexecdir.patch \ |
15 | file://0004-cups-fix-multilib-install-file-conflicts.patch \ | 15 | file://0004-cups-fix-multilib-install-file-conflicts.patch \ |
16 | file://volatiles.99_cups \ | 16 | file://volatiles.99_cups \ |
17 | file://cups-volatiles.conf \ | 17 | file://cups-volatiles.conf \ |
18 | file://CVE-2020-10001.patch \ | ||
19 | " | 18 | " |
20 | 19 | ||
21 | UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases" | 20 | UPSTREAM_CHECK_URI = "https://github.com/OpenPrinting/cups/releases" |
22 | UPSTREAM_CHECK_REGEX = "cups-(?P<pver>\d+\.\d+(\.\d+)?)-source.tar" | 21 | UPSTREAM_CHECK_REGEX = "cups-(?P<pver>.+)-source.tar" |
23 | 22 | ||
24 | # Issue only applies to MacOS | 23 | # Issue only applies to MacOS |
25 | CVE_CHECK_WHITELIST += "CVE-2008-1033" | 24 | CVE_CHECK_WHITELIST += "CVE-2008-1033" |
@@ -37,7 +36,7 @@ inherit autotools-brokensep binconfig useradd systemd pkgconfig multilib_script | |||
37 | USERADD_PACKAGES = "${PN}" | 36 | USERADD_PACKAGES = "${PN}" |
38 | GROUPADD_PARAM_${PN} = "--system lpadmin" | 37 | GROUPADD_PARAM_${PN} = "--system lpadmin" |
39 | 38 | ||
40 | SYSTEMD_SERVICE_${PN} = "org.cups.cupsd.socket org.cups.cupsd.path org.cups.cupsd.service org.cups.cups-lpd.socket" | 39 | SYSTEMD_SERVICE_${PN} = "cups.socket cups.path cups.service cups-lpd.socket" |
41 | 40 | ||
42 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ | 41 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ |
43 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" | 42 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" |
@@ -63,20 +62,8 @@ EXTRA_OECONF = " \ | |||
63 | 62 | ||
64 | EXTRA_AUTORECONF += "--exclude=autoheader" | 63 | EXTRA_AUTORECONF += "--exclude=autoheader" |
65 | 64 | ||
66 | do_compile () { | ||
67 | echo "all:" > man/Makefile | ||
68 | echo "libs:" >> man/Makefile | ||
69 | echo "install:" >> man/Makefile | ||
70 | echo "install-data:" >> man/Makefile | ||
71 | echo "install-exec:" >> man/Makefile | ||
72 | echo "install-headers:" >> man/Makefile | ||
73 | echo "install-libs:" >> man/Makefile | ||
74 | |||
75 | oe_runmake | ||
76 | } | ||
77 | |||
78 | do_install () { | 65 | do_install () { |
79 | oe_runmake "DSTROOT=${D}" install | 66 | oe_runmake "DESTDIR=${D}" install |
80 | 67 | ||
81 | # Remove /var/run from package as cupsd will populate it on startup | 68 | # Remove /var/run from package as cupsd will populate it on startup |
82 | rm -fr ${D}/${localstatedir}/run | 69 | rm -fr ${D}/${localstatedir}/run |
@@ -105,8 +92,7 @@ do_install () { | |||
105 | PACKAGES =+ "${PN}-lib ${PN}-libimage" | 92 | PACKAGES =+ "${PN}-lib ${PN}-libimage" |
106 | 93 | ||
107 | RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps', '', d)}" | 94 | RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps', '', d)}" |
108 | FILES_${PN} += "${libexecdir}/cups/ \ | 95 | FILES_${PN} += "${libexecdir}/cups/" |
109 | " | ||
110 | 96 | ||
111 | FILES_${PN}-lib = "${libdir}/libcups.so.*" | 97 | FILES_${PN}-lib = "${libdir}/libcups.so.*" |
112 | 98 | ||