diff options
| -rw-r--r-- | meta-networking/recipes-daemons/postfix/postfix.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc index 3d4f1df439..94379412f9 100644 --- a/meta-networking/recipes-daemons/postfix/postfix.inc +++ b/meta-networking/recipes-daemons/postfix/postfix.inc | |||
| @@ -196,11 +196,15 @@ do_install_append_class-native() { | |||
| 196 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq | 196 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | ALTERNATIVE_${PN} += "sendmail mailq newaliases" | 199 | ALTERNATIVE_${PN} = "sendmail mailq newaliases" |
| 200 | # /usr/lib/sendmial is required by LSB core test | ||
| 201 | ALTERNATIVE_${PN}_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail" | ||
| 200 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" | 202 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" |
| 201 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" | 203 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" |
| 202 | ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix" | 204 | ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix" |
| 203 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" | 205 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" |
| 206 | ALTERNATIVE_TARGET[usr-lib-sendmail] = "${sbindir}/sendmail.postfix" | ||
| 207 | ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail" | ||
| 204 | 208 | ||
| 205 | ALTERNATIVE_PRIORITY = "120" | 209 | ALTERNATIVE_PRIORITY = "120" |
| 206 | 210 | ||
| @@ -219,11 +223,6 @@ pkg_postinst_${PN} () { | |||
| 219 | touch /etc/postfix/virtual_alias | 223 | touch /etc/postfix/virtual_alias |
| 220 | postmap /etc/postfix/virtual_alias | 224 | postmap /etc/postfix/virtual_alias |
| 221 | else | 225 | else |
| 222 | if ${@'true' if 'linuxstdbase' in d.getVar('DISTROOVERRIDES', False) else 'false'}; then | ||
| 223 | # /usr/lib/sendmail is required by LSB core test | ||
| 224 | [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/ | ||
| 225 | fi | ||
| 226 | |||
| 227 | touch $D/etc/aliases | 226 | touch $D/etc/aliases |
| 228 | # This can fail depending on host setup | 227 | # This can fail depending on host setup |
| 229 | if ! newaliases -C $D/etc/postfix/main.cf -oA$D/etc/aliases; then | 228 | if ! newaliases -C $D/etc/postfix/main.cf -oA$D/etc/aliases; then |
