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-r4.ebuild
Date: Sat, 29 Nov 2008 20:27:54
Message-Id: E1L6WPv-0001EJ-QI@stork.gentoo.org
1 dertobi123 08/11/29 20:27:51
2
3 Modified: ChangeLog
4 Added: ssmtp-2.62-r4.ebuild
5 Log:
6 Revision bump, comment rewriteDomain (#243364), re-add mailbase dep (#249269), fix AuthPass with '=' or ':' in it (#238724), setgid on ssmtp binary (#239197)
7 (Portage version: 2.2_rc16/cvs/Linux 2.6.25-gentoo-r7 x86_64)
8
9 Revision Changes Path
10 1.67 mail-mta/ssmtp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?rev=1.67&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?rev=1.67&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?r1=1.66&r2=1.67
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v
19 retrieving revision 1.66
20 retrieving revision 1.67
21 diff -u -r1.66 -r1.67
22 --- ChangeLog 21 Sep 2008 08:43:56 -0000 1.66
23 +++ ChangeLog 29 Nov 2008 20:27:51 -0000 1.67
24 @@ -1,6 +1,14 @@
25 # ChangeLog for mail-mta/ssmtp
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.66 2008/09/21 08:43:56 dertobi123 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.67 2008/11/29 20:27:51 dertobi123 Exp $
29 +
30 +*ssmtp-2.62-r4 (29 Nov 2008)
31 +
32 + 29 Nov 2008; Tobias Scherbaum <dertobi123@g.o>
33 + +files/ssmtp-2.62-authpass.patch, +ssmtp-2.62-r4.ebuild:
34 + Revision bump, comment rewriteDomain (#243364), re-add mailbase dep
35 + (#249269), fix AuthPass with '=' or ':' in it (#238724), setgid on ssmtp
36 + binary (#239197)
37
38 21 Sep 2008; Tobias Scherbaum <dertobi123@g.o>
39 ssmtp-2.62-r3.ebuild:
40
41
42
43 1.1 mail-mta/ssmtp/ssmtp-2.62-r4.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ssmtp-2.62-r4.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-r4.ebuild,v 1.1 2008/11/29 20:27:51 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/mailbase
68 !net-mail/mailwrapper
69 !virtual/mta"
70 PROVIDE="virtual/mta"
71
72 S="${WORKDIR}/${PN}"
73
74 pkg_setup() {
75 enewgroup ssmtp
76 }
77
78 src_unpack() {
79 unpack ${A}
80 cd "${S}"
81
82 # Allow to specify the last used system user id, bug #231866
83 if use maxsysuid; then
84 epatch "${FILESDIR}"/${P}-maxsysuid.patch
85 epatch "${FILESDIR}"/${P}-maxsysuid-conf.patch
86 fi
87
88 # CVE-2008-3962
89 epatch "${FILESDIR}/CVE-2008-3962.patch"
90
91 # Fix AuthPass parsing (bug #238724)
92 epatch "${FILESDIR}/${P}-authpass.patch"
93
94 epatch "${FILESDIR}/${P}-strndup.patch"
95 eautoreconf
96
97 # Respect LDFLAGS (bug #152197)
98 sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
99 }
100
101 src_compile() {
102 tc-export CC LD
103
104 econf \
105 --sysconfdir=/etc/ssmtp \
106 $(use_enable ssl) \
107 $(use_enable ipv6 inet6) \
108 $(use_enable md5sum md5auth) \
109 || die
110 make clean || die
111 make etcdir=/etc || die
112 }
113
114 src_install() {
115 dodir /usr/bin /usr/sbin /usr/lib
116 dosbin ssmtp || die
117 fperms 755 /usr/sbin/ssmtp
118
119 doman ssmtp.8
120 dodoc INSTALL README TLS CHANGELOG_OLD
121 newdoc ssmtp.lsm DESC
122
123 insinto /etc/ssmtp
124 doins ssmtp.conf revaliases
125
126 local conffile="${D}etc/ssmtp/ssmtp.conf"
127
128 # Sorry about the weird indentation, I couldn't figure out a cleverer way
129 # to do this without having horribly >80 char lines.
130 sed -i -e "s:^hostname=:\n# Gentoo bug #47562\\
131 # Commenting the following line will force ssmtp to figure\\
132 # out the hostname itself.\n\\
133 # hostname=:" \
134 "${conffile}" || die "sed failed"
135
136 # Comment rewriteDomain (bug #243364)
137 sed -i -e "s:^rewriteDomain=:#rewriteDomain=:" ${conffile}
138
139 # Set restrictive perms on ssmtp.conf as per #187841, #239197
140 # Protect the ssmtp configfile from being readable by regular users as it
141 # may contain login/password data to auth against a the mailhub used.
142 fowners root:ssmtp /etc/ssmtp/ssmtp.conf
143 fperms 640 /etc/ssmtp/ssmtp.conf
144
145 fowners root:ssmtp /usr/sbin/ssmtp
146 fperms 2711 /usr/sbin/ssmtp
147
148 dosym /usr/sbin/ssmtp /usr/lib/sendmail
149 dosym /usr/sbin/ssmtp /usr/bin/sendmail
150 dosym /usr/sbin/ssmtp /usr/sbin/sendmail
151 dosym /usr/sbin/ssmtp /usr/bin/mailq
152 dosym /usr/sbin/ssmtp /usr/bin/newaliases
153 }