blob: fe49ad18060e33187ad77afa699556004de150e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils multilib flag-o-matic
MY_PN=c_icap_modules #${PN/-/_}
MY_P=${MY_PN}-${PV}
DESCRIPTION="URL blocklist and virus scanner for the C-ICAP server"
HOMEPAGE="http://c-icap.sourceforge.net/"
SRC_URI="mirror://sourceforge/c-icap/${PN}/0.2.x/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="berkdb clamav"
DEPEND="berkdb? ( sys-libs/db )
clamav? ( app-antivirus/clamav )
net-proxy/c-icap
sys-libs/glibc
sys-libs/zlib"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_configure() {
# some void *** pointers get casted around and can be troublesome to
# fix properly.
append-flags -fno-strict-aliasing
econf --sysconfdir=/etc/c-icap \
--disable-dependency-tracking \
--disable-maintainer-mode \
--disable-static \
$(use_with berkdb bdb) \
$(use_with clamav)
}
src_compile() {
emake LOGDIR="/var/log"
}
src_install() {
dodir /etc/c-icap
emake LOGDIR="/var/log" \
DESTDIR="${D}" install
find "${ED}" -name '*.la' -delete || die
}
|