-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA1
AUX c-icap-0.1.3+db-5.0.patch 495 RMD160 482a3a15e718d21bd1d00a866f0c6c62cf7d1809 SHA1 d5e3ddb39ba692c9f67f97572c274f0756badc44 SHA256 5cc9ea93da6e14f546a4fbe34cdfbc796b8e871e6a618de400e709a61556fb01
AUX c-icap-0.1.3-asneeded.patch 953 RMD160 bd4c51d283f3e0e74fa2c3d26a65a6c01e2ccfb6 SHA1 266d6ecc6883577645cac3954d7f3b377715c958 SHA256 353861571ab1116f59115ae4403ae4cdcc3bd799a0f3d1477f3e00fcb23783ee
AUX c-icap.init 1048 RMD160 b47f5163b4cc04c83fec24a3f444436e0c24f101 SHA1 e38a0e39bc977a74e8bfa33de061a25369192baa SHA256 a2f5f719e36266ed1e41f12d3e12dd275d066e55ad09105dc5577947105fa2b1
AUX c-icap.logrotate 188 RMD160 69c5f637b8ebce3a7b25703ecad066ca7264d00e SHA1 0c1f7bc65ff5479a22234eaba823554b3f2a8bf5 SHA256 a1ebd01837312c1fbb5b110486656656001c9b70ab0008f5ee73de6222005b54
DIST c_icap-0.1.6.tar.gz 528708 RMD160 3949976edb3fe3265563f280cc2929c590c44930 SHA1 31d322eacdc4fe3ee5f8d5d2c93d7f4faef1f7d7 SHA256 5088b69c9de6093dfcf64fbbcb285f13a9049f34371089668badd88769eee5a9
+DIST c_icap-0.1.7.tar.gz 530022 RMD160 8dd2698ac8d8c61566f3a8f37b8b72ef01a2f48a SHA1 e41bebb3975df43268e51b1e1bf61c5c5ed88ff2 SHA256 abc263426ca789bc182c04a5bfcf2820d9059902d36c8680baf1032218c50b09
EBUILD c-icap-0.1.6.ebuild 3023 RMD160 4d707bf18ee466c399b56975dfd2318d7027aace SHA1 227786697569f14f2e4cdc3d853f049a534c43c9 SHA256 3758e3801c9c6589b3d3876e75dde902fc93676dee840c3e730b22a7ef51ea64
-MISC ChangeLog 1598 RMD160 d2f474730ca2279ee35428c4e9be04900a8cf7df SHA1 6989f8da50f68add67414efab0895a0190a47e52 SHA256 c620b1e38e0ed9f99d33380c03bd5b18215ff15080c36f4e8695afb8f0d5c2f8
+EBUILD c-icap-0.1.7.ebuild 3026 RMD160 b8e7b7d288dffdf6d14b2abcb0578df4abea9b6a SHA1 8a65442e00ae6b8936a14fd46d44aad10c198a07 SHA256 dabf62bee06ec8ab05780bdcb04321830b79a6e34756cd9811983b61b43f30f2
+MISC ChangeLog 1723 RMD160 844f53bc6348b74364a2ae9f0261b925ab381b50 SHA1 04f0b23ec23d3354ea3ad212182e7c12ec97a697 SHA256 65e0b64b8e55868910b84583d113b1e8f44dc63ca24edd5234a9bf08cc0a1810
MISC metadata.xml 314 RMD160 361f20765aacd066a4cd246dc6e1279b5867e1db SHA1 f94c897e86448ba1ecfd55a90f1391c5d050dcd5 SHA256 62f7e0195ddb28bcab113616feba8f590429a33552ec9bf96f5e3ad5c5f4e542
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.18 (GNU/Linux)
-iQIcBAEBCgAGBQJOK+ONAAoJEPqDWhW0r/LCXfoP/1aJQHovUYLpAMMygPPxP3SK
-/iicKvUyU97crlJGW7iJrUomzVOewvP3O+iNaS3iWz8HM1jvKvEhkaLnozrqoL2S
-ZHuE0UMTBEPVBxeWwaVw6Cei+DTaIPs/jsXa0PfwGfK+eKWW3xhOs8CNPBuR/613
-CArJEbl4jux9VrLx/6LbtBdtg1il6Mg9d+4CHx7jLkaarJKY7bhw7PiOMVOErLu6
-19xdB+TIKHPKtDpsU8EBZtEwx68oawKXzbMLkXDxUFz8QC4TufX9vsZT/uyVw7DS
-IydS82It4t/0LDFTAKenLmHzxL+Vg1rrm1umAsoYbkgDif54dYxwsGvHEtpy9QkH
-xznt8X2M5AwvhGr78cFsYxJ+W2CJdqk4tQYxcnhT8J00JnmrQDKUqlsu4+iUeCD6
-EZDPWmuXNLrhx0x9B7LNYYGDtp2WUdYKk/efCeD+YjV/1pEoH1/v2vcUH5rgWHn9
-4zYZlN1n2qXZerxhVotpEUhbGHKxcyzoQcaAbFth0AltkjSftcqoOwZLcRzHQBfK
-7vst1MxbQQHEvgiuf8nTi6yNLGu2GKkxdvOv/Wdq0MoPOWstqZRq+M7fZDw5VXBb
-KAFQQSEQQVfv0XO0qv446xpC2yxuH949Mo6PyPup+QcyzXFXdHpdYqCMWIFtnH8V
-Bv/pBcOzEh1+Ue7vazzU
-=MsEr
+iEYEARECAAYFAk6Ue6cACgkQAiZjviIA2XiUBwCg7vIQmGN5wh4JI6s8RMvQFBOx
+jd0AoPB2xpS9j9SnJAnPPDCHvX1foeQh
+=xrlD
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/c-icap/c-icap-0.1.7.ebuild,v 1.1 2011/10/11 17:24:43 flameeyes Exp $
+
+EAPI=2
+
+inherit eutils multilib flag-o-matic autotools
+
+MY_PN=${PN/-/_}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="C Implementation of an ICAP server"
+HOMEPAGE="http://c-icap.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="berkdb ldap ipv6 ldap"
+
+RDEPEND="berkdb? ( sys-libs/db )
+ ldap? ( net-nds/openldap )
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-0.1.3-asneeded.patch"
+ epatch "${FILESDIR}/${PN}-0.1.3-implicit.patch"
+ epatch "${FILESDIR}/${PN}-0.1.3+db-5.0.patch"
+ epatch "${FILESDIR}/${PN}-0.1.4-crosscompile.patch"
+ epatch "${FILESDIR}/${PN}-0.1.6-implicit.patch"
+ eautoreconf
+}
+
+src_configure() {
+ # some void *** pointers get casted around and can be troublesome to
+ # fix properly.
+ append-flags -fno-strict-aliasing
+
+ econf \
+ --sysconfdir=/etc/${PN} \
+ --disable-dependency-tracking \
+ --disable-maintainer-mode \
+ --disable-static \
+ --enable-large-files \
+ $(use_enable ipv6) \
+ $(use_with berkdb bdb) \
+ $(use_with ldap)
+}
+
+src_compile() {
+ emake LOGDIR="/var/log" || die
+}
+
+src_install() {
+ emake \
+ LOGDIR="/var/log" \
+ DESTDIR="${D}" install || die
+
+ find "${D}" -name '*.la' -delete || die
+
+ # Move the daemon out of the way
+ dodir /usr/libexec
+ mv "${D}"/usr/bin/c-icap "${D}"/usr/libexec || die
+
+ # Remove the default configuration files since we have etc-update to
+ # take care of it for us.
+ rm "${D}"/etc/${PN}/c-icap.*.default || die
+
+ # Fix the configuration file; for some reason it's a bit messy
+ # around.
+ sed -i \
+ -e 's:/usr/var/:/var/:g' \
+ -e 's:/var/log/:/var/log/c-icap/:g' \
+ -e 's:/usr/etc/:/etc/c-icap/:g' \
+ -e 's:/usr/local/c-icap/etc/:/etc/c-icap/:g' \
+ -e 's:/usr/lib/:/usr/'$(get_libdir)'/:g' \
+ "${D}"/etc/${PN}/c-icap.conf \
+ || die
+
+ dodoc AUTHORS README TODO ChangeLog || die
+
+ newinitd "${FILESDIR}/${PN}.init" ${PN} || die
+ keepdir /var/log/c-icap || die
+
+ insopts -m0644
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}.logrotate ${PN}
+}
+
+pkg_postinst() {
+ elog "To enable Squid to call the ICAP modules from a local server you should set"
+ elog "the following in your squid.conf:"
+ elog ""
+ elog " icap_enable on"
+ elog ""
+ elog " # not strictly needed, but some modules might make use of these"
+ elog " icap_send_client_ip on"
+ elog " icap_send_client_username on"
+ elog ""
+ elog " icap_service service_req reqmod_precache bypass=1 icap://localhost:1344/service"
+ elog " adaptation_access service_req allow all"
+ elog ""
+ elog " icap_service service_resp respmod_precache bypass=0 icap://localhost:1344/service"
+ elog " adaptation_access service_resp allow all"
+ elog ""
+ elog "You obviously will have to replace \"service\" with the actual ICAP service to"
+ elog "use."
+}