aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvas-libraries
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 14:10:02 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-11-30 14:10:02 +0000
commit893015934bd03e0035d8681a05f455a9623395d2 (patch)
treef60bdd85e9b975e270d9bf14280e4cb256276aea /testing/openvas-libraries
parent017d4f32654b2a505d8a37e12c71a0ddf02dc96e (diff)
downloadaports-893015934bd03e0035d8681a05f455a9623395d2.tar.bz2
aports-893015934bd03e0035d8681a05f455a9623395d2.tar.xz
testing/openvas-libraries: new aport
Diffstat (limited to 'testing/openvas-libraries')
-rw-r--r--testing/openvas-libraries/000-fortify-source.patch13
-rw-r--r--testing/openvas-libraries/001-maxhostnamelen.patch12
-rw-r--r--testing/openvas-libraries/002-timeval.patch13
-rw-r--r--testing/openvas-libraries/APKBUILD62
4 files changed, 100 insertions, 0 deletions
diff --git a/testing/openvas-libraries/000-fortify-source.patch b/testing/openvas-libraries/000-fortify-source.patch
new file mode 100644
index 0000000000..26ceb25ca9
--- /dev/null
+++ b/testing/openvas-libraries/000-fortify-source.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a85088f..9d47f3a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -302,7 +302,7 @@ if (NOT MINGW)
+
+ endif (NOT MINGW)
+
+-set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now")
++set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now")
+ set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror")
+
+
diff --git a/testing/openvas-libraries/001-maxhostnamelen.patch b/testing/openvas-libraries/001-maxhostnamelen.patch
new file mode 100644
index 0000000000..373554d4ab
--- /dev/null
+++ b/testing/openvas-libraries/001-maxhostnamelen.patch
@@ -0,0 +1,12 @@
+diff --git a/misc/pcap.c b/misc/pcap.c
+index 125ea24..fa24299 100644
+--- a/misc/pcap.c
++++ b/misc/pcap.c
+@@ -16,6 +16,7 @@
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
++#include <sys/param.h>
+ #include <netinet/in.h>
+ #include <resolv.h>
+ #include <pcap.h>
diff --git a/testing/openvas-libraries/002-timeval.patch b/testing/openvas-libraries/002-timeval.patch
new file mode 100644
index 0000000000..937473da6f
--- /dev/null
+++ b/testing/openvas-libraries/002-timeval.patch
@@ -0,0 +1,13 @@
+diff --git a/nasl/proto.h b/nasl/proto.h
+index cb16a3e..f293782 100644
+--- a/nasl/proto.h
++++ b/nasl/proto.h
+@@ -24,7 +24,7 @@
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+-#include <time.h>
++#include <sys/time.h>
+ #include "smb.h"
+ /*implemented in genrand.c*/
+ void generate_random_buffer_ntlmssp( unsigned char *out, int len);
diff --git a/testing/openvas-libraries/APKBUILD b/testing/openvas-libraries/APKBUILD
new file mode 100644
index 0000000000..98e44ea684
--- /dev/null
+++ b/testing/openvas-libraries/APKBUILD
@@ -0,0 +1,62 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=openvas-libraries
+pkgver=8.0.5
+_pkgid=2191
+pkgrel=0
+pkgdesc="OpenVAS libraries"
+url="http://www.openvas.org/"
+arch="all"
+license="GPL"
+depends="net-snmp"
+depends_dev="libpcap-dev libssh-dev hiredis-dev
+ gnutls-dev util-linux-dev libgcrypt-dev libksba-dev
+ openldap-dev gpgme-dev net-snmp-dev"
+makedepends="$depends_dev cmake bison glib-dev doxygen xmltoman perl-sql-translator"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz
+ 000-fortify-source.patch
+ 001-maxhostnamelen.patch
+ 002-timeval.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ export LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIBDIR=/usr/lib \
+ -DSYSCONFDIR=/etc \
+ -DLOCALSTATEDIR=/var .
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir/" install
+ rmdir "$pkgdir/var/run"
+}
+
+md5sums="91a0644a280d927bc52de17b5f0fbe01 openvas-libraries-8.0.5.tar.gz
+f6ad07a47a73494f8ef5ec2a1b13fc8b 000-fortify-source.patch
+657f34a6bed98ea77984a68a0496367b 001-maxhostnamelen.patch
+35e639c7c1130bcc17b04a44aae6ca1e 002-timeval.patch"
+sha256sums="40dad0ea803d8ee7721f2385f2d2f8918b9e6733c8742efc1877210ade6501c1 openvas-libraries-8.0.5.tar.gz
+ef352e9388817462ead3a0fad9e5476bde4122635aa976517df290fbe23ae2d6 000-fortify-source.patch
+97e79f2db202363c3977783caa0d4309f8a3b081c36fa1fcc6eced413eb114ce 001-maxhostnamelen.patch
+ad9156414ddb5ce9dabafe3432fa0a8db462758d6b7c71074a0aaa80e7657528 002-timeval.patch"
+sha512sums="3d788f931c55941663187f8038c15d0ff97799048c8ea9e5615ff22de3c5e6b5e4eaa599e41676778fadc50528c086060b6268b5edfbaf7289f0e498dbb1423b openvas-libraries-8.0.5.tar.gz
+eafe7f0c720afcafad5f47efff20ac9081360d50c1574782413e1ee73cc93d9d61ba1c5672d947a993bd03b3354685fe484af77c8a6669fc90496995e673c8e6 000-fortify-source.patch
+1e27ced30f20f0010a04abd17a9a2c4d90e5d159d341018fa1f66b887ef8b24b490297a27b9dbb241dbd88e33c363c06fa0e7345707792411bda4825b770edea 001-maxhostnamelen.patch
+2316c4808627da9a2daf0ea971fd9856cd77a62d6376f0d186c18fd7f90be217df2a17ccd2fccc88a583a830c593cb93b32d867ce5f0dd3ecb43cd75fa2b83ea 002-timeval.patch"