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 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 21 | ALTERNATIVE_${PN} += "sendmail mailq newaliases" |
| 22 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" |
| 23 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail" |
| 25 | ALTERNATIVE_TARGET[sendmail] = "${bindir}/esmtp" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 26 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 27 | ALTERNATIVE_PRIORITY = "10" |
| 28 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 29 | ALTERNATIVE_${PN}-doc += "mailq.1 newaliases.1 sendmail.1" |
| 30 | ALTERNATIVE_LINK_NAME[mailq.1] = "${mandir}/man1/mailq.1" |
| 31 | ALTERNATIVE_LINK_NAME[newaliases.1] = "${mandir}/man1/newaliases.1" |
| 32 | ALTERNATIVE_LINK_NAME[sendmail.1] = "${mandir}/man1/sendmail.1" |
| 33 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 34 | SRC_URI[md5sum] = "79a9c1f9023d53f35bb82bf446150a72" |
| 35 | SRC_URI[sha256sum] = "a0d26931bf731f97514da266d079d8bc7d73c65b3499ed080576ab606b21c0ce" |
| 36 | |
| 37 | do_install_append() { |
| 38 | # only one file /usr/lib/sendmail in ${D}${libdir} |
| 39 | rm -rf ${D}${libdir} |
| 40 | } |
| 41 | |
| 42 | pkg_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 | |
| 47 | FILES_${PN} += "${libdir}/" |