summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-02-14 14:16:46 -0500
committerBrian Evans <grknight@gentoo.org>2019-02-14 14:16:46 -0500
commit3bfc18766b04f2538cd3a46edaef958a00ca880b (patch)
tree4c0218ce5915a918319c2e6b443916b75bedaa61 /net-analyzer/argus-clients/argus-clients-3.0.8.2-r2.ebuild
parentmail-client/thunderbird-bin: bump to v60.5.1 (diff)
downloadgentoo-3bfc18766b04f2538cd3a46edaef958a00ca880b.tar.gz
gentoo-3bfc18766b04f2538cd3a46edaef958a00ca880b.tar.bz2
gentoo-3bfc18766b04f2538cd3a46edaef958a00ca880b.zip
net-analyzer/argus-clients: Fix building with mysql
Non-maintainer commit Bug: https://bugs.gentoo.org/665932 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'net-analyzer/argus-clients/argus-clients-3.0.8.2-r2.ebuild')
-rw-r--r--net-analyzer/argus-clients/argus-clients-3.0.8.2-r2.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/net-analyzer/argus-clients/argus-clients-3.0.8.2-r2.ebuild b/net-analyzer/argus-clients/argus-clients-3.0.8.2-r2.ebuild
new file mode 100644
index 000000000000..34882be08c07
--- /dev/null
+++ b/net-analyzer/argus-clients/argus-clients-3.0.8.2-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Clients for net-analyzer/argus"
+HOMEPAGE="http://www.qosient.com/argus/"
+SRC_URI="http://qosient.com/argus/dev/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug ft geoip mysql sasl tcpd"
+
+ARGUS_CDEPEND="
+ net-analyzer/rrdtool[perl]
+ net-libs/libpcap
+ net-libs/libtirpc:=
+ sys-libs/ncurses:=
+ sys-libs/readline:=
+ sys-libs/zlib
+ ft? ( net-analyzer/flow-tools )
+ geoip? ( dev-libs/geoip )
+ mysql? ( dev-db/mysql-connector-c:0= )
+ sasl? ( dev-libs/cyrus-sasl )
+"
+RDEPEND="
+ ${ARGUS_CDEPEND}
+"
+DEPEND="
+ ${ARGUS_CDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.0.4.1-disable-tcp-wrappers-automagic.patch
+ "${FILESDIR}"/${PN}-3.0.7.21-curses-readline.patch
+ "${FILESDIR}"/${PN}-3.0.8.2-rpc.patch
+ "${FILESDIR}"/${PN}-3.0.8.2-ar.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ tc-export AR RANLIB
+
+ use debug && touch .debug
+ econf \
+ $(use_with ft libft) \
+ $(use_with geoip GeoIP /usr/) \
+ $(use_with sasl) \
+ $(use_with tcpd wrappers) \
+ $(use_with mysql mysql /usr)
+}
+
+src_compile() {
+ emake \
+ CCOPT="${CFLAGS} ${LDFLAGS}" \
+ RANLIB=$(tc-getRANLIB) \
+ CURSESLIB="$( $(tc-getPKG_CONFIG) --libs ncurses)"
+}
+
+src_install() {
+ dobin bin/ra*
+ dodoc ChangeLog CREDITS README CHANGES
+ doman man/man{1,5}/*
+}