1 |
radhermit 11/01/24 07:20:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postfix-2.8.0-r1.ebuild |
5 |
Removed: postfix-2.8.0.ebuild |
6 |
Log: |
7 |
Revbump to add sqlite USE flag (bug #352405 by Andreis_Vinogradovs) and remove old. |
8 |
|
9 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.228 mail-mta/postfix/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.228&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?rev=1.228&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/ChangeLog?r1=1.227&r2=1.228 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v |
21 |
retrieving revision 1.227 |
22 |
retrieving revision 1.228 |
23 |
diff -u -r1.227 -r1.228 |
24 |
--- ChangeLog 22 Jan 2011 18:43:45 -0000 1.227 |
25 |
+++ ChangeLog 24 Jan 2011 07:20:42 -0000 1.228 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for mail-mta/postfix |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.227 2011/01/22 18:43:45 xarthisius Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.228 2011/01/24 07:20:42 radhermit Exp $ |
31 |
+ |
32 |
+*postfix-2.8.0-r1 (24 Jan 2011) |
33 |
+ |
34 |
+ 24 Jan 2011; Tim Harder <radhermit@g.o> -postfix-2.8.0.ebuild, |
35 |
+ +postfix-2.8.0-r1.ebuild: |
36 |
+ Revbump to add sqlite USE flag (bug #352405 by Andreis_Vinogradovs) and |
37 |
+ remove old. |
38 |
|
39 |
22 Jan 2011; Kacper Kowalik <xarthisius@g.o> postfix-2.7.1.ebuild: |
40 |
ppc/ppc64 stable wrt #343313 |
41 |
|
42 |
|
43 |
|
44 |
1.1 mail-mta/postfix/postfix-2.8.0-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.8.0-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/postfix/postfix-2.8.0-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: postfix-2.8.0-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.8.0-r1.ebuild,v 1.1 2011/01/24 07:20:42 radhermit Exp $ |
54 |
|
55 |
EAPI=3 |
56 |
|
57 |
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam |
58 |
|
59 |
MY_PV="${PV/_rc/-RC}" |
60 |
MY_SRC="${PN}-${MY_PV}" |
61 |
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official" |
62 |
VDA_PV="2.7.1" |
63 |
VDA_P="${PN}-vda-${VDA_PV}" |
64 |
RC_VER="2.5" |
65 |
|
66 |
DESCRIPTION="A fast and secure drop-in replacement for sendmail." |
67 |
HOMEPAGE="http://www.postfix.org/" |
68 |
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz |
69 |
vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch ) " |
70 |
|
71 |
LICENSE="IBM" |
72 |
SLOT="0" |
73 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
74 |
IUSE="cdb dovecot-sasl hardened ipv6 ldap mbox mysql nis pam postgres sasl selinux sqlite ssl vda" |
75 |
|
76 |
PROVIDE="virtual/mta virtual/mda" |
77 |
|
78 |
DEPEND=">=sys-libs/db-3.2 |
79 |
>=dev-libs/libpcre-3.4 |
80 |
cdb? ( || ( >=dev-db/cdb-0.75-r1 >=dev-db/tinycdb-0.76 ) ) |
81 |
ldap? ( >=net-nds/openldap-1.2 ) |
82 |
mysql? ( virtual/mysql ) |
83 |
pam? ( virtual/pam ) |
84 |
postgres? ( dev-db/postgresql-base ) |
85 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
86 |
sqlite? ( dev-db/sqlite:3 ) |
87 |
ssl? ( >=dev-libs/openssl-0.9.6g )" |
88 |
|
89 |
RDEPEND="${DEPEND} |
90 |
net-mail/mailbase |
91 |
!virtual/mta |
92 |
!net-mail/mailwrapper |
93 |
selinux? ( sec-policy/selinux-postfix )" |
94 |
|
95 |
S="${WORKDIR}/${MY_SRC}" |
96 |
|
97 |
group_user_check() { |
98 |
einfo "Checking for postfix group ..." |
99 |
enewgroup postfix 207 |
100 |
einfo "Checking for postdrop group ..." |
101 |
enewgroup postdrop 208 |
102 |
einfo "Checking for postfix user ..." |
103 |
enewuser postfix 207 -1 /var/spool/postfix postfix,mail |
104 |
} |
105 |
|
106 |
pkg_setup() { |
107 |
# Add postfix, postdrop user/group (bug #77565) |
108 |
group_user_check || die "Failed to check/add needed user/group" |
109 |
} |
110 |
|
111 |
src_prepare() { |
112 |
if use vda ; then |
113 |
epatch "${DISTDIR}/${VDA_P}.patch" |
114 |
fi |
115 |
|
116 |
sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \ |
117 |
src/util/sys_defs.h || die "sed failed" |
118 |
|
119 |
# change default paths to better comply with portage standard paths |
120 |
sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed" |
121 |
} |
122 |
|
123 |
src_configure() { |
124 |
# Make sure LDFLAGS get passed down to the executables. |
125 |
local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread" |
126 |
|
127 |
use pam && mylibs="${mylibs} -lpam" |
128 |
|
129 |
if use ldap ; then |
130 |
mycc="${mycc} -DHAS_LDAP" |
131 |
mylibs="${mylibs} -lldap -llber" |
132 |
fi |
133 |
|
134 |
if use mysql ; then |
135 |
mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)" |
136 |
mylibs="${mylibs} -lmysqlclient -lm -lz" |
137 |
fi |
138 |
|
139 |
if use postgres ; then |
140 |
mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)" |
141 |
mylibs="${mylibs} -lpq -L$(pg_config --libdir)" |
142 |
fi |
143 |
|
144 |
if use sqlite ; then |
145 |
mycc="${mycc} -DHAS_SQLITE" |
146 |
mylibs="${mylibs} -lsqlite3" |
147 |
fi |
148 |
|
149 |
if use ssl ; then |
150 |
mycc="${mycc} -DUSE_TLS" |
151 |
mylibs="${mylibs} -lssl -lcrypto" |
152 |
fi |
153 |
|
154 |
if use sasl ; then |
155 |
if use dovecot-sasl ; then |
156 |
# Set dovecot as default. |
157 |
mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\"" |
158 |
fi |
159 |
mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" |
160 |
mylibs="${mylibs} -lsasl2" |
161 |
elif use dovecot-sasl ; then |
162 |
mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"" |
163 |
fi |
164 |
|
165 |
if ! use nis ; then |
166 |
sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \ |
167 |
src/util/sys_defs.h || die "sed failed" |
168 |
fi |
169 |
|
170 |
if use cdb ; then |
171 |
mycc="${mycc} -DHAS_CDB -I/usr/include/cdb" |
172 |
CDB_LIBS="" |
173 |
|
174 |
# Tinycdb is preferred. |
175 |
if has_version dev-db/tinycdb ; then |
176 |
einfo "Building with dev-db/tinycdb" |
177 |
CDB_LIBS="-lcdb" |
178 |
else |
179 |
einfo "Building with dev-db/cdb" |
180 |
CDB_PATH="/usr/$(get_libdir)" |
181 |
for i in cdb.a alloc.a buffer.a unix.a byte.a ; do |
182 |
CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}" |
183 |
done |
184 |
fi |
185 |
|
186 |
mylibs="${mylibs} ${CDB_LIBS}" |
187 |
fi |
188 |
|
189 |
mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\"" |
190 |
mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\"" |
191 |
mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\"" |
192 |
mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\"" |
193 |
|
194 |
# Robin H. Johnson <robbat2@g.o> 17/Nov/2006 |
195 |
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
196 |
mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" |
197 |
filter-lfs-flags |
198 |
|
199 |
local my_cc=$(tc-getCC) |
200 |
einfo "CC=${my_cc:=gcc}" |
201 |
|
202 |
# Workaround for bug #76512 |
203 |
if use hardened ; then |
204 |
[[ "$(gcc-version)" == "3.4" ]] && replace-flags -O? -Os |
205 |
fi |
206 |
|
207 |
emake DEBUG="" CC="${my_cc:=gcc}" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \ |
208 |
makefiles || die "configure problem" |
209 |
} |
210 |
|
211 |
src_install () { |
212 |
/bin/sh postfix-install \ |
213 |
-non-interactive \ |
214 |
install_root="${D}" \ |
215 |
config_directory="/usr/share/doc/${PF}/defaults" \ |
216 |
readme_directory="/usr/share/doc/${PF}/readme" \ |
217 |
|| die "postfix-install failed" |
218 |
|
219 |
# Fix spool removal on upgrade |
220 |
rm -Rf "${D}/var" |
221 |
keepdir /var/spool/postfix |
222 |
|
223 |
# Install rmail for UUCP, closes bug #19127 |
224 |
dobin auxiliary/rmail/rmail |
225 |
|
226 |
# Provide another link for legacy FSH |
227 |
dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail |
228 |
|
229 |
# Install qshape tool |
230 |
dobin auxiliary/qshape/qshape.pl |
231 |
doman man/man1/qshape.1 |
232 |
|
233 |
# Performance tuning tools and their manuals |
234 |
dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink} |
235 |
doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1 |
236 |
|
237 |
# Set proper permissions on required files/directories |
238 |
dodir /var/lib/postfix |
239 |
keepdir /var/lib/postfix |
240 |
fowners postfix:postfix /var/lib/postfix |
241 |
fowners postfix:postfix /var/lib/postfix/.keep_${CATEGORY}_${PN}-${SLOT} |
242 |
fperms 0750 /var/lib/postfix |
243 |
fowners root:postdrop /usr/sbin/post{drop,queue} |
244 |
fperms 02711 /usr/sbin/post{drop,queue} |
245 |
|
246 |
keepdir /etc/postfix |
247 |
mv "${D}"/usr/share/doc/${PF}/defaults/*.cf "${D}"/etc/postfix |
248 |
if use mbox ; then |
249 |
mypostconf="mail_spool_directory=/var/spool/mail" |
250 |
else |
251 |
mypostconf="home_mailbox=.maildir/" |
252 |
fi |
253 |
"${D}/usr/sbin/postconf" -c "${D}/etc/postfix" \ |
254 |
-e ${mypostconf} || die "postconf failed" |
255 |
|
256 |
insinto /etc/postfix |
257 |
newins "${FILESDIR}/smtp.pass" saslpass |
258 |
fperms 600 /etc/postfix/saslpass |
259 |
|
260 |
newinitd "${FILESDIR}/postfix.rc6.${RC_VER}" postfix || die "newinitd failed" |
261 |
|
262 |
mv "${S}/examples" "${D}/usr/share/doc/${PF}/" |
263 |
dodoc *README COMPATIBILITY HISTORY INSTALL PORTING RELEASE_NOTES* |
264 |
dohtml html/* |
265 |
|
266 |
pamd_mimic_system smtp auth account |
267 |
|
268 |
if use sasl ; then |
269 |
insinto /etc/sasl2 |
270 |
newins "${FILESDIR}/smtp.sasl" smtpd.conf |
271 |
fi |
272 |
} |
273 |
|
274 |
pkg_postinst() { |
275 |
# Add postfix, postdrop user/group (bug #77565) |
276 |
group_user_check || die "Failed to check/add needed user/group" |
277 |
|
278 |
# Do not install server.{key,pem) SSL certificates if they already exist |
279 |
if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \ |
280 |
&& ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then |
281 |
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}" |
282 |
install_cert /etc/ssl/postfix/server |
283 |
chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem} |
284 |
fi |
285 |
|
286 |
ebegin "Fixing queue directories and permissions" |
287 |
"${ROOT}/usr/$(get_libdir)/postfix/post-install" upgrade-permissions \ |
288 |
daemon_directory=${ROOT}/usr/$(get_libdir)/postfix |
289 |
echo |
290 |
|
291 |
if [[ ! -e /etc/mail/aliases.db ]] ; then |
292 |
echo |
293 |
ewarn "You must edit /etc/mail/aliases to suit your needs" |
294 |
ewarn "and then run /usr/bin/newaliases. Postfix will not" |
295 |
ewarn "work correctly without it." |
296 |
fi |
297 |
|
298 |
if [[ -e /etc/mailer.conf ]] ; then |
299 |
einfo |
300 |
einfo "mailwrapper support is discontinued." |
301 |
einfo "You may want to 'emerge -C mailwrapper' now." |
302 |
einfo |
303 |
fi |
304 |
|
305 |
elog |
306 |
elog "See the RELEASE_NOTES file in /usr/share/doc/${PF}" |
307 |
elog "for incompatibilities and other major changes between releases." |
308 |
elog |
309 |
} |