summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Góes <vanquirius@gentoo.org>2005-03-31 22:12:17 +0000
committerMarcelo Góes <vanquirius@gentoo.org>2005-03-31 22:12:17 +0000
commitd9e9c92358724cfb1500d04246f9bf3ff34272f0 (patch)
tree07b25e4c21b264ad7188a0da2924ad3f118cea76 /net-analyzer/cheops-ng
parentthe patch was broken because cvs headers got changed by cvs itself, go figure... (diff)
downloadgentoo-2-d9e9c92358724cfb1500d04246f9bf3ff34272f0.tar.gz
gentoo-2-d9e9c92358724cfb1500d04246f9bf3ff34272f0.tar.bz2
gentoo-2-d9e9c92358724cfb1500d04246f9bf3ff34272f0.zip
add debug use flag, metadata.xml
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-analyzer/cheops-ng')
-rw-r--r--net-analyzer/cheops-ng/ChangeLog7
-rw-r--r--net-analyzer/cheops-ng/cheops-ng-0.1.13.ebuild18
-rw-r--r--net-analyzer/cheops-ng/metadata.xml9
3 files changed, 30 insertions, 4 deletions
diff --git a/net-analyzer/cheops-ng/ChangeLog b/net-analyzer/cheops-ng/ChangeLog
index 0b45acfe1950..f5a23f2b86cf 100644
--- a/net-analyzer/cheops-ng/ChangeLog
+++ b/net-analyzer/cheops-ng/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/cheops-ng
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cheops-ng/ChangeLog,v 1.1 2005/03/31 21:52:56 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cheops-ng/ChangeLog,v 1.2 2005/03/31 22:12:17 vanquirius Exp $
+
+ 31 Mar 2005; Marcelo Goes <vanquirius@gentoo.org> +metadata.xml,
+ cheops-ng-0.1.13.ebuild:
+ Adding metadata.xml.
+ Adding debug USE flag. Thanks again to Michael Zanetta <grimmlin@pentoo.ch>.
*cheops-ng-0.1.13 (31 Mar 2005)
diff --git a/net-analyzer/cheops-ng/cheops-ng-0.1.13.ebuild b/net-analyzer/cheops-ng/cheops-ng-0.1.13.ebuild
index ee754ecbf3d9..c9c3bd2f41f8 100644
--- a/net-analyzer/cheops-ng/cheops-ng-0.1.13.ebuild
+++ b/net-analyzer/cheops-ng/cheops-ng-0.1.13.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cheops-ng/cheops-ng-0.1.13.ebuild,v 1.1 2005/03/31 21:52:56 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cheops-ng/cheops-ng-0.1.13.ebuild,v 1.2 2005/03/31 22:12:17 vanquirius Exp $
inherit eutils
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/cheops-ng/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
-IUSE=""
+IUSE="debug"
DEPEND=">=net-analyzer/nmap-3.27-r1
=x11-libs/gtk+-1.2*
>=dev-libs/libxml-1.8.17-r2
@@ -26,6 +26,17 @@ src_unpack() {
}
src_compile() {
+ # disable/enable debug
+ if use debug; then
+ sed -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' ./*.c || die "sed failed"
+ sed -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' ./*.h || die "sed failed"
+
+ else
+ # we need to disable the noisy nmap debug and any other
+ sed -i -e 's/^#define DEBUG/\/\/#define DEBUG/g' ./*.c || die "sed failed"
+ sed -i -e 's/^#define DEBUG/\/\/#define DEBUG/g' ./*.h || die "sed failed"
+ fi
+
# First we need to configure adns
cd adns-1.0
econf || die
@@ -44,7 +55,8 @@ src_compile() {
-e 's/COPYING/toto/g' \
Makefile || die "sed failed"
# gcc-3.4 fixes
- sed -i -e 's/printf(__FUNCTION__/printf(__FUNCTION__\,/g' ./*.c
+ sed -i -e 's/printf(__FUNCTION__/printf(__FUNCTION__\,/g' ./*.c \
+ || die "sed failed"
emake || die
}
diff --git a/net-analyzer/cheops-ng/metadata.xml b/net-analyzer/cheops-ng/metadata.xml
new file mode 100644
index 000000000000..18cbfd72c907
--- /dev/null
+++ b/net-analyzer/cheops-ng/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>vanquirius@gentoo.org</email>
+ <name>Marcelo Goes</name>
+</maintainer>
+</pkgmetadata>