3472cd8662d6ac7ecec4f8ef7653c89cb480a340
[vuplus_openembedded] / ssmtp / ssmtp_2.60.4.oe
1 DEPENDS = "virtual/libc openssl"
2 DESCRIPTION = "Extremely simple MTA to get mail off the system to a mail hub."
3
4 SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.tar.gz \
5            file://${FILESDIR}/ldflags.patch;patch=1 \
6            file://${FILESDIR}/configure.patch;patch=1"
7 S = "${WORKDIR}/${PN}-2.60"
8
9 inherit autotools
10
11 EXTRA_OECONF = "--enable-ssl"
12 do_compile () {
13         oe_runmake 'LDFLAGS=${LDFLAGS}'
14 }
15
16 do_install () {
17         oe_runmake 'prefix=${D}/${prefix}' 'exec_prefix=${D}/${exec_prefix}' \
18                    'bindir=${D}/${bindir}' 'mandir=${D}/${mandir}' \
19                    'etcdir=${D}/${sysconfdir}' GEN_CONFIG="`which echo`" install
20         install -d ${D}/${sysconfdir}/ssmtp
21         install -m 0644 ${FILESDIR}/ssmtp.conf ${D}/${sysconfdir}/ssmtp/ssmtp.conf
22 }