diff options
-rw-r--r-- | meta-networking/recipes-daemons/postfix/postfix.inc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc index 64c20d0f5..4b9940cc7 100644 --- a/meta-networking/recipes-daemons/postfix/postfix.inc +++ b/meta-networking/recipes-daemons/postfix/postfix.inc | |||
@@ -20,16 +20,16 @@ CLEANBROKEN = "1" | |||
20 | 20 | ||
21 | BBCLASSEXTEND = "native" | 21 | BBCLASSEXTEND = "native" |
22 | 22 | ||
23 | inherit update-rc.d useradd update-alternatives systemd | 23 | inherit update-rc.d useradd update-alternatives systemd lib_package |
24 | 24 | ||
25 | INITSCRIPT_NAME = "postfix" | 25 | INITSCRIPT_NAME = "postfix" |
26 | INITSCRIPT_PARAMS = "start 58 3 4 5 . stop 13 0 1 6 ." | 26 | INITSCRIPT_PARAMS = "start 58 3 4 5 . stop 13 0 1 6 ." |
27 | USERADD_PACKAGES = "${PN}" | 27 | USERADD_PACKAGES = "${PN}-bin" |
28 | USERADD_PARAM_${PN} = \ | 28 | USERADD_PARAM_${PN}-bin = \ |
29 | "-d /var/spool/postfix -r -g postfix --shell /bin/false postfix; \ | 29 | "-d /var/spool/postfix -r -g postfix --shell /bin/false postfix; \ |
30 | -d /var/spool/vmail -r -g vmail --shell /bin/false vmail \ | 30 | -d /var/spool/vmail -r -g vmail --shell /bin/false vmail \ |
31 | " | 31 | " |
32 | GROUPADD_PARAM_${PN} = "--system postfix;--system postdrop;--system vmail" | 32 | GROUPADD_PARAM_${PN}-bin = "--system postfix;--system postdrop;--system vmail" |
33 | 33 | ||
34 | export SYSLIBS = "${LDFLAGS}" | 34 | export SYSLIBS = "${LDFLAGS}" |
35 | 35 | ||
@@ -185,9 +185,9 @@ do_install_append_class-native() { | |||
185 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq | 185 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq |
186 | } | 186 | } |
187 | 187 | ||
188 | ALTERNATIVE_${PN} = "sendmail mailq newaliases" | 188 | ALTERNATIVE_${PN}-bin = "sendmail mailq newaliases" |
189 | # /usr/lib/sendmial is required by LSB core test | 189 | # /usr/lib/sendmial is required by LSB core test |
190 | ALTERNATIVE_${PN}_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail" | 190 | ALTERNATIVE_${PN}-bin_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail" |
191 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" | 191 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" |
192 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" | 192 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" |
193 | ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix" | 193 | ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix" |
@@ -212,9 +212,11 @@ pkg_postinst_ontarget_${PN}-cfg () { | |||
212 | } | 212 | } |
213 | 213 | ||
214 | PACKAGES =+ "${PN}-cfg" | 214 | PACKAGES =+ "${PN}-cfg" |
215 | RDEPENDS_${PN}-cfg_class-target += "${PN}-bin" | ||
215 | RDEPENDS_${PN}_class-target += "${PN}-cfg" | 216 | RDEPENDS_${PN}_class-target += "${PN}-cfg" |
216 | # Exclude .debug directories from the main package | 217 | # Exclude .debug directories from the main package |
217 | FILES_${PN} = "${localstatedir} ${bindir}/* ${sbindir}/* \ | 218 | FILES_${PN}-bin += "${localstatedir} ${bindir}/* ${sbindir}/* \ |
218 | ${libexecdir}/* ${systemd_unitdir}/*" | 219 | ${libexecdir}/* ${systemd_unitdir}/*" |
219 | FILES_${PN}-cfg = "${sysconfdir}" | 220 | FILES_${PN}-cfg = "${sysconfdir}" |
220 | FILES_${PN}-dbg += "${libexecdir}/postfix/.debug" | 221 | FILES_${PN}-dbg += "${libexecdir}/postfix/.debug" |
222 | ALLOW_EMPTY_${PN} = "1" | ||