mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
cdf3a0cbe8
commit
2e033b8219
|
|
@ -18,11 +18,15 @@ EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}"
|
|||
|
||||
inherit autotools update-alternatives
|
||||
|
||||
ALTERNATIVE_${PN} += "sendmail mailq newaliases"
|
||||
ALTERNATIVE_${PN} = "sendmail mailq newaliases"
|
||||
# /usr/lib/sendmial is required by LSB core test
|
||||
ALTERNATIVE_${PN}_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail"
|
||||
ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq"
|
||||
ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases"
|
||||
ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
|
||||
ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp"
|
||||
ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail"
|
||||
ALTERNATIVE_TARGET[usr-lib-sendmail] = "${bindir}/esmtp"
|
||||
|
||||
ALTERNATIVE_PRIORITY = "10"
|
||||
|
||||
|
|
@ -39,9 +43,4 @@ do_install_append() {
|
|||
rm -rf ${D}${libdir}
|
||||
}
|
||||
|
||||
pkg_postinst_${PN}_linuxstdbase () {
|
||||
# /usr/lib/sendmial is required by LSB core test
|
||||
[ ! -L $D/usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail $D/usr/lib/
|
||||
}
|
||||
|
||||
FILES_${PN} += "${libdir}/"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user