summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-support/esmtp/esmtp_1.2.bb11
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
19inherit autotools update-alternatives 19inherit autotools update-alternatives
20 20
21ALTERNATIVE_${PN} += "sendmail mailq newaliases" 21ALTERNATIVE_${PN} = "sendmail mailq newaliases"
22# /usr/lib/sendmial is required by LSB core test
23ALTERNATIVE_${PN}_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail"
22ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" 24ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq"
23ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" 25ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases"
24ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" 26ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
25ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp" 27ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp"
28ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail"
29ALTERNATIVE_TARGET[usr-lib-sendmail] = "${bindir}/esmtp"
26 30
27ALTERNATIVE_PRIORITY = "10" 31ALTERNATIVE_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
42pkg_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
47FILES_${PN} += "${libdir}/" 46FILES_${PN} += "${libdir}/"