Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/sendmail: sendmail-8.14.3.ebuild ChangeLog
Date: Sat, 27 Jun 2009 16:06:50
Message-Id: E1MKaQR-0005aX-ID@stork.gentoo.org
1 patrick 09/06/27 16:06:47
2
3 Modified: ChangeLog
4 Added: sendmail-8.14.3.ebuild
5 Log:
6 Bump to 8.14.3, fixes #255072
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.81 mail-mta/sendmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/sendmail/ChangeLog?rev=1.81&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/sendmail/ChangeLog?rev=1.81&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/sendmail/ChangeLog?r1=1.80&r2=1.81
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v
19 retrieving revision 1.80
20 retrieving revision 1.81
21 diff -u -r1.80 -r1.81
22 --- ChangeLog 12 Mar 2008 17:13:51 -0000 1.80
23 +++ ChangeLog 27 Jun 2009 16:06:47 -0000 1.81
24 @@ -1,6 +1,11 @@
25 # ChangeLog for mail-mta/sendmail
26 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.80 2008/03/12 17:13:51 phreak Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.81 2009/06/27 16:06:47 patrick Exp $
30 +
31 +*sendmail-8.14.3 (27 Jun 2009)
32 +
33 + 27 Jun 2009; Patrick Lauer <patrick@g.o> +sendmail-8.14.3.ebuild:
34 + Bump to 8.14.3, fixes #255072
35
36 12 Mar 2008; Christian Heim <phreak@g.o> metadata.xml:
37 Removing Andrea Barisani (lcars, #94632) from metadata.xml.
38
39
40
41 1.1 mail-mta/sendmail/sendmail-8.14.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/sendmail/sendmail-8.14.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-mta/sendmail/sendmail-8.14.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sendmail-8.14.3.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.3.ebuild,v 1.1 2009/06/27 16:06:47 patrick Exp $
51
52 inherit eutils
53
54 DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
55 HOMEPAGE="http://www.sendmail.org/"
56 SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"
57
58 LICENSE="Sendmail"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
61 IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6 nis sockets"
62
63 DEPEND="net-mail/mailbase
64 sys-devel/m4
65 sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
66 tcpd? ( sys-apps/tcp-wrappers )
67 ssl? ( dev-libs/openssl )
68 ldap? ( net-nds/openldap )
69 >=sys-libs/db-3.2
70 !net-mail/vacation
71 "
72 RDEPEND="${DEPEND}
73 >=net-mail/mailbase-0.00
74 !mailwrapper? ( !virtual/mta )
75 mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
76 PDEPEND="!mbox? ( mail-filter/procmail )"
77 PROVIDE="virtual/mta"
78
79 src_unpack() {
80 unpack ${A}
81 cd ${S}
82
83 epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die
84
85 confCCOPTS="${CFLAGS}"
86 confMAPDEF="-DMAP_REGEX"
87 conf_sendmail_LIBS=""
88 use sasl && confLIBS="${confLIBS} -lsasl2" \
89 && confENVDEF="${confENVDEF} -DSASL=2" \
90 && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
91 && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
92 use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
93 && confLIBS="${confLIBS} -lwrap"
94 use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
95 && confLIBS="${confLIBS} -lssl -lcrypto" \
96 && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
97 use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
98 && confLIBS="${confLIBS} -lldap -llber"
99 use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
100 use nis && confENVDEF="${confENVDEF} -DNIS"
101 use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP"
102 sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
103 -e "s/@@confMAPDEF@@/${confMAPDEF}/" \
104 -e "s/@@confENVDEF@@/${confENVDEF}/" \
105 -e "s/@@confLIBS@@/${confLIBS}/" \
106 -e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
107 ${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
108 }
109
110 src_compile() {
111 sh Build || die "compilation failed in main Build script"
112 pushd libmilter
113 sh Build || die "libmilter compilation failed"
114 popd
115 }
116
117 src_install () {
118 OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
119 dodir /usr/bin /usr/lib
120 dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
121 dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
122 keepdir /var/spool/{clientmqueue,mqueue}
123 for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
124 do
125 make DESTDIR=${D} MANROOT=/usr/share/man/man \
126 SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
127 MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
128 LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
129 MSPQOWN=root CFOWN=root CFGRP=root \
130 install -C ${OBJDIR}/${dir} \
131 || die "install failed"
132 done
133 for dir in rmail mail.local
134 do
135 make DESTDIR=${D} MANROOT=/usr/share/man/man \
136 SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
137 MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
138 LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
139 MSPQOWN=root CFOWN=root CFGRP=root \
140 force-install -C ${OBJDIR}/${dir} \
141 || die "install failed"
142 done
143
144 dodir /usr/include/libmilter
145 make DESTDIR=${D} MANROOT=/usr/share/man/man \
146 SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
147 MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
148 LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
149 MSPQOWN=root CFOWN=root CFGRP=root \
150 install -C ${OBJDIR}/libmilter \
151 || die "install failed"
152
153 fowners root:smmsp /usr/sbin/sendmail
154 fperms 2555 /usr/sbin/sendmail
155 fowners smmsp:smmsp /var/spool/clientmqueue
156 fperms 770 /var/spool/clientmqueue
157 fperms 700 /var/spool/mqueue
158 dosym /usr/sbin/makemap /usr/bin/makemap
159 dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
160 newdoc sendmail/README README.sendmail
161 newdoc sendmail/SECURITY SECURITY
162 newdoc sendmail/TUNING TUNING
163 newdoc smrsh/README README.smrsh
164 newdoc libmilter/README README.libmilter
165
166 newdoc cf/README README.cf
167 newdoc cf/cf/README README.install-cf
168 cp -pPR cf/* ${D}/usr/share/sendmail-cf
169 insinto /etc/mail
170 if use mbox
171 then
172 doins ${FILESDIR}/sendmail.mc
173 else
174 newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
175 fi
176 m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
177 > ${D}/etc/mail/sendmail.cf
178 echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
179 > ${D}/etc/mail/submit.mc
180 cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
181 echo "# local-host-names - include all aliases for your machine here" \
182 > ${D}/etc/mail/local-host-names
183 cat <<- EOF > ${D}/etc/mail/trusted-users
184 # trusted-users - users that can send mail as others without a warning
185 # apache, mailman, majordomo, uucp are good candidates
186 EOF
187 cat <<- EOF > ${D}/etc/mail/access
188 # Check the /usr/share/doc/sendmail/README.cf file for a description
189 # of the format of this file. (search for access_db in that file)
190 # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
191 # package.
192 #
193
194 EOF
195 cat <<- EOF > ${D}/etc/conf.d/sendmail
196 # Config file for /etc/init.d/sendmail
197 # add start-up options here
198 SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
199 CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
200 KILL_OPTS="" # add -9/-15/your favorite evil SIG level here
201
202 EOF
203 doinitd ${FILESDIR}/sendmail
204 keepdir /usr/adm/sm.bin
205
206 if use mailwrapper
207 then
208 mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
209 insinto /etc/mail
210 doins ${FILESDIR}/mailer.conf
211 rm ${D}/usr/bin/mailq
212 rm ${D}/usr/bin/newaliases
213 mv ${D}/usr/share/man/man8/sendmail.8 \
214 ${D}/usr/share/man/man8/sendmail-sendmail.8
215 mv ${D}/usr/share/man/man1/mailq.1 \
216 ${D}/usr/share/man/man1/mailq-sendmail.1
217 mv ${D}/usr/share/man/man1/newaliases.1 \
218 ${D}/usr/share/man/man1/newaliases-sendmail.1
219 mv ${D}/usr/share/man/man5/aliases.5 \
220 ${D}/usr/share/man/man5/aliases-sendmail.5
221 dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
222 dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
223 fi
224
225 }
226
227 pkg_setup() {
228 einfo "checking for smmsp group... create if missing."
229 enewgroup smmsp 209 || die "problem adding group smmsp"
230 einfo "checking for smmsp user... create if missing."
231 enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
232 || die "problem adding user smmsp"
233 }
234
235 pkg_postinst() {
236 if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
237 then
238 elog
239 elog "Since you emerged sendmail without mailwrapper in USE,"
240 elog "you probably want to 'emerge -C mailwrapper' now."
241 elog
242 fi
243 }