From b0e77c38bd6bde5b5c54ec456ecfeb1723264914 Mon Sep 17 00:00:00 2001 From: Cédric Krier Date: Sun, 21 Jan 2007 19:26:27 +0000 Subject: net-analyzer/nessus-libraries: Add patch for bug #161968 (Portage version: 2.1.1-r2) --- net-analyzer/nessus-libraries/ChangeLog | 9 ++++++-- .../files/nessus-libraries-2.3.1-ldflags.patch | 25 ++++++++++++++++++++++ .../nessus-libraries/nessus-libraries-2.3.1.ebuild | 13 ++++++++--- 3 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 net-analyzer/nessus-libraries/files/nessus-libraries-2.3.1-ldflags.patch (limited to 'net-analyzer/nessus-libraries') 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 + +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" -- cgit v1.2.3-65-gdbad