Initial import.
authorTim Harder <radhermit@gentoo.org>
Sat, 26 Nov 2011 11:18:39 +0000 (11:18 +0000)
committerTim Harder <radhermit@gentoo.org>
Sat, 26 Nov 2011 11:18:39 +0000 (11:18 +0000)
Package-Manager: portage-2.2.0_alpha77/cvs/Linux x86_64

net-analyzer/sinfo/ChangeLog [new file with mode: 0644]
net-analyzer/sinfo/Manifest [new file with mode: 0644]
net-analyzer/sinfo/files/sinfo-0.0.43-librpc-linking.patch [new file with mode: 0644]
net-analyzer/sinfo/files/sinfo-0.0.43-ncurses-m4.patch [new file with mode: 0644]
net-analyzer/sinfo/files/sinfo.confd [new file with mode: 0644]
net-analyzer/sinfo/files/sinfo.initd [new file with mode: 0644]
net-analyzer/sinfo/metadata.xml [new file with mode: 0644]
net-analyzer/sinfo/sinfo-0.0.43.ebuild [new file with mode: 0644]

diff --git a/net-analyzer/sinfo/ChangeLog b/net-analyzer/sinfo/ChangeLog
new file mode 100644 (file)
index 0000000..0389ae1
--- /dev/null
@@ -0,0 +1,12 @@
+# ChangeLog for net-analyzer/sinfo
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sinfo/ChangeLog,v 1.1 2011/11/26 11:18:39 radhermit Exp $
+
+*sinfo-0.0.43 (26 Nov 2011)
+
+  26 Nov 2011; Tim Harder <radhermit@gentoo.org> +sinfo-0.0.43.ebuild,
+  +files/sinfo-0.0.43-librpc-linking.patch,
+  +files/sinfo-0.0.43-ncurses-m4.patch, +files/sinfo.confd, +files/sinfo.initd,
+  +metadata.xml:
+  Initial import.
+
diff --git a/net-analyzer/sinfo/Manifest b/net-analyzer/sinfo/Manifest
new file mode 100644 (file)
index 0000000..57d89c9
--- /dev/null
@@ -0,0 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+AUX sinfo-0.0.43-librpc-linking.patch 397 RMD160 8aafabb40ac04545853c27771d67e9cf9a0032f4 SHA1 fbef24a88db1f48cf76df8fe2ea7647f96869f87 SHA256 f8f832677b04b69e564bdc765e9fa3fe0c8b09f83bc3d14132f4ad64c9fe8123
+AUX sinfo-0.0.43-ncurses-m4.patch 3860 RMD160 e8d1b93eb93575b28ad009441f2480f298e342ca SHA1 e882cd597f271afaa07a9116540678fc0a56f620 SHA256 171f42277baabd9f8758e8e35e581214efb4837e0911582aa49d5e22683bf866
+AUX sinfo.confd 102 RMD160 ccbd1edb4bc81ca161e31a39384a5ac2551f5aab SHA1 eeb1c0bb90c34c001d32d896d6584236f5bee039 SHA256 769b8db7b504abfd1414b77e52f6f830e976f340a7b166eb5cefb2e04178bda8
+AUX sinfo.initd 529 RMD160 13c36377231d8bb727bae5f6fe05b51d9e3f7b13 SHA1 5fe0ea173c6605d2df84e153063d845be180b469 SHA256 1c13bc82c794c782ec0c7f3ca5b2e89ef90f1db7429fce7ed5a9996296c262b0
+DIST sinfo-0.0.43.tar.gz 657004 RMD160 faaf30bd4296e07df39a3c411d7b4ec918334cb3 SHA1 536b654f89c7b36643b6a8a44e585d21833d7a9b SHA256 06ad5b654dcd01d57646efe5f3b186b36ba7042b4d92e5fc23e85092e0a5fa48
+EBUILD sinfo-0.0.43.ebuild 977 RMD160 10364c9c62cb2c33153435ccf8eb1730960ad7b1 SHA1 7fdbfc03a0afbc30aa14eaea185aaccc4f248af7 SHA256 cf19c65f1f03c2b8f7328399854772b1fd58712c5e1d166e54a73a6c0ef52019
+MISC ChangeLog 472 RMD160 1f3069f42947b37808464038beaf55386868f891 SHA1 9f51d5886641e4c834f996e4a032efdad913262e SHA256 74e33ea65190a7fc8de12e679a3e15ea31d9f4c3703e9bbee53b3ae787b6cd67
+MISC metadata.xml 253 RMD160 5f299b90e560b41c9adccb61ef29455bd0b3b025 SHA1 e23195cbdf72b64e6ec14158e85580317651990a SHA256 79bb6d11490801e4aa3b1330f7ec9fee4bdeb3a22f6d88e4cdb4862b91a2ad64
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iQEcBAEBCgAGBQJO0MsVAAoJEEqz6FtPBkyjs0cH/0ai1pG0+Xw72nofxvCakYWj
+fExqJrxrLteLCC6eoIHXcb3tyXjnOOXzSKWntX/LHicbyaaJl8anbLQn1+20BuGF
+1cEpSUZ38UozwGKzuwZJ8BUdQwxRJ5SmLb1o99/YpPy66DbVHPh7oo0B3JE/Dcnt
+SsAv/+H9nJg847RlRixBkRLPEk7csK1wsv0E61VGj98fwkVwW/JUXydT/CWEGte9
+zD3qCDhCp5DBEyf77bPj5GqLhJeQtyVkXWe/Xa5FJISXkbKa5kmZ4M7cVJqoSRfa
+mWPJN9jQDa8bHyZwLMwOAnkZM3BaNa63utKjdt3lYD+1PZFe5BwhUROWc1ILVBA=
+=AJfF
+-----END PGP SIGNATURE-----
diff --git a/net-analyzer/sinfo/files/sinfo-0.0.43-librpc-linking.patch b/net-analyzer/sinfo/files/sinfo-0.0.43-librpc-linking.patch
new file mode 100644 (file)
index 0000000..b005571
--- /dev/null
@@ -0,0 +1,10 @@
+Fix undefined reference linking errors.
+
+--- sinfo-0.0.43/librpc/Makefile.am.orig       2011-11-26 00:20:52.443559496 -0800
++++ sinfo-0.0.43/librpc/Makefile.am    2011-11-26 00:30:08.566125853 -0800
+@@ -8,3 +8,5 @@
+ librpc_la_SOURCES= \
+       rpcserverconnector.h            rpcserverconnector.cc \
+       rpcserverconnectorfactory.h     rpcserverconnectorfactory.cc
++
++librpc_la_LIBADD = ../libmessageiobase/libmessageiobase.la
diff --git a/net-analyzer/sinfo/files/sinfo-0.0.43-ncurses-m4.patch b/net-analyzer/sinfo/files/sinfo-0.0.43-ncurses-m4.patch
new file mode 100644 (file)
index 0000000..7cc3f30
--- /dev/null
@@ -0,0 +1,95 @@
+Split out ncurses specific functionality from aclocal.m4 since it gets
+overwritten during regeneration.
+
+--- sinfo-0.0.43.orig/m4/ncurses.m4
++++ sinfo-0.0.43/m4/ncurses.m4
+@@ -0,0 +1,84 @@
++# ===========================================================================
++#             http://autoconf-archive.cryp.to/mp_with_curses.html
++# ===========================================================================
++#
++# SYNOPSIS
++#
++#   MP_WITH_CURSES
++#
++# DESCRIPTION
++#
++#   Detect SysV compatible curses, such as ncurses.
++#
++#   Defines HAVE_CURSES_H or HAVE_NCURSES_H if curses is found. CURSES_LIB
++#   is also set with the required libary, but is not appended to LIBS
++#   automatically. If no working curses libary is found CURSES_LIB will be
++#   left blank.
++#
++#   This macro adds the option "--with-ncurses" to configure which can force
++#   the use of ncurses or nothing at all.
++#
++# LICENSE
++#
++#   Copyright (c) 2008 Mark Pulford <mark@kyne.com.au>
++#
++#   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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
++#
++#   As a special exception, the respective Autoconf Macro's copyright owner
++#   gives unlimited permission to copy, distribute and modify the configure
++#   scripts that are the output of Autoconf when processing the Macro. You
++#   need not follow the terms of the GNU General Public License when using
++#   or distributing such scripts, even though portions of the text of the
++#   Macro appear in them. The GNU General Public License (GPL) does govern
++#   all other use of the material that constitutes the Autoconf Macro.
++#
++#   This special exception to the GPL applies to versions of the Autoconf
++#   Macro released by the Autoconf Archive. When you make and distribute a
++#   modified version of the Autoconf Macro, you may extend this special
++#   exception to the GPL to apply to your modified version as well.
++
++AC_DEFUN([MP_WITH_CURSES],
++  [AC_ARG_WITH(ncurses, [  --with-ncurses          Force the use of ncurses over curses],,)
++   mp_save_LIBS="$LIBS"
++   CURSES_LIB=""
++   if test "$with_ncurses" != yes
++   then
++     AC_CACHE_CHECK([for working curses], mp_cv_curses,
++       [LIBS="$LIBS -lcurses"
++        AC_TRY_LINK(
++          [#include <curses.h>],
++          [chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ],
++          mp_cv_curses=yes, mp_cv_curses=no)])
++     if test "$mp_cv_curses" = yes
++     then
++       AC_DEFINE([HAVE_CURSES_H],[1],[Define if you have curses.h])
++       CURSES_LIB="-lcurses"
++     fi
++   fi
++   if test ! "$CURSES_LIB"
++   then
++     AC_CACHE_CHECK([for working ncurses], mp_cv_ncurses,
++       [LIBS="$mp_save_LIBS -lncurses"
++        AC_TRY_LINK(
++          [#include <ncurses.h>],
++          [chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ],
++          mp_cv_ncurses=yes, mp_cv_ncurses=no)])
++     if test "$mp_cv_ncurses" = yes
++     then
++       AC_DEFINE([HAVE_NCURSES_H],[1],[Define if you have ncurses.h])
++       CURSES_LIB="-lncurses"
++     fi
++   fi
++   LIBS="$mp_save_LIBS"
++])dnl
+--- sinfo-0.0.43.orig/Makefile.am
++++ sinfo-0.0.43/Makefile.am
+@@ -1 +1,2 @@
++ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = html libmessage libmessageparser libmessageiobase libmessageio librpc libprotocol libprotocolasio libsinfotypes libsinfometer sinfod sinfo cgi addon
diff --git a/net-analyzer/sinfo/files/sinfo.confd b/net-analyzer/sinfo/files/sinfo.confd
new file mode 100644 (file)
index 0000000..da6e604
--- /dev/null
@@ -0,0 +1,4 @@
+# /etc/conf.d/sinfo: config file for /etc/init.d/sinfo
+
+# Various sinfod options
+SINFO_OPTS="--quiet"
diff --git a/net-analyzer/sinfo/files/sinfo.initd b/net-analyzer/sinfo/files/sinfo.initd
new file mode 100644 (file)
index 0000000..f414035
--- /dev/null
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sinfo/files/sinfo.initd,v 1.1 2011/11/26 11:18:39 radhermit Exp $
+
+depend() {
+       need net
+}
+
+start() {
+       ebegin "Starting sinfod"
+       start-stop-daemon --start --exec /usr/sbin/sinfod -- \
+               ${SINFO_OPTS}
+       eend $? "Failed to start sinfod"
+}
+
+stop() {
+       ebegin "Stopping sinfod"
+       start-stop-daemon --stop --exec /usr/sbin/sinfod
+       eend $? "Failed to stop sinfod"
+}
diff --git a/net-analyzer/sinfo/metadata.xml b/net-analyzer/sinfo/metadata.xml
new file mode 100644 (file)
index 0000000..e697c12
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>netmon</herd>
+       <maintainer>
+               <email>radhermit@gentoo.org</email>
+               <name>Tim Harder</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/sinfo/sinfo-0.0.43.ebuild b/net-analyzer/sinfo/sinfo-0.0.43.ebuild
new file mode 100644 (file)
index 0000000..a73dd6a
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sinfo/sinfo-0.0.43.ebuild,v 1.1 2011/11/26 11:18:39 radhermit Exp $
+
+EAPI=4
+
+inherit eutils autotools-utils
+
+DESCRIPTION="A monitoring tool for networked computers"
+HOMEPAGE="http://www.ant.uni-bremen.de/whomes/rinas/sinfo/"
+SRC_URI="http://www.ant.uni-bremen.de/whomes/rinas/${PN}/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="dev-libs/boost
+       sys-libs/ncurses"
+DEPEND="${RDEPEND}
+       dev-cpp/asio"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-librpc-linking.patch
+       epatch "${FILESDIR}"/${P}-ncurses-m4.patch
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --with-ncurses \
+               $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       remove_libtool_files
+
+       newconfd "${FILESDIR}"/${PN}.confd ${PN}
+       newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}