Gentoo Archives: gentoo-commits

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