Skip to content

Commit

Permalink
Remove: deprecated feed sync script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii committed Mar 11, 2024
1 parent cef0e8f commit 086ed83
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 718 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ endif (NOT CMAKE_BUILD_TYPE)

OPTION (ENABLE_COVERAGE "Enable support for coverage analysis" OFF)

# the shell based script got replaced by https://github.com/greenbone/greenbone-feed-sync/
OPTION (INSTALL_OLD_SYNC_SCRIPT "Install shell based VT feed sync script" ON)
if (INSTALL_OLD_SYNC_SCRIPT)
message (DEPRECATION "greenbone-nvt-sync is deprecated in favor of greenbone-feed-sync (https://github.com/greenbone/greenbone-feed-sync/) and will be removed in the next major version")
endif (INSTALL_OLD_SYNC_SCRIPT)

## Retrieve git revision (at configure time)
include (GetGit)

Expand Down Expand Up @@ -191,7 +185,6 @@ set (OPENVAS_VERSION "${PROJECT_VERSION_STRING}")
# Configure Doxyfile with version number
configure_file (doc/man/openvas.8.in doc/man/openvas.8 @ONLY)
configure_file (VERSION.in VERSION @ONLY)
configure_file (tools/greenbone-nvt-sync.in tools/greenbone-nvt-sync @ONLY)
configure_file (src/openvas_log_conf.cmake_in src/openvas_log.conf)


Expand Down
18 changes: 3 additions & 15 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,9 @@ Setting up an openvas requires the following steps:
your NVT collection will be empty. It is recommended that you synchronize
with an NVT feed service before starting openvas for the first time.

With OpenVAS, the `greenbone-nvt-sync` shell based script is installed per default.
However, this script has been deprecated in favor of [greenbone-feed-sync](https://github.com/greenbone/greenbone-feed-sync/)
and it is strongly recommended to switch to the new script.
The installation of the `greenbone-nvt-sync` script can be disabled with cmake
option
`-DINSTALL_OLD_SYNC_SCRIPT=OFF`

Simply execute the following command to retrieve the initial NVT collection:

greenbone-nvt-sync

This tool will use the Greenbone Security Feed in case a Greenbone
subscription key is present. Else, the Community Feed will be used.

Please note that you will need the `rsync` tool for a successful synchronization.
Use [greenbone-feed-sync](https://github.com/greenbone/greenbone-feed-sync/)
to synchronize the feed. It can be used to synchronize with the community feed,
as well as with the enterprise feed. Look into it for more information.

NVT feeds are updated on a regular basis. Be sure to update your NVT collection
regularly to detect the latest threats.
Expand Down
34 changes: 0 additions & 34 deletions doc/man/greenbone-nvt-sync.8

This file was deleted.

1 change: 0 additions & 1 deletion doc/man/openvas.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ to be transferred significantly.
.BR ospd-openvas(8),
.BR openvas-nasl(1),
.BR openvas-nasl-lint(1),
.BR greenbone-nvt-sync(8)

.SH MORE INFORMATION

Expand Down
38 changes: 0 additions & 38 deletions doc/manual/greenbone-nvt-sync.md

This file was deleted.

2 changes: 1 addition & 1 deletion doc/manual/openvas/openvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ the amount of data to be transferred significantly.
## SEE ALSO

**gvmd(8)**, **gsad(8)**, **ospd-openvas(8)**, **[openvas-nasl(1)](../nasl/openvas-nasl.md)**,
**[openvas-nasl-lint(1)](../nasl/openvas-nasl-lint.md)**, **[greenbone-nvt-sync(1)](../greenbone-nvt-sync.md)**
**[openvas-nasl-lint(1)](../nasl/openvas-nasl-lint.md)**

## MORE INFORMATION

Expand Down
2 changes: 0 additions & 2 deletions license-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ src/sighand.h: GPL-2
src/utils.c: GPL-2
src/utils.h: GPL-2

tools/greenbone-nvt-sync.in: GPL-2+

nasl/CMakeLists.txt: GPL-2+
nasl/arc4.c: GPL-2+
nasl/byteorder.h: GPL-2+
Expand Down
10 changes: 0 additions & 10 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,6 @@ install (TARGETS openvas
install (FILES ${CMAKE_BINARY_DIR}/src/openvas_log.conf
DESTINATION ${OPENVAS_SYSCONF_DIR})

if (INSTALL_OLD_SYNC_SCRIPT)
install (FILES ${CMAKE_BINARY_DIR}/tools/greenbone-nvt-sync
DESTINATION ${BINDIR}
PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE
GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)

install (FILES ${CMAKE_SOURCE_DIR}/doc/man/greenbone-nvt-sync.8
DESTINATION ${DATADIR}/man/man8 )
endif (INSTALL_OLD_SYNC_SCRIPT)

install (FILES ${CMAKE_BINARY_DIR}/doc/man/openvas.8
DESTINATION ${DATADIR}/man/man8 )

Expand Down
Loading

0 comments on commit 086ed83

Please sign in to comment.