blob: 2e4314520701cf2c7ff1ee531836ad92f59261f1 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
CMAKE_MIN_VERSION="2.6"
inherit cmake-utils
DESCRIPTION="Web log analyzer using probabilistic data structures"
HOMEPAGE="https://github.com/fcambus/logswan"
SRC_URI="https://github.com/fcambus/${PN}/archive/${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-libs/geoip
dev-libs/jansson"
RDEPEND="${DEPEND}"
src_prepare() {
# fix GeoIP data files path
sed -e 's@/usr/local/share/GeoIP/@/usr/share/GeoIP/@g' -i src/logswan.c || die
}
pkg_postinst() {
elog "To download the GeoIP backend data files, run:"
elog " geoipupdate.sh -f"
}
|