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