1 |
dertobi123 09/01/13 17:45:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: uw-imap-2007e.ebuild |
5 |
Removed: uw-imap-2004g-r2.ebuild |
6 |
Log: |
7 |
Version bump, #245425 |
8 |
(Portage version: 2.2_rc21/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.107 net-mail/uw-imap/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/uw-imap/ChangeLog?rev=1.107&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/uw-imap/ChangeLog?rev=1.107&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/uw-imap/ChangeLog?r1=1.106&r2=1.107 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/uw-imap/ChangeLog,v |
20 |
retrieving revision 1.106 |
21 |
retrieving revision 1.107 |
22 |
diff -u -r1.106 -r1.107 |
23 |
--- ChangeLog 20 Sep 2008 10:04:49 -0000 1.106 |
24 |
+++ ChangeLog 13 Jan 2009 17:45:03 -0000 1.107 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-mail/uw-imap |
27 |
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/uw-imap/ChangeLog,v 1.106 2008/09/20 10:04:49 dertobi123 Exp $ |
29 |
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/uw-imap/ChangeLog,v 1.107 2009/01/13 17:45:03 dertobi123 Exp $ |
31 |
+ |
32 |
+*uw-imap-2007e (13 Jan 2009) |
33 |
+ |
34 |
+ 13 Jan 2009; Tobias Scherbaum <dertobi123@g.o> |
35 |
+ -uw-imap-2004g-r2.ebuild, +uw-imap-2007e.ebuild: |
36 |
+ Version bump, #245425 |
37 |
|
38 |
20 Sep 2008; Tobias Scherbaum <dertobi123@g.o> |
39 |
uw-imap-2007b.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-mail/uw-imap/uw-imap-2007e.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/uw-imap/uw-imap-2007e.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/uw-imap/uw-imap-2007e.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: uw-imap-2007e.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/uw-imap/uw-imap-2007e.ebuild,v 1.1 2009/01/13 17:45:03 dertobi123 Exp $ |
53 |
|
54 |
inherit eutils flag-o-matic |
55 |
|
56 |
MY_P="imap-${PV}" |
57 |
S="${WORKDIR}/${MY_P}" |
58 |
|
59 |
DESCRIPTION="UW server daemons for IMAP and POP network mail protocols." |
60 |
SRC_URI="ftp://ftp.cac.washington.edu/imap/${MY_P}.tar.Z" |
61 |
HOMEPAGE="http://www.washington.edu/imap/" |
62 |
|
63 |
LICENSE="Apache-2.0" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
66 |
IUSE="ipv6 ssl kerberos clearpasswd" |
67 |
|
68 |
PROVIDE="virtual/imapd" |
69 |
PROVIDE="${PROVIDE} virtual/imap-c-client" |
70 |
DEPEND="!net-mail/vimap |
71 |
!virtual/imap-c-client |
72 |
virtual/libc |
73 |
>=sys-libs/pam-0.72 |
74 |
>=net-mail/mailbase-0.00-r8 |
75 |
ssl? ( dev-libs/openssl ) |
76 |
kerberos? ( virtual/krb5 )" |
77 |
|
78 |
RDEPEND="${DEPEND} |
79 |
>=net-mail/uw-mailutils-${PV} |
80 |
sys-apps/xinetd |
81 |
!virtual/imapd" |
82 |
|
83 |
pkg_setup() { |
84 |
echo |
85 |
if use clearpasswd; then |
86 |
ewarn "Building uw-imap with cleartext LOGIN allowed. Disable \"clearpasswd\" USE" |
87 |
ewarn "flag to restrict cleartext LOGIN to SSL/TLS sessions only." |
88 |
else |
89 |
if use ssl; then |
90 |
ewarn "Building uw-imap with cleartext LOGIN restricted to SSL/TLS sessions only." |
91 |
ewarn "Enable \"clearpasswd\" flag to allow unrestricted cleartext LOGIN." |
92 |
else |
93 |
ewarn "You have disabled SSL for uw-imap, but want cleartext passwords restricted to" |
94 |
ewarn "SSL/TLS sessions only. Either enable \"ssl\" USE flag, or \"clearpasswd\"" |
95 |
ewarn "USE flag." |
96 |
die "Impossible USE flag combination, see above message" |
97 |
fi |
98 |
fi |
99 |
echo |
100 |
# ewarn people not using pam with this file |
101 |
if ! built_with_use net-mail/mailbase pam ; then |
102 |
echo |
103 |
ewarn "It is needed to have the net-mail/mailbase package" |
104 |
ewarn " built with the pam use flag activated. Please rebuild" |
105 |
ewarn " net-mail/mailbase with pam activated." |
106 |
echo |
107 |
die "mailbase has to be built with pam use flag" |
108 |
fi |
109 |
} |
110 |
|
111 |
src_unpack() { |
112 |
unpack ${A} |
113 |
# Tarball packed with bad file perms |
114 |
chmod -R ug+w "${S}" |
115 |
|
116 |
cd "${S}" |
117 |
|
118 |
if use amd64; then |
119 |
# Apply our patch to actually build the shared library for PHP5 |
120 |
epatch "${FILESDIR}"/${PN}-2004c-amd64-so-fix.patch |
121 |
fi |
122 |
|
123 |
# Now we must make all the individual Makefiles use different CFLAGS, |
124 |
# otherwise they would all use -fPIC |
125 |
sed -i -e "s|\`cat \$C/CFLAGS\`|${CFLAGS}|g" src/dmail/Makefile \ |
126 |
src/imapd/Makefile src/ipopd/Makefile src/mailutil/Makefile \ |
127 |
src/mlock/Makefile src/mtest/Makefile src/tmail/Makefile \ |
128 |
|| die "sed failed patching Makefile CFLAGS." |
129 |
# Now there is only c-client left, which should be built with -fPIC |
130 |
append-flags -fPIC |
131 |
|
132 |
cd "${S}"/src/osdep/unix/ |
133 |
cp Makefile Makefile.orig |
134 |
sed \ |
135 |
-e "s:BASECFLAGS=\".*\":BASECFLAGS=:g" \ |
136 |
-e 's,SSLDIR=/usr/local/ssl,SSLDIR=/usr,g' \ |
137 |
-e 's,SSLCERTS=$(SSLDIR)/certs,SSLCERTS=/etc/ssl/certs,g' \ |
138 |
< Makefile.orig > Makefile |
139 |
|
140 |
# Uncomment this for MBX support |
141 |
#cp Makefile Makefile.orig2 |
142 |
#sed \ |
143 |
# -e "s:CREATEPROTO=unixproto:CREATEPROTO=mbxproto:" \ |
144 |
# -e "s:EMPTYPROTO=unixproto:EMPTYPROTO=mbxproto:" \ |
145 |
# < Makefile.orig2 > Makefile |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
local mymake |
150 |
local ipver |
151 |
ipver="IP=4" |
152 |
|
153 |
use ipv6 && echo ipv6 |
154 |
use kerberos && echo kerberos |
155 |
use ssl && echo ssl |
156 |
use ipv6 && ipver="IP=6" |
157 |
use kerberos \ |
158 |
&& mymake="EXTRAAUTHENTICATORS=gss" |
159 |
if use ssl; then |
160 |
cd "${S}" |
161 |
echo ${mymake} |
162 |
if use clearpasswd; then |
163 |
yes | make lnp ${mymake} ${ipver} SSLTYPE=unix EXTRACFLAGS="${CFLAGS}" || die |
164 |
else |
165 |
yes | make lnp ${mymake} ${ipver} SSLTYPE=unix.nopwd EXTRACFLAGS="${CFLAGS}" || die |
166 |
fi |
167 |
|
168 |
local i |
169 |
for i in imapd ipop3d; do |
170 |
umask 077 |
171 |
PEM1=`/bin/mktemp ${T}/openssl.XXXXXX` |
172 |
PEM2=`/bin/mktemp ${T}/openssl.XXXXXX` |
173 |
/usr/bin/openssl req -newkey rsa:1024 -keyout $$PEM1 \ |
174 |
-nodes -x509 -days 365 -out $$PEM2 << EOF |
175 |
-- |
176 |
SomeState |
177 |
SomeCity |
178 |
SomeOrganization |
179 |
SomeOrganizationalUnit |
180 |
localhost.localdomain |
181 |
root@×××××××××.localdomain |
182 |
EOF |
183 |
|
184 |
cat $$PEM1 > ${i}.pem |
185 |
echo "" >> ${i}.pem |
186 |
cat $$PEM2 >> ${i}.pem |
187 |
rm $$PEM1 $$PEM2 |
188 |
umask 022 |
189 |
done |
190 |
else |
191 |
yes | make lnp ${mymake} ${ipver} SSLTYPE=none EXTRACFLAGS="${CFLAGS}" || die |
192 |
fi |
193 |
} |
194 |
|
195 |
src_install() { |
196 |
into /usr |
197 |
dosbin imapd/imapd ipopd/ipop?d dmail/dmail tmail/tmail |
198 |
dobin mlock/mlock |
199 |
|
200 |
if use ssl; then |
201 |
dodir /etc/ssl/certs |
202 |
mv imapd.pem "${D}"/etc/ssl/certs |
203 |
mv ipop3d.pem "${D}"/etc/ssl/certs |
204 |
fi |
205 |
|
206 |
if use amd64; then |
207 |
dolib.so c-client/libc-client.so.1.0.0 |
208 |
cd "${D}"/usr/$(get_libdir) |
209 |
ln -s libc-client.so.1.0.0 libc-client.so.1 |
210 |
ln -s libc-client.so.1.0.0 libc-client.so |
211 |
fi |
212 |
|
213 |
cd "${S}" |
214 |
|
215 |
insinto /usr/include/imap |
216 |
doins c-client/{c-client,flstring,mail,imap4r1,rfc822,misc,smtp,nntp,utf8,utf8aux}.h |
217 |
doins c-client/linkage.{c,h} |
218 |
doins c-client/{osdep,env_unix,env,fs,ftl,nl,tcp}.h |
219 |
dolib.a c-client/c-client.a |
220 |
dosym /usr/$(get_libdir)/c-client.a /usr/$(get_libdir)/libc-client.a |
221 |
|
222 |
doman src/ipopd/ipopd.8 src/imapd/imapd.8 |
223 |
doman src/dmail/dmail.1 src/tmail/tmail.1 |
224 |
|
225 |
dodoc README docs/*.txt docs/CONFIG docs/RELNOTES |
226 |
|
227 |
docinto rfc |
228 |
dodoc docs/rfc/*.txt |
229 |
|
230 |
# gentoo config stuff |
231 |
insinto /etc/xinetd.d |
232 |
newins "${FILESDIR}"/uw-imap.xinetd imap |
233 |
newins "${FILESDIR}"/uw-ipop2.xinetd ipop2 |
234 |
newins "${FILESDIR}"/uw-ipop3.xinetd ipop3 |
235 |
newins "${FILESDIR}"/uw-ipop3s.xinetd ipop3s |
236 |
newins "${FILESDIR}"/uw-imaps.xinetd imaps |
237 |
} |