1 |
eras 11/07/06 14:39:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cyrus-imapd-2.4.10.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.1.10.4/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.176 net-mail/cyrus-imapd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?rev=1.176&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?rev=1.176&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/ChangeLog?r1=1.175&r2=1.176 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v |
20 |
retrieving revision 1.175 |
21 |
retrieving revision 1.176 |
22 |
diff -u -r1.175 -r1.176 |
23 |
--- ChangeLog 24 Jun 2011 15:37:40 -0000 1.175 |
24 |
+++ ChangeLog 6 Jul 2011 14:39:36 -0000 1.176 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-mail/cyrus-imapd |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.175 2011/06/24 15:37:40 eras Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/ChangeLog,v 1.176 2011/07/06 14:39:36 eras Exp $ |
30 |
+ |
31 |
+*cyrus-imapd-2.4.10 (06 Jul 2011) |
32 |
+ |
33 |
+ 06 Jul 2011; Eray Aslan <eras@g.o> +cyrus-imapd-2.4.10.ebuild: |
34 |
+ version bump |
35 |
|
36 |
24 Jun 2011; Eray Aslan <eras@g.o> cyrus-imapd-2.4.9.ebuild: |
37 |
Fix compiling against openafs - bug #372829 by Andrej Filipcic. |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-mail/cyrus-imapd/cyrus-imapd-2.4.10.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.4.10.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.4.10.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: cyrus-imapd-2.4.10.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/cyrus-imapd-2.4.10.ebuild,v 1.1 2011/07/06 14:39:36 eras Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
inherit db-use eutils ssl-cert pam multilib |
55 |
|
56 |
MY_P=${P/_/} |
57 |
|
58 |
DESCRIPTION="The Cyrus IMAP Server." |
59 |
HOMEPAGE="http://www.cyrusimap.org/" |
60 |
SRC_URI="ftp://ftp.cyrusimap.org/cyrus-imapd/${MY_P}.tar.gz" |
61 |
|
62 |
LICENSE="as-is" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
65 |
IUSE="afs berkdb kerberos mysql nntp pam postgres replication +sieve snmp sqlite ssl tcpd" |
66 |
|
67 |
RDEPEND="sys-libs/zlib |
68 |
>=dev-libs/cyrus-sasl-2.1.13 |
69 |
afs? ( net-fs/openafs ) |
70 |
berkdb? ( >=sys-libs/db-3.2 ) |
71 |
kerberos? ( virtual/krb5 ) |
72 |
mysql? ( virtual/mysql ) |
73 |
nntp? ( !net-nntp/leafnode ) |
74 |
pam? ( |
75 |
virtual/pam |
76 |
>=net-mail/mailbase-1 |
77 |
) |
78 |
postgres? ( dev-db/postgresql-base ) |
79 |
snmp? ( >=net-analyzer/net-snmp-5.2.2-r1 ) |
80 |
sqlite? ( dev-db/sqlite ) |
81 |
ssl? ( >=dev-libs/openssl-0.9.6 ) |
82 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 snmp? ( net-analyzer/net-snmp[tcpd=] ) )" |
83 |
|
84 |
DEPEND="$RDEPEND" |
85 |
|
86 |
# get rid of old style virtual - bug 350792 |
87 |
# all blockers really needed? |
88 |
RDEPEND="${RDEPEND} |
89 |
!mail-mta/courier |
90 |
!net-mail/bincimap |
91 |
!net-mail/courier-imap |
92 |
!net-mail/uw-imap" |
93 |
|
94 |
REQUIRED_USE="afs? ( kerberos )" |
95 |
|
96 |
S=${WORKDIR}/${MY_P} |
97 |
|
98 |
pkg_setup() { |
99 |
enewuser cyrus -1 -1 /usr/cyrus mail |
100 |
} |
101 |
|
102 |
src_prepare() { |
103 |
# Fix master(8)->cyrusmaster(8) manpage. |
104 |
for i in `grep -rl -e 'master\.8' -e 'master(8)' "${S}"` ; do |
105 |
sed -i -e 's:master\.8:cyrusmaster.8:g' \ |
106 |
-e 's:master(8):cyrusmaster(8):g' \ |
107 |
"${i}" || die "sed failed" || die "sed failed" |
108 |
done |
109 |
mv man/master.8 man/cyrusmaster.8 || die "mv failed" |
110 |
sed -i -e "s:MASTER:CYRUSMASTER:g" \ |
111 |
-e "s:Master:Cyrusmaster:g" \ |
112 |
-e "s:master:cyrusmaster:g" \ |
113 |
man/cyrusmaster.8 || die "sed failed" |
114 |
|
115 |
# do not strip |
116 |
sed -i -e '/(INSTALL/s/-s //' "${S}"/imtest/Makefile.in |
117 |
|
118 |
# correct afs include and liblwp.a directory |
119 |
sed -i -e '/I${with_afs_incdir/s/\/include//' \ |
120 |
-e '/liblwp/s/liblwp/afs\/liblwp/' \ |
121 |
"${S}"/configure{,.in} || die |
122 |
# same with lock.h |
123 |
sed -i -e '/lock.h/s:lock.h:afs/lock.h:' \ |
124 |
ptclient/afskrb.c || die |
125 |
# libcom_err.a to libafscom_err.a |
126 |
sed -i -e '/afs\/libcom_err.a/s:libcom_err.a:libafscom_err.a:' \ |
127 |
configure{,.in} || die |
128 |
} |
129 |
|
130 |
src_configure() { |
131 |
local myconf |
132 |
if use mysql ; then |
133 |
myconf=$(mysql_config --include) |
134 |
myconf="--with-mysql-incdir=${myconf#-I}" |
135 |
fi |
136 |
if use afs ; then |
137 |
myconf+=" --with-afs-libdir=/usr/$(get_libdir)" |
138 |
myconf+=" --with-afs-incdir=/usr/include/afs" |
139 |
fi |
140 |
if use berkdb ; then |
141 |
myconf+=" --with-bdb-incdir=$(db_includedir)" |
142 |
fi |
143 |
econf \ |
144 |
--enable-murder \ |
145 |
--enable-netscapehack \ |
146 |
--enable-idled \ |
147 |
--with-service-path=/usr/$(get_libdir)/cyrus \ |
148 |
--with-cyrus-user=cyrus \ |
149 |
--with-cyrus-group=mail \ |
150 |
--with-com_err=yes \ |
151 |
--with-sasl \ |
152 |
--without-perl \ |
153 |
--without-krb \ |
154 |
--without-krbdes \ |
155 |
--with-zlib \ |
156 |
$(use_enable afs) \ |
157 |
$(use_enable afs krb5afspts) \ |
158 |
$(use_with berkdb bdb) \ |
159 |
$(use_enable nntp) \ |
160 |
$(use_enable replication) \ |
161 |
$(use_enable kerberos gssapi) \ |
162 |
$(use_enable sieve) \ |
163 |
$(use_with mysql) \ |
164 |
$(use_with postgres pgsql) \ |
165 |
$(use_with sqlite) \ |
166 |
$(use_with ssl openssl) \ |
167 |
$(use_with snmp) \ |
168 |
$(use_with tcpd libwrap) \ |
169 |
${myconf} |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
emake DESTDIR="${D}" install |
174 |
|
175 |
# file collision - bug #368245 |
176 |
if ! use nntp ; then |
177 |
rm "${D}"/usr/share/man/man8/fetchnews.8* |
178 |
fi |
179 |
|
180 |
dodoc README* |
181 |
dohtml doc/*.html doc/murder.png |
182 |
docinto text |
183 |
dodoc doc/text/* |
184 |
cp doc/cyrusv2.mc "${D}/usr/share/doc/${PF}/html" |
185 |
cp -r contrib tools "${D}/usr/share/doc/${PF}" |
186 |
rm -f doc/text/Makefile* |
187 |
|
188 |
insinto /etc |
189 |
doins "${FILESDIR}/cyrus.conf" "${FILESDIR}/imapd.conf" |
190 |
|
191 |
newinitd "${FILESDIR}/cyrus.rc6" cyrus |
192 |
newconfd "${FILESDIR}/cyrus.confd" cyrus |
193 |
newpamd "${FILESDIR}/cyrus.pam-include" sieve |
194 |
|
195 |
for subdir in imap/{,db,log,msg,proc,socket,sieve} spool/imap/{,stage.} ; do |
196 |
keepdir "/var/${subdir}" |
197 |
fowners cyrus:mail "/var/${subdir}" |
198 |
fperms 0750 "/var/${subdir}" |
199 |
done |
200 |
for subdir in imap/{user,quota,sieve} spool/imap ; do |
201 |
for i in a b c d e f g h i j k l m n o p q r s t v u w x y z ; do |
202 |
keepdir "/var/${subdir}/${i}" |
203 |
fowners cyrus:mail "/var/${subdir}/${i}" |
204 |
fperms 0750 "/var/${subdir}/${i}" |
205 |
done |
206 |
done |
207 |
} |
208 |
|
209 |
pkg_postinst() { |
210 |
# do not install server.{key,pem) if they exist. |
211 |
if use ssl ; then |
212 |
if [ ! -f "${ROOT}"etc/ssl/cyrus/server.key ]; then |
213 |
install_cert /etc/ssl/cyrus/server |
214 |
chown cyrus:mail "${ROOT}"etc/ssl/cyrus/server.{key,pem} |
215 |
fi |
216 |
fi |
217 |
|
218 |
elog "For correct logging add the following to /etc/syslog.conf:" |
219 |
elog " local6.* /var/log/imapd.log" |
220 |
elog " auth.debug /var/log/auth.log" |
221 |
echo |
222 |
|
223 |
elog "You have to add user cyrus to the sasldb2. Do this with:" |
224 |
elog " saslpasswd2 cyrus" |
225 |
} |