Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 2008 18:00:45 +0900 (JST)
From:      Tomoyuki Sakurai <cherry@trombik.org>
To:        bug-followup@FreeBSD.org
Cc:        Tomoyuki Sakurai <cherry@trombik.org>
Subject:   ports/123139: Re: [NEW PORT] security/openvas-server: A security scanner: a fork of Nessus
Message-ID:  <20080427090045.3F6E63C0421@spica.trombik.org>
Resent-Message-ID: <200804270910.m3R9A2g7093653@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         123139
>Category:       ports
>Synopsis:       Re: [NEW PORT] security/openvas-server: A security scanner: a fork of Nessus
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 27 09:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Tomoyuki Sakurai
>Release:        FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD x60.i.trombik.org 6.3-STABLE FreeBSD 6.3-STABLE #6: Sat Mar 29 17:03:57 JST 2008
>Description:
OpenVAS stands for Open Vulnerability Assessment System and is a network
security scanner with associated tools like a graphical user fontend. The core
is a server component with a set of network vulnerability tests (NVTs) to
detect security problems in remote systems and applications. 

WWW:	http://www.openvas.org/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- openvas-server-1.0.0.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-server
#	openvas-server/pkg-descr
#	openvas-server/Makefile
#	openvas-server/pkg-plist
#	openvas-server/distinfo
#	openvas-server/files
#	openvas-server/files/patch-openvas.tmpl.in
#	openvas-server/files/patch-openvasd-openvas-check-signature.c
#	openvas-server/files/patch-configure
#	openvas-server/files/openvasd.in
#	openvas-server/files/patch-openvasd-Makefile
#
echo c - openvas-server
mkdir -p openvas-server > /dev/null 2>&1
echo x - openvas-server/pkg-descr
sed 's/^X//' >openvas-server/pkg-descr << 'END-of-openvas-server/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-server/pkg-descr
echo x - openvas-server/Makefile
sed 's/^X//' >openvas-server/Makefile << 'END-of-openvas-server/Makefile'
X# New ports collection makefile for:	openvas-server
X# Date created:		2008-04-26
X# Whom:			Tomoyuki Sakurai <cherry@trombik.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	openvas-server
XPORTVERSION=	1.0.0
XCATEGORIES=	security
XMASTER_SITES=	http://wald.intevation.org/frs/download.php/407/
X
XMAINTAINER=	cherry@trombik.org
XCOMMENT=	A security scanner: a fork of Nessus
X
XLIB_DEPENDS=	openvas.1:${PORTSDIR}/security/openvas-libraries \
X	openvasnasl.1:${PORTSDIR}/security/openvas-libnasl
X
XLDFLAGS+=	-L${LOCALBASE}/lib
XCPPFLAGS+=	-I${LOCALBASE}/include
XCONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
XGNU_CONFIGURE=	yes
X# XXX openvas-mkcert uses gettext
XUSE_GETTEXT=	yes
XUSE_RC_SUBR=	openvasd
X
XMAN1=	openvas-check-signature.1 openvas-mkrand.1
XMAN8=	openvasd.8 openvas-adduser.8 openvas-rmuser.8 openvas-mkcert.8
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-server/Makefile
echo x - openvas-server/pkg-plist
sed 's/^X//' >openvas-server/pkg-plist << 'END-of-openvas-server/pkg-plist'
X@comment $FreeBSD$
Xbin/openvas-mkcert-client
Xbin/openvasd-config
Xbin/openvas-mkrand
Xinclude/openvas/includes.h
Xinclude/openvas/openvas-devel.h
Xinclude/openvas/config.h
Xinclude/openvas/threadcompat.h
Xinclude/openvas/nessusraw.h
Xinclude/openvas/nessusip.h
Xinclude/openvas/nessusicmp.h
Xinclude/openvas/nessustcp.h
Xinclude/openvas/nessusudp.h
Xsbin/openvasd
Xsbin/openvas-check-signature
Xsbin/openvas-adduser
Xsbin/openvas-rmuser
Xsbin/openvas-mkcert
Xopenvas/lib/openvas/openvas-services
X@dirrmtry openvas/run
X@dirrmtry openvas/log/openvas
X@dirrmtry openvas/log
X@dirrmtry openvas/lib/openvas/users
X@dirrmtry openvas/lib/openvas/tmp
X@dirrmtry openvas/lib/openvas/logs
X@dirrmtry openvas/lib/openvas/jobs
X@dirrmtry openvas/lib/openvas/CA
X@dirrmtry openvas/lib/openvas
X@dirrmtry openvas/lib
X@dirrmtry openvas/com/openvas/CA
X@dirrmtry openvas/com/openvas
X@dirrmtry openvas/com
X@dirrmtry openvas
X@dirrmtry etc/openvas/gnupg
X@dirrmtry etc/openvas
END-of-openvas-server/pkg-plist
echo x - openvas-server/distinfo
sed 's/^X//' >openvas-server/distinfo << 'END-of-openvas-server/distinfo'
XMD5 (openvas-server-1.0.0.tar.gz) = fbea2077375a4dfc8e97cbdeec1cc0da
XSHA256 (openvas-server-1.0.0.tar.gz) = 72ee788c0e79934d3a8220a2acff80851324227093f91fc37564097a2e44b68b
XSIZE (openvas-server-1.0.0.tar.gz) = 289660
END-of-openvas-server/distinfo
echo c - openvas-server/files
mkdir -p openvas-server/files > /dev/null 2>&1
echo x - openvas-server/files/patch-openvas.tmpl.in
sed 's/^X//' >openvas-server/files/patch-openvas.tmpl.in << 'END-of-openvas-server/files/patch-openvas.tmpl.in'
X--- openvas.tmpl.in.orig	2007-10-18 04:25:43.000000000 +0900
X+++ openvas.tmpl.in	2008-04-27 17:52:51.000000000 +0900
X@@ -128,5 +128,6 @@
X NASLCFLAGS=@NASLCFLAGS@
X OPENVAS_CFLAGS=$(CWARN) $(include) $(OVSCFLAGS) $(NASLCFLAGS) $(OPENVAS_DIRECTORIES)
X CFLAGS=@CFLAGS@ 
X+CPPFLAGS=@CPPFLAGS@
X 
X LIBS=@LIBS@
END-of-openvas-server/files/patch-openvas.tmpl.in
echo x - openvas-server/files/patch-openvasd-openvas-check-signature.c
sed 's/^X//' >openvas-server/files/patch-openvasd-openvas-check-signature.c << 'END-of-openvas-server/files/patch-openvasd-openvas-check-signature.c'
X--- openvasd/openvas-check-signature.c.orig	2008-04-27 00:56:59.000000000 +0900
X+++ openvasd/openvas-check-signature.c	2008-04-27 00:57:55.000000000 +0900
X@@ -43,7 +43,7 @@
X #include <includes.h>
X #include <gnutls/gnutls.h>
X #include <gnutls/x509.h>
X-
X+#include <getopt.h>
X 
X void
X print_tls_error(char *txt, int err)
END-of-openvas-server/files/patch-openvasd-openvas-check-signature.c
echo x - openvas-server/files/patch-configure
sed 's/^X//' >openvas-server/files/patch-configure << 'END-of-openvas-server/files/patch-configure'
X--- configure.orig	2008-04-27 14:15:10.000000000 +0900
X+++ configure	2008-04-27 14:15:27.000000000 +0900
X@@ -12073,7 +12073,7 @@
X 
X OPENVASD_CONFDIR='${sysconfdir}'
X OPENVASD_STATEDIR='${localstatedir}/lib/openvas'
X-OPENVASD_PIDDIR='${localstatedir}/run'
X+OPENVASD_PIDDIR='/var/run'
X OPENVASD_SHAREDSTATEDIR='${sharedstatedir}/lib/openvas'
X OPENVASD_DATADIR='${sysconfdir}/openvas'
X OPENVASD_LIBDIR='${libdir}/openvas'
END-of-openvas-server/files/patch-configure
echo x - openvas-server/files/openvasd.in
sed 's/^X//' >openvas-server/files/openvasd.in << 'END-of-openvas-server/files/openvasd.in'
X#!/bin/sh
X
X# Start or stop openvasd
X# $FreeBSD:$
X
X# PROVIDE: openvasd
X# REQUIRE: DAEMON
X# BEFORE: LOGIN
X# KEYWORD: shutdown
X#
X
Xprefix=%%PREFIX%%
X
X# Define these openvasd_* variables in one of these files:
X#	/etc/rc.conf
X#	/etc/rc.conf.local
X#	/etc/rc.conf.d/openvasd
X#
X# DO NOT CHANGE THESE DEFAULT VALUES HERE
X#
X[ -z "$openvasd_enable" ] && openvasd_enable="NO"	# Disable openvasd
X#openvasd_program="${prefix}/sbin/openvasd"	# Location of openvasd
Xopenvasd_flags="-D -q"				# Flags to openvasd program
X
X. %%RC_SUBR%%
X
Xname="openvasd"
Xrcvar=`set_rcvar`
Xcommand="${prefix}/sbin/openvasd"
Xpidfile="/var/run/openvasd.pid"
Xrequired_files="${prefix}/etc/openvas/openvasd.conf"
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-openvas-server/files/openvasd.in
echo x - openvas-server/files/patch-openvasd-Makefile
sed 's/^X//' >openvas-server/files/patch-openvasd-Makefile << 'END-of-openvas-server/files/patch-openvasd-Makefile'
X--- openvasd/Makefile.orig	2008-04-27 17:49:28.000000000 +0900
X+++ openvasd/Makefile	2008-04-27 17:50:41.000000000 +0900
X@@ -46,105 +46,105 @@
X 	@chmod +x cflags
X 
X openvasd : cflags $(OBJS)
X-	$(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) $(OBJS)  -o openvasd $(LIBS)
X+	$(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) $(OBJS)  -o openvasd $(LIBS)
X 
X openvas-check-signature : cflags openvas-check-signature.o
X-	$(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) openvas-check-signature.o  -o openvas-check-signature $(LIBS)
X+	$(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) openvas-check-signature.o  -o openvas-check-signature $(LIBS)
X 
X openvas-check-signature.o: openvas-check-signature.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c openvas-check-signature.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c openvas-check-signature.c 
X 
X users.o : cflags users.c users.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c users.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c users.c 
X 
X processes.o : cflags processes.c processes.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c processes.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c processes.c 
X 
X rules.o : cflags rules.c rules.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c rules.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c rules.c 
X 
X preferences.o : cflags preferences.c preferences.h 
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c preferences.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c preferences.c 
X 
X pluginload.o : cflags pluginload.h pluginload.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginload.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginload.c 
X 
X openvasd.o : cflags openvasd.c 
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c openvasd.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c openvasd.c 
X 
X auth.o : cflags auth.c auth.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c auth.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c auth.c 
X 
X attack.o : cflags attack.c attack.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c attack.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c attack.c 
X 
X comm.o : cflags comm.c comm.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c comm.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c comm.c 
X 
X utils.o : cflags utils.c utils.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c utils.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c utils.c 
X 
X log.o : cflags log.c log.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c log.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c log.c 
X 
X sighand.o : cflags sighand.c sighand.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c sighand.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c sighand.c 
X 
X ntp_10.o  : cflags ntp_10.c ntp_10.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c ntp_10.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c ntp_10.c 
X 
X ntp_11.o  : cflags ntp_11.c ntp_11.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c ntp_11.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c ntp_11.c 
X 
X parser.o : cflags parser.c parser.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c parser.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c parser.c 
X 
X piic.o : cflags piic.c piic.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c piic.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c piic.c 
X 
X nasl_plugins.o : cflags nasl_plugins.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c nasl_plugins.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c nasl_plugins.c 
X 
X nes_plugins.o : cflags nes_plugins.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c nes_plugins.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c nes_plugins.c 
X 
X plugs_req.o : cflags plugs_req.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c plugs_req.c 
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c plugs_req.c 
X 
X save_tests.o : cflags save_tests.c save_tests.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c save_tests.c	
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c save_tests.c	
X 
X save_kb.o : cflags save_kb.c save_kb.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c save_kb.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c save_kb.c
X 
X detached.o : cflags detached.c detached.h
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c detached.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c detached.c
X 
X pluginlaunch.o : cflags pluginlaunch.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginlaunch.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginlaunch.c
X 
X locks.o : cflags locks.c 
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c locks.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c locks.c
X 
X 
X dirutils.o : cflags dirutils.c 
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c dirutils.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c dirutils.c
X 
X 
X plugs_hash.o : cflags plugs_hash.c 
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c plugs_hash.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c plugs_hash.c
X 
X pluginupload.o : cflags pluginupload.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginupload.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginupload.c
X 
X pluginscheduler.o : cflags pluginscheduler.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginscheduler.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginscheduler.c
X 
X hosts.o : cflags hosts.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c hosts.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c hosts.c
X 
X shared_socket.o : cflags shared_socket.c
X-	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c shared_socket.c
X+	$(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c shared_socket.c
X clean :
X 	rm -f *.o openvasd openvas-check-signature *~ cflags
X 
END-of-openvas-server/files/patch-openvasd-Makefile
exit
--- openvas-server-1.0.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080427090045.3F6E63C0421>