diff options
| author | Qi.Chen@windriver.com <Qi.Chen@windriver.com> | 2019-07-15 16:09:56 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-07-15 08:00:06 -0700 |
| commit | 2e033b8219c380817627007f8cd2cf68c65e71cc (patch) | |
| tree | 8bcc112b1bf05fa1f4d7091522b5c2fd6f78a2a5 | |
| parent | cdf3a0cbe8769f4e62a4eb4312e3570ff57e5eb5 (diff) | |
| download | meta-openembedded-2e033b8219c380817627007f8cd2cf68c65e71cc.tar.gz | |
esmtp: use alternatives to manage /usr/lib/sendmail
There are several packages which all provide /usr/lib/sendmail
when lsb is enabled. So use alternative to manage it.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-support/esmtp/esmtp_1.2.bb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta-networking/recipes-support/esmtp/esmtp_1.2.bb b/meta-networking/recipes-support/esmtp/esmtp_1.2.bb index 663161a9bc..972d5aa737 100644 --- a/meta-networking/recipes-support/esmtp/esmtp_1.2.bb +++ b/meta-networking/recipes-support/esmtp/esmtp_1.2.bb | |||
| @@ -18,11 +18,15 @@ EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}" | |||
| 18 | 18 | ||
| 19 | inherit autotools update-alternatives | 19 | inherit autotools update-alternatives |
| 20 | 20 | ||
| 21 | ALTERNATIVE_${PN} += "sendmail mailq newaliases" | 21 | ALTERNATIVE_${PN} = "sendmail mailq newaliases" |
| 22 | # /usr/lib/sendmial is required by LSB core test | ||
| 23 | ALTERNATIVE_${PN}_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail" | ||
| 22 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" | 24 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" |
| 23 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" | 25 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" |
| 24 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" | 26 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" |
| 25 | ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp" | 27 | ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp" |
| 28 | ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail" | ||
| 29 | ALTERNATIVE_TARGET[usr-lib-sendmail] = "${bindir}/esmtp" | ||
| 26 | 30 | ||
| 27 | ALTERNATIVE_PRIORITY = "10" | 31 | ALTERNATIVE_PRIORITY = "10" |
| 28 | 32 | ||
| @@ -39,9 +43,4 @@ do_install_append() { | |||
| 39 | rm -rf ${D}${libdir} | 43 | rm -rf ${D}${libdir} |
| 40 | } | 44 | } |
| 41 | 45 | ||
| 42 | pkg_postinst_${PN}_linuxstdbase () { | ||
| 43 | # /usr/lib/sendmial is required by LSB core test | ||
| 44 | [ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/ | ||
| 45 | } | ||
| 46 | |||
| 47 | FILES_${PN} += "${libdir}/" | 46 | FILES_${PN} += "${libdir}/" |
