summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-02-25 08:50:54 +0100
committerJeroen Roovers <jer@gentoo.org>2016-02-25 08:51:39 +0100
commit937035adee42ec2f5776247db1bf15e61163a263 (patch)
tree36b53f87d19f5b7b293c494cd690cecc7350a554
parentdev-ruby/mime-types-data: add 3.2016.0221 (diff)
downloadgentoo-937035adee42ec2f5776247db1bf15e61163a263.tar.gz
gentoo-937035adee42ec2f5776247db1bf15e61163a263.tar.bz2
gentoo-937035adee42ec2f5776247db1bf15e61163a263.zip
net-analyzer/fwlogwatch: Add USE=geoip.
Package-Manager: portage-2.2.27
-rw-r--r--net-analyzer/fwlogwatch/fwlogwatch-1.5.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/net-analyzer/fwlogwatch/fwlogwatch-1.5.ebuild b/net-analyzer/fwlogwatch/fwlogwatch-1.5.ebuild
index 1479b995f8d..78665a04577 100644
--- a/net-analyzer/fwlogwatch/fwlogwatch-1.5.ebuild
+++ b/net-analyzer/fwlogwatch/fwlogwatch-1.5.ebuild
@@ -13,9 +13,10 @@ SRC_URI="${HOMEPAGE}sw/${P}.tar.bz2"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
LICENSE="GPL-1"
SLOT="0"
-IUSE="nls zlib"
+IUSE="geoip nls zlib"
RDEPEND="
+ geoip? ( dev-libs/geoip )
zlib? ( sys-libs/zlib )
"
DEPEND="
@@ -52,6 +53,11 @@ src_configure() {
append-cflags -DHAVE_ZLIB
fi
+ if use geoip; then
+ append-cflags -DHAVE_GEOIP
+ sed -i Makefile -e '/^LIBS/ s| #| -lGeoIP #|g' || die
+ fi
+
use nls && append-cflags -DHAVE_GETTEXT
}