summaryrefslogtreecommitdiff
path: root/net-analyzer/scli
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/scli')
-rw-r--r--net-analyzer/scli/Manifest6
-rw-r--r--net-analyzer/scli/files/scli-0.4.0-configure.patch44
-rw-r--r--net-analyzer/scli/metadata.xml8
-rw-r--r--net-analyzer/scli/scli-0.4.0-r1.ebuild35
4 files changed, 93 insertions, 0 deletions
diff --git a/net-analyzer/scli/Manifest b/net-analyzer/scli/Manifest
new file mode 100644
index 000000000000..360d73df022a
--- /dev/null
+++ b/net-analyzer/scli/Manifest
@@ -0,0 +1,6 @@
+AUX scli-0.4.0-configure.patch 1545 SHA256 bb5a43df531806df91f136113b740251d2270fa2bb7a39f7a9785802916e99ed SHA512 423daf0251bc65f84c430638f235ff30cd75257c221394332f4fd51b8c5deabb02fc97751b77e4571305107fe2ac66062c27cdf74a2d3d46f2f278d7983cf622 WHIRLPOOL 550ac191199b0507a66f0491b76e071422704779c5f26e4cd37eb0d1897734b5e42e9ab4fed5799530e42af1687ba2e30d9e4792ad39b9bbb4a2f4512c898100
+DIST scli-0.4.0.tar.gz 953401 SHA256 308511589260d3da9bc5817ace363180070ac83ccba9231b7b9a01e1b0c29fe1 SHA512 ceb81e51049def64cb6f2428263709802380f7f712575e327a71d8cc120d284a7d9c57679d76e22cfcaf5b160d0d46af0cefa1133c56972b43002cb94f120dcc WHIRLPOOL 29f72af56e1a934a30b147858cd3e7e5acd638546b46b275693b0241bb0006edb1e66fa8af5a7074d23125c02780f129d1c7df6356da45fce3c083a390886aeb
+EBUILD scli-0.4.0-r1.ebuild 701 SHA256 627daaf9e1a8e59045af02ab581d5256557fea5d5b158cd678e853b750786d43 SHA512 c2b00fe9c8f15f3fdb0a2f0dc877937f16fbc8fe8b4c44e0dcee5f74b6412eaceb5f1ef18363565d9cf5c36fffac51c8b1c7a2842ed1f366892c46873eb005a1 WHIRLPOOL b5425d20a0f3637ef1dc2d095d78fb1d87a33100b586247464ae7d79c29656e6d1fdb072c2d922cf47179d63974199269d74e3d26fc6b49e07ca40e2cbccd18e
+MISC ChangeLog 2463 SHA256 5242dd770eaf2444707db7b9dc0bcea95ab5ae0a5cb36c10a405defbe92bdb66 SHA512 683500aa044b6f773e07de144f6d183714a14b64389cad37f1af3e8ec79165103488232b33b86b8b613ab8c47922245b94915bf58355232767513ac920bd2d76 WHIRLPOOL 36b65e547acfc88d789fa8a58eee6d8939953e07cc49d6db8fea4eb5d1aafd4490ccbc8f2e8884f93fd809f35175b712663d4fb3a8dbecfce03f532f59fae7f2
+MISC ChangeLog-2015 3355 SHA256 28e600a472cd1177f880479353838f7a214e1dfc51b2a2e6be9f57af07043d45 SHA512 8337fdec6eda0ba183284fc260867764a96c60f7cc2566f2c53d034dcc334d5c0ad9fc24610ea0b585f50fd25da966bf17fed55aa86840eb34b7eb2a7f4e1502 WHIRLPOOL bac11513147320cf8a3dbaeccba361464b1c71f4d7a3469f666aba8a4e39b2fe24c509507e6b3ecc4f777a008e98afc7a399a31d089fcac7d2047c1574a584ac
+MISC metadata.xml 280 SHA256 b04c5b9d91f6c4d6e36583488fd032751034d1e035085609c9bdf7677cf1e83f SHA512 8b56802e5524808b11ab857779ce04fb2d07cae87376f67490178601a9aecf7ad9f95743709b46048a425598d4cf8dcf01ef78cc97009d78e26a7728453150ef WHIRLPOOL 6f3756b9ac748acccb6ac5a4de133cf93988e8c904f606376fecbb6a21ce038e86437fecca43b2521538da2570d33ff1a6a1e0cab290a3d71a9b4f2734f16328
diff --git a/net-analyzer/scli/files/scli-0.4.0-configure.patch b/net-analyzer/scli/files/scli-0.4.0-configure.patch
new file mode 100644
index 000000000000..d942da0adcc5
--- /dev/null
+++ b/net-analyzer/scli/files/scli-0.4.0-configure.patch
@@ -0,0 +1,44 @@
+--- a/configure.in
++++ b/configure.in
+@@ -20,6 +20,8 @@
+ AC_CHECK_PROG(SMIDUMP, smidump, smidump)
+ AC_SUBST(SMIDUMP)
+
++PKG_PROG_PKG_CONFIG
++
+ AC_DEFINE_UNQUOTED(SCLI_PLUGIN_PATH, "${pkglibdir}")
+
+ AC_MSG_CHECKING([whether to enable -Wall])
+@@ -33,19 +35,24 @@
+
+ dnl Checks for libraries.
+
+-AM_PATH_GLIB_2_0(2.0.0, [], AC_MSG_ERROR(scli needs GLIB), gmodule)
+-AM_PATH_GNET_2_0(2.0.0, [], AC_MSG_ERROR(scli needs GNET))
++PKG_CHECK_MODULES(GLIB, glib-2.0 gmodule-2.0 gthread-2.0,[
++ LIBS="$LIBS $GLIB_LIBS"
++ CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
++ ], AC_MSG_ERROR(scli needs GLIB))
++PKG_CHECK_MODULES(GNET, gnet-2.0 >= 2.0.0,[
++ LIBS="$LIBS $GNET_LIBS"
++ CPPFLAGS="$CPPFLAGS $GNET_CFLAGS"
++ ], AC_MSG_ERROR(scli needs GNET))
+ dnl AM_PATH_GLIB(1.2.0, [], AC_MSG_ERROR(scli needs GLIB), gmodule)
+ dnl AM_PATH_GTK(1.2.0, [], AC_MSG_ERROR(scli needs GTK))
+-AM_PATH_XML2(2.0.0, [], AC_MSG_ERROR(scli needs libxml2))
++PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.0.0,[
++ LIBS="$LIBS $XML2_LIBS"
++ CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
++ ], AC_MSG_ERROR(scli needs libxml2))
+ PKG_CHECK_MODULES(GSNMP, gsnmp, have_gsnmp=true, have_gsnmp=false)
+ AC_SUBST(GSNMP_CFLAGS)
+ AC_SUBST(GSNMP_LIBS)
+-AC_CHECK_LIB(ncurses, initscr, [],
+- AC_CHECK_LIB(curses, initscr, [],
+- AC_MSG_ERROR([scli requires curses functions; install curses first])
+- )
+-)
++PKG_CHECK_MODULES(ncurses,ncurses,LIBS="$LIBS $ncurses_LIBS",AC_MSG_ERROR([ncurses is required]))
+ AC_CHECK_LIB(readline, readline, [],
+ AC_MSG_ERROR([scli requires readline functions; install libreadline first])
+ )
diff --git a/net-analyzer/scli/metadata.xml b/net-analyzer/scli/metadata.xml
new file mode 100644
index 000000000000..2c2a7923cfc8
--- /dev/null
+++ b/net-analyzer/scli/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/scli/scli-0.4.0-r1.ebuild b/net-analyzer/scli/scli-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..54aae413bbfe
--- /dev/null
+++ b/net-analyzer/scli/scli-0.4.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="SNMP Command Line Interface"
+HOMEPAGE="http://cnds.eecs.jacobs-university.de/users/schoenw/articles/software/index.html"
+SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/libxml2
+ net-libs/gnet
+ net-libs/gsnmp
+ sys-libs/ncurses
+ sys-libs/readline
+ sys-libs/zlib
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+DOCS=( AUTHORS ChangeLog NEWS PORTING README TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-configure.patch
+
+ eautoreconf
+}