aboutsummaryrefslogtreecommitdiff
path: root/security/openvas-libraries/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/openvas-libraries/files')
-rw-r--r--security/openvas-libraries/files/patch-configure43
-rw-r--r--security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c10
-rw-r--r--security/openvas-libraries/files/patch-libopenvas-ids_send.c10
-rw-r--r--security/openvas-libraries/files/patch-libopenvas-network.h10
-rw-r--r--security/openvas-libraries/files/patch-libopenvas-pcap.c23
-rw-r--r--security/openvas-libraries/files/patch-libopenvas-plugutils.c11
-rw-r--r--security/openvas-libraries/files/patch-libopenvas-popen.c10
-rw-r--r--security/openvas-libraries/files/patch-openvas-libraries.tmpl.in11
8 files changed, 128 insertions, 0 deletions
diff --git a/security/openvas-libraries/files/patch-configure b/security/openvas-libraries/files/patch-configure
new file mode 100644
index 000000000000..48f5768c9321
--- /dev/null
+++ b/security/openvas-libraries/files/patch-configure
@@ -0,0 +1,43 @@
+--- configure.orig 2008-03-27 03:57:28.000000000 +0900
++++ configure 2008-04-26 22:00:22.000000000 +0900
+@@ -8136,7 +8136,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lresolv $LIBS"
++LIBS="$LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -8192,7 +8192,7 @@
+ { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
+ echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6; }
+ if test $ac_cv_lib_resolv___dn_expand = yes; then
+- LIBS="-lresolv $LIBS"
++ LIBS="$LIBS"
+ else
+ { { echo "$as_me:$LINENO: error: you need to install resolve library with development files" >&5
+ echo "$as_me: error: you need to install resolve library with development files" >&2;}
+@@ -8290,11 +8290,11 @@
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char pcap_restart ();
++/* char pcap_restart (); */
+ int
+ main ()
+ {
+-return pcap_restart ();
++return 0 /* pcap_restart (); */
+ ;
+ return 0;
+ }
+@@ -12909,7 +12909,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lresolv $LIBS"
++LIBS="$LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
diff --git a/security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c b/security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c
new file mode 100644
index 000000000000..0e8fb55bf0d7
--- /dev/null
+++ b/security/openvas-libraries/files/patch-libopenvas-ftp_funcs.c
@@ -0,0 +1,10 @@
+--- libopenvas/ftp_funcs.c.orig 2008-04-26 23:23:23.000000000 +0900
++++ libopenvas/ftp_funcs.c 2008-04-26 23:24:01.000000000 +0900
+@@ -32,6 +32,7 @@
+ #include <netinet/in.h>
+
+ #include "network.h"
++#include <sys/socket.h>
+
+ int ftp_log_in(int soc, char * username, char * passwd)
+ {
diff --git a/security/openvas-libraries/files/patch-libopenvas-ids_send.c b/security/openvas-libraries/files/patch-libopenvas-ids_send.c
new file mode 100644
index 000000000000..e8d15af4e8cc
--- /dev/null
+++ b/security/openvas-libraries/files/patch-libopenvas-ids_send.c
@@ -0,0 +1,10 @@
+--- libopenvas/ids_send.c.orig 2008-04-26 23:55:47.000000000 +0900
++++ libopenvas/ids_send.c 2008-04-26 23:56:02.000000000 +0900
+@@ -36,6 +36,7 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <arpa/inet.h>
++#include <sys/socket.h>
+
+ #include "arglists.h"
+ #include "bpf_share.h"
diff --git a/security/openvas-libraries/files/patch-libopenvas-network.h b/security/openvas-libraries/files/patch-libopenvas-network.h
new file mode 100644
index 000000000000..202f34b5adae
--- /dev/null
+++ b/security/openvas-libraries/files/patch-libopenvas-network.h
@@ -0,0 +1,10 @@
+--- libopenvas/network.h.orig 2008-04-26 23:22:23.000000000 +0900
++++ libopenvas/network.h 2008-04-26 23:21:49.000000000 +0900
+@@ -27,6 +27,7 @@
+ #define OPENVAS_NETWORK_H
+
+ #include "arglists.h"
++#include <sys/select.h>
+
+ /* Plugin specific network functions */
+ int open_sock_tcp(struct arglist * , unsigned int, int );
diff --git a/security/openvas-libraries/files/patch-libopenvas-pcap.c b/security/openvas-libraries/files/patch-libopenvas-pcap.c
new file mode 100644
index 000000000000..8bad6e2015ce
--- /dev/null
+++ b/security/openvas-libraries/files/patch-libopenvas-pcap.c
@@ -0,0 +1,23 @@
+--- libopenvas/pcap.c.orig 2008-03-21 06:25:01.000000000 +0900
++++ libopenvas/pcap.c 2008-04-26 23:47:15.000000000 +0900
+@@ -16,9 +16,7 @@
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+-#include <resolv.h>
+ #include <pcap.h>
+-#include <net/if.h>
+ #include <arpa/inet.h>
+ #include <sys/ioctl.h>
+ #include <netdb.h>
+@@ -28,6 +26,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <sys/socket.h>
++#include <netinet/in.h>
++#include <sys/param.h>
++#include <net/if.h>
+
+ #include "bpf_share.h"
+ #include "pcap_openvas.h"
diff --git a/security/openvas-libraries/files/patch-libopenvas-plugutils.c b/security/openvas-libraries/files/patch-libopenvas-plugutils.c
new file mode 100644
index 000000000000..e34a78ba10e5
--- /dev/null
+++ b/security/openvas-libraries/files/patch-libopenvas-plugutils.c
@@ -0,0 +1,11 @@
+--- libopenvas/plugutils.c.orig 2008-04-26 22:03:11.000000000 +0900
++++ libopenvas/plugutils.c 2008-04-26 22:03:21.000000000 +0900
+@@ -35,7 +35,7 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include <signal.h>
+-#include <wait.h>
++#include <sys/wait.h>
+ #include <time.h>
+
+ #include "arglists.h"
diff --git a/security/openvas-libraries/files/patch-libopenvas-popen.c b/security/openvas-libraries/files/patch-libopenvas-popen.c
new file mode 100644
index 000000000000..4f361cff18cd
--- /dev/null
+++ b/security/openvas-libraries/files/patch-libopenvas-popen.c
@@ -0,0 +1,10 @@
+--- libopenvas/popen.c.orig 2008-04-26 23:50:53.000000000 +0900
++++ libopenvas/popen.c 2008-04-26 23:51:11.000000000 +0900
+@@ -26,6 +26,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <signal.h>
++#include <sys/resource.h>
+
+ #include "system.h"
+
diff --git a/security/openvas-libraries/files/patch-openvas-libraries.tmpl.in b/security/openvas-libraries/files/patch-openvas-libraries.tmpl.in
new file mode 100644
index 000000000000..232183bd4c46
--- /dev/null
+++ b/security/openvas-libraries/files/patch-openvas-libraries.tmpl.in
@@ -0,0 +1,11 @@
+--- openvas-libraries.tmpl.in.orig 2008-04-26 22:46:43.000000000 +0900
++++ openvas-libraries.tmpl.in 2008-04-26 22:47:03.000000000 +0900
+@@ -45,7 +45,7 @@
+
+ libsdir=${rootdir}/libs
+ top_builddir = @PWDD@
+-include= -I. -I$(rootdir)/include
++include= -I. -I$(rootdir)/include -I$(includedir)
+ lib_dir=@libdir@
+ USE_CIPHER=@cipher_cflags@
+ INSTALL=@INSTALL@