Gentoo Archives: gentoo-commits

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