summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2009-01-17 09:15:12 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2009-01-17 09:15:12 +0000
commita089c4409af568a7fd6ba0375eef99e64c256fe7 (patch)
treeca19bc53ec34af4d37e5713137bef36ed9cc0f30 /mail-mta
parentInstall Prolog library examples (diff)
downloadhistorical-a089c4409af568a7fd6ba0375eef99e64c256fe7.tar.gz
historical-a089c4409af568a7fd6ba0375eef99e64c256fe7.tar.bz2
historical-a089c4409af568a7fd6ba0375eef99e64c256fe7.zip
Revbump: Do install ssmtp.conf.5, #255220
Package-Manager: portage-2.2_rc22/cvs/Linux 2.6.25-gentoo-r7 x86_64
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/ssmtp/ChangeLog10
-rw-r--r--mail-mta/ssmtp/Manifest3
-rw-r--r--mail-mta/ssmtp/ssmtp-2.62-r5.ebuild104
3 files changed, 114 insertions, 3 deletions
diff --git a/mail-mta/ssmtp/ChangeLog b/mail-mta/ssmtp/ChangeLog
index 65c89714e66a..bef322a7df3e 100644
--- a/mail-mta/ssmtp/ChangeLog
+++ b/mail-mta/ssmtp/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-mta/ssmtp
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.67 2008/11/29 20:27:51 dertobi123 Exp $
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.68 2009/01/17 09:15:12 dertobi123 Exp $
+
+*ssmtp-2.62-r5 (17 Jan 2009)
+
+ 17 Jan 2009; Tobias Scherbaum <dertobi123@gentoo.org>
+ +ssmtp-2.62-r5.ebuild:
+ Revbump: Do install ssmtp.conf.5, #255220
*ssmtp-2.62-r4 (29 Nov 2008)
diff --git a/mail-mta/ssmtp/Manifest b/mail-mta/ssmtp/Manifest
index 47bd6753a71c..5a6d6e0a793c 100644
--- a/mail-mta/ssmtp/Manifest
+++ b/mail-mta/ssmtp/Manifest
@@ -10,5 +10,6 @@ DIST ssmtp_2.62.orig.tar.gz 57127 RMD160 1c16b2d50224f4d29813a34f87a3480e66892b3
EBUILD ssmtp-2.61-r2.ebuild 3425 RMD160 5921ed494614cdd58aae882a17feaefa2c1a1762 SHA1 90bbb99ae56e5be4e4e5da95f46c806de6ede306 SHA256 3d8a01bb6a66dfdcef9e170dd455200d36551711642c0d3ebab2d96a5f071894
EBUILD ssmtp-2.62-r3.ebuild 2988 RMD160 15d290086c9acb842e75cfc94bc6f6ce5c9f38e8 SHA1 55016fb6dd1eee8df816ac2f3c651a8c38ff20ca SHA256 4fd032cb5d104e8c27c9441a503a7fae649e59ab1f1a8d64bc5ff9fefd87025e
EBUILD ssmtp-2.62-r4.ebuild 2801 RMD160 4b36cc25687518ec45579a25c30254754a6a0cdb SHA1 2f60a28a3783e2e4a0d5c4d0f4394fea46ca71c8 SHA256 83926d11c646cf5edb1768f2b713273cadba7cc74da30cf857ed5446e1f14a7e
-MISC ChangeLog 14182 RMD160 67a46d98a69ebcaabf2dc72480693cad331fb4b3 SHA1 13435cb40075b127a989685152fa6841f276be7f SHA256 7556886005743b2f13a175e63460d92ca90cee1650fec4c2972d26ad200f2e26
+EBUILD ssmtp-2.62-r5.ebuild 2814 RMD160 074ea5acbc9ca6c828e7637faf7a0736360737c6 SHA1 6468ca5b0e9462cc1139fe2d25cd2ea55108a8ae SHA256 9606d37ca4364062e23fc845ea4f618ec6417ecb495a3e08e78a163c9927ce5d
+MISC ChangeLog 14338 RMD160 2f546f0935e515841277c147d716d49d97c83144 SHA1 5acbfb5d23944e8aa4da41a1c6e1cd45b5d5b11b SHA256 fcfb0de617d7b8fed9d3685541c84f51dfeb9789c88c7ae344c56a6a55948bc2
MISC metadata.xml 291 RMD160 2e697d312e59fe9a8a198f5d79f0b20c29abb633 SHA1 b6498cb6d5b33475440898598dfc05f3a7c554a7 SHA256 547e579723c831c40d6184225f181e11e949cf8310a3433d6ece7ee61fc23887
diff --git a/mail-mta/ssmtp/ssmtp-2.62-r5.ebuild b/mail-mta/ssmtp/ssmtp-2.62-r5.ebuild
new file mode 100644
index 000000000000..432eac7a08ac
--- /dev/null
+++ b/mail-mta/ssmtp/ssmtp-2.62-r5.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r5.ebuild,v 1.1 2009/01/17 09:15:12 dertobi123 Exp $
+
+inherit eutils toolchain-funcs autotools
+
+DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub"
+HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/"
+SRC_URI="mirror://debian/pool/main/s/ssmtp/${P/-/_}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="ssl ipv6 md5sum maxsysuid"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}
+ net-mail/mailbase
+ !net-mail/mailwrapper
+ !virtual/mta"
+PROVIDE="virtual/mta"
+
+S="${WORKDIR}/${PN}"
+
+pkg_setup() {
+ enewgroup ssmtp
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Allow to specify the last used system user id, bug #231866
+ if use maxsysuid; then
+ epatch "${FILESDIR}"/${P}-maxsysuid.patch
+ epatch "${FILESDIR}"/${P}-maxsysuid-conf.patch
+ fi
+
+ # CVE-2008-3962
+ epatch "${FILESDIR}/CVE-2008-3962.patch"
+
+ # Fix AuthPass parsing (bug #238724)
+ epatch "${FILESDIR}/${P}-authpass.patch"
+
+ epatch "${FILESDIR}/${P}-strndup.patch"
+ eautoreconf
+
+ # Respect LDFLAGS (bug #152197)
+ sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
+}
+
+src_compile() {
+ tc-export CC LD
+
+ econf \
+ --sysconfdir=/etc/ssmtp \
+ $(use_enable ssl) \
+ $(use_enable ipv6 inet6) \
+ $(use_enable md5sum md5auth) \
+ || die
+ make clean || die
+ make etcdir=/etc || die
+}
+
+src_install() {
+ dodir /usr/bin /usr/sbin /usr/lib
+ dosbin ssmtp || die
+ fperms 755 /usr/sbin/ssmtp
+
+ doman ssmtp.8 ssmtp.conf.5
+ dodoc INSTALL README TLS CHANGELOG_OLD
+ newdoc ssmtp.lsm DESC
+
+ insinto /etc/ssmtp
+ doins ssmtp.conf revaliases
+
+ local conffile="${D}etc/ssmtp/ssmtp.conf"
+
+ # Sorry about the weird indentation, I couldn't figure out a cleverer way
+ # to do this without having horribly >80 char lines.
+ sed -i -e "s:^hostname=:\n# Gentoo bug #47562\\
+# Commenting the following line will force ssmtp to figure\\
+# out the hostname itself.\n\\
+# hostname=:" \
+ "${conffile}" || die "sed failed"
+
+ # Comment rewriteDomain (bug #243364)
+ sed -i -e "s:^rewriteDomain=:#rewriteDomain=:" ${conffile}
+
+ # Set restrictive perms on ssmtp.conf as per #187841, #239197
+ # Protect the ssmtp configfile from being readable by regular users as it
+ # may contain login/password data to auth against a the mailhub used.
+ fowners root:ssmtp /etc/ssmtp/ssmtp.conf
+ fperms 640 /etc/ssmtp/ssmtp.conf
+
+ fowners root:ssmtp /usr/sbin/ssmtp
+ fperms 2711 /usr/sbin/ssmtp
+
+ dosym /usr/sbin/ssmtp /usr/lib/sendmail
+ dosym /usr/sbin/ssmtp /usr/bin/sendmail
+ dosym /usr/sbin/ssmtp /usr/sbin/sendmail
+ dosym /usr/sbin/ssmtp /usr/bin/mailq
+ dosym /usr/sbin/ssmtp /usr/bin/newaliases
+}