Gentoo Archives: gentoo-commits

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