From owner-svn-ports-all@freebsd.org Sun Aug 6 06:57:46 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01681DC8024; Sun, 6 Aug 2017 06:57:45 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C48BD75F4D; Sun, 6 Aug 2017 06:57:45 +0000 (UTC) (envelope-from acm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v766viYD064579; Sun, 6 Aug 2017 06:57:44 GMT (envelope-from acm@FreeBSD.org) Received: (from acm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v766viUR064574; Sun, 6 Aug 2017 06:57:44 GMT (envelope-from acm@FreeBSD.org) Message-Id: <201708060657.v766viUR064574@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: acm set sender to acm@FreeBSD.org using -f From: Jose Alonso Cardenas Marquez Date: Sun, 6 Aug 2017 06:57:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r447447 - in head/security: . openvas9 openvas9/files X-SVN-Group: ports-head X-SVN-Commit-Author: acm X-SVN-Commit-Paths: in head/security: . openvas9 openvas9/files X-SVN-Commit-Revision: 447447 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2017 06:57:46 -0000 Author: acm Date: Sun Aug 6 06:57:44 2017 New Revision: 447447 URL: https://svnweb.freebsd.org/changeset/ports/447447 Log: - New port: security/openvas9 (metaport) This is the metaport to install OpenVAS 9 applications and libraries. WWW: http://www.openvas.org Added: head/security/openvas9/ head/security/openvas9/Makefile (contents, props changed) head/security/openvas9/files/ head/security/openvas9/files/pkg-message.in (contents, props changed) head/security/openvas9/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Sun Aug 6 06:54:47 2017 (r447446) +++ head/security/Makefile Sun Aug 6 06:57:44 2017 (r447447) @@ -440,6 +440,7 @@ SUBDIR += openvas8-libraries SUBDIR += openvas8-manager SUBDIR += openvas8-scanner + SUBDIR += openvas9 SUBDIR += openvas9-cli SUBDIR += openvas9-libraries SUBDIR += openvas9-manager Added: head/security/openvas9/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/openvas9/Makefile Sun Aug 6 06:57:44 2017 (r447447) @@ -0,0 +1,32 @@ +# Created by: Alonso Cardenas Marquez +# $FreeBSD$ + +PORTNAME= openvas9 +PORTVERSION= 9.0 +CATEGORIES= security + +MAINTAINER= acm@FreeBSD.org +COMMENT= openvas 8 vulnerability scanner (metaport) + +USES= metaport + +# Install OpenVAS libraries +RUN_DEPENDS+= ${LOCALBASE}/lib/libopenvas_base.so:security/openvas${OPENVAS_VER}-libraries + +# Install OpenVAS Commnad Line +RUN_DEPENDS+= ${LOCALBASE}/bin/omp:security/openvas${OPENVAS_VER}-cli + +# Install OpenVAS Manager +RUN_DEPENDS+= ${LOCALBASE}/sbin/openvasmd:security/openvas${OPENVAS_VER}-manager + +# Install OpenVAS Scanner +RUN_DEPENDS+= ${LOCALBASE}/sbin/openvassd:security/openvas${OPENVAS_VER}-scanner + +# Install OpenVAS Web Interface +RUN_DEPENDS+= ${LOCALBASE}/sbin/gsad:security/greenbone-security-assistant${OPENVAS_VER} + +SUB_FILES= pkg-message +OPENVAS_VER= 9 + + +.include Added: head/security/openvas9/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/openvas9/files/pkg-message.in Sun Aug 6 06:57:44 2017 (r447447) @@ -0,0 +1,56 @@ +############################################################################### + +OpenVAS 9 ports were installed + +1) Redis is a dependency of OpenVAS. Please, configure redis-server for + listening on socket /tmp/redis.sock. openvassd needs it + +2) If you installed security/openvas8-manager port (openvasmd) with PostgrSQL + support, please look at: + + %%LOCALBASE%%/share/docs/openvas-scanner/postgres-HOWTO + + It will guide you for configure PostgreSQL as OpenVAS database backend + instead of SQLite3 + +3) The following steps are neccessary before of you can access to OpenVAS web + interface (gsad): + + # openvas-mkcert + # openvas-mkcert-client -n -i + # openvasmd --rebuild --progress + # greenbone-nvt-sync + # greenbone-scapdata-sync + # greenbone-certdata-sync + # openvasmd --create-user=admin --role=Admin + # openvasmd --user=admin --new-password=yourpassword + +4) Add the following lines to /etc/rc.conf + + openvassd_enable="YES" + openvasmd_enable="YES" + gsad_enable="YES" + +5) Start OpenVAS Scanner. It will listen on 127.0.0.1:9391 by default + + # service openvassd restart + +6) 5) Start OpenVAS Manager. It will listen on 127.0.0.1:9390 by default + + # service openvasmd restart + # openvasmd --rebuild --progress + +7) Start OpenVAS web interface. It will listen on http://127.0.0.1:8080 by + default + + # service gsad start + +8) gsad can export results to PDF. It needs print/texlive-texmf port + + # pkg install texlive-texmf + + It will install 1G of data + +9) Enjoy it + +############################################################################### Added: head/security/openvas9/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/openvas9/pkg-descr Sun Aug 6 06:57:44 2017 (r447447) @@ -0,0 +1,3 @@ +This is the metaport to install OpenVAS 9 applications and libraries. + +WWW: http://www.openvas.org