1 |
eras 12/02/06 13:20:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postfix-2.9.0-r1.ebuild |
5 |
Log: |
6 |
bump to push daemon_directory fix - bug #402367 |
7 |
|
8 |
(Portage version: 2.1.10.45/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.334 mail-mta/postfix/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.334&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.334&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?r1=1.333&r2=1.334 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v |
20 |
retrieving revision 1.333 |
21 |
retrieving revision 1.334 |
22 |
diff -u -r1.333 -r1.334 |
23 |
--- ChangeLog 5 Feb 2012 06:13:58 -0000 1.333 |
24 |
+++ ChangeLog 6 Feb 2012 13:20:05 -0000 1.334 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for mail-mta/postfix |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.333 2012/02/05 06:13:58 eras Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.334 2012/02/06 13:20:05 eras Exp $ |
30 |
+ |
31 |
+*postfix-2.9.0-r1 (06 Feb 2012) |
32 |
+ |
33 |
+ 06 Feb 2012; Eray Aslan <eras@g.o> +postfix-2.9.0-r1.ebuild: |
34 |
+ bump to push daemon_directory fix - bug #402367 |
35 |
|
36 |
05 Feb 2012; Eray Aslan <eras@g.o> postfix-2.10_pre20120202.ebuild: |
37 |
install daemons to /usr/libexec/postfix for version 2.10 as well |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-mta/postfix/postfix-2.9.0-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.9.0-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.9.0-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: postfix-2.9.0-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.9.0-r1.ebuild,v 1.1 2012/02/06 13:20:05 eras Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam versionator |
55 |
|
56 |
MY_PV="${PV/_rc/-RC}" |
57 |
MY_SRC="${PN}-${MY_PV}" |
58 |
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
59 |
VDA_PV="2.8.5" |
60 |
VDA_P="${PN}-vda-v10-${VDA_PV}" |
61 |
RC_VER="2.6" |
62 |
|
63 |
DESCRIPTION="A fast and secure drop-in replacement for sendmail." |
64 |
HOMEPAGE="http://www.postfix.org/" |
65 |
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz |
66 |
vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch ) " |
67 |
|
68 |
LICENSE="IBM" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
71 |
IUSE="+berkdb cdb doc dovecot-sasl hardened ldap ldap-bind memcached mbox mysql nis pam postgres sasl selinux sqlite ssl vda" |
72 |
|
73 |
DEPEND=">=dev-libs/libpcre-3.4 |
74 |
dev-lang/perl |
75 |
berkdb? ( >=sys-libs/db-3.2 ) |
76 |
cdb? ( || ( >=dev-db/tinycdb-0.76 >=dev-db/cdb-0.75-r1 ) ) |
77 |
ldap? ( net-nds/openldap ) |
78 |
ldap-bind? ( net-nds/openldap[sasl] ) |
79 |
mysql? ( virtual/mysql ) |
80 |
pam? ( virtual/pam ) |
81 |
postgres? ( dev-db/postgresql-base ) |
82 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
83 |
sqlite? ( dev-db/sqlite:3 ) |
84 |
ssl? ( >=dev-libs/openssl-0.9.6g )" |
85 |
|
86 |
RDEPEND="${DEPEND} |
87 |
dovecot-sasl? ( net-mail/dovecot ) |
88 |
memcached? ( net-misc/memcached ) |
89 |
net-mail/mailbase |
90 |
selinux? ( sec-policy/selinux-postfix ) |
91 |
!mail-mta/courier |
92 |
!mail-mta/esmtp |
93 |
!mail-mta/exim |
94 |
!mail-mta/mini-qmail |
95 |
!mail-mta/msmtp[mta] |
96 |
!mail-mta/nbsmtp |
97 |
!mail-mta/netqmail |
98 |
!mail-mta/nullmailer |
99 |
!mail-mta/qmail-ldap |
100 |
!mail-mta/sendmail |
101 |
!<mail-mta/ssmtp-2.64-r2 |
102 |
!>=mail-mta/ssmtp-2.64-r2[mta] |
103 |
!net-mail/fastforward" |
104 |
|
105 |
REQUIRED_USE="ldap-bind? ( ldap sasl )" |
106 |
|
107 |
S="${WORKDIR}/${MY_SRC}" |
108 |
|
109 |
pkg_setup() { |
110 |
# Add postfix, postdrop user/group (bug #77565) |
111 |
enewgroup postfix 207 |
112 |
enewgroup postdrop 208 |
113 |
enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
114 |
} |
115 |
|
116 |
src_prepare() { |
117 |
if use vda; then |
118 |
epatch "${DISTDIR}"/${VDA_P}.patch |
119 |
fi |
120 |
|
121 |
if ! use berkdb; then |
122 |
epatch "${FILESDIR}/${PN}_no-berkdb.patch" |
123 |
fi |
124 |
|
125 |
sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
126 |
src/util/sys_defs.h || die "sed failed" |
127 |
|
128 |
# change default paths to better comply with portage standard paths |
129 |
sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
# Make sure LDFLAGS get passed down to the executables. |
134 |
local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread" |
135 |
|
136 |
use pam && mylibs="${mylibs} -lpam" |
137 |
|
138 |
if use ldap; then |
139 |
mycc="${mycc} -DHAS_LDAP" |
140 |
mylibs="${mylibs} -lldap -llber" |
141 |
fi |
142 |
|
143 |
if use mysql; then |
144 |
mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
145 |
mylibs="${mylibs} $(mysql_config --libs)" |
146 |
fi |
147 |
|
148 |
if use postgres; then |
149 |
mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
150 |
mylibs="${mylibs} -lpq -L$(pg_config --libdir)" |
151 |
fi |
152 |
|
153 |
if use sqlite; then |
154 |
mycc="${mycc} -DHAS_SQLITE" |
155 |
mylibs="${mylibs} -lsqlite3" |
156 |
fi |
157 |
|
158 |
if use ssl; then |
159 |
mycc="${mycc} -DUSE_TLS" |
160 |
mylibs="${mylibs} -lssl -lcrypto" |
161 |
fi |
162 |
|
163 |
# broken. and "in other words, not supported" by upstream. |
164 |
# Use inet_protocols setting in main.cf |
165 |
#if ! use ipv6; then |
166 |
# mycc="${mycc} -DNO_IPV6" |
167 |
#fi |
168 |
|
169 |
if use sasl; then |
170 |
if use dovecot-sasl; then |
171 |
# Set dovecot as default. |
172 |
mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
173 |
fi |
174 |
if use ldap-bind; then |
175 |
mycc="${mycc} -DUSE_LDAP_SASL" |
176 |
fi |
177 |
mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
178 |
mylibs="${mylibs} -lsasl2" |
179 |
elif use dovecot-sasl; then |
180 |
mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
181 |
fi |
182 |
|
183 |
if ! use nis; then |
184 |
sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \ |
185 |
src/util/sys_defs.h || die "sed failed" |
186 |
fi |
187 |
|
188 |
if ! use berkdb; then |
189 |
mycc="${mycc} -DNO_DB" |
190 |
if use cdb; then |
191 |
# change default hash format from Berkeley DB to cdb |
192 |
sed -i -e "s/hash/cdb/" src/util/sys_defs.h || die |
193 |
fi |
194 |
fi |
195 |
|
196 |
if use cdb; then |
197 |
mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
198 |
CDB_LIBS="" |
199 |
# Tinycdb is preferred. |
200 |
if has_version dev-db/tinycdb ; then |
201 |
einfo "Building with dev-db/tinycdb" |
202 |
CDB_LIBS="-lcdb" |
203 |
else |
204 |
einfo "Building with dev-db/cdb" |
205 |
CDB_PATH="/usr/$(get_libdir)" |
206 |
for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
207 |
CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}" |
208 |
done |
209 |
fi |
210 |
mylibs="${mylibs} ${CDB_LIBS}" |
211 |
fi |
212 |
|
213 |
# Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
214 |
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
215 |
mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
216 |
filter-lfs-flags |
217 |
|
218 |
# Workaround for bug #76512 |
219 |
if use hardened; then |
220 |
[[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
221 |
fi |
222 |
|
223 |
# Remove annoying C++ comment style warnings - bug #378099 |
224 |
append-flags -Wno-comment |
225 |
|
226 |
emake DEBUG="" CC="$(tc-getCC)" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" makefiles |
227 |
} |
228 |
|
229 |
src_install () { |
230 |
/bin/sh postfix-install \ |
231 |
-non-interactive \ |
232 |
install_root="${D}" \ |
233 |
config_directory="/etc/postfix" \ |
234 |
manpage_directory="/usr/share/man" \ |
235 |
readme_directory="/usr/share/doc/${PF}/readme" \ |
236 |
html_directory="/usr/share/doc/${PF}/html" \ |
237 |
command_directory="/usr/sbin" \ |
238 |
mailq_path="/usr/bin/mailq" \ |
239 |
newaliases_path="/usr/bin/newaliases" \ |
240 |
sendmail_path="/usr/sbin/sendmail" \ |
241 |
|| die "postfix-install failed" |
242 |
|
243 |
# Fix spool removal on upgrade |
244 |
rm -Rf "${D}"/var |
245 |
keepdir /var/spool/postfix |
246 |
|
247 |
# Install rmail for UUCP, closes bug #19127 |
248 |
dobin auxiliary/rmail/rmail |
249 |
|
250 |
# Provide another link for legacy FSH |
251 |
dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
252 |
|
253 |
# Install qshape tool |
254 |
dobin auxiliary/qshape/qshape.pl |
255 |
doman man/man1/qshape.1 |
256 |
|
257 |
# Performance tuning tools and their manuals |
258 |
dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
259 |
doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
260 |
|
261 |
# Set proper permissions on required files/directories |
262 |
dodir /var/lib/postfix |
263 |
keepdir /var/lib/postfix |
264 |
fowners postfix:postfix /var/lib/postfix |
265 |
fowners postfix:postfix /var/lib/postfix/.keep_${CATEGORY}_${PN}-${SLOT} |
266 |
fperms 0750 /var/lib/postfix |
267 |
fowners root:postdrop /usr/sbin/post{drop,queue} |
268 |
fperms 02711 /usr/sbin/post{drop,queue} |
269 |
|
270 |
keepdir /etc/postfix |
271 |
if use mbox; then |
272 |
mypostconf="mail_spool_directory=/var/spool/mail" |
273 |
else |
274 |
mypostconf="home_mailbox=.maildir/" |
275 |
fi |
276 |
"${D}"/usr/sbin/postconf -c "${D}"/etc/postfix \ |
277 |
-e ${mypostconf} || die "postconf failed" |
278 |
|
279 |
insinto /etc/postfix |
280 |
newins "${FILESDIR}"/smtp.pass saslpass |
281 |
fperms 600 /etc/postfix/saslpass |
282 |
|
283 |
newinitd "${FILESDIR}"/postfix.rc6.${RC_VER} postfix |
284 |
# do not start mysql/postgres unnecessarily - bug #359913 |
285 |
use mysql || sed -i -e "s/mysql //" "${D}/etc/init.d/postfix" |
286 |
use postgres || sed -i -e "s/postgresql //" "${D}/etc/init.d/postfix" |
287 |
|
288 |
mv "${S}"/examples "${D}"/usr/share/doc/${PF}/ |
289 |
mv "${D}"/etc/postfix/{*.default,makedefs.out} "${D}"/usr/share/doc/${PF}/ |
290 |
|
291 |
dodoc *README COMPATIBILITY HISTORY INSTALL PORTING RELEASE_NOTES* |
292 |
|
293 |
pamd_mimic_system smtp auth account |
294 |
|
295 |
if use sasl; then |
296 |
insinto /etc/sasl2 |
297 |
newins "${FILESDIR}"/smtp.sasl smtpd.conf |
298 |
fi |
299 |
|
300 |
# header files |
301 |
insinto /usr/include/postfix |
302 |
doins include/*.h |
303 |
|
304 |
# Remove unnecessary files |
305 |
rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic} |
306 |
rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual} |
307 |
} |
308 |
|
309 |
pkg_preinst() { |
310 |
# default for inet_protocols changed from ipv4 to all in postfix-2.9. |
311 |
# check inet_protocols setting in main.cf and modify if necessary to prevent |
312 |
# performance loss with useless DNS lookups and useless connection attempts. |
313 |
[[ -d ${ROOT}/etc/postfix ]] && { |
314 |
if [[ "$(${D}/usr/sbin/postconf -dh inet_protocols)" != "ipv4" ]]; then |
315 |
if [[ ! -n "$(${D}/usr/sbin/postconf -c ${ROOT}/etc/postfix -nh inet_protocols)" ]]; |
316 |
then |
317 |
ewarn "\nCOMPATIBILITY: adding inet_protocols=ipv4 to main.cf." |
318 |
ewarn "That will keep the same behaviour as previous postfix versions." |
319 |
ewarn "Specify inet_protocols explicitly if you want to enable IPv6.\n" |
320 |
else |
321 |
# delete inet_protocols setting. there is already one in /etc/postfix |
322 |
sed -i -e /inet_protocols/d "${D}"/etc/postfix/main.cf || die |
323 |
fi |
324 |
fi |
325 |
} |
326 |
} |
327 |
|
328 |
pkg_postinst() { |
329 |
# Do not install server.{key,pem) SSL certificates if they already exist |
330 |
if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \ |
331 |
&& ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then |
332 |
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}" |
333 |
install_cert /etc/ssl/postfix/server |
334 |
chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem} |
335 |
fi |
336 |
|
337 |
if [[ ! -e /etc/mail/aliases.db ]] ; then |
338 |
ewarn |
339 |
ewarn "You must edit /etc/mail/aliases to suit your needs" |
340 |
ewarn "and then run /usr/bin/newaliases. Postfix will not" |
341 |
ewarn "work correctly without it." |
342 |
ewarn |
343 |
fi |
344 |
|
345 |
if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 9 ]]; then |
346 |
elog "If you are using old style postfix instances by symlinking" |
347 |
elog "startup scripts in ${ROOT}etc/init.d, please consider" |
348 |
elog "upgrading your config for postmulti support. For more info:" |
349 |
elog "http://www.postfix.org/MULTI_INSTANCE_README.html" |
350 |
if ! use berkdb; then |
351 |
ewarn "\nPostfix is installed without BerkeleyDB support." |
352 |
ewarn "Please turn on berkdb USE flag for hash or btree table" |
353 |
ewarn "lookup support.\n" |
354 |
fi |
355 |
fi |
356 |
} |