summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-11-16 20:28:46 +0000
committerPeter Volkov <pva@gentoo.org>2008-11-16 20:28:46 +0000
commit4bf13f4ae511750b4631e705bce1e11f93fb1707 (patch)
tree852c62a930809150dd7d4ce7bf8e495fb6ef1dbe /net-analyzer
parentold (diff)
downloadhistorical-4bf13f4ae511750b4631e705bce1e11f93fb1707.tar.gz
historical-4bf13f4ae511750b4631e705bce1e11f93fb1707.tar.bz2
historical-4bf13f4ae511750b4631e705bce1e11f93fb1707.zip
Fixed wrong installation path for man pages (bug #246661) and not respecting C{,XX}FLAGS (bug #240858), thank Diego Pettenò for both. General ebuild cleanup, fixed build with --as-needed and now we respect LDFLAGS.
Package-Manager: portage-2.2_rc14/cvs/Linux 2.6.26-openvz.git-35f41f1 i686
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/nb/ChangeLog14
-rw-r--r--net-analyzer/nb/Manifest5
-rw-r--r--net-analyzer/nb/files/nb-0.6.5-CFLAGS-as-needed.patch59
-rw-r--r--net-analyzer/nb/nb-0.6.5-r1.ebuild30
-rw-r--r--net-analyzer/nb/nb-0.6.5.ebuild25
5 files changed, 104 insertions, 29 deletions
diff --git a/net-analyzer/nb/ChangeLog b/net-analyzer/nb/ChangeLog
index 5de464f0e0cc..8715d9bff6db 100644
--- a/net-analyzer/nb/ChangeLog
+++ b/net-analyzer/nb/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-analyzer/nb
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nb/ChangeLog,v 1.6 2007/09/06 17:33:08 jokey Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nb/ChangeLog,v 1.7 2008/11/16 20:28:46 pva Exp $
+
+*nb-0.6.5-r1 (16 Nov 2008)
+
+ 16 Nov 2008; Peter Volkov <pva@gentoo.org>
+ +files/nb-0.6.5-CFLAGS-as-needed.patch, -nb-0.6.5.ebuild,
+ +nb-0.6.5-r1.ebuild:
+ Fixed wrong installation path for man pages (bug #246661) and not
+ respecting C{,XX}FLAGS (bug #240858), thank Diego Pettenò for both.
+ General ebuild cleanup, fixed build with --as-needed and now we respect
+ LDFLAGS.
06 Sep 2007; Markus Ullmann <jokey@gentoo.org> -nb-0.6.2.ebuild:
Cleanup
diff --git a/net-analyzer/nb/Manifest b/net-analyzer/nb/Manifest
index 5c41bb3a37af..70dffdba5c57 100644
--- a/net-analyzer/nb/Manifest
+++ b/net-analyzer/nb/Manifest
@@ -1,4 +1,5 @@
+AUX nb-0.6.5-CFLAGS-as-needed.patch 2926 RMD160 8d3cf6d2e4f459c4a618fab93579605593b424d0 SHA1 392a99fb979d4352ea18e7e664e6c48e59f3898e SHA256 f87bfd6777ebb15c77b375c106659841d7343279b4caeab6ba0ab5c4850f5f26
DIST nb-0.6.5-source.tar.gz 558732 RMD160 8bb21a2e4e253af75bd206108e4cbf662343350c SHA1 c957662c08f1da90b101c7b217f5b37ccf4925c6 SHA256 fb8e0de88cd87dee81b6952d613b7010acecae35fc94a353198efc9cd5da9048
-EBUILD nb-0.6.5.ebuild 656 RMD160 b725bd34298f248be292022652154615fa32e168 SHA1 e02361af4d531ab0c358bbb0a298e90e5e6356c6 SHA256 40540ff0836a4dc496d451768c0ac65812d531aeed71d13be0e9e4e35564d8c3
-MISC ChangeLog 929 RMD160 f60a6008d9148c61fb1ae344e8826764de83a881 SHA1 950bf742f3614ce515c25a5d33e02ce05848ac34 SHA256 ec1839214c2d60d1b5805a1ca1fa7958f657221c1a7e51657472314b81901a44
+EBUILD nb-0.6.5-r1.ebuild 775 RMD160 24ac2827b46e1de9c8553a412545b67a24f1d865 SHA1 cfe13a1ed94e9547cb9b8e4f8c97d40c4373a44e SHA256 e9f7ad314aa7a62e3e45a80c86d7843d3032cc532b1bf5aebc38f55ee2e04cf4
+MISC ChangeLog 1308 RMD160 685c4b03ce39bbfa3cffa06e2365b400f7ac727f SHA1 765f423751db257e4f8c2c3193449d06641a56f8 SHA256 878b04c194ee40e51508f3569ef2e2391aae0d2935e545d80a1d6bc37a0098da
MISC metadata.xml 251 RMD160 834ecc65719f8431c7d1a570699eff6f34012338 SHA1 27f0a6af77da289e4476a513aa45930eae0fe304 SHA256 0d8b4ea8ec9e2906498a9f4b20f1403c0c8435082d3b357d42040eddeaf1ed29
diff --git a/net-analyzer/nb/files/nb-0.6.5-CFLAGS-as-needed.patch b/net-analyzer/nb/files/nb-0.6.5-CFLAGS-as-needed.patch
new file mode 100644
index 000000000000..8ee4b5195047
--- /dev/null
+++ b/net-analyzer/nb/files/nb-0.6.5-CFLAGS-as-needed.patch
@@ -0,0 +1,59 @@
+=== modified file 'Makefile.am'
+--- Makefile.am 2008-11-16 20:06:01 +0000
++++ Makefile.am 2008-11-16 20:20:44 +0000
+@@ -74,23 +74,23 @@
+ # to depend on the nb executable use "nb${EXEEXT}"
+
+ nb_mod_simple.${NB_MOD_SUFFIX}: nbapi.h nb_mod_simple.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_simple.c -o nb_mod_simple.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_simple.c -o nb_mod_simple.${NB_MOD_SUFFIX}
+ nb_mod_tree.${NB_MOD_SUFFIX}: nbapi.h nb_mod_tree.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_tree.c -o nb_mod_tree.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_tree.c -o nb_mod_tree.${NB_MOD_SUFFIX}
+ nb_mod_console.${NB_MOD_SUFFIX}: nb${EXEEXT} nb.h nb_mod_console.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_console.c -o nb_mod_console.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_console.c -o nb_mod_console.${NB_MOD_SUFFIX}
+ nb_mod_netflow.${NB_MOD_SUFFIX}: nbapi.h nb_mod_netflow.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_netflow.c -o nb_mod_netflow.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_netflow.c -o nb_mod_netflow.${NB_MOD_SUFFIX}
+ nb_mod_snmptrap.${NB_MOD_SUFFIX}: nbapi.h nb_mod_snmptrap.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_snmptrap.c -o nb_mod_snmptrap.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_snmptrap.c -o nb_mod_snmptrap.${NB_MOD_SUFFIX}
+ nb_mod_syslog.${NB_MOD_SUFFIX}: nbapi.h nb_mod_syslog.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_syslog.c -o nb_mod_syslog.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_syslog.c -o nb_mod_syslog.${NB_MOD_SUFFIX}
+ nb_mod_translate.${NB_MOD_SUFFIX}: nbapi.h nb_mod_translate.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_translate.c -o nb_mod_translate.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_translate.c -o nb_mod_translate.${NB_MOD_SUFFIX}
+ nb_mod_cache.${NB_MOD_SUFFIX}: nb${EXEEXT} nb.h nb_mod_cache.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_cache.c -o nb_mod_cache.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_cache.c -o nb_mod_cache.${NB_MOD_SUFFIX}
+ nb_mod_servant.${NB_MOD_SUFFIX}: nb${EXEEXT} nbapi.h nb_mod_servant.c
+- ${CC} ${NB_MOD_CFLAGS} nb_mod_servant.c -o nb_mod_servant.${NB_MOD_SUFFIX}
++ ${CC} $(CFLAGS) ${NB_MOD_CFLAGS} $(LDFLAGS) nb_mod_servant.c -o nb_mod_servant.${NB_MOD_SUFFIX}
+
+ # CLEANFILES = bin/nb_mod_<module>.${NB_MOD_SUFFIX}
+
+
+=== modified file 'configure.ac'
+--- configure.ac 2008-11-16 20:06:01 +0000
++++ configure.ac 2008-11-16 20:13:16 +0000
+@@ -117,7 +117,6 @@
+ NB_MOD_PATH="/usr/local/lib/${PACKAGE_NAME}"
+ NB_MOD_PATH_SEPARATOR=":"
+ NB_MOD_SUFFIX="so"
+-CFLAGS=
+ case "$host" in
+ *-netbsd*)
+ AC_DEFINE(NETBSD,,[Define if NetBSD])
+@@ -144,7 +143,8 @@
+ *-linux*)
+ AC_DEFINE(LINUX,,[Define if LINUX])
+ CFLAGS="${CFLAGS} -rdynamic"
+- LDFLAGS="${LDFLAGS} -ldl -lm"
++ LDFLAGS="${LDFLAGS}"
++ LIBS=" -ldl -lm"
+ ;;
+ *-hpux*)
+ AC_DEFINE(HPUX,,[Define if HPUX])
+
diff --git a/net-analyzer/nb/nb-0.6.5-r1.ebuild b/net-analyzer/nb/nb-0.6.5-r1.ebuild
new file mode 100644
index 000000000000..038ce2ba66cd
--- /dev/null
+++ b/net-analyzer/nb/nb-0.6.5-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nb/nb-0.6.5-r1.ebuild,v 1.1 2008/11/16 20:28:46 pva Exp $
+
+inherit eutils autotools
+
+DESCRIPTION="Nodebrain is a tool to monitor and do event correlation."
+HOMEPAGE="http://nodebrain.sourceforge.net/"
+SRC_URI="mirror://sourceforge/nodebrain/${P}-source.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-CFLAGS-as-needed.patch"
+ eautoreconf
+}
+
+src_install() {
+ #DIR="${D}/usr" ./install-nb || die "install failed"
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS NEWS README THANKS sample/*
+ dohtml html/*
+}
diff --git a/net-analyzer/nb/nb-0.6.5.ebuild b/net-analyzer/nb/nb-0.6.5.ebuild
deleted file mode 100644
index b475e1b3add9..000000000000
--- a/net-analyzer/nb/nb-0.6.5.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nb/nb-0.6.5.ebuild,v 1.2 2006/10/08 22:01:16 jokey Exp $
-
-DESCRIPTION="Nodebrain is a tool to monitor and do event correlation."
-HOMEPAGE="http://www.nodebrain.org/"
-SRC_URI="mirror://sourceforge/nodebrain/${P}-source.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~ppc ~x86"
-IUSE=""
-
-DEPEND="dev-lang/perl"
-
-src_compile() {
- ./build-nb || die "build failed"
-}
-
-src_install() {
- DIR=${D}/usr ./install-nb || die "install failed"
-
- dodoc AUTHORS NEWS README THANKS sample/*
- dohtml html/*
-}