msmtp: add link file /usr/lib/sendmail
Link file /usr/lib/sendmail points to /usr/sbin/sendmail is required by LSB core test according to Linux FHS: "For historical reasons, /usr/lib/sendmail must be a symbolic link to /usr/sbin/sendmail if the latter exists." Create the link file /usr/lib/sendmail if it doesn't exist. Refs: 1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/normativerefs.html#STD.LSB 2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13 (From OE-Core rev: 9b25de34f084076b8c8db0e938696c4f630d366b) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
03ba0b70de
commit
4851a67e6c
|
@ -23,3 +23,8 @@ ALTERNATIVE_${PN} = "sendmail"
|
|||
ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp"
|
||||
ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
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/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue