summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cups/cups.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/cups/cups.inc')
-rw-r--r--meta/recipes-extended/cups/cups.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc
index c5a60bde12..e389d8a2da 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -12,7 +12,9 @@ SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.t
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://0003-cups_1.4.6.bb-Fix-build-on-ppc64.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 \
17 file://cups-volatiles.conf \
16 " 18 "
17 19
18UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases" 20UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases"
@@ -67,6 +69,7 @@ do_install () {
67 69
68 # Remove /var/run from package as cupsd will populate it on startup 70 # Remove /var/run from package as cupsd will populate it on startup
69 rm -fr ${D}/${localstatedir}/run 71 rm -fr ${D}/${localstatedir}/run
72 rm -fr ${D}/${localstatedir}/log
70 rmdir ${D}/${libexecdir}/${BPN}/driver 73 rmdir ${D}/${libexecdir}/${BPN}/driver
71 74
72 # Fix the pam configuration file permissions 75 # Fix the pam configuration file permissions
@@ -78,6 +81,13 @@ do_install () {
78 if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then 81 if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then
79 rm -rf ${D}${sysconfdir}/init.d/ 82 rm -rf ${D}${sysconfdir}/init.d/
80 rm -rf ${D}${sysconfdir}/rc* 83 rm -rf ${D}${sysconfdir}/rc*
84 install -d ${D}${sysconfdir}/tmpfiles.d
85 install -m 0644 ${WORKDIR}/cups-volatiles.conf \
86 ${D}${sysconfdir}/tmpfiles.d/cups.conf
87 else
88 install -d ${D}${sysconfdir}/default/volatiles
89 install -m 0644 ${WORKDIR}/volatiles.99_cups \
90 ${D}${sysconfdir}/default/volatiles/99_cups
81 fi 91 fi
82} 92}
83 93