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.4.ebuild ChangeLog c-icap-0.2.3-r1.ebuild
Date: Mon, 31 Dec 2012 00:30:15
Message-Id: 20121231003001.4EB2E2171D@flycatcher.gentoo.org
1 flameeyes 12/12/31 00:30:01
2
3 Modified: ChangeLog
4 Added: c-icap-0.2.4.ebuild
5 Removed: c-icap-0.2.3-r1.ebuild
6 Log:
7 Version bump.
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.23 net-proxy/c-icap/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/ChangeLog?rev=1.23&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/ChangeLog?rev=1.23&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/ChangeLog?r1=1.22&r2=1.23
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-proxy/c-icap/ChangeLog,v
21 retrieving revision 1.22
22 retrieving revision 1.23
23 diff -u -r1.22 -r1.23
24 --- ChangeLog 28 Dec 2012 12:42:46 -0000 1.22
25 +++ ChangeLog 31 Dec 2012 00:30:01 -0000 1.23
26 @@ -1,6 +1,12 @@
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.22 2012/12/28 12:42:46 flameeyes Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/ChangeLog,v 1.23 2012/12/31 00:30:01 flameeyes Exp $
31 +
32 +*c-icap-0.2.4 (31 Dec 2012)
33 +
34 + 31 Dec 2012; Diego E. Pettenò <flameeyes@g.o> +c-icap-0.2.4.ebuild,
35 + +files/c-icap-0.2.4-implicit.patch, -c-icap-0.2.3-r1.ebuild:
36 + Version bump.
37
38 *c-icap-0.2.3-r1 (28 Dec 2012)
39
40
41
42
43 1.1 net-proxy/c-icap/c-icap-0.2.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/c-icap-0.2.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/c-icap/c-icap-0.2.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: c-icap-0.2.4.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/c-icap-0.2.4.ebuild,v 1.1 2012/12/31 00:30:01 flameeyes Exp $
53
54 EAPI=5
55
56 inherit eutils multilib flag-o-matic autotools
57
58 MY_PN=${PN/-/_}
59 MY_P=${MY_PN}-${PV}
60
61 DESCRIPTION="C Implementation of an ICAP server"
62 HOMEPAGE="http://c-icap.sourceforge.net/"
63 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
64
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67 KEYWORDS="~amd64 ~arm ~x86"
68 IUSE="berkdb ipv6 ldap"
69
70 RDEPEND="berkdb? ( sys-libs/db )
71 ldap? ( net-nds/openldap )
72 sys-libs/zlib"
73 DEPEND="${RDEPEND}"
74 RDEPEND="${RDEPEND}
75 sys-apps/openrc"
76
77 S="${WORKDIR}/${MY_P}"
78
79 src_prepare() {
80 epatch "${FILESDIR}/${PN}-0.2.3-asneeded.patch"
81 epatch "${FILESDIR}/${PN}-0.1.3+db-5.0.patch"
82 epatch "${FILESDIR}/${PN}-0.1.4-crosscompile.patch"
83 epatch "${FILESDIR}/${PN}-0.1.6-implicit.patch"
84 epatch "${FILESDIR}/${PN}-0.2.4-implicit.patch"
85 eautoreconf
86 }
87
88 src_configure() {
89 # some void *** pointers get casted around and can be troublesome to
90 # fix properly.
91 append-flags -fno-strict-aliasing
92
93 econf \
94 --sysconfdir=/etc/${PN} \
95 --disable-dependency-tracking \
96 --disable-maintainer-mode \
97 --disable-static \
98 --enable-large-files \
99 $(use_enable ipv6) \
100 $(use_with berkdb bdb) \
101 $(use_with ldap)
102 }
103
104 src_compile() {
105 emake LOGDIR="/var/log"
106 }
107
108 src_install() {
109 emake \
110 LOGDIR="/var/log" \
111 DESTDIR="${D}" install
112
113 find "${D}" -name '*.la' -delete || die
114
115 # Move the daemon out of the way
116 dodir /usr/libexec
117 mv "${D}"/usr/bin/c-icap "${D}"/usr/libexec || die
118
119 # Remove the default configuration files since we have etc-update to
120 # take care of it for us.
121 rm "${D}"/etc/${PN}/c-icap.*.default || die
122
123 # Fix the configuration file; for some reason it's a bit messy
124 # around.
125 sed -i \
126 -e 's:/usr/var/:/var/:g' \
127 -e 's:/var/log/:/var/log/c-icap/:g' \
128 -e 's:/usr/etc/:/etc/c-icap/:g' \
129 -e 's:/usr/local/c-icap/etc/:/etc/c-icap/:g' \
130 -e 's:/usr/lib/:/usr/'$(get_libdir)'/:g' \
131 "${D}"/etc/${PN}/c-icap.conf \
132 || die
133
134 dodoc AUTHORS README TODO ChangeLog
135
136 newinitd "${FILESDIR}/${PN}.init.3" ${PN}
137 newconfd "${FILESDIR}/${PN}.conf" ${PN}
138 keepdir /var/log/c-icap
139
140 insopts -m0644
141 insinto /etc/logrotate.d
142 newins "${FILESDIR}"/${PN}.logrotate ${PN}
143
144 # avoid triggering portage's symlink protection; this is handled by
145 # the init script anyway.
146 rm -rf "${D}"/var/run
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 }