summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-01-21 19:26:27 +0000
committerCédric Krier <cedk@gentoo.org>2007-01-21 19:26:27 +0000
commitb0e77c38bd6bde5b5c54ec456ecfeb1723264914 (patch)
treeefed7b78afb01e650998f1da5cbf2b00413488d5 /net-analyzer
parentForce -j1 on the ebuild (both stable and ~arch for releng sake), as bug #1498... (diff)
downloadgentoo-2-b0e77c38bd6bde5b5c54ec456ecfeb1723264914.tar.gz
gentoo-2-b0e77c38bd6bde5b5c54ec456ecfeb1723264914.tar.bz2
gentoo-2-b0e77c38bd6bde5b5c54ec456ecfeb1723264914.zip
net-analyzer/nessus-libraries: Add patch for bug #161968
(Portage version: 2.1.1-r2)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/nessus-libraries/ChangeLog9
-rw-r--r--net-analyzer/nessus-libraries/files/nessus-libraries-2.3.1-ldflags.patch25
-rw-r--r--net-analyzer/nessus-libraries/nessus-libraries-2.3.1.ebuild13
3 files changed, 42 insertions, 5 deletions
diff --git a/net-analyzer/nessus-libraries/ChangeLog b/net-analyzer/nessus-libraries/ChangeLog
index d099aada1b56..40c1e0317077 100644
--- a/net-analyzer/nessus-libraries/ChangeLog
+++ b/net-analyzer/nessus-libraries/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/nessus-libraries
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-libraries/ChangeLog,v 1.82 2006/06/01 21:34:57 jokey Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-libraries/ChangeLog,v 1.83 2007/01/21 19:26:27 cedk Exp $
+
+ 21 Jan 2007; Cedric Krier <cedk@gentoo.org>
+ +files/nessus-libraries-2.3.1-ldflags.patch,
+ nessus-libraries-2.3.1.ebuild:
+ Add patch for bug #161968
*nessus-libraries-2.2.8 (01 Jun 2006)
diff --git a/net-analyzer/nessus-libraries/files/nessus-libraries-2.3.1-ldflags.patch b/net-analyzer/nessus-libraries/files/nessus-libraries-2.3.1-ldflags.patch
new file mode 100644
index 000000000000..9aca9ab9ba01
--- /dev/null
+++ b/net-analyzer/nessus-libraries/files/nessus-libraries-2.3.1-ldflags.patch
@@ -0,0 +1,25 @@
+diff -ru nessus-libraries~/libnessus/Makefile nessus-libraries/libnessus/Makefile
+--- nessus-libraries~/libnessus/Makefile 2007-01-21 19:49:30.000000000 +0100
++++ nessus-libraries/libnessus/Makefile 2007-01-21 20:17:59.000000000 +0100
+@@ -101,7 +101,7 @@
+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c snprintf.c
+ libnessus.la: $(OBJS)
+ $(LIBTOOL) $(CC) -o libnessus.la $(LO_OBJS) -rpath ${libdir} \
+- -version-info ${PACKAGE_VERSION}
++ -version-info ${PACKAGE_VERSION} ${PCAP_FLAG} ${SSL_FLAG}
+
+ install : libnessus.la
+ test -d $(DESTDIR)${libdir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${libdir}
+diff -ru nessus-libraries~/nessus.tmpl.in nessus-libraries/nessus.tmpl.in
+--- nessus-libraries~/nessus.tmpl.in 2007-01-21 19:49:30.000000000 +0100
++++ nessus-libraries/nessus.tmpl.in 2007-01-21 20:17:45.000000000 +0100
+@@ -61,6 +61,9 @@
+ #
+ BUILD_PCAP=@BUILD_PCAP@
+
++PCAP_FLAG=@pcap_flag@
++SSL_FLAG=@ssl@
++
+
+ # Some defines you may want to modify
+ DEFS=@DEFS@ $(DEBUG_SSL) $(USE_CIPHER) $(DEBUG)
diff --git a/net-analyzer/nessus-libraries/nessus-libraries-2.3.1.ebuild b/net-analyzer/nessus-libraries/nessus-libraries-2.3.1.ebuild
index dddbffce8193..1fade84cde25 100644
--- a/net-analyzer/nessus-libraries/nessus-libraries-2.3.1.ebuild
+++ b/net-analyzer/nessus-libraries/nessus-libraries-2.3.1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-libraries/nessus-libraries-2.3.1.ebuild,v 1.2 2006/02/18 19:43:48 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-libraries/nessus-libraries-2.3.1.ebuild,v 1.3 2007/01/21 19:26:27 cedk Exp $
-inherit toolchain-funcs
+inherit toolchain-funcs eutils
DESCRIPTION="A remote security scanner for Linux (nessus-libraries)"
HOMEPAGE="http://www.nessus.org/"
@@ -16,6 +16,13 @@ IUSE=""
DEPEND=">=dev-libs/openssl-0.9.6d"
S=${WORKDIR}/${PN}
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+}
+
src_compile() {
export CC=$(tc-getCC)
econf --with-ssl=/usr/lib || die "econf failed"