Date: Sun, 27 Apr 2008 09:10:04 GMT From: Tomoyuki Sakurai <cherry@trombik.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/123127: [NEW PORT] security/openvas-libraries: Libraries for OpenVAS Message-ID: <200804270910.m3R9A4hu093682@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/123127; it has been noted by GNATS. From: Tomoyuki Sakurai <cherry@trombik.org> To: bug-followup@freebsd.org Cc: Tomoyuki Sakurai <cherry@trombik.org> Subject: Re: ports/123127: [NEW PORT] security/openvas-libraries: Libraries for OpenVAS Date: Sun, 27 Apr 2008 17:45:47 +0900 (JST) >Submitter-Id: current-users >Originator: Tomoyuki Sakurai >Organization: >Confidential: no >Synopsis: Re: ports/123127: [NEW PORT] security/openvas-libraries: Libraries for OpenVAS >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 6.3-STABLE i386 >Environment: System: FreeBSD x60.i.trombik.org 6.3-STABLE FreeBSD 6.3-STABLE #6: Sat Mar 29 17:03:57 JST 2008 >Description: The previous port handles PREFIX and LOCALBASE incorrectly. Also, move Makefile.common to openvas-libraries directory. >How-To-Repeat: >Fix: --- openvas-libraries-1.0.1.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # openvas-libraries # openvas-libraries/pkg-descr # openvas-libraries/Makefile # openvas-libraries/pkg-plist # openvas-libraries/distinfo # openvas-libraries/files # openvas-libraries/files/patch-configure # openvas-libraries/files/patch-libopenvas-plugutils.c # openvas-libraries/files/patch-openvas-libraries.tmpl.in # openvas-libraries/files/patch-libopenvas-ids_send.c # openvas-libraries/files/patch-libopenvas-network.h # openvas-libraries/files/patch-libopenvas-ftp_funcs.c # openvas-libraries/files/patch-libopenvas-pcap.c # openvas-libraries/files/patch-libopenvas-popen.c # openvas-libraries/files/patch-libopenvas-Makefile # openvas-libraries/Makefile.common # echo c - openvas-libraries mkdir -p openvas-libraries > /dev/null 2>&1 echo x - openvas-libraries/pkg-descr sed 's/^X//' >openvas-libraries/pkg-descr << 'END-of-openvas-libraries/pkg-descr' XOpenVAS stands for Open Vulnerability Assessment System and is a network Xsecurity scanner with associated tools like a graphical user fontend. The core Xis a server component with a set of network vulnerability tests (NVTs) to Xdetect security problems in remote systems and applications. X XWWW: http://www.openvas.org/ END-of-openvas-libraries/pkg-descr echo x - openvas-libraries/Makefile sed 's/^X//' >openvas-libraries/Makefile << 'END-of-openvas-libraries/Makefile' X# New ports collection makefile for: openvas-libraries X# Date created: 2008-04-26 X# Whom: Tomoyuki Sakurai <cherry@trombik.org> X# X# $FreeBSD$ X# X XPORTNAME= openvas-libraries XPORTVERSION= 1.0.1 XCATEGORIES= security XMASTER_SITES= http://wald.intevation.org/frs/download.php/419/ X XMAINTAINER= cherry@trombik.org XCOMMENT= Libraries for OpenVAS X XLIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls X XLDFLAGS+= -L${LOCALBASE}/lib XCPPFLAGS+= -I${LOCALBASE}/include XCONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" XGNU_CONFIGURE= yes XUSE_LDCONFIG= yes X XMAN1= libopenvas-config.1 X X.include "${.CURDIR}/../../security/openvas-libraries/Makefile.common" X X.include <bsd.port.pre.mk> X.include <bsd.port.post.mk> END-of-openvas-libraries/Makefile echo x - openvas-libraries/pkg-plist sed 's/^X//' >openvas-libraries/pkg-plist << 'END-of-openvas-libraries/pkg-plist' X@comment $FreeBSD$ Xbin/libopenvas-config Xinclude/openvas/hosts_gatherer.h Xinclude/openvas/hg_utils.h Xinclude/openvas/libopenvas.h Xinclude/openvas/libvers.h Xinclude/openvas/getopt.h Xinclude/openvas/arglists.h Xinclude/openvas/bpf_share.h Xinclude/openvas/ftp_funcs.h Xinclude/openvas/harglists.h Xinclude/openvas/kb.h Xinclude/openvas/network.h Xinclude/openvas/pcap_openvas.h Xinclude/openvas/plugutils.h Xinclude/openvas/popen.h Xinclude/openvas/proctitle.h Xinclude/openvas/rand.h Xinclude/openvas/resolve.h Xinclude/openvas/scanners_utils.h Xinclude/openvas/services1.h Xinclude/openvas/share_fd.h Xinclude/openvas/store.h Xinclude/openvas/system.h Xinclude/openvas/www_funcs.h Xlib/libopenvas.so.1 Xlib/libopenvas.so Xlib/libopenvas.la Xlib/libopenvas.a Xlib/libopenvas_hg.so.1 Xlib/libopenvas_hg.so Xlib/libopenvas_hg.la Xlib/libopenvas_hg.a END-of-openvas-libraries/pkg-plist echo x - openvas-libraries/distinfo sed 's/^X//' >openvas-libraries/distinfo << 'END-of-openvas-libraries/distinfo' XMD5 (openvas-libraries-1.0.1.tar.gz) = 59eff43239e05bed77f2b3e789e0110b XSHA256 (openvas-libraries-1.0.1.tar.gz) = 6d423d82d6e71e519df79596d30fad6ffefd480ed8a0dd7282fb5b749cee72e3 XSIZE (openvas-libraries-1.0.1.tar.gz) = 312409 END-of-openvas-libraries/distinfo echo c - openvas-libraries/files mkdir -p openvas-libraries/files > /dev/null 2>&1 echo x - openvas-libraries/files/patch-configure sed 's/^X//' >openvas-libraries/files/patch-configure << 'END-of-openvas-libraries/files/patch-configure' X--- configure.orig 2008-03-27 03:57:28.000000000 +0900 X+++ configure 2008-04-26 22:00:22.000000000 +0900 X@@ -8136,7 +8136,7 @@ X echo $ECHO_N "(cached) $ECHO_C" >&6 X else X ac_check_lib_save_LIBS=$LIBS X-LIBS="-lresolv $LIBS" X+LIBS="$LIBS" X cat >conftest.$ac_ext <<_ACEOF X /* confdefs.h. */ X _ACEOF X@@ -8192,7 +8192,7 @@ X { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5 X echo "${ECHO_T}$ac_cv_lib_resolv___dn_expand" >&6; } X if test $ac_cv_lib_resolv___dn_expand = yes; then X- LIBS="-lresolv $LIBS" X+ LIBS="$LIBS" X else X { { echo "$as_me:$LINENO: error: you need to install resolve library with development files" >&5 X echo "$as_me: error: you need to install resolve library with development files" >&2;} X@@ -8290,11 +8290,11 @@ X #ifdef __cplusplus X extern "C" X #endif X-char pcap_restart (); X+/* char pcap_restart (); */ X int X main () X { X-return pcap_restart (); X+return 0 /* pcap_restart (); */ X ; X return 0; X } X@@ -12909,7 +12909,7 @@ X echo $ECHO_N "(cached) $ECHO_C" >&6 X else X ac_check_lib_save_LIBS=$LIBS X-LIBS="-lresolv $LIBS" X+LIBS="$LIBS" X cat >conftest.$ac_ext <<_ACEOF X /* confdefs.h. */ X _ACEOF END-of-openvas-libraries/files/patch-configure echo x - openvas-libraries/files/patch-libopenvas-plugutils.c sed 's/^X//' >openvas-libraries/files/patch-libopenvas-plugutils.c << 'END-of-openvas-libraries/files/patch-libopenvas-plugutils.c' X--- libopenvas/plugutils.c.orig 2008-04-26 22:03:11.000000000 +0900 X+++ libopenvas/plugutils.c 2008-04-26 22:03:21.000000000 +0900 X@@ -35,7 +35,7 @@ X #include <unistd.h> X #include <errno.h> X #include <signal.h> X-#include <wait.h> X+#include <sys/wait.h> X #include <time.h> X X #include "arglists.h" END-of-openvas-libraries/files/patch-libopenvas-plugutils.c echo x - openvas-libraries/files/patch-openvas-libraries.tmpl.in sed 's/^X//' >openvas-libraries/files/patch-openvas-libraries.tmpl.in << 'END-of-openvas-libraries/files/patch-openvas-libraries.tmpl.in' X--- openvas-libraries.tmpl.in.orig 2008-03-21 06:00:30.000000000 +0900 X+++ openvas-libraries.tmpl.in 2008-04-27 17:27:45.000000000 +0900 X@@ -62,8 +62,9 @@ X DEBUG_SSL = @debug_ssl@ X X # Some defines you may want to modify X+CPPFLAGS=@CPPFLAGS@ X DEFS=@DEFS@ $(DEBUG_SSL) $(USE_CIPHER) $(DEBUG) X-LDFLAGS= X+LDFLAGS=@LDFLAGS@ X X # Your C compiler X CC=@CC@ END-of-openvas-libraries/files/patch-openvas-libraries.tmpl.in echo x - openvas-libraries/files/patch-libopenvas-ids_send.c sed 's/^X//' >openvas-libraries/files/patch-libopenvas-ids_send.c << 'END-of-openvas-libraries/files/patch-libopenvas-ids_send.c' X--- libopenvas/ids_send.c.orig 2008-04-26 23:55:47.000000000 +0900 X+++ libopenvas/ids_send.c 2008-04-26 23:56:02.000000000 +0900 X@@ -36,6 +36,7 @@ X #include <unistd.h> X #include <stdlib.h> X #include <arpa/inet.h> X+#include <sys/socket.h> X X #include "arglists.h" X #include "bpf_share.h" END-of-openvas-libraries/files/patch-libopenvas-ids_send.c echo x - openvas-libraries/files/patch-libopenvas-network.h sed 's/^X//' >openvas-libraries/files/patch-libopenvas-network.h << 'END-of-openvas-libraries/files/patch-libopenvas-network.h' X--- libopenvas/network.h.orig 2008-04-26 23:22:23.000000000 +0900 X+++ libopenvas/network.h 2008-04-26 23:21:49.000000000 +0900 X@@ -27,6 +27,7 @@ X #define OPENVAS_NETWORK_H X X #include "arglists.h" X+#include <sys/select.h> X X /* Plugin specific network functions */ X int open_sock_tcp(struct arglist * , unsigned int, int ); END-of-openvas-libraries/files/patch-libopenvas-network.h echo x - openvas-libraries/files/patch-libopenvas-ftp_funcs.c sed 's/^X//' >openvas-libraries/files/patch-libopenvas-ftp_funcs.c << 'END-of-openvas-libraries/files/patch-libopenvas-ftp_funcs.c' X--- libopenvas/ftp_funcs.c.orig 2008-04-26 23:23:23.000000000 +0900 X+++ libopenvas/ftp_funcs.c 2008-04-26 23:24:01.000000000 +0900 X@@ -32,6 +32,7 @@ X #include <netinet/in.h> X X #include "network.h" X+#include <sys/socket.h> X X int ftp_log_in(int soc, char * username, char * passwd) X { END-of-openvas-libraries/files/patch-libopenvas-ftp_funcs.c echo x - openvas-libraries/files/patch-libopenvas-pcap.c sed 's/^X//' >openvas-libraries/files/patch-libopenvas-pcap.c << 'END-of-openvas-libraries/files/patch-libopenvas-pcap.c' X--- libopenvas/pcap.c.orig 2008-03-21 06:25:01.000000000 +0900 X+++ libopenvas/pcap.c 2008-04-26 23:47:15.000000000 +0900 X@@ -16,9 +16,7 @@ X * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. X */ X X-#include <resolv.h> X #include <pcap.h> X-#include <net/if.h> X #include <arpa/inet.h> X #include <sys/ioctl.h> X #include <netdb.h> X@@ -28,6 +26,10 @@ X #include <stdlib.h> X #include <string.h> X #include <unistd.h> X+#include <sys/socket.h> X+#include <netinet/in.h> X+#include <sys/param.h> X+#include <net/if.h> X X #include "bpf_share.h" X #include "pcap_openvas.h" END-of-openvas-libraries/files/patch-libopenvas-pcap.c echo x - openvas-libraries/files/patch-libopenvas-popen.c sed 's/^X//' >openvas-libraries/files/patch-libopenvas-popen.c << 'END-of-openvas-libraries/files/patch-libopenvas-popen.c' X--- libopenvas/popen.c.orig 2008-04-26 23:50:53.000000000 +0900 X+++ libopenvas/popen.c 2008-04-26 23:51:11.000000000 +0900 X@@ -26,6 +26,7 @@ X #include <errno.h> X #include <fcntl.h> X #include <signal.h> X+#include <sys/resource.h> X X #include "system.h" X END-of-openvas-libraries/files/patch-libopenvas-popen.c echo x - openvas-libraries/files/patch-libopenvas-Makefile sed 's/^X//' >openvas-libraries/files/patch-libopenvas-Makefile << 'END-of-openvas-libraries/files/patch-libopenvas-Makefile' X--- libopenvas/Makefile.orig 2008-04-27 17:29:09.000000000 +0900 X+++ libopenvas/Makefile 2008-04-27 17:29:32.000000000 +0900 X@@ -46,76 +46,76 @@ X X X getopt.o : getopt.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c getopt.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c getopt.c X X getopt1.o : getopt1.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c getopt1.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c getopt1.c X X plugutils.o : plugutils.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c plugutils.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c plugutils.c X X resolve.o : resolve.c resolve.h X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c resolve.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c resolve.c X X share_fd.o : share_fd.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c share_fd.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c share_fd.c X X system.o : system.c system_internal.h X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c system.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c system.c X X arglists.o : arglists.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c arglists.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c arglists.c X X network.o : network.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c network.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c network.c X X scanners_utils.o : scanners_utils.c scanners_utils.h X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c scanners_utils.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c scanners_utils.c X X ftp_funcs.o : ftp_funcs.c ftp_funcs.h X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ftp_funcs.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c ftp_funcs.c X www_funcs.o : www_funcs.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c www_funcs.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c www_funcs.c X X pcap.o : pcap.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c pcap.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c pcap.c X X hlst.o : hlst.c hlst.h X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c hlst.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c hlst.c X X ptycall.o : ptycall.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ptycall.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c ptycall.c X X harglists.o : harglists.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c harglists.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c harglists.c X X ids_send.o : ids_send.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ids_send.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c ids_send.c X X bpf_share.o: bpf_share.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c bpf_share.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c bpf_share.c X X rand.o: rand.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c rand.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c rand.c X X popen.o: popen.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c popen.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c popen.c X X services.o: services.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c services.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c services.c X X services1.o: services1.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -DCONF_DIR=\"$(sysconfdir)\" -c services1.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -DCONF_DIR=\"$(sysconfdir)\" -c services1.c X X proctitle.o: proctitle.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c proctitle.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c proctitle.c X X store.o: store.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c store.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c store.c X X X kb.o: kb.c X- $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c kb.c X+ $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CPPFLAGS) $(CFLAGS) -c kb.c X X X libopenvas.la: $(OBJS) END-of-openvas-libraries/files/patch-libopenvas-Makefile echo x - openvas-libraries/Makefile.common sed 's/^X//' >openvas-libraries/Makefile.common << 'END-of-openvas-libraries/Makefile.common' XCONFIGURE_ARGS+= --includedir=${PREFIX}/include \ X --localstatedir=${PREFIX}/openvas \ X --sharedstatedir=${PREFIX}/openvas/com \ X --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} END-of-openvas-libraries/Makefile.common exit --- openvas-libraries-1.0.1.shar ends here ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804270910.m3R9A4hu093682>