diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-11-26 11:18:39 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-11-26 11:18:39 +0000 |
commit | dd2af5f36b7ce6db00ec4e1f1b93c615b0364c96 (patch) | |
tree | 3f9bb9d05613cf0afe64819f93a7fbadffa552e6 /net-analyzer/sinfo | |
parent | Drop exit from source script; If present in the script, but package files are... (diff) | |
download | gentoo-2-dd2af5f36b7ce6db00ec4e1f1b93c615b0364c96.tar.gz gentoo-2-dd2af5f36b7ce6db00ec4e1f1b93c615b0364c96.tar.bz2 gentoo-2-dd2af5f36b7ce6db00ec4e1f1b93c615b0364c96.zip |
Initial import.
(Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/sinfo')
-rw-r--r-- | net-analyzer/sinfo/ChangeLog | 12 | ||||
-rw-r--r-- | net-analyzer/sinfo/Manifest | 8 | ||||
-rw-r--r-- | net-analyzer/sinfo/files/sinfo-0.0.43-librpc-linking.patch | 10 | ||||
-rw-r--r-- | net-analyzer/sinfo/files/sinfo-0.0.43-ncurses-m4.patch | 95 | ||||
-rw-r--r-- | net-analyzer/sinfo/files/sinfo.confd | 4 | ||||
-rw-r--r-- | net-analyzer/sinfo/files/sinfo.initd | 21 | ||||
-rw-r--r-- | net-analyzer/sinfo/metadata.xml | 9 | ||||
-rw-r--r-- | net-analyzer/sinfo/sinfo-0.0.43.ebuild | 43 |
8 files changed, 202 insertions, 0 deletions
diff --git a/net-analyzer/sinfo/ChangeLog b/net-analyzer/sinfo/ChangeLog new file mode 100644 index 000000000000..0389ae117cc8 --- /dev/null +++ b/net-analyzer/sinfo/ChangeLog @@ -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 index 000000000000..7cb386704f90 --- /dev/null +++ b/net-analyzer/sinfo/Manifest @@ -0,0 +1,8 @@ +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 428 RMD160 99a86857aca52c829ddf62fb71bd348b6be99579 SHA1 27fc177e81602939479aabceac24998118a0b233 SHA256 4c73f4f7007c0cd44711d0bc62b5aa9e1a5aa359d382c599f1ce86c428634368 +DIST sinfo-0.0.43.tar.gz 657004 RMD160 faaf30bd4296e07df39a3c411d7b4ec918334cb3 SHA1 536b654f89c7b36643b6a8a44e585d21833d7a9b SHA256 06ad5b654dcd01d57646efe5f3b186b36ba7042b4d92e5fc23e85092e0a5fa48 +EBUILD sinfo-0.0.43.ebuild 874 RMD160 ca14e279a6aac1a58d296d490f3486d401836b32 SHA1 2bbe5951eab3d012a2175a1d4157976de5a804f8 SHA256 83a9c220be412251509b85ab76e526ae245435bc177df76f6d0f52fe5fcbb713 +MISC ChangeLog 379 RMD160 effe1fe676dce7828c925fe9e8f3b7fd1b69f40a SHA1 3c0cd076e2b244ce81655af4cad9da67a4ac22a6 SHA256 538e7a391d061652717a55167e86be45db4165d4e919662039cd5ce67fc6de98 +MISC metadata.xml 253 RMD160 5f299b90e560b41c9adccb61ef29455bd0b3b025 SHA1 e23195cbdf72b64e6ec14158e85580317651990a SHA256 79bb6d11490801e4aa3b1330f7ec9fee4bdeb3a22f6d88e4cdb4862b91a2ad64 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 index 000000000000..b00557121458 --- /dev/null +++ b/net-analyzer/sinfo/files/sinfo-0.0.43-librpc-linking.patch @@ -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 index 000000000000..7cc3f30853c6 --- /dev/null +++ b/net-analyzer/sinfo/files/sinfo-0.0.43-ncurses-m4.patch @@ -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 index 000000000000..da6e60405be8 --- /dev/null +++ b/net-analyzer/sinfo/files/sinfo.confd @@ -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 index 000000000000..f4140353b0ed --- /dev/null +++ b/net-analyzer/sinfo/files/sinfo.initd @@ -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 index 000000000000..e697c12b3abf --- /dev/null +++ b/net-analyzer/sinfo/metadata.xml @@ -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 index 000000000000..a73dd6a784dd --- /dev/null +++ b/net-analyzer/sinfo/sinfo-0.0.43.ebuild @@ -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} +} |