1 |
flameeyes 12/12/28 12:42:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: c-icap-0.2.3-r1.ebuild |
5 |
Removed: c-icap-0.2.3.ebuild c-icap-0.1.7-r1.ebuild |
6 |
Log: |
7 |
Remove old; bump to use new init script (and conf file) that will properly 'use logger' if needed. |
8 |
|
9 |
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) |
10 |
|
11 |
Revision Changes Path |
12 |
1.22 net-proxy/c-icap/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/ChangeLog?rev=1.22&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/ChangeLog?rev=1.22&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/ChangeLog?r1=1.21&r2=1.22 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-proxy/c-icap/ChangeLog,v |
21 |
retrieving revision 1.21 |
22 |
retrieving revision 1.22 |
23 |
diff -u -r1.21 -r1.22 |
24 |
--- ChangeLog 4 Dec 2012 11:24:10 -0000 1.21 |
25 |
+++ ChangeLog 28 Dec 2012 12:42:46 -0000 1.22 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for net-proxy/c-icap |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/ChangeLog,v 1.21 2012/12/04 11:24:10 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/ChangeLog,v 1.22 2012/12/28 12:42:46 flameeyes Exp $ |
31 |
+ |
32 |
+*c-icap-0.2.3-r1 (28 Dec 2012) |
33 |
+ |
34 |
+ 28 Dec 2012; Diego E. Pettenò <flameeyes@g.o> +c-icap-0.2.3-r1.ebuild, |
35 |
+ +files/c-icap.conf, +files/c-icap.init.3, -c-icap-0.1.7-r1.ebuild, |
36 |
+ -c-icap-0.2.3.ebuild: |
37 |
+ Remove old; bump to use new init script (and conf file) that will properly |
38 |
+ 'use logger' if needed. |
39 |
|
40 |
04 Dec 2012; <ago@g.o> c-icap-0.2.2.ebuild: |
41 |
Stable for x86, wrt bug #441494 |
42 |
|
43 |
|
44 |
|
45 |
1.1 net-proxy/c-icap/c-icap-0.2.3-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/c-icap-0.2.3-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/c-icap-0.2.3-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: c-icap-0.2.3-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/c-icap-0.2.3-r1.ebuild,v 1.1 2012/12/28 12:42:46 flameeyes Exp $ |
55 |
|
56 |
EAPI=4 |
57 |
|
58 |
inherit eutils multilib flag-o-matic autotools |
59 |
|
60 |
MY_PN=${PN/-/_} |
61 |
MY_P=${MY_PN}-${PV} |
62 |
|
63 |
DESCRIPTION="C Implementation of an ICAP server" |
64 |
HOMEPAGE="http://c-icap.sourceforge.net/" |
65 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
66 |
|
67 |
LICENSE="LGPL-2.1" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~arm ~x86" |
70 |
IUSE="berkdb ipv6 ldap" |
71 |
|
72 |
RDEPEND="berkdb? ( sys-libs/db ) |
73 |
ldap? ( net-nds/openldap ) |
74 |
sys-libs/zlib" |
75 |
DEPEND="${RDEPEND}" |
76 |
RDEPEND="${RDEPEND} |
77 |
sys-apps/openrc" |
78 |
|
79 |
S="${WORKDIR}/${MY_P}" |
80 |
|
81 |
src_prepare() { |
82 |
epatch "${FILESDIR}/${PN}-0.2.3-asneeded.patch" |
83 |
epatch "${FILESDIR}/${PN}-0.1.3+db-5.0.patch" |
84 |
epatch "${FILESDIR}/${PN}-0.1.4-crosscompile.patch" |
85 |
epatch "${FILESDIR}/${PN}-0.1.6-implicit.patch" |
86 |
eautoreconf |
87 |
} |
88 |
|
89 |
src_configure() { |
90 |
# some void *** pointers get casted around and can be troublesome to |
91 |
# fix properly. |
92 |
append-flags -fno-strict-aliasing |
93 |
|
94 |
econf \ |
95 |
--sysconfdir=/etc/${PN} \ |
96 |
--disable-dependency-tracking \ |
97 |
--disable-maintainer-mode \ |
98 |
--disable-static \ |
99 |
--enable-large-files \ |
100 |
$(use_enable ipv6) \ |
101 |
$(use_with berkdb bdb) \ |
102 |
$(use_with ldap) |
103 |
} |
104 |
|
105 |
src_compile() { |
106 |
emake LOGDIR="/var/log" |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
emake \ |
111 |
LOGDIR="/var/log" \ |
112 |
DESTDIR="${D}" install |
113 |
|
114 |
find "${D}" -name '*.la' -delete || die |
115 |
|
116 |
# Move the daemon out of the way |
117 |
dodir /usr/libexec |
118 |
mv "${D}"/usr/bin/c-icap "${D}"/usr/libexec || die |
119 |
|
120 |
# Remove the default configuration files since we have etc-update to |
121 |
# take care of it for us. |
122 |
rm "${D}"/etc/${PN}/c-icap.*.default || die |
123 |
|
124 |
# Fix the configuration file; for some reason it's a bit messy |
125 |
# around. |
126 |
sed -i \ |
127 |
-e 's:/usr/var/:/var/:g' \ |
128 |
-e 's:/var/log/:/var/log/c-icap/:g' \ |
129 |
-e 's:/usr/etc/:/etc/c-icap/:g' \ |
130 |
-e 's:/usr/local/c-icap/etc/:/etc/c-icap/:g' \ |
131 |
-e 's:/usr/lib/:/usr/'$(get_libdir)'/:g' \ |
132 |
"${D}"/etc/${PN}/c-icap.conf \ |
133 |
|| die |
134 |
|
135 |
dodoc AUTHORS README TODO ChangeLog |
136 |
|
137 |
newinitd "${FILESDIR}/${PN}.init.3" ${PN} |
138 |
newconfd "${FILESDIR}/${PN}.conf" ${PN} |
139 |
keepdir /var/log/c-icap |
140 |
|
141 |
insopts -m0644 |
142 |
insinto /etc/logrotate.d |
143 |
newins "${FILESDIR}"/${PN}.logrotate ${PN} |
144 |
|
145 |
# avoid triggering portage's symlink protection; this is handled by |
146 |
# the init script anyway. |
147 |
rm -rf "${D}"/var/run |
148 |
} |
149 |
|
150 |
pkg_postinst() { |
151 |
elog "To enable Squid to call the ICAP modules from a local server you should set" |
152 |
elog "the following in your squid.conf:" |
153 |
elog "" |
154 |
elog " icap_enable on" |
155 |
elog "" |
156 |
elog " # not strictly needed, but some modules might make use of these" |
157 |
elog " icap_send_client_ip on" |
158 |
elog " icap_send_client_username on" |
159 |
elog "" |
160 |
elog " icap_service service_req reqmod_precache bypass=1 icap://localhost:1344/service" |
161 |
elog " adaptation_access service_req allow all" |
162 |
elog "" |
163 |
elog " icap_service service_resp respmod_precache bypass=0 icap://localhost:1344/service" |
164 |
elog " adaptation_access service_resp allow all" |
165 |
elog "" |
166 |
elog "You obviously will have to replace \"service\" with the actual ICAP service to" |
167 |
elog "use." |
168 |
} |