Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 1 | SUMMARY = "extremely simple MTA to get mail off the system to a mail hub" |
| 2 | HOMEPAGE = "http://packages.qa.debian.org/s/ssmtp.html" |
| 3 | |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e" |
| 6 | |
| 7 | SRC_URI = "\ |
| 8 | ${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.bz2 \ |
| 9 | file://build-ouside_srcdir.patch \ |
| 10 | file://use-DESTDIR.patch \ |
| 11 | " |
| 12 | |
| 13 | EXTRA_OECONF += "--mandir=${mandir}" |
| 14 | |
| 15 | EXTRA_OEMAKE = "GEN_CONFIG='/bin/true'" |
| 16 | |
| 17 | SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" |
| 18 | SRC_URI[sha256sum] = "22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36" |
| 19 | |
| 20 | inherit autotools pkgconfig |
| 21 | |
| 22 | DEPENDS += "openssl inetutils" |
| 23 | |
| 24 | do_install_append () { |
| 25 | install -d ${D}${mandir}/ |
| 26 | mv ${D}${exec_prefix}/man/* ${D}${mandir}/ |
| 27 | rmdir ${D}${exec_prefix}/man |
| 28 | ln -s ssmtp ${D}${sbindir}/sendmail |
| 29 | ln -s ssmtp ${D}${sbindir}/newaliases |
| 30 | ln -s ssmtp ${D}${sbindir}/mailq |
| 31 | } |