1 |
eras 14/05/30 15:15:31 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sendmail-8.14.9.ebuild |
5 |
Log: |
6 |
Security bump - bug #511760 |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.126 mail-mta/sendmail/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/sendmail/ChangeLog?rev=1.126&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/sendmail/ChangeLog?rev=1.126&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/sendmail/ChangeLog?r1=1.125&r2=1.126 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v |
20 |
retrieving revision 1.125 |
21 |
retrieving revision 1.126 |
22 |
diff -u -r1.125 -r1.126 |
23 |
--- ChangeLog 29 Jan 2014 04:09:57 -0000 1.125 |
24 |
+++ ChangeLog 30 May 2014 15:15:31 -0000 1.126 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for mail-mta/sendmail |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.125 2014/01/29 04:09:57 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.126 2014/05/30 15:15:31 eras Exp $ |
30 |
+ |
31 |
+*sendmail-8.14.9 (30 May 2014) |
32 |
+ |
33 |
+ 30 May 2014; Eray Aslan <eras@g.o> +sendmail-8.14.9.ebuild: |
34 |
+ Security bump - bug #511760 |
35 |
|
36 |
29 Jan 2014; Tim Harder <radhermit@g.o> -sendmail-8.14.4.ebuild, |
37 |
-sendmail-8.14.5.ebuild, -sendmail-8.14.5-r1.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-mta/sendmail/sendmail-8.14.9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/sendmail/sendmail-8.14.9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/sendmail/sendmail-8.14.9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: sendmail-8.14.9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.9.ebuild,v 1.1 2014/05/30 15:15:31 eras Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
inherit eutils multilib systemd toolchain-funcs user |
54 |
|
55 |
DESCRIPTION="Widely-used Mail Transport Agent (MTA)" |
56 |
HOMEPAGE="http://www.sendmail.org/" |
57 |
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz" |
58 |
|
59 |
LICENSE="Sendmail" |
60 |
SLOT="0" |
61 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
62 |
IUSE="ssl ldap sasl tcpd mbox ipv6 nis sockets" |
63 |
|
64 |
DEPEND="net-mail/mailbase |
65 |
sys-devel/m4 |
66 |
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 ) |
67 |
tcpd? ( sys-apps/tcp-wrappers ) |
68 |
ssl? ( dev-libs/openssl ) |
69 |
ldap? ( net-nds/openldap ) |
70 |
>=sys-libs/db-3.2 |
71 |
!net-mail/vacation |
72 |
" |
73 |
RDEPEND="${DEPEND} |
74 |
>=net-mail/mailbase-0.00 |
75 |
!mail-mta/courier |
76 |
!mail-mta/esmtp |
77 |
!mail-mta/exim |
78 |
!mail-mta/mini-qmail |
79 |
!mail-mta/msmtp[mta] |
80 |
!mail-mta/netqmail |
81 |
!mail-mta/nullmailer |
82 |
!mail-mta/postfix |
83 |
!mail-mta/opensmtpd |
84 |
!mail-mta/qmail-ldap |
85 |
!<mail-mta/ssmtp-2.64-r2 |
86 |
!>=mail-mta/ssmtp-2.64-r2[mta]" |
87 |
|
88 |
PDEPEND="!mbox? ( mail-filter/procmail )" |
89 |
|
90 |
# libmilter library is part of sendmail, but it does not share the version number with it. |
91 |
# In order to find the right libmilter version number, check SMFI_VERSION definition |
92 |
# that can be found in ${S}/include/libmilter/mfapi.h (see also SM_LM_VRS_* defines). |
93 |
# For example, version 1.0.1 has a SMFI_VERSION of 0x01000001. |
94 |
LIBMILTER_VER=1.0.2 |
95 |
|
96 |
pkg_setup() { |
97 |
enewgroup smmsp 209 |
98 |
enewuser smmsp 209 -1 /var/spool/mqueue smmsp |
99 |
} |
100 |
|
101 |
src_prepare() { |
102 |
epatch "${FILESDIR}"/"${PN}"-8.14.6-build-system.patch |
103 |
epatch "${FILESDIR}"/sendmail-delivered_hdr.patch |
104 |
epatch "${FILESDIR}"/libmilter-sharedlib.patch |
105 |
epatch "${FILESDIR}"/"${PN}"-8.14.5+db-5.0.patch |
106 |
epatch "${FILESDIR}"/sendmail-starttls-multi-crl.patch |
107 |
|
108 |
local confCC="$(tc-getCC)" |
109 |
local confCCOPTS="${CFLAGS}" |
110 |
local confLDOPTS="${LDFLAGS}" |
111 |
local confMAPDEF="-DMAP_REGEX" |
112 |
local conf_sendmail_LIBS="" |
113 |
use sasl && confLIBS="${confLIBS} -lsasl2" \ |
114 |
&& confENVDEF="${confENVDEF} -DSASL=2" \ |
115 |
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \ |
116 |
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2" |
117 |
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \ |
118 |
&& confLIBS="${confLIBS} -lwrap" |
119 |
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \ |
120 |
&& confENVDEF="${confENVDEF} -D_FFR_TLS_1" \ |
121 |
&& confLIBS="${confLIBS} -lssl -lcrypto" \ |
122 |
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto" |
123 |
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \ |
124 |
&& confLIBS="${confLIBS} -lldap -llber" |
125 |
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6" |
126 |
use nis && confENVDEF="${confENVDEF} -DNIS" |
127 |
use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP" |
128 |
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \ |
129 |
-e "s/@@confLDOPTS@@/${confLDOPTS}/" \ |
130 |
-e "s/@@confCC@@/${confCC}/" \ |
131 |
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \ |
132 |
-e "s/@@confENVDEF@@/${confENVDEF}/" \ |
133 |
-e "s/@@confLIBS@@/${confLIBS}/" \ |
134 |
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \ |
135 |
"${FILESDIR}"/site.config.m4 > devtools/Site/site.config.m4 |
136 |
} |
137 |
|
138 |
src_compile() { |
139 |
sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "compilation failed in main Build script" |
140 |
pushd libmilter |
141 |
sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" MILTER_SOVER=${LIBMILTER_VER} || die "libmilter compilation failed" |
142 |
popd |
143 |
} |
144 |
|
145 |
src_install () { |
146 |
local MY_LIBDIR=/usr/$(get_libdir) |
147 |
local MY_OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`" |
148 |
dodir /usr/bin ${MY_LIBDIR} /usr/include/libmilter |
149 |
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf |
150 |
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d |
151 |
keepdir /var/spool/{clientmqueue,mqueue} |
152 |
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap |
153 |
do |
154 |
make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ |
155 |
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ |
156 |
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ |
157 |
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ |
158 |
MSPQOWN=root CFOWN=root CFGRP=root \ |
159 |
install -C "${MY_OBJDIR}/${dir}" \ |
160 |
|| die "install failed" |
161 |
done |
162 |
for dir in rmail mail.local |
163 |
do |
164 |
make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ |
165 |
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ |
166 |
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ |
167 |
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ |
168 |
MSPQOWN=root CFOWN=root CFGRP=root \ |
169 |
force-install -C "${MY_OBJDIR}/${dir}" \ |
170 |
|| die "install failed" |
171 |
done |
172 |
|
173 |
make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \ |
174 |
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \ |
175 |
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \ |
176 |
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \ |
177 |
MSPQOWN=root CFOWN=root CFGRP=root \ |
178 |
MILTER_SOVER=${LIBMILTER_VER} \ |
179 |
install -C "${MY_OBJDIR}/libmilter" \ |
180 |
|| die "install failed" |
181 |
|
182 |
fowners root:smmsp /usr/sbin/sendmail |
183 |
fperms 2555 /usr/sbin/sendmail |
184 |
fowners smmsp:smmsp /var/spool/clientmqueue |
185 |
fperms 770 /var/spool/clientmqueue |
186 |
fperms 700 /var/spool/mqueue |
187 |
dosym /usr/sbin/makemap /usr/bin/makemap |
188 |
dodoc FAQ KNOWNBUGS README RELEASE_NOTES doc/op/op.ps |
189 |
newdoc sendmail/README README.sendmail |
190 |
newdoc sendmail/SECURITY SECURITY |
191 |
newdoc sendmail/TUNING TUNING |
192 |
newdoc smrsh/README README.smrsh |
193 |
newdoc libmilter/README README.libmilter |
194 |
|
195 |
newdoc cf/README README.cf |
196 |
newdoc cf/cf/README README.install-cf |
197 |
cp -pPR cf/* "${D}"/usr/share/sendmail-cf |
198 |
|
199 |
docinto contrib |
200 |
dodoc contrib/* |
201 |
|
202 |
insinto /etc/mail |
203 |
if use mbox |
204 |
then |
205 |
newins "${FILESDIR}"/sendmail.mc-r1 sendmail.mc |
206 |
else |
207 |
newins "${FILESDIR}"/sendmail-procmail.mc sendmail.mc |
208 |
fi |
209 |
m4 "${D}"/usr/share/sendmail-cf/m4/cf.m4 "${D}"/etc/mail/sendmail.mc \ |
210 |
> "${D}"/etc/mail/sendmail.cf |
211 |
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \ |
212 |
> "${D}"/etc/mail/submit.mc |
213 |
cat "${D}"/usr/share/sendmail-cf/cf/submit.mc >> "${D}"/etc/mail/submit.mc |
214 |
echo "# local-host-names - include all aliases for your machine here" \ |
215 |
> "${D}"/etc/mail/local-host-names |
216 |
cat <<- EOF > "${D}"/etc/mail/trusted-users |
217 |
# trusted-users - users that can send mail as others without a warning |
218 |
# apache, mailman, majordomo, uucp are good candidates |
219 |
EOF |
220 |
cat <<- EOF > "${D}"/etc/mail/access |
221 |
# Check the /usr/share/doc/sendmail/README.cf file for a description |
222 |
# of the format of this file. (search for access_db in that file) |
223 |
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc |
224 |
# package. |
225 |
# |
226 |
|
227 |
EOF |
228 |
cat <<- EOF > "${D}"/etc/conf.d/sendmail |
229 |
# Config file for /etc/init.d/sendmail |
230 |
# add start-up options here |
231 |
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode |
232 |
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue |
233 |
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here |
234 |
|
235 |
EOF |
236 |
if use sasl; then |
237 |
dodir /etc/sasl2 |
238 |
cat <<- EOF > "${D}"/etc/sasl2/Sendmail.conf |
239 |
pwcheck_method: saslauthd |
240 |
mech_list: PLAIN LOGIN |
241 |
|
242 |
EOF |
243 |
fi |
244 |
|
245 |
doinitd "${FILESDIR}"/sendmail |
246 |
systemd_dounit "${FILESDIR}"/sendmail.service |
247 |
systemd_dounit "${FILESDIR}"/sm-client.service |
248 |
|
249 |
keepdir /usr/adm/sm.bin |
250 |
} |