diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-09-01 14:31:25 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-10-04 16:25:22 -0700 |
commit | d4dbbab0a4d19f39db2ebf575d5014a4be43c07e (patch) | |
tree | 358e751c4b3f649f4f19d4aaf1103699ac23f5f0 | |
parent | c1c83ca19a6700384dbeaac1367e94218373a724 (diff) | |
download | meta-openembedded-d4dbbab0a4d19f39db2ebf575d5014a4be43c07e.tar.gz |
ssmtp: Use update alternatives for conflicts with esmtp
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 916b6f15efe924dc66d7908ac0bea554eaf7ac92)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb index 07e3ffed42..3739c496a5 100644 --- a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb +++ b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb | |||
@@ -12,7 +12,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.bz2 \ | |||
12 | SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" | 12 | SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" |
13 | SRC_URI[sha256sum] = "22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36" | 13 | SRC_URI[sha256sum] = "22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36" |
14 | 14 | ||
15 | inherit autotools | 15 | inherit autotools update-alternatives |
16 | 16 | ||
17 | PACKAGECONFIG ?= "ssl ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | 17 | PACKAGECONFIG ?= "ssl ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |
18 | 18 | ||
@@ -33,3 +33,16 @@ do_install_append () { | |||
33 | ln -s ssmtp ${D}${sbindir}/newaliases | 33 | ln -s ssmtp ${D}${sbindir}/newaliases |
34 | ln -s ssmtp ${D}${sbindir}/mailq | 34 | ln -s ssmtp ${D}${sbindir}/mailq |
35 | } | 35 | } |
36 | |||
37 | ALTERNATIVE_PRIORITY_${PN} = "100" | ||
38 | |||
39 | ALTERNATIVE_${PN} = "mailq newalias sendmail" | ||
40 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" | ||
41 | ALTERNATIVE_LINK_NAME[newalias] = "${sbindir}/newalias" | ||
42 | ALTERNATIVE_LINK_NAME[mailq] = "${sbindir}/mailq" | ||
43 | |||
44 | ALTERNATIVE_PRIORITY_${PN}-doc = "100" | ||
45 | ALTERNATIVE_${PN}-doc += "mailq.1 newaliases.1 sendmail.1" | ||
46 | ALTERNATIVE_LINK_NAME[mailq.1] = "${mandir}/man1/mailq.1" | ||
47 | ALTERNATIVE_LINK_NAME[newaliases.1] = "${mandir}/man1/newaliases.1" | ||
48 | ALTERNATIVE_LINK_NAME[sendmail.1] = "${mandir}/man1/sendmail.1" | ||