aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2016-03-18 01:45:45 +0800
committertijl <tijl@FreeBSD.org>2016-03-18 01:45:45 +0800
commitdf998beaed5170421a17535434ecf0ef7cc4aa85 (patch)
treebd3ad56ab819d69dc73dc41b40bbc5341a5cf2d1 /security
parentc0b47d1ec38fa91f1c519b5f6725681e63ac9046 (diff)
downloadfreebsd-ports-gnome-df998beaed5170421a17535434ecf0ef7cc4aa85.tar.gz
freebsd-ports-gnome-df998beaed5170421a17535434ecf0ef7cc4aa85.tar.zst
freebsd-ports-gnome-df998beaed5170421a17535434ecf0ef7cc4aa85.zip
Add security/greenbone-security-assistant, a web interface for OpenVAS.
(This should have been part of r411278.) Reported by: antoine
Diffstat (limited to 'security')
-rw-r--r--security/greenbone-security-assistant/Makefile23
-rw-r--r--security/greenbone-security-assistant/distinfo2
-rw-r--r--security/greenbone-security-assistant/files/gsad.in24
-rw-r--r--security/greenbone-security-assistant/files/patch-CMakeLists.txt20
-rw-r--r--security/greenbone-security-assistant/files/patch-doc-CMakeLists.txt9
-rw-r--r--security/greenbone-security-assistant/files/patch-src-xslt_i18n.c10
-rw-r--r--security/greenbone-security-assistant/pkg-descr8
-rw-r--r--security/greenbone-security-assistant/pkg-plist191
8 files changed, 287 insertions, 0 deletions
diff --git a/security/greenbone-security-assistant/Makefile b/security/greenbone-security-assistant/Makefile
new file mode 100644
index 000000000000..76a38697e77a
--- /dev/null
+++ b/security/greenbone-security-assistant/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME= greenbone-security-assistant
+PORTVERSION= 6.0.10
+CATEGORIES= security
+MASTER_SITES= http://wald.intevation.org/frs/download.php/2299/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= OpenVAS web interface
+
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING.GPL
+
+LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls \
+ libgcrypt.so:${PORTSDIR}/security/libgcrypt \
+ libopenvas_base.so:${PORTSDIR}/security/openvas-libraries \
+ libmicrohttpd.so:${PORTSDIR}/www/libmicrohttpd
+
+USES= cmake:outsource gettext gnome pkgconfig
+USE_GNOME= glib20 libxml2 libxslt
+USE_RC_SUBR= gsad
+
+.include <bsd.port.mk>
diff --git a/security/greenbone-security-assistant/distinfo b/security/greenbone-security-assistant/distinfo
new file mode 100644
index 000000000000..fa70bd1cbdd8
--- /dev/null
+++ b/security/greenbone-security-assistant/distinfo
@@ -0,0 +1,2 @@
+SHA256 (greenbone-security-assistant-6.0.10.tar.gz) = 9581ba04010987ff6f66edc7393595a2e2b05b64d3463886fba9e5d1152cc8df
+SIZE (greenbone-security-assistant-6.0.10.tar.gz) = 1477638
diff --git a/security/greenbone-security-assistant/files/gsad.in b/security/greenbone-security-assistant/files/gsad.in
new file mode 100644
index 000000000000..07d3be74ad0e
--- /dev/null
+++ b/security/greenbone-security-assistant/files/gsad.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: gsad
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following to /etc/rc.conf[.local] to enable this service
+#
+# gsad_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=gsad
+rcvar=gsad_enable
+command="%%PREFIX%%/sbin/gsad"
+pidfile=/var/run/gsad.pid
+
+: ${gsad_enable=NO}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/security/greenbone-security-assistant/files/patch-CMakeLists.txt b/security/greenbone-security-assistant/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..ca2be7662ea9
--- /dev/null
+++ b/security/greenbone-security-assistant/files/patch-CMakeLists.txt
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig 2016-02-03 09:07:18 UTC
++++ CMakeLists.txt
+@@ -214,7 +214,7 @@ if (NOT LIBDIR)
+ endif (NOT LIBDIR)
+
+ if (NOT LOCALSTATEDIR)
+- set (LOCALSTATEDIR "${CMAKE_INSTALL_PREFIX}/var")
++ set (LOCALSTATEDIR "/var")
+ endif (NOT LOCALSTATEDIR)
+
+ if (NOT INCLUDEDIR)
+@@ -487,7 +487,7 @@ install (FILES ${CMAKE_CURRENT_BINARY_DI
+
+ ## Program
+
+-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 -Wl,-z,relro -Wl,-z,now")
+
+ set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror")
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall")
diff --git a/security/greenbone-security-assistant/files/patch-doc-CMakeLists.txt b/security/greenbone-security-assistant/files/patch-doc-CMakeLists.txt
new file mode 100644
index 000000000000..00505c634e34
--- /dev/null
+++ b/security/greenbone-security-assistant/files/patch-doc-CMakeLists.txt
@@ -0,0 +1,9 @@
+--- doc/CMakeLists.txt.orig 2015-08-03 08:55:54 UTC
++++ doc/CMakeLists.txt
+@@ -102,5 +102,5 @@ endif (XMLMANTOHTML_EXECUTABLE)
+ ## Install
+
+ install (FILES gsad.8
+- DESTINATION ${DATADIR}/man/man8 )
++ DESTINATION man/man8 )
+
diff --git a/security/greenbone-security-assistant/files/patch-src-xslt_i18n.c b/security/greenbone-security-assistant/files/patch-src-xslt_i18n.c
new file mode 100644
index 000000000000..9acde9a97cce
--- /dev/null
+++ b/security/greenbone-security-assistant/files/patch-src-xslt_i18n.c
@@ -0,0 +1,10 @@
+--- src/xslt_i18n.c.orig 2015-08-03 08:55:58 UTC
++++ src/xslt_i18n.c
+@@ -23,6 +23,7 @@
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
++#define _WITH_GETLINE
+ #include "xslt_i18n.h"
+ #include <assert.h>
+ #include <dirent.h>
diff --git a/security/greenbone-security-assistant/pkg-descr b/security/greenbone-security-assistant/pkg-descr
new file mode 100644
index 000000000000..22a6abcd77a7
--- /dev/null
+++ b/security/greenbone-security-assistant/pkg-descr
@@ -0,0 +1,8 @@
+The Open Vulnerability Assessment System (OpenVAS) is a framework of several
+services and tools offering a comprehensive and powerful vulnerability
+scanning and vulnerability management solution.
+
+This package contains the Greenbone Security Assistant, a web interface for
+the OpenVAS Manager.
+
+WWW: http://www.openvas.org/
diff --git a/security/greenbone-security-assistant/pkg-plist b/security/greenbone-security-assistant/pkg-plist
new file mode 100644
index 000000000000..d114eeecc042
--- /dev/null
+++ b/security/greenbone-security-assistant/pkg-plist
@@ -0,0 +1,191 @@
+etc/openvas/gsad_log.conf
+man/man8/gsad.8.gz
+sbin/gsad
+share/locale/de/LC_MESSAGES/gsad_xsl.mo
+share/locale/ru/LC_MESSAGES/gsad_xsl.mo
+share/locale/zh_CN/LC_MESSAGES/gsad_xsl.mo
+share/openvas/gsa/classic/cpe-icons.xml
+share/openvas/gsa/classic/favicon.gif
+share/openvas/gsa/classic/graphics.xsl
+share/openvas/gsa/classic/gsa-login.css
+share/openvas/gsa/classic/gsa-style.css
+share/openvas/gsa/classic/gsad.xsl
+share/openvas/gsa/classic/help.xsl
+share/openvas/gsa/classic/help_de.xsl
+share/openvas/gsa/classic/help_ru.xsl
+share/openvas/gsa/classic/help_zh_CN.xsl
+share/openvas/gsa/classic/img/agent.png
+share/openvas/gsa/classic/img/alert_sign.png
+share/openvas/gsa/classic/img/alterable.png
+share/openvas/gsa/classic/img/ascending.png
+share/openvas/gsa/classic/img/ascending_inactive.png
+share/openvas/gsa/classic/img/bullet.png
+share/openvas/gsa/classic/img/bullet2.png
+share/openvas/gsa/classic/img/charts/severity-bar-chart.png
+share/openvas/gsa/classic/img/clone.png
+share/openvas/gsa/classic/img/clone_inactive.png
+share/openvas/gsa/classic/img/cpe/a:apache:http_server.png
+share/openvas/gsa/classic/img/cpe/a:drupal:drupal.png
+share/openvas/gsa/classic/img/cpe/a:gnu.png
+share/openvas/gsa/classic/img/cpe/a:google.png
+share/openvas/gsa/classic/img/cpe/a:mysql:mysql.png
+share/openvas/gsa/classic/img/cpe/a:openbsd:openssh.png
+share/openvas/gsa/classic/img/cpe/a:otrs:otrs.png
+share/openvas/gsa/classic/img/cpe/a:php:php.png
+share/openvas/gsa/classic/img/cpe/a:postgresql:postgresql.png
+share/openvas/gsa/classic/img/cpe/a:snort:snort.png
+share/openvas/gsa/classic/img/cpe/a:sourcefire.png
+share/openvas/gsa/classic/img/cpe/a:typo3:typo3.png
+share/openvas/gsa/classic/img/cpe/a:wordpress:wordpress.png
+share/openvas/gsa/classic/img/cpe/other.png
+share/openvas/gsa/classic/img/deb.png
+share/openvas/gsa/classic/img/delete.png
+share/openvas/gsa/classic/img/delete_inactive.png
+share/openvas/gsa/classic/img/delete_note.png
+share/openvas/gsa/classic/img/delta.png
+share/openvas/gsa/classic/img/delta_inactive.png
+share/openvas/gsa/classic/img/delta_second.png
+share/openvas/gsa/classic/img/descending.png
+share/openvas/gsa/classic/img/descending_inactive.png
+share/openvas/gsa/classic/img/details.png
+share/openvas/gsa/classic/img/details_inactive.png
+share/openvas/gsa/classic/img/disable.png
+share/openvas/gsa/classic/img/download.png
+share/openvas/gsa/classic/img/edit.png
+share/openvas/gsa/classic/img/edit_inactive.png
+share/openvas/gsa/classic/img/enable.png
+share/openvas/gsa/classic/img/enchantress.png
+share/openvas/gsa/classic/img/exe.png
+share/openvas/gsa/classic/img/feedback.png
+share/openvas/gsa/classic/img/first.png
+share/openvas/gsa/classic/img/first_inactive.png
+share/openvas/gsa/classic/img/fold.png
+share/openvas/gsa/classic/img/gsa_splash.png
+share/openvas/gsa/classic/img/help.png
+share/openvas/gsa/classic/img/indicator_js.png
+share/openvas/gsa/classic/img/indicator_operation_failed.png
+share/openvas/gsa/classic/img/indicator_operation_ok.png
+share/openvas/gsa/classic/img/key.png
+share/openvas/gsa/classic/img/last.png
+share/openvas/gsa/classic/img/last_inactive.png
+share/openvas/gsa/classic/img/list.png
+share/openvas/gsa/classic/img/list_inactive.png
+share/openvas/gsa/classic/img/new.png
+share/openvas/gsa/classic/img/new_note.png
+share/openvas/gsa/classic/img/new_override.png
+share/openvas/gsa/classic/img/next.png
+share/openvas/gsa/classic/img/next_inactive.png
+share/openvas/gsa/classic/img/note.png
+share/openvas/gsa/classic/img/os_aix.png
+share/openvas/gsa/classic/img/os_apple.png
+share/openvas/gsa/classic/img/os_centos.png
+share/openvas/gsa/classic/img/os_cisco.png
+share/openvas/gsa/classic/img/os_conflict.png
+share/openvas/gsa/classic/img/os_cyclades.png
+share/openvas/gsa/classic/img/os_debian.png
+share/openvas/gsa/classic/img/os_fedora.png
+share/openvas/gsa/classic/img/os_freebsd.png
+share/openvas/gsa/classic/img/os_gentoo.png
+share/openvas/gsa/classic/img/os_gos.png
+share/openvas/gsa/classic/img/os_hp.png
+share/openvas/gsa/classic/img/os_junos.png
+share/openvas/gsa/classic/img/os_linux.png
+share/openvas/gsa/classic/img/os_mandriva.png
+share/openvas/gsa/classic/img/os_netbsd.png
+share/openvas/gsa/classic/img/os_netgear.png
+share/openvas/gsa/classic/img/os_novell.png
+share/openvas/gsa/classic/img/os_openbsd.png
+share/openvas/gsa/classic/img/os_paloalto.png
+share/openvas/gsa/classic/img/os_redhat.png
+share/openvas/gsa/classic/img/os_slackware.png
+share/openvas/gsa/classic/img/os_sun.png
+share/openvas/gsa/classic/img/os_suse.png
+share/openvas/gsa/classic/img/os_trustix.png
+share/openvas/gsa/classic/img/os_ubuntu.png
+share/openvas/gsa/classic/img/os_ucs.png
+share/openvas/gsa/classic/img/os_unknown.png
+share/openvas/gsa/classic/img/os_vmware.png
+share/openvas/gsa/classic/img/os_windows.png
+share/openvas/gsa/classic/img/override.png
+share/openvas/gsa/classic/img/overrides_disabled.png
+share/openvas/gsa/classic/img/overrides_enabled.png
+share/openvas/gsa/classic/img/p_bar.png
+share/openvas/gsa/classic/img/p_bar_bg.png
+share/openvas/gsa/classic/img/p_bar_done.png
+share/openvas/gsa/classic/img/p_bar_error.png
+share/openvas/gsa/classic/img/p_bar_gray.png
+share/openvas/gsa/classic/img/p_bar_new.png
+share/openvas/gsa/classic/img/p_bar_request.png
+share/openvas/gsa/classic/img/previous.png
+share/openvas/gsa/classic/img/previous_inactive.png
+share/openvas/gsa/classic/img/prognosis.png
+share/openvas/gsa/classic/img/prognosis_inactive.png
+share/openvas/gsa/classic/img/provide_view.png
+share/openvas/gsa/classic/img/refresh.png
+share/openvas/gsa/classic/img/restore.png
+share/openvas/gsa/classic/img/restore_inactive.png
+share/openvas/gsa/classic/img/resume.png
+share/openvas/gsa/classic/img/resume_inactive.png
+share/openvas/gsa/classic/img/rpm.png
+share/openvas/gsa/classic/img/scheduled.png
+share/openvas/gsa/classic/img/scheduled_inactive.png
+share/openvas/gsa/classic/img/sensor.png
+share/openvas/gsa/classic/img/solution_type.png
+share/openvas/gsa/classic/img/st_mitigate.png
+share/openvas/gsa/classic/img/st_nonavailable.png
+share/openvas/gsa/classic/img/st_vendorfix.png
+share/openvas/gsa/classic/img/st_willnotfix.png
+share/openvas/gsa/classic/img/st_workaround.png
+share/openvas/gsa/classic/img/start.png
+share/openvas/gsa/classic/img/start_inactive.png
+share/openvas/gsa/classic/img/stop.png
+share/openvas/gsa/classic/img/stop_inactive.png
+share/openvas/gsa/classic/img/style/dropdown_arrow.png
+share/openvas/gsa/classic/img/style/dropdown_arrow_green.png
+share/openvas/gsa/classic/img/style/highlight_green.png
+share/openvas/gsa/classic/img/style/logo_l.png
+share/openvas/gsa/classic/img/style/logo_m.png
+share/openvas/gsa/classic/img/style/logo_r.png
+share/openvas/gsa/classic/img/style/menu_pointy.png
+share/openvas/gsa/classic/img/style/top_menu_buttons.png
+share/openvas/gsa/classic/img/style/window_dec_a.png
+share/openvas/gsa/classic/img/style/window_dec_a_error.png
+share/openvas/gsa/classic/img/style/window_dec_b.png
+share/openvas/gsa/classic/img/style/window_dec_b_error.png
+share/openvas/gsa/classic/img/style/window_dec_c.png
+share/openvas/gsa/classic/img/style/window_dec_c_error.png
+share/openvas/gsa/classic/img/tag.png
+share/openvas/gsa/classic/img/trashcan.png
+share/openvas/gsa/classic/img/trashcan_inactive.png
+share/openvas/gsa/classic/img/trend_down.png
+share/openvas/gsa/classic/img/trend_less.png
+share/openvas/gsa/classic/img/trend_more.png
+share/openvas/gsa/classic/img/trend_nochange.png
+share/openvas/gsa/classic/img/trend_up.png
+share/openvas/gsa/classic/img/unfold.png
+share/openvas/gsa/classic/img/upload.png
+share/openvas/gsa/classic/img/verify.png
+share/openvas/gsa/classic/img/verify_inactive.png
+share/openvas/gsa/classic/img/view_other.png
+share/openvas/gsa/classic/img/wizard.png
+share/openvas/gsa/classic/js/d3.tip.js
+share/openvas/gsa/classic/js/d3.v3.min.js
+share/openvas/gsa/classic/js/gsa_bar_chart.js
+share/openvas/gsa/classic/js/gsa_bubble_chart.js
+share/openvas/gsa/classic/js/gsa_donut_chart.js
+share/openvas/gsa/classic/js/gsa_graphics_base.js
+share/openvas/gsa/classic/js/gsa_line_chart.js
+share/openvas/gsa/classic/login/favicon.gif
+share/openvas/gsa/classic/login/gsa-login.css
+share/openvas/gsa/classic/login/img/gsa_splash.png
+share/openvas/gsa/classic/login/img/style/window_dec_a.png
+share/openvas/gsa/classic/login/img/style/window_dec_b.png
+share/openvas/gsa/classic/login/img/style/window_dec_c.png
+share/openvas/gsa/classic/login/login.html
+share/openvas/gsa/classic/omp-doc.xsl
+share/openvas/gsa/classic/omp.xsl
+share/openvas/gsa/classic/os.xml
+share/openvas/gsa/classic/rnc.xsl
+share/openvas/gsa/classic/wizard.xsl
+share/openvas/gsa/classic/zones.xml
+share/openvas/gsa/language_names.tsv