diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/openvas-libraries | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/openvas-libraries')
10 files changed, 359 insertions, 0 deletions
diff --git a/net-analyzer/openvas-libraries/Manifest b/net-analyzer/openvas-libraries/Manifest new file mode 100644 index 000000000000..d285cb7d70b7 --- /dev/null +++ b/net-analyzer/openvas-libraries/Manifest @@ -0,0 +1,3 @@ +DIST openvas-libraries-7.0.10.tar.gz 581409 SHA256 5093d08182cec065ee8945599a1295080bb1657d95a3f587dff3e4d0bbc1c339 SHA512 9796e9ae51b8f2ba69fcda7d5f782b70ec8c6a346403628d6d37d255c3c1eb90f5a4fdc38fd9436a3232060155b90ebbfd7b626f4777d3204048f1c8c0e6c53c WHIRLPOOL 45753cbcff0cb7fc5bcffbaa3d7a65401d8a4531cb14155e9a76ed91fc59e166c8339a91e5f2d8ba8839ac7d5d7be273dc61ebe124b5b3f5cbb99f9df444e2a2 +DIST openvas-libraries-8.0.3.tar.gz 600412 SHA256 552c7f4de11e5f4678a39c27837db168f4063778e9806d999cfad36f8504d870 SHA512 88afc8828eca45bfa74f6a1b14e4381d837e965b8b69e32eecb794814142cbca75078da1a753a42fc1ace5fb51b200c4f05cd03ad2d7c1450ba70db84c3fb21c WHIRLPOOL 665410157656f53462795b867405ec3f826921613eb3cfb142d68354eaf428110689a86def836bf6fa472aed0dcf5d2850658f1ca2b29a46bcda96bd52fc656e +DIST openvas-libraries-8.0.4.tar.gz 601421 SHA256 e8219e358185e60097f12e9a579b5ecfcd8c92f551195839dec85253a2d8e6f5 SHA512 69dcfa1902ed4f445cd775579f52411715454f2e62363c099d353466e4bc73889ff0f74f1f2a67509ec0106d152891ba42ffad1fe87c6ecd16c5085cd1e62f77 WHIRLPOOL 1e4bcbf55961b9733c969c7b06c507f822ca6f073bcb498a9d72f76fe4d0efa0ea4f8ac08fdfa1f04e16b4f52289e5485087dd7c28d81b99db18f91bc4671f7b diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-bsdsource.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-bsdsource.patch new file mode 100644 index 000000000000..6df661f5db75 --- /dev/null +++ b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-bsdsource.patch @@ -0,0 +1,32 @@ +diff -ru openvas-libraries-7.0.1.orig/nasl/nasl_builtin_synscan.c openvas-libraries-7.0.1.new/nasl/nasl_builtin_synscan.c +--- openvas-libraries-7.0.1.orig/nasl/nasl_builtin_synscan.c 2014-05-24 01:11:33.049417462 +0200 ++++ openvas-libraries-7.0.1.new/nasl/nasl_builtin_synscan.c 2014-05-24 17:01:25.409361461 +0200 +@@ -24,7 +24,7 @@ + * + */ + +-#define _BSD_SOURCE 1 ++#define _DEFAULT_SOURCE 1 + + #include <unistd.h> /* for close() */ + #include <stdlib.h> /* for rand() */ +diff -ru openvas-libraries-7.0.1.orig/nasl/nasl_raw.h openvas-libraries-7.0.1.new/nasl/nasl_raw.h +--- openvas-libraries-7.0.1.orig/nasl/nasl_raw.h 2014-05-24 01:11:33.287412716 +0200 ++++ openvas-libraries-7.0.1.new/nasl/nasl_raw.h 2014-05-24 17:02:33.829967589 +0200 +@@ -20,12 +20,12 @@ + #ifndef OPENVAS_RAW_H + #define OPENVAS_RAW_H + #ifdef __linux__ +-#ifndef __BSD_SOURCE +-#define __BSD_SOURCE ++#ifndef __DEFAULT_SOURCE ++#define __DEFAULT_SOURCE + #endif + +-#ifndef _BSD_SOURCE +-#define _BSD_SOURCE ++#ifndef _DEFAULT_SOURCE ++#define _DEFAULT_SOURCE + #endif + + #ifndef __FAVOR_BSD diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-libssh.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-libssh.patch new file mode 100644 index 000000000000..d89459fe2bd0 --- /dev/null +++ b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-libssh.patch @@ -0,0 +1,16 @@ +https://www.mail-archive.com/openvas-discuss@wald.intevation.org/msg05828.html +Fixes build issue with the newer version of libssh + +diff -ru openvas-libraries-7.0.1.orig/nasl/nasl_ssh.c openvas-libraries-7.0.1.new/nasl/nasl_ssh.c +--- openvas-libraries-7.0.1.orig/nasl/nasl_ssh.c 2014-04-14 19:15:40.000000000 +0200 ++++ openvas-libraries-7.0.1.new/nasl/nasl_ssh.c 2014-05-23 00:13:56.791111974 +0200 +@@ -1861,7 +1861,8 @@ + return NULL; + session = session_table[tbl_slot].session; + +- banner = ssh_get_serverbanner (session); ++ //banner = ssh_get_serverbanner (session); ++ banner = (char*) ssh_get_serverbanner (session); + if (!banner) + return NULL; + diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-run.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-run.patch new file mode 100644 index 000000000000..6ee5b775c88b --- /dev/null +++ b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.4-run.patch @@ -0,0 +1,16 @@ + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 940f897..8b2f26b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -180,7 +180,7 @@ set (OPENVAS_DATA_DIR "${DATADIR}/openvas") + set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") + set (OPENVAS_LOG_DIR "${LOCALSTATEDIR}/log/openvas") + set (OPENVAS_CACHE_DIR "${LOCALSTATEDIR}/cache/openvas") +-set (OPENVAS_PID_DIR "${LOCALSTATEDIR}/run") ++set (OPENVAS_PID_DIR "/run") + set (OPENVAS_SYSCONF_DIR "${SYSCONFDIR}/openvas") + + set (OPENVAS_NVT_DIR "${OPENVAS_STATE_DIR}/plugins") diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.6-underlinking.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.6-underlinking.patch new file mode 100644 index 000000000000..a9c38159ba06 --- /dev/null +++ b/net-analyzer/openvas-libraries/files/openvas-libraries-7.0.6-underlinking.patch @@ -0,0 +1,32 @@ + base/CMakeLists.txt | 18 ------------------ + 1 file changed, 18 deletions(-) + +diff --git a/base/CMakeLists.txt b/base/CMakeLists.txt +index b798f85..c724473 100644 +--- a/base/CMakeLists.txt ++++ b/base/CMakeLists.txt +@@ -100,24 +100,6 @@ endif (OPENVAS_PID_DIR) + + add_custom_indent_targets (${FILES}) + +-# Link the test-hosts executable +-if (BUILD_SHARED) +- add_executable (test-hosts test-hosts.c) +- target_link_libraries (test-hosts openvas_base_shared openvas_misc_shared ${GLIB_LDFLAGS} -lgcrypt +- "${GPGME_LDFLAGS}" -lgnutls "${PCAP_LDFLAGS}" -lresolv -lm ${WMI_LIBS} +- ${GPGME_LDFLAGS} ${LIBSSH_LDFLAGS} ${KSBA_LDFLAGS} ${WINCMD_LIBS}) +- set_target_properties (test-hosts PROPERTIES COMPILE_FLAGS +- "${GLIB_CFLAGS} ${GPGME_CFLAGS} ${LIBSSH_CFLAGS} ${KSBA_CFLAGS}") +-endif (BUILD_SHARED) +-if (BUILD_STATIC) +- add_executable (test-hosts test-hosts.c) +- target_link_libraries (test-hosts openvas_base_static openvas_misc_static ${GLIB_LDFLAGS} -lgcrypt +- "${GPGME_LDFLAGS}" -lgnutls "${PCAP_LDFLAGS}" -lresolv -lm ${WMI_LIBS} +- ${GPGME_LDFLAGS} ${LIBSSH_LDFLAGS} ${KSBA_LDFLAGS} ${WINCMD_LIBS}) +- set_target_properties (test-hosts PROPERTIES COMPILE_FLAGS +- "${GLIB_CFLAGS} ${GPGME_CFLAGS} ${LIBSSH_CFLAGS} ${KSBA_CFLAGS}") +-endif (BUILD_STATIC) +- + ## Install + if (BUILD_STATIC) + install (TARGETS openvas_base_static diff --git a/net-analyzer/openvas-libraries/files/openvas-libraries-8.0.1-include.patch b/net-analyzer/openvas-libraries/files/openvas-libraries-8.0.1-include.patch new file mode 100644 index 000000000000..e03dd085e3b1 --- /dev/null +++ b/net-analyzer/openvas-libraries/files/openvas-libraries-8.0.1-include.patch @@ -0,0 +1,70 @@ + base/CMakeLists.txt | 2 ++ + nasl/CMakeLists.txt | 5 +++-- + 2 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/base/CMakeLists.txt b/base/CMakeLists.txt +index c2dccf5..4f17892 100644 +--- a/base/CMakeLists.txt ++++ b/base/CMakeLists.txt +@@ -56,6 +56,7 @@ endif (MINGW) + + if (BUILD_STATIC) + add_library (openvas_base_static STATIC ${FILES}) ++ set_target_properties (openvas_base_static PROPERTIES COMPILE_FLAGS "${GPGME_CFLAGS}") + set_target_properties (openvas_base_static PROPERTIES OUTPUT_NAME "openvas_base") + set_target_properties (openvas_base_static PROPERTIES CLEAN_DIRECT_OUTPUT 1) + set_target_properties (openvas_base_static PROPERTIES PUBLIC_HEADER "${HEADERS}") +@@ -63,6 +64,7 @@ endif (BUILD_STATIC) + + if (BUILD_SHARED) + add_library (openvas_base_shared SHARED ${FILES}) ++ set_target_properties (openvas_base_shared PROPERTIES COMPILE_FLAGS "${GPGME_CFLAGS}") + set_target_properties (openvas_base_shared PROPERTIES OUTPUT_NAME "openvas_base") + set_target_properties (openvas_base_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1) + set_target_properties (openvas_base_shared PROPERTIES SOVERSION "${CPACK_PACKAGE_VERSION_MAJOR}") +diff --git a/nasl/CMakeLists.txt b/nasl/CMakeLists.txt +index 52fa5c6..afd18c2 100644 +--- a/nasl/CMakeLists.txt ++++ b/nasl/CMakeLists.txt +@@ -41,7 +41,7 @@ endif (SNMP) + # The "-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1" is necessary for GPGME! + # The "-fno-strict-aliasing" silences warnings caused by macros defined in byteorder.h. + # Once the warnings have been addressed this flag should be removed. +-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -fno-strict-aliasing") ++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -fno-strict-aliasing ${GPGME_CFLAGS}") + + ## Compile the parser - note that there are (better) CMake macros to achieve + ## that +@@ -103,7 +103,7 @@ link_directories (${LIBDIR} ../base ../misc) + + if (BUILD_STATIC) + add_library (openvas_nasl_static STATIC ${FILES}) +- ++ set_target_properties (openvas_nasl_static PROPERTIES COMPILE_FLAGS "${GPGME_CFLAGS}") + set_target_properties (openvas_nasl_static PROPERTIES OUTPUT_NAME "openvas_nasl") + set_target_properties (openvas_nasl_static PROPERTIES CLEAN_DIRECT_OUTPUT 1) + set_target_properties (openvas_nasl_static PROPERTIES PUBLIC_HEADER "${HEADERS}") +@@ -118,6 +118,7 @@ endif (BUILD_STATIC) + + if (BUILD_SHARED) + add_library (openvas_nasl_shared SHARED ${FILES}) ++ set_target_properties (openvas_nasl_shared PROPERTIES COMPILE_FLAGS "${GPGME_CFLAGS}") + set_target_properties (openvas_nasl_shared PROPERTIES OUTPUT_NAME "openvas_nasl") + set_target_properties (openvas_nasl_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1) + set_target_properties (openvas_nasl_shared PROPERTIES SOVERSION "${CPACK_PACKAGE_VERSION_MAJOR}") + base/gpgme_util.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/base/gpgme_util.h b/base/gpgme_util.h +index 56e1b85..ab4e9fa 100644 +--- a/base/gpgme_util.h ++++ b/base/gpgme_util.h +@@ -33,7 +33,7 @@ + #ifndef _OPENVAS_LIBRARIES_GPGME_UTIL_H + #define _OPENVAS_LIBRARIES_GPGME_UTIL_H + +-#include <gpgme.h> ++#include <gpgme/gpgme.h> + + gpgme_ctx_t openvas_init_gpgme_ctx (void); + gpgme_ctx_t openvas_init_gpgme_sysconf_ctx (void); diff --git a/net-analyzer/openvas-libraries/metadata.xml b/net-analyzer/openvas-libraries/metadata.xml new file mode 100644 index 000000000000..10fd5970fc9b --- /dev/null +++ b/net-analyzer/openvas-libraries/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hanno@gentoo.org</email> + </maintainer> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/openvas-libraries/openvas-libraries-7.0.10.ebuild b/net-analyzer/openvas-libraries/openvas-libraries-7.0.10.ebuild new file mode 100644 index 000000000000..2a590e9fc6de --- /dev/null +++ b/net-analyzer/openvas-libraries/openvas-libraries-7.0.10.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DL_ID=2031 + +DESCRIPTION="A remote security scanner for Linux (openvas-libraries)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="ldap" + +RDEPEND=" + app-crypt/gpgme + >=dev-libs/glib-2.12 + dev-libs/libksba + !net-analyzer/openvas-libnasl + =net-libs/gnutls-2* + net-libs/libpcap + net-libs/libssh + ldap? ( net-nds/openldap )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + " + +DOCS="ChangeLog CHANGES README" + +PATCHES=( + "${FILESDIR}"/${PN}-7.0.4-libssh.patch + "${FILESDIR}"/${PN}-7.0.4-bsdsource.patch + "${FILESDIR}"/${PN}-7.0.4-run.patch + "${FILESDIR}"/${PN}-7.0.6-underlinking.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + "-DLOCALSTATEDIR=${EPREFIX}/var" + "-DSYSCONFDIR=${EPREFIX}/etc" + $(usex ldap -DBUILD_WITHOUT_LDAP=0 -DBUILD_WITHOUT_LDAP=1) + ) + cmake-utils_src_configure +} diff --git a/net-analyzer/openvas-libraries/openvas-libraries-8.0.3.ebuild b/net-analyzer/openvas-libraries/openvas-libraries-8.0.3.ebuild new file mode 100644 index 000000000000..49d873693150 --- /dev/null +++ b/net-analyzer/openvas-libraries/openvas-libraries-8.0.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DL_ID=2067 + +DESCRIPTION="A remote security scanner for Linux (openvas-libraries)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P/_beta/+beta}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="ldap" + +RDEPEND=" + app-crypt/gpgme + >=dev-libs/glib-2.16 + >=dev-libs/hiredis-0.10.1 + dev-libs/libgcrypt:0 + dev-libs/libksba + !net-analyzer/openvas-libnasl + =net-libs/gnutls-2* + net-libs/libpcap + >=net-libs/libssh-0.5.0 + net-analyzer/net-snmp + ldap? ( net-nds/openldap )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + " + +S="${WORKDIR}"/${P} + +DOCS=( ChangeLog CHANGES README ) + +PATCHES=( + "${FILESDIR}"/${PN}-7.0.4-libssh.patch + "${FILESDIR}"/${PN}-8.0.1-include.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + "-DLOCALSTATEDIR=${EPREFIX}/var" + "-DSYSCONFDIR=${EPREFIX}/etc" + $(usex ldap -DBUILD_WITHOUT_LDAP=0 -DBUILD_WITHOUT_LDAP=1) + ) + cmake-utils_src_configure +} diff --git a/net-analyzer/openvas-libraries/openvas-libraries-8.0.4.ebuild b/net-analyzer/openvas-libraries/openvas-libraries-8.0.4.ebuild new file mode 100644 index 000000000000..e7014ac3fc5f --- /dev/null +++ b/net-analyzer/openvas-libraries/openvas-libraries-8.0.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DL_ID=2125 + +DESCRIPTION="A remote security scanner for Linux (openvas-libraries)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P/_beta/+beta}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="ldap" + +RDEPEND=" + app-crypt/gpgme + >=dev-libs/glib-2.16 + >=dev-libs/hiredis-0.10.1 + dev-libs/libgcrypt:0 + dev-libs/libksba + !net-analyzer/openvas-libnasl + =net-libs/gnutls-2* + net-libs/libpcap + >=net-libs/libssh-0.5.0 + net-analyzer/net-snmp + ldap? ( net-nds/openldap )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + " + +S="${WORKDIR}"/${P} + +DOCS=( ChangeLog CHANGES README ) + +PATCHES=( + "${FILESDIR}"/${PN}-7.0.4-libssh.patch + "${FILESDIR}"/${PN}-8.0.1-include.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + "-DLOCALSTATEDIR=${EPREFIX}/var" + "-DSYSCONFDIR=${EPREFIX}/etc" + $(usex ldap -DBUILD_WITHOUT_LDAP=0 -DBUILD_WITHOUT_LDAP=1) + ) + cmake-utils_src_configure +} |