diff options
Diffstat (limited to 'meta/recipes-extended/cups/cups.inc')
-rw-r--r-- | meta/recipes-extended/cups/cups.inc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index 5aa365d095..3f81e2c39b 100644 --- a/meta/recipes-extended/cups/cups.inc +++ b/meta/recipes-extended/cups/cups.inc | |||
@@ -7,9 +7,6 @@ SRC_URI = "http://www.cups.org/software/${PV}/${BP}-source.tar.bz2 \ | |||
7 | file://use_echo_only_in_init.patch \ | 7 | file://use_echo_only_in_init.patch \ |
8 | file://0001-don-t-try-to-run-generated-binaries.patch \ | 8 | file://0001-don-t-try-to-run-generated-binaries.patch \ |
9 | file://cups_serverbin.patch \ | 9 | file://cups_serverbin.patch \ |
10 | file://cups.socket \ | ||
11 | file://cups.path \ | ||
12 | file://cups.service \ | ||
13 | " | 10 | " |
14 | 11 | ||
15 | UPSTREAM_CHECK_URI = "http://www.cups.org/software.php" | 12 | UPSTREAM_CHECK_URI = "http://www.cups.org/software.php" |
@@ -24,13 +21,15 @@ inherit autotools-brokensep binconfig useradd systemd | |||
24 | USERADD_PACKAGES = "${PN}" | 21 | USERADD_PACKAGES = "${PN}" |
25 | GROUPADD_PARAM_${PN} = "--system lpadmin" | 22 | GROUPADD_PARAM_${PN} = "--system lpadmin" |
26 | 23 | ||
27 | SYSTEMD_SERVICE_${PN} = "cups.socket cups.path cups.service" | 24 | SYSTEMD_SERVICE_${PN} = "org.cups.cupsd.socket org.cups.cupsd.path org.cups.cupsd.service org.cups.cups-lpd.socket org.cups.cups-lpd@.service" |
28 | 25 | ||
29 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ | 26 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ |
27 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ | ||
30 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" | 28 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
31 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" | 29 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" |
32 | PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl" | 30 | PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl" |
33 | PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam" | 31 | PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam" |
32 | PACKAGECONFIG[systemd] = "--with-systemd=${systemd_system_unitdir},--without-systemd,systemd" | ||
34 | PACKAGECONFIG[xinetd] = "--with-xinetd=${sysconfdir}/xinetd.d,--without-xinetd,xinetd" | 33 | PACKAGECONFIG[xinetd] = "--with-xinetd=${sysconfdir}/xinetd.d,--without-xinetd,xinetd" |
35 | 34 | ||
36 | EXTRA_OECONF = " \ | 35 | EXTRA_OECONF = " \ |
@@ -78,13 +77,6 @@ do_install () { | |||
78 | rm -rf ${D}${sysconfdir}/init.d/ | 77 | rm -rf ${D}${sysconfdir}/init.d/ |
79 | rm -rf ${D}${sysconfdir}/rc* | 78 | rm -rf ${D}${sysconfdir}/rc* |
80 | fi | 79 | fi |
81 | |||
82 | # Install systemd unit files | ||
83 | install -d ${D}${systemd_unitdir}/system | ||
84 | install -m 0644 ${WORKDIR}/cups.socket ${D}${systemd_unitdir}/system | ||
85 | install -m 0644 ${WORKDIR}/cups.path ${D}${systemd_unitdir}/system | ||
86 | install -m 0644 ${WORKDIR}/cups.service ${D}${systemd_unitdir}/system | ||
87 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/cups.service | ||
88 | } | 80 | } |
89 | 81 | ||
90 | python do_package_append() { | 82 | python do_package_append() { |