summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/scli')
-rw-r--r--net-analyzer/scli/ChangeLog12
-rw-r--r--net-analyzer/scli/Manifest16
-rw-r--r--net-analyzer/scli/files/digest-scli-0.2.121
-rw-r--r--net-analyzer/scli/files/scli-0.2.12-fix-configure.diff67
-rw-r--r--net-analyzer/scli/files/scli-0.2.12-gentoo.diff84
-rw-r--r--net-analyzer/scli/metadata.xml5
-rw-r--r--net-analyzer/scli/scli-0.2.12.ebuild49
7 files changed, 234 insertions, 0 deletions
diff --git a/net-analyzer/scli/ChangeLog b/net-analyzer/scli/ChangeLog
new file mode 100644
index 000000000000..8a89067cd927
--- /dev/null
+++ b/net-analyzer/scli/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-analyzer/scli
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/scli/ChangeLog,v 1.1 2005/01/28 11:49:51 ka0ttic Exp $
+
+*scli-0.2.12 (28 Jan 2005)
+
+ 28 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> +metadata.xml,
+ +files/scli-0.2.12-fix-configure.diff, +files/scli-0.2.12-gentoo.diff,
+ +scli-0.2.12.ebuild:
+ Initial commit for bug 71389. Ebuild submitted by Gudleik Rasch
+ <gudleik@rastamatra.org>.
+
diff --git a/net-analyzer/scli/Manifest b/net-analyzer/scli/Manifest
new file mode 100644
index 000000000000..f3268c62969e
--- /dev/null
+++ b/net-analyzer/scli/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 6f637083a2abe28438d5ab77b06d1955 scli-0.2.12.ebuild 1176
+MD5 4de02a0b158743567f1be8520c4232dc ChangeLog 491
+MD5 637389da071d8ee0c0292695525bc29f metadata.xml 160
+MD5 cee1db33c3c86f0256eb7666ad160781 files/digest-scli-0.2.12 63
+MD5 ee225bed0ca758593aa508947a98599c files/scli-0.2.12-gentoo.diff 2503
+MD5 e7024543fc327d62c1cdca1ae7e836fe files/scli-0.2.12-fix-configure.diff 2450
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.0 (GNU/Linux)
+
+iD8DBQFB+idHEZCkKN40op4RAoqOAJoCvSCiJz9uZ9onpAfVfStwG9l4hwCgsofX
+W077zy/vOuu3ESl5RuYr/Nk=
+=U8zp
+-----END PGP SIGNATURE-----
diff --git a/net-analyzer/scli/files/digest-scli-0.2.12 b/net-analyzer/scli/files/digest-scli-0.2.12
new file mode 100644
index 000000000000..92ca9d7b1f99
--- /dev/null
+++ b/net-analyzer/scli/files/digest-scli-0.2.12
@@ -0,0 +1 @@
+MD5 5e2e783d7e5f734f8588f23f215b3ff0 scli-0.2.12.tar.gz 645131
diff --git a/net-analyzer/scli/files/scli-0.2.12-fix-configure.diff b/net-analyzer/scli/files/scli-0.2.12-fix-configure.diff
new file mode 100644
index 000000000000..4c2c04fd9d16
--- /dev/null
+++ b/net-analyzer/scli/files/scli-0.2.12-fix-configure.diff
@@ -0,0 +1,67 @@
+diff -urN scli-0.2.12.orig/acconfig.h scli-0.2.12/acconfig.h
+--- scli-0.2.12.orig/acconfig.h 2005-01-28 01:19:14.000000000 -0500
++++ scli-0.2.12/acconfig.h 1969-12-31 19:00:00.000000000 -0500
+@@ -1,27 +0,0 @@
+-/*
+- * acconfig.h --
+- *
+- * autoheader configuration macros
+- *
+- * Copyright (C) 2001 Juergen Schoenwaelder
+- *
+- * This program is free software; you can redistribute it and/or modify
+- * it under the terms of the GNU General Public License as published by
+- * the Free Software Foundation; either version 2, or (at your option)
+- * any later version.
+- *
+- * This program is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+- * GNU General Public License for more details.
+- *
+- * You should have received a copy of the GNU General Public License
+- * along with this program; if not, write to the Free Software Foundation,
+- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+- *
+- * @(#) $Id: scli-0.2.12-fix-configure.diff,v 1.1 2005/01/28 11:49:51 ka0ttic Exp $
+- */
+-
+-/* The full pathname of the directory containing scli plugins. */
+-#define SCLI_PLUGIN_PATH "/usr/local/lib/scli"
+-
+diff -urN scli-0.2.12.orig/configure.in scli-0.2.12/configure.in
+--- scli-0.2.12.orig/configure.in 2005-01-28 01:19:14.000000000 -0500
++++ scli-0.2.12/configure.in 2005-01-28 01:47:53.743741424 -0500
+@@ -21,7 +21,7 @@
+ AC_CHECK_PROG(SMIDUMP, smidump, smidump)
+ AC_SUBST(SMIDUMP)
+
+-AC_DEFINE_UNQUOTED(SCLI_PLUGIN_PATH, "${exec_prefix}/lib/scli")
++AC_DEFINE_UNQUOTED(SCLI_PLUGIN_PATH, "${exec_prefix}/lib/scli", [Define loction of plugins])
+
+ AC_MSG_CHECKING([whether to enable -Wall])
+ AC_ARG_ENABLE(warnings,
+@@ -72,12 +72,17 @@
+ dnl Check for configure options
+
+ AC_ARG_ENABLE(dmalloc,
+-[ --enable-dmalloc enable dmalloc debugging (www.dmalloc.com)],
+- [
+- AC_CHECK_HEADERS(dmalloc.h)
+- AC_CHECK_LIB(dmalloc, malloc)
+- ]
+-)
++ [ --enable-dmalloc enable dmalloc debugging (www.dmalloc.com)],
++ [case "${enableval}" in
++ yes) ac_arg_enable_dmalloc=yes ;;
++ no) ac_arg_enable_dmalloc=no ;;
++ *) AC_MSG_ERROR(bad value ${enableval} for --enable-dmalloc) ;;
++ esac], [ac_arg_enable_dmalloc=no])
++
++if test x$ac_arg_enable_dmalloc = xyes ; then
++ AC_CHECK_HEADERS(dmalloc.h)
++ AC_CHECK_LIB(dmalloc, malloc)
++fi
+
+ dnl Create all the Makefiles we need and we are done.
+
diff --git a/net-analyzer/scli/files/scli-0.2.12-gentoo.diff b/net-analyzer/scli/files/scli-0.2.12-gentoo.diff
new file mode 100644
index 000000000000..da5beb9c88f3
--- /dev/null
+++ b/net-analyzer/scli/files/scli-0.2.12-gentoo.diff
@@ -0,0 +1,84 @@
+diff -urN scli-0.2.12.orig/scli/atm.c scli-0.2.12/scli/atm.c
+--- scli-0.2.12.orig/scli/atm.c 2005-01-28 01:19:14.000000000 -0500
++++ scli-0.2.12/scli/atm.c 2005-01-28 02:44:55.501555168 -0500
+@@ -25,7 +25,7 @@
+ #include "atm-mib.h"
+ #include "if-mib.h"
+
+-
++int interface_match(regex_t *regex, if_mib_ifEntry_t *ifEntry);
+
+ static void
+ fmt_atm_interface_info(GString *s,
+diff -urN scli-0.2.12.orig/scli/isdn.c scli-0.2.12/scli/isdn.c
+--- scli-0.2.12.orig/scli/isdn.c 2005-01-28 01:19:14.000000000 -0500
++++ scli-0.2.12/scli/isdn.c 2005-01-28 02:45:24.388163736 -0500
+@@ -25,6 +25,7 @@
+ #include "if-mib.h"
+ #include "isdn-mib.h"
+
++int interface_match(regex_t *regex, if_mib_ifEntry_t *ifEntry);
+
+ static void
+ fmt_isdn_bri(GString *s, isdn_mib_isdnBasicRateEntry_t *briEntry,
+@@ -227,7 +228,7 @@
+
+ if (endpointEntry->isdnEndpointIfIndex) {
+ g_string_sprintfa(s, "%-*s %d\n", indent, "Interface:",
+- endpointEntry->isdnEndpointIfIndex);
++ *(endpointEntry->isdnEndpointIfIndex));
+ }
+
+ #if 0
+diff -urN scli-0.2.12.orig/scli/sonet.c scli-0.2.12/scli/sonet.c
+--- scli-0.2.12.orig/scli/sonet.c 2005-01-28 01:19:14.000000000 -0500
++++ scli-0.2.12/scli/sonet.c 2005-01-28 02:45:15.788471088 -0500
+@@ -31,6 +31,7 @@
+ #include "if-mib.h"
+ #include "sonet-mib.h"
+
++int interface_match(regex_t *regex, if_mib_ifEntry_t *ifEntry);
+
+ static GSnmpEnum const sonetMediumType[] = {
+ { SONET_MIB_SONETMEDIUMTYPE_SONET, "SONET" },
+diff -urN scli-0.2.12.orig/snmp/g_session.c scli-0.2.12/snmp/g_session.c
+--- scli-0.2.12.orig/snmp/g_session.c 2005-01-28 01:19:14.000000000 -0500
++++ scli-0.2.12/snmp/g_session.c 2005-01-28 02:43:13.875004752 -0500
+@@ -21,13 +21,12 @@
+ * $Id: scli-0.2.12-gentoo.diff,v 1.1 2005/01/28 11:49:51 ka0ttic Exp $
+ */
+
+-#include "g_snmp.h"
+-
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <sys/socket.h>
+ #include <sys/time.h>
+ #include <time.h>
++#include "g_snmp.h"
+
+ static GSList *request_queue = NULL; /* queue of active requests */
+
+diff -urN scli-0.2.12.orig/snmp/g_snmp.h scli-0.2.12/snmp/g_snmp.h
+--- scli-0.2.12.orig/snmp/g_snmp.h 2005-01-28 01:19:14.000000000 -0500
++++ scli-0.2.12/snmp/g_snmp.h 2005-01-28 02:41:37.152708776 -0500
+@@ -28,15 +28,15 @@
+ #include "config.h"
+ #endif
+
+-#ifdef HAVE_DMALLOC_H
+-#include <dmalloc.h>
+-#endif
+-
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <string.h>
+ #include <glib.h>
+
++#ifdef HAVE_DMALLOC_H
++#include <dmalloc.h>
++#endif
++
+ /* Our Enterprise Handle */
+
+ #define ENTERPRISE_GNOME 3319
diff --git a/net-analyzer/scli/metadata.xml b/net-analyzer/scli/metadata.xml
new file mode 100644
index 000000000000..78692635ad22
--- /dev/null
+++ b/net-analyzer/scli/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+</pkgmetadata>
diff --git a/net-analyzer/scli/scli-0.2.12.ebuild b/net-analyzer/scli/scli-0.2.12.ebuild
new file mode 100644
index 000000000000..1485d8543eee
--- /dev/null
+++ b/net-analyzer/scli/scli-0.2.12.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/scli/scli-0.2.12.ebuild,v 1.1 2005/01/28 11:49:51 ka0ttic Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="SNMP Command Line Interface"
+HOMEPAGE="http://www.ibr.cs.tu-bs.de/projects/scli/"
+SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug"
+
+RDEPEND="virtual/libc
+ >=dev-libs/glib-1.2
+ >=sys-libs/ncurses-5
+ >=sys-libs/readline-4
+ dev-libs/libxml2
+ sys-libs/zlib
+ debug? ( dev-libs/dmalloc )"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-fix-configure.diff
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_compile() {
+ einfo "Updating autoconf/automake files"
+ WANT_AUTOCONF=2.13 WANT_AUTOMAKE=1.4 autoreconf || die "autoreconf failed"
+
+ append-flags -I/usr/include/libxml2
+
+ econf \
+ --enable-warnings \
+ $(use_enable debug dmalloc) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc README AUTHORS NEWS TODO ChangeLog PORTING
+}