Gentoo Archives: gentoo-commits

From: "Jonathan Callen (abcd)" <abcd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/ssmtp: ChangeLog ssmtp-2.62-r8.ebuild
Date: Sun, 25 Apr 2010 23:28:47
Message-Id: 20100425232842.C7C252C043@corvid.gentoo.org
1 abcd 10/04/25 23:28:42
2
3 Modified: ChangeLog
4 Added: ssmtp-2.62-r8.ebuild
5 Log:
6 Revbump, add patches for Darwin/Solaris, bump to EAPI-3, add prefix support & keywords, die on failure, cleanup
7 (Portage version: v2.2_rc67-80-ge064530/cvs/Linux i686)
8
9 Revision Changes Path
10 1.94 mail-mta/ssmtp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?rev=1.94&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?rev=1.94&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ChangeLog?r1=1.93&r2=1.94
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v
19 retrieving revision 1.93
20 retrieving revision 1.94
21 diff -u -r1.93 -r1.94
22 --- ChangeLog 9 Dec 2009 19:24:18 -0000 1.93
23 +++ ChangeLog 25 Apr 2010 23:28:42 -0000 1.94
24 @@ -1,6 +1,15 @@
25 # ChangeLog for mail-mta/ssmtp
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.93 2009/12/09 19:24:18 nixnut Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ChangeLog,v 1.94 2010/04/25 23:28:42 abcd Exp $
30 +
31 +*ssmtp-2.62-r8 (25 Apr 2010)
32 +
33 + 25 Apr 2010; Jonathan Callen <abcd@g.o>
34 + +files/ssmtp-2.61-darwin7.patch, +ssmtp-2.62-r8.ebuild,
35 + +files/ssmtp-2.62-darwin-crypto.patch,
36 + +files/ssmtp-2.62-solaris-basename-conflict.patch:
37 + Revbump, add patches for Darwin/Solaris, bump to EAPI-3, add prefix
38 + support & keywords, die on failure, cleanup
39
40 09 Dec 2009; nixnut <nixnut@g.o> ssmtp-2.62-r7.ebuild:
41 ppc stable #282907
42
43
44
45 1.1 mail-mta/ssmtp/ssmtp-2.62-r8.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r8.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r8.ebuild?rev=1.1&content-type=text/plain
49
50 Index: ssmtp-2.62-r8.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/mail-mta/ssmtp/ssmtp-2.62-r8.ebuild,v 1.1 2010/04/25 23:28:42 abcd Exp $
55
56 EAPI="3"
57
58 inherit eutils toolchain-funcs autotools
59
60 DESCRIPTION="Extremely simple MTA to get mail off the system to a Mailhub"
61 HOMEPAGE="ftp://ftp.debian.org/debian/pool/main/s/ssmtp/"
62 SRC_URI="mirror://debian/pool/main/s/ssmtp/${P/-/_}.orig.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
67 IUSE="ssl ipv6 md5sum maxsysuid"
68
69 DEPEND="ssl? ( dev-libs/openssl )"
70 RDEPEND="${DEPEND}
71 net-mail/mailbase
72 !net-mail/mailwrapper
73 !virtual/mta"
74 PROVIDE="virtual/mta"
75
76 S="${WORKDIR}/${PN}"
77
78 pkg_setup() {
79 enewgroup ssmtp
80 }
81
82 src_prepare() {
83 # Allow to specify the last used system user id, bug #231866
84 if use maxsysuid; then
85 epatch "${FILESDIR}"/${P}-maxsysuid.patch
86 epatch "${FILESDIR}"/${P}-maxsysuid-conf.patch
87 fi
88
89 #
90 epatch "${FILESDIR}/${P}-from_format_fix.patch"
91
92 # CVE-2008-3962
93 epatch "${FILESDIR}/CVE-2008-3962-r2.patch"
94
95 # Fix AuthPass parsing (bug #238724)
96 epatch "${FILESDIR}/${P}-authpass.patch"
97
98 epatch "${FILESDIR}/${PN}-2.61-darwin7.patch"
99 epatch "${FILESDIR}/${P}-strndup.patch"
100 epatch "${FILESDIR}/${P}-darwin-crypto.patch"
101 epatch "${FILESDIR}/${P}-solaris-basename-conflict.patch"
102 eautoreconf
103
104 # Respect LDFLAGS (bug #152197)
105 sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in
106 }
107
108 src_configure() {
109 tc-export CC LD
110
111 econf \
112 --sysconfdir="${EPREFIX}"/etc/ssmtp \
113 $(use_enable ssl) \
114 $(use_enable ipv6 inet6) \
115 $(use_enable md5sum md5auth)
116 }
117
118 src_compile() {
119 make clean || die
120 make etcdir="${EPREFIX}"/etc || die
121 }
122
123 src_install() {
124 dosbin ssmtp || die
125
126 doman ssmtp.8 ssmtp.conf.5 || die
127 dodoc INSTALL README TLS CHANGELOG_OLD || die
128 newdoc ssmtp.lsm DESC || die
129
130 insinto /etc/ssmtp
131 doins ssmtp.conf revaliases || die
132
133 local conffile="${ED}etc/ssmtp/ssmtp.conf"
134
135 # Sorry about the weird indentation, I couldn't figure out a cleverer way
136 # to do this without having horribly >80 char lines.
137 sed -i -e "s:^hostname=:\n# Gentoo bug #47562\\
138 # Commenting the following line will force ssmtp to figure\\
139 # out the hostname itself.\n\\
140 # hostname=:" \
141 "${conffile}" || die "sed failed"
142
143 # Comment rewriteDomain (bug #243364)
144 sed -i -e "s:^rewriteDomain=:#rewriteDomain=:" "${conffile}"
145
146 # Set restrictive perms on ssmtp.conf as per #187841, #239197
147 # Protect the ssmtp configfile from being readable by regular users as it
148 # may contain login/password data to auth against a the mailhub used.
149 fowners root:ssmtp /etc/ssmtp/ssmtp.conf
150 fperms 640 /etc/ssmtp/ssmtp.conf
151
152 fowners root:ssmtp /usr/sbin/ssmtp
153 fperms 2711 /usr/sbin/ssmtp
154
155 dosym ../sbin/ssmtp /usr/lib/sendmail || die
156 dosym ../sbin/ssmtp /usr/bin/sendmail || die
157 dosym ssmtp /usr/sbin/sendmail || die
158 dosym ../sbin/ssmtp /usr/bin/mailq || die
159 dosym ../sbin/ssmtp /usr/bin/newaliases || die
160 }