summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/ssmtp')
-rw-r--r--net-mail/ssmtp/ChangeLog7
-rw-r--r--net-mail/ssmtp/ssmtp-2.60.3.ebuild42
2 files changed, 38 insertions, 11 deletions
diff --git a/net-mail/ssmtp/ChangeLog b/net-mail/ssmtp/ChangeLog
index 81c461e5a71a..e166afeed10d 100644
--- a/net-mail/ssmtp/ChangeLog
+++ b/net-mail/ssmtp/ChangeLog
@@ -1,9 +1,14 @@
# ChangeLog for net-mail/ssmtp
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ssmtp/ChangeLog,v 1.13 2003/06/10 00:10:35 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/ssmtp/ChangeLog,v 1.14 2003/06/14 17:38:28 raker Exp $
*ssmtp-2.60.3 (09 Jun 2003)
+ 14 Jun 2003; Nick Hadaway <raker@gentoo.org> ssmtp-2.60.3.ebuild:
+ Added some code so the config file has TLS enabled is ssl is in USE.
+ Thanks to ferdy again for this ebuild improvement. Moved pkg_config()
+ code to pkg_postinst()
+
09 Jun 2003; Nick Hadaway <raker@gentoo.org> ssmtp-2.60.3.ebuild,
files/digest-ssmtp-2.60.3, files/starttls.diff:
Version bump. Major features added upstream and included in the
diff --git a/net-mail/ssmtp/ssmtp-2.60.3.ebuild b/net-mail/ssmtp/ssmtp-2.60.3.ebuild
index 768a33343938..38f8baf23750 100644
--- a/net-mail/ssmtp/ssmtp-2.60.3.ebuild
+++ b/net-mail/ssmtp/ssmtp-2.60.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/ssmtp/ssmtp-2.60.3.ebuild,v 1.1 2003/06/10 00:10:35 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/ssmtp/ssmtp-2.60.3.ebuild,v 1.2 2003/06/14 17:38:28 raker Exp $
DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub"
SRC_URI="ftp://ftp.es.debian.org/debian/pool/main/s/ssmtp/ssmtp_${PV}.tar.gz"
@@ -55,15 +55,37 @@ src_install() {
doins ssmtp.conf revaliases
}
-pkg_config() {
+#pkg_config() {
+#
+# local conffile="/etc/ssmtp/ssmtp.conf"
+# local hostname=`hostname -f`
+# local domainname=`hostname -d`
+# mv ${conffile} ${conffile}.orig
+# sed -e "s:rewriteDomain=:rewriteDomain=${domainname}:g" \
+# -e "s:_HOSTNAME_:${hostname}:" \
+# -e "s:^mailhub=mail:mailhub=mail.${domainname}:g" \
+# ${conffile}.orig > ${conffile}
+#}
- local conffile="/etc/ssmtp/ssmtp.conf"
- local hostname=`hostname -f`
- local domainname=`hostname -d`
- mv ${conffile} ${conffile}.orig
- sed -e "s:rewriteDomain=:rewriteDomain=${domainname}:g" \
- -e "s:_HOSTNAME_:${hostname}:" \
- -e "s:^mailhub=mail:mailhub=mail.${domainname}:g" \
- ${conffile}.orig > ${conffile}
+pkg_postinst() {
+
+ local conffile="/etc/ssmtp/ssmtp.conf"
+ local hostname=`hostname -f`
+ local domainname=`hostname -d`
+ mv ${conffile} ${conffile}.orig
+ sed -e "s:rewriteDomain=:rewriteDomain=${domainname}:g" \
+ -e "s:_HOSTNAME_:${hostname}:" \
+ -e "s:^mailhub=mail:mailhub=mail.${domainname}:g" \
+ ${conffile}.orig > ${conffile}.pre
+
+ if [ `use ssl` ];
+ then
+ sed -e "s:^#UseTLS=YES:UseTLS=YES:g" \
+ ${conffile}.pre > ${conffile}
+ mv ${conffile}.pre ${conffile}.orig
+ else
+ mv ${conffile}.pre ${conffile}
+ fi
}
+