Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum (dertobi123)" <dertobi123@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/ssmtp: ChangeLog ssmtp-2.62-r3.ebuild ssmtp-2.62-r2.ebuild ssmtp-2.62-r1.ebuild
Date: Tue, 09 Sep 2008 19:30:29
Message-Id: E1Kd8uw-0006zE-9K@stork.gentoo.org
1 dertobi123 08/09/09 19:30:26
2
3 Modified: ChangeLog
4 Added: ssmtp-2.62-r3.ebuild
5 Removed: ssmtp-2.62-r2.ebuild ssmtp-2.62-r1.ebuild
6 Log:
7 Version bump, security bug #234391
8 (Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7 x86_64)
9
10 Revision Changes Path
11 1.60 mail-mta/ssmtp/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 9 Sep 2008 12:22:55 -0000 1.59
24 +++ ChangeLog 9 Sep 2008 19:30:25 -0000 1.60
25 @@ -1,6 +1,13 @@
26 # ChangeLog for mail-mta/ssmtp
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.59 2008/09/09 12:22:55 rbu Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.60 2008/09/09 19:30:25 dertobi123 Exp $
30 +
31 +*ssmtp-2.62-r3 (09 Sep 2008)
32 +
33 + 09 Sep 2008; Tobias Scherbaum <dertobi123@g.o>
34 + +files/CVE-2008-3962.patch, -ssmtp-2.62-r1.ebuild, -ssmtp-2.62-r2.ebuild,
35 + +ssmtp-2.62-r3.ebuild:
36 + Version bump, security bug #234391
37
38 09 Sep 2008; Robert Buchholz <rbu@g.o> ssmtp-2.62-r1.ebuild:
39 reverting stables
40
41
42
43 1.1 mail-mta/ssmtp/ssmtp-2.62-r3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ssmtp-2.62-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r3.ebuild,v 1.1 2008/09/09 19:30:25 dertobi123 Exp $
53
54 inherit eutils toolchain-funcs autotools
55
56 DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub"
57 HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/"
58 SRC_URI="mirror://debian/pool/main/s/ssmtp/${P/-/_}.orig.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
63 IUSE="ssl ipv6 md5sum maxsysuid"
64
65 DEPEND="ssl? ( dev-libs/openssl )"
66 RDEPEND="${DEPEND}
67 !net-mail/mailwrapper
68 !virtual/mta"
69 PROVIDE="virtual/mta"
70
71 S="${WORKDIR}/${PN}"
72
73 pkg_setup() {
74 enewgroup ssmtp
75 }
76
77 src_unpack() {
78 unpack ${A}
79 cd "${S}"
80
81 # Allow to specify the last used system user id, bug #231866
82 if use maxsysuid; then
83 epatch "${FILESDIR}"/${P}-maxsysuid.patch
84 epatch "${FILESDIR}"/${P}-maxsysuid-conf.patch
85 fi
86
87 # CVE-2008-3962
88 epatch "${FILESDIR}/CVE-2008-3962.patch"
89
90 epatch "${FILESDIR}/${P}-strndup.patch"
91 eautoreconf
92
93 # Respect LDFLAGS (bug #152197)
94 sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
95 }
96
97 src_compile() {
98 tc-export CC LD
99
100 econf \
101 --sysconfdir=/etc/ssmtp \
102 $(use_enable ssl) \
103 $(use_enable ipv6 inet6) \
104 $(use_enable md5sum md5auth) \
105 || die
106 make clean || die
107 make etcdir=/etc || die
108 }
109
110 src_install() {
111 dodir /usr/bin /usr/sbin /usr/lib
112 dosbin ssmtp || die
113 fperms 755 /usr/sbin/ssmtp
114
115 doman ssmtp.8
116 dodoc INSTALL README TLS CHANGELOG_OLD
117 newdoc ssmtp.lsm DESC
118
119 insinto /etc/ssmtp
120 doins ssmtp.conf revaliases
121
122 local conffile="${D}etc/ssmtp/ssmtp.conf"
123
124 mv "${conffile}" "${conffile}.orig"
125
126 # Sorry about the weird indentation, I couldn't figure out a cleverer way
127 # to do this without having horribly >80 char lines.
128 sed -e "s:^hostname=:\n# Gentoo bug #47562\\
129 # Commenting the following line will force ssmtp to figure\\
130 # out the hostname itself.\n\\
131 # hostname=:" \
132 "${conffile}.orig" > "${conffile}" \
133 || die "sed failed"
134
135 rm "${conffile}.orig" || die "Failed to remove temporary created copy of ssmtp.conf"
136
137 # Set restrictive perms on ssmtp.conf as per #187841
138 # Protect the ssmtp configfile from being readable by regular users as it
139 # may contain login/password data to auth against a the mailhub used, add
140 # users to the ssmtp group to enable them to use ssmtp.
141 fowners root:ssmtp /etc/ssmtp/ssmtp.conf
142 fperms 640 /etc/ssmtp/ssmtp.conf
143
144 fowners root:ssmtp /usr/sbin/ssmtp
145 fperms 750 /usr/sbin/ssmtp
146
147 dosym /usr/sbin/ssmtp /usr/lib/sendmail
148 dosym /usr/sbin/ssmtp /usr/bin/sendmail
149 dosym /usr/sbin/ssmtp /usr/sbin/sendmail
150 dosym /usr/sbin/ssmtp /usr/bin/mailq
151 dosym /usr/sbin/ssmtp /usr/bin/newaliases
152 }