Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "User configurable send-only Mail Transfer Agent" |
| 2 | DESCRIPTION = "ESMTP is a user-configurable relay-only MTA \ |
| 3 | with a sendmail-compatible syntax, based on libESMTP and \ |
| 4 | supporting the AUTH (including the CRAM-MD5 and NTLM SASL \ |
| 5 | mechanisms) and StartTLS SMTP extensions." |
| 6 | HOMEPAGE = "http://esmtp.sourceforge.net/" |
| 7 | SECTION = "net" |
| 8 | |
| 9 | DEPENDS = "libesmtp" |
| 10 | |
| 11 | LICENSE = "GPL-2.0" |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" |
| 13 | |
| 14 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BPN}-${PV}.tar.bz2" |
| 15 | |
| 16 | # Have to set this or we get -L/lib in LDFLAGS |
| 17 | EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}" |
| 18 | |
| 19 | inherit autotools update-alternatives |
| 20 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 21 | ALTERNATIVE:${PN} = "sendmail mailq newaliases" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 22 | # /usr/lib/sendmial is required by LSB core test |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 23 | ALTERNATIVE:${PN}:linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" |
| 25 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" |
| 27 | ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 28 | ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail" |
| 29 | ALTERNATIVE_TARGET[usr-lib-sendmail] = "${bindir}/esmtp" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 30 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 31 | ALTERNATIVE_PRIORITY = "10" |
| 32 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 33 | ALTERNATIVE:${PN}-doc += "mailq.1 newaliases.1 sendmail.1" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 34 | ALTERNATIVE_LINK_NAME[mailq.1] = "${mandir}/man1/mailq.1" |
| 35 | ALTERNATIVE_LINK_NAME[newaliases.1] = "${mandir}/man1/newaliases.1" |
| 36 | ALTERNATIVE_LINK_NAME[sendmail.1] = "${mandir}/man1/sendmail.1" |
| 37 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 38 | SRC_URI[md5sum] = "79a9c1f9023d53f35bb82bf446150a72" |
| 39 | SRC_URI[sha256sum] = "a0d26931bf731f97514da266d079d8bc7d73c65b3499ed080576ab606b21c0ce" |
| 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 41 | do_install:append() { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 42 | # only one file /usr/lib/sendmail in ${D}${libdir} |
| 43 | rm -rf ${D}${libdir} |
| 44 | } |
| 45 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 46 | FILES:${PN} += "${libdir}/" |