From b220c19aad08172bc787389040701c23ce632511 Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Tue, 9 Aug 2005 22:36:30 +0000 Subject: Add symlink to sendmail --- packages/ssmtp/ssmtp_2.61.bb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/ssmtp/ssmtp_2.61.bb') diff --git a/packages/ssmtp/ssmtp_2.61.bb b/packages/ssmtp/ssmtp_2.61.bb index f61781ff4e..680729bca3 100644 --- a/packages/ssmtp/ssmtp_2.61.bb +++ b/packages/ssmtp/ssmtp_2.61.bb @@ -1,7 +1,8 @@ SECTION = "console/network" + DEPENDS = "openssl" DESCRIPTION = "Extremely simple MTA to get mail off the system to a mail hub." -PR = "r1" +PR = "r2" SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.orig.tar.gz \ file://ldflags.patch;patch=1 \ @@ -10,6 +11,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.orig.tar.gz \ file://ssmtp.conf" S = "${WORKDIR}/${PN}-2.61" LICENSE = "GPL" +CONFFILE = "${sysconfdir}/ssmtp/ssmtp.conf" inherit autotools EXTRA_OECONF = "--enable-ssl" @@ -24,3 +26,11 @@ do_install () { install -d ${D}${sysconfdir}/ssmtp install -m 0644 ${WORKDIR}/ssmtp.conf ${D}${sysconfdir}/ssmtp/ssmtp.conf } + +pkg_postinst () { + update-alternatives --install ${sbindir}/sendmail sendmail ${bindir}/ssmtp +} + +pkg_postrm () { + update-alternatives --remove ${sbindir}/sendmail sendmail +} -- cgit v1.2.3