1 |
wrobel 08/12/28 20:00:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: c-client-2007e.ebuild |
5 |
Log: |
6 |
Added net-libs/c-client-2007e in response to sec issue #252567. |
7 |
(Portage version: 2.1.4.5) |
8 |
|
9 |
Revision Changes Path |
10 |
1.53 net-libs/c-client/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/c-client/ChangeLog?rev=1.53&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/c-client/ChangeLog?rev=1.53&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/c-client/ChangeLog?r1=1.52&r2=1.53 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/c-client/ChangeLog,v |
19 |
retrieving revision 1.52 |
20 |
retrieving revision 1.53 |
21 |
diff -u -r1.52 -r1.53 |
22 |
--- ChangeLog 2 May 2008 11:55:44 -0000 1.52 |
23 |
+++ ChangeLog 28 Dec 2008 20:00:38 -0000 1.53 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-libs/c-client |
26 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/c-client/ChangeLog,v 1.52 2008/05/02 11:55:44 dertobi123 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/c-client/ChangeLog,v 1.53 2008/12/28 20:00:38 wrobel Exp $ |
29 |
+ |
30 |
+*c-client-2007e (28 Dec 2008) |
31 |
+ |
32 |
+ 28 Dec 2008; Gunnar Wrobel <wrobel@g.o> +c-client-2007e.ebuild: |
33 |
+ Added net-libs/c-client-2007e in response to sec issue #252567. |
34 |
|
35 |
02 May 2008; Tobias Scherbaum <dertobi123@g.o> |
36 |
c-client-2006k.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-libs/c-client/c-client-2007e.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/c-client/c-client-2007e.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/c-client/c-client-2007e.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: c-client-2007e.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/c-client/c-client-2007e.ebuild,v 1.1 2008/12/28 20:00:38 wrobel Exp $ |
50 |
|
51 |
inherit flag-o-matic eutils libtool |
52 |
|
53 |
MY_PN=imap |
54 |
MY_P="${MY_PN}-${PV}" |
55 |
S=${WORKDIR}/${MY_P} |
56 |
|
57 |
MAKEFILE_PATCH_VER="2006k" |
58 |
SO_PATCH_VER="2006k" |
59 |
KOLAB_PATCH_VER="2006k" |
60 |
|
61 |
DESCRIPTION="UW IMAP c-client library" |
62 |
HOMEPAGE="http://www.washington.edu/imap/" |
63 |
SRC_URI="ftp://ftp.cac.washington.edu/imap/${MY_P}.tar.Z" |
64 |
|
65 |
LICENSE="as-is" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
68 |
IUSE="kernel_linux kernel_FreeBSD kolab pam ssl" |
69 |
|
70 |
RDEPEND="ssl? ( dev-libs/openssl ) |
71 |
!virtual/imap-c-client" |
72 |
DEPEND="${RDEPEND} |
73 |
kernel_linux? ( pam? ( >=sys-libs/pam-0.72 ) )" |
74 |
PROVIDE="virtual/imap-c-client" |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${A} |
78 |
|
79 |
# Tarball packed with bad file perms |
80 |
chmod -R u+rwX,go-w "${S}" |
81 |
|
82 |
# lots of things need -fPIC, including various platforms, and this library |
83 |
# generally should be built with it anyway. |
84 |
append-flags -fPIC |
85 |
|
86 |
cd "${S}" |
87 |
|
88 |
# Modifications so we can build it optimally and correctly |
89 |
sed \ |
90 |
-e "s:BASECFLAGS=\".*\":BASECFLAGS=:g" \ |
91 |
-e 's:SSLDIR=/usr/local/ssl:SSLDIR=/usr:g' \ |
92 |
-e 's:SSLCERTS=$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:g' \ |
93 |
-i src/osdep/unix/Makefile || die "Makefile sed fixing failed" |
94 |
|
95 |
# Targets should use the Gentoo (ie linux) fs |
96 |
sed -e '/^bsf:/,/^$/ s:ACTIVEFILE=.*:ACTIVEFILE=/var/lib/news/active:g' \ |
97 |
-i src/osdep/unix/Makefile || die "Makefile sex fixing failed for FreeBSD" |
98 |
|
99 |
# Apply a patch to only build the stuff we need for c-client |
100 |
epatch "${FILESDIR}"/${PN}-${MAKEFILE_PATCH_VER}_GENTOO_Makefile.patch || die "epatch failed" |
101 |
|
102 |
# Apply patch to add the compilation of a .so for PHP |
103 |
# This was previously conditional, but is more widely useful. |
104 |
epatch "${FILESDIR}"/${PN}-${SO_PATCH_VER}_GENTOO_amd64-so-fix.patch |
105 |
|
106 |
# Add kolab support. |
107 |
# http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/patches/imap/ |
108 |
if use kolab ; then |
109 |
epatch "${FILESDIR}"/${PN}-${KOLAB_PATCH_VER}_KOLAB_Annotations.patch || die "epatch failed" |
110 |
fi |
111 |
|
112 |
# Remove the pesky checks about SSL stuff |
113 |
sed -e '/read.*exit/d' -i Makefile |
114 |
elibtoolize |
115 |
} |
116 |
|
117 |
src_compile() { |
118 |
local ssltype target |
119 |
use ssl && ssltype="unix" || ssltype="none" |
120 |
if use kernel_linux ; then |
121 |
use pam && target=lnp || target=lnx |
122 |
elif use kernel_FreeBSD ; then |
123 |
target=bsf |
124 |
fi |
125 |
# no parallel builds supported! |
126 |
emake -j1 $target SSLTYPE=${ssltype} EXTRACFLAGS="${CFLAGS}" || die "make failed" |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
into /usr |
131 |
|
132 |
# Library binary |
133 |
dolib.a c-client/c-client.a || die |
134 |
dosym c-client.a /usr/$(get_libdir)/libc-client.a |
135 |
|
136 |
# Now the shared library |
137 |
dolib.so c-client/libc-client.so.1.0.0 || die |
138 |
# these are created by ldconfig! |
139 |
#cd ${D}/usr/$(get_libdir) |
140 |
#ln -s libc-client.so.1.0.0 libc-client.so.1 |
141 |
#ln -s libc-client.so.1.0.0 libc-client.so |
142 |
|
143 |
# Headers |
144 |
insinto /usr/include/imap |
145 |
doins c-client/*.h |
146 |
doins c-client/linkage.c |
147 |
#exclude these dupes (can't do it before now due to symlink hell) |
148 |
rm "${D}"/usr/include/imap/os_*.h |
149 |
|
150 |
# Docs |
151 |
dodoc README docs/*.txt docs/CONFIG docs/RELNOTES |
152 |
|
153 |
docinto rfc |
154 |
dodoc docs/rfc/*.txt |
155 |
} |