diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/nessus-libraries |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/nessus-libraries')
4 files changed, 124 insertions, 0 deletions
diff --git a/net-analyzer/nessus-libraries/Manifest b/net-analyzer/nessus-libraries/Manifest new file mode 100644 index 000000000000..0b6bff8a1d91 --- /dev/null +++ b/net-analyzer/nessus-libraries/Manifest @@ -0,0 +1,6 @@ +AUX nessus-libraries-2.2.9-linking.patch 2009 SHA256 24428548259153da84932c782707b1183869ece1543ef3b35ef291f4a8f58b88 SHA512 2d6e3e32b37eb73d03fbad4f3bd6107ec228cf2cbe8811869fe7019ed430e7ec89d54b20b36606be0621427a4d80919ae64225b9a5df28194ff995fe8d5d8279 WHIRLPOOL 0ee465473114f7783c16e1c0f5e717e4ade475af9255acdc20a039f3cc5b44f6f944913d47327086dbe426319fa2684aaa812b069bb7d1e4f894ed12d7c19cb6 +DIST nessus-libraries-2.2.9.tar.gz 426560 SHA256 5a3c32d6eab8ccc8a22ab5bb224228152e10731c06561f679c41b92263c7ef18 SHA512 4a87ad07cde5ca82d673efbe2b2d951231880533bc30be4b265ea1f81fba39ae90ef150293486e8bba227a1c174e89cde6e8f95b60f2250f7c2c9ae910d52cff WHIRLPOOL d8bd157f7562b8129e9ef1d7a28eb939a98817134960e6601b2e789b3f8804eb610720173dcddd0831fee67b8fa1e57a6d6cdecb1c027a8e0ee0b11d91d7163d +EBUILD nessus-libraries-2.2.9-r1.ebuild 1202 SHA256 015955fad01d0b68b0f4c1e797389ab510b281c71668a716067c742f81f6c1ea SHA512 9f79ce3aa10c2d4d3750ec266bdb2f0bcf440ab0e765a8383aa3ddb4eecb78a797c2e7e8e85827ddcce0a0b34cbb7f239873007545e25609bf2c3d3710428ce6 WHIRLPOOL 5350e1b5cef12048908e65a2315c8a2efa93c1ddbdaff00d1ab5ad2c50bed58af8005616d33d1ecb5cd7fc56c0c16e948c018e81aec9736213fd732a3d92fe7c +MISC ChangeLog 2661 SHA256 49c2db838b6a8a5f1e0e5699463e26f55c325b7232ca5dfff86a23c6cd5e2489 SHA512 79261ae4f84b9583d65e485b3d89cb049f59e1ce04a740fe7bad16413e15de8225bcf9e321a64a231d7be96ab0b670bb1772b2e5d7956a2d86ba6384a0ce73ae WHIRLPOOL 4a6eb55db0829fea6aa6a846fcac5481038d9743deb0e864b137efc72f8a0c00359f90e616d9274dec8592f16f3b2fa60b9c4c4ecadef873422e70a25bd996e7 +MISC ChangeLog-2015 13966 SHA256 977339a73eb3f0b65304282de2deab57123a7a4f7e3c6003e9d2bb4f84848f78 SHA512 254776d0d1933186c12a9becda440ec5a69f9bb611cb340278c310ee16eb8f20e0e02a0b3a63c7f64469e9098422438b86f4cda321b42bf9ba23517f27feed9b WHIRLPOOL 7fea3e2ee220b42a30dc63d87c60bcfd4ae3e3f46c626122de59523b500fa5b7cbcbf3c6d57ff4e8bd9205153719844b05effe1a9f120e7c7448917257d66aed +MISC metadata.xml 366 SHA256 03cafc593377f654165c09ce631a810e871ce47064b8f79ff5f6045ff38120ee SHA512 488a5015a0350d14c89f1b3f1f16babdfcb965b27cc56a24335a35649116d1220405c9ef210fbacf96c8c855aa49cb2fd33387ed4df10e2f39ca269176887509 WHIRLPOOL 759eba5ede93331ebca082fc3a539d56b9d45ed057bfbc23febc31d5c17a5fa9d97f5e91b357f960af0a6a9a726b3b24633be9b058e302c021c29a027ec91fc2 diff --git a/net-analyzer/nessus-libraries/files/nessus-libraries-2.2.9-linking.patch b/net-analyzer/nessus-libraries/files/nessus-libraries-2.2.9-linking.patch new file mode 100644 index 000000000000..41cd2b21c938 --- /dev/null +++ b/net-analyzer/nessus-libraries/files/nessus-libraries-2.2.9-linking.patch @@ -0,0 +1,61 @@ + Makefile | 4 ++-- + libhosts_gatherer/Makefile | 2 +- + libnessus/Makefile | 4 ++-- + libnessus/kb.c | 1 + + 4 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/Makefile b/Makefile +index 938d1b2..672d8cf 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,8 +3,8 @@ include nessus.tmpl + ALLDEPS = nessus.tmpl nessus-config + + all: $(ALLDEPS) $(PCAP_MAKE) +- cd libnessus && ${MAKE} +- cd libhosts_gatherer && ${MAKE} ++ ${MAKE} -C libnessus ++ ${MAKE} -C libhosts_gatherer + + nessus-config: nessus-config.pre Makefile nessus.tmpl + @echo Creating $@ ... +diff --git a/libhosts_gatherer/Makefile b/libhosts_gatherer/Makefile +index e2a647c..7d628d8 100644 +--- a/libhosts_gatherer/Makefile ++++ b/libhosts_gatherer/Makefile +@@ -22,7 +22,7 @@ install : libhosts_gatherer.la + $(LIBTOOL) --finish $(DESTDIR)${libdir} + + libhosts_gatherer.la : $(OBJS) +- $(LIBTOOL) $(CC) -o libhosts_gatherer.la $(LO_OBJS) -rpath ${libdir} \ ++ $(LIBTOOL) $(CC) $(LDFLAGS) -o libhosts_gatherer.la $(LO_OBJS) -rpath ${libdir} \ + -version-info ${PACKAGE_VERSION} + + hg_utils.o : hg_utils.h hosts_gatherer.h hg_utils.c +diff --git a/libnessus/Makefile b/libnessus/Makefile +index c5a96db..211f57a 100644 +--- a/libnessus/Makefile ++++ b/libnessus/Makefile +@@ -100,8 +100,8 @@ kb.o: kb.c + snprintf.o : snprintf.c + $(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} ++ $(LIBTOOL) $(CC) $(LDFLAGS) -o libnessus.la $(LO_OBJS) -rpath ${libdir} \ ++ -version-info ${PACKAGE_VERSION} `pcap-config --libs` `pkg-config --libs openssl` + + install : libnessus.la + test -d $(DESTDIR)${libdir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${libdir} +diff --git a/libnessus/kb.c b/libnessus/kb.c +index 921c1a1..cbfd840 100644 +--- a/libnessus/kb.c ++++ b/libnessus/kb.c +@@ -20,6 +20,7 @@ + */ + + #include <includes.h> ++#include <fnmatch.h> + #define HASH_MAX 65537 + + diff --git a/net-analyzer/nessus-libraries/metadata.xml b/net-analyzer/nessus-libraries/metadata.xml new file mode 100644 index 000000000000..41f809fbde83 --- /dev/null +++ b/net-analyzer/nessus-libraries/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> +</maintainer> +<longdescription>A remote security scanner for Linux (nessus-libraries)</longdescription> +</pkgmetadata> diff --git a/net-analyzer/nessus-libraries/nessus-libraries-2.2.9-r1.ebuild b/net-analyzer/nessus-libraries/nessus-libraries-2.2.9-r1.ebuild new file mode 100644 index 000000000000..5b4734740551 --- /dev/null +++ b/net-analyzer/nessus-libraries/nessus-libraries-2.2.9-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="A remote security scanner for Linux (nessus-libraries)" +HOMEPAGE="http://www.nessus.org/" +SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux" +IUSE="crypt debug libressl static-libs" + +# Hard dep on SSL since libnasl won't compile when this package is emerged -ssl. +DEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + net-libs/libpcap" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-linking.patch + + sed -i -e "s:^\(LDFLAGS=\):\1 ${LDFLAGS}:g" nessus.tmpl.in || die + sed -i -e '/sbindir/d' Makefile || die +} + +src_configure() { + tc-export CC + econf \ + $(use_enable crypt cypher) \ + $(use_enable debug) \ + $(use_enable debug debug-ssl) \ + $(use_enable static-libs static) \ + --enable-shared \ + --with-ssl="${EPREFIX}/usr/$(get_libdir)" \ + --disable-nessuspcap +} + +src_install() { + default + use static-libs || find "${ED}" -name '*.la' -delete +} |