-
-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
657 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
# | ||
# from AUR - adapted to you style | ||
# | ||
# Old Contributor: Lex Black <[email protected]> | ||
|
||
pkgname=greenbone-feed-sync | ||
pkgver=24.9.0 | ||
pkgrel=1 | ||
pkgdesc='New script for downloading the Greenbone Community Feed.' | ||
arch=('any') | ||
url='https://github.com/greenbone/greenbone-feed-sync' | ||
license=('GPL-3.0-only') | ||
depends=('rsync' 'python-rich' 'python-tomli' 'python-shtab') | ||
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry') | ||
source=("https://github.com/greenbone/greenbone-feed-sync/archive/v$pkgver.tar.gz" | ||
'greenbone-certdata-sync.service' | ||
'greenbone-certdata-sync.timer' | ||
'greenbone-feed-sync.service' | ||
'greenbone-feed-sync.timer' | ||
'greenbone-nvt-sync.service' | ||
'greenbone-nvt-sync.timer' | ||
'greenbone-scapdata-sync.service' | ||
'greenbone-scapdata-sync.timer') | ||
sha512sums=('97ff2abd1ee604893546e6f4befceb70ec496e83f1920da8820c4c1de1dc8f12301aaac6030d68a19a3eeb7bd0dd143941693d8f986a7748e6bc0c463deae0bb' | ||
'0e61d540bbe7d4a88d080e0b213f6c472d9b1b5bf122780dec9e2644fe15bae9a9938432fdcfde73ed9d280dd319dd4796acb83ea8135aab3fe981a00b612504' | ||
'4d259ff625d29b10040ab1ff7cb472b3dee2355c8ef01275754c5c08779e0de3d5ae1cbb157239fd17d663644b43a642fe15c2d8e13cde037e52ad6a4e2e0afd' | ||
'de1cc454f5bdf402368ca06680b542b3c10edd6e0e126be955fd3af140c0bb722b1664a9b3ac72bf10fae54c85142bf58f5becde767a27e102c19abe78216b0a' | ||
'e1be40755530f9793c91c47db3bc1fb65266dcea2d1ba5e3ba1de97a93572bc52a18dc182f9c4d11fc4586f714663447917d70321e32c20bbe35765f999141d2' | ||
'1ef913c24721533b0f779047532de63d195e8498885b90972a7bbbfb734444c0f7cbdcc52c437b2ce773881d45eadfcec03fcd00886e02962cb06d318d0c7c96' | ||
'2df63297cd9bd1cfb7b774152b1791ff946a1a410e563e54212652d847063b3c22b5362cd287b1bd73684be1fbd66464a2f8bb79b92cd086ba58e9a801d675ec' | ||
'd90a42e8f2f77b05432f61ead247e8d4144569ae622159a45f0541469daa4447fa667ef6af42fa0117c957ab2a9afee425fef7bdc3532c8f89021e074c590052' | ||
'224bb41d298083755a77151038403b678bc66b9184b9b960ce4a380f8774ec7794e2f967eb48efd158a9ac7006b4a46a1f84267b50eef3e85ced5193a278a451') | ||
|
||
build() { | ||
cd "$pkgname-$pkgver" | ||
|
||
python -m build --wheel --no-isolation | ||
} | ||
|
||
package() { | ||
cd "$pkgname-$pkgver" | ||
|
||
python -m installer --destdir="$pkgdir" dist/*.whl | ||
|
||
install -Dm 644 "$srcdir/greenbone-certdata-sync.service" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
install -Dm 644 "$srcdir/greenbone-certdata-sync.timer" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
install -Dm 644 "$srcdir/greenbone-feed-sync.service" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
install -Dm 644 "$srcdir/greenbone-feed-sync.timer" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
install -Dm 644 "$srcdir/greenbone-nvt-sync.service" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
install -Dm 644 "$srcdir/greenbone-nvt-sync.timer" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
install -Dm 644 "$srcdir/greenbone-scapdata-sync.service" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
install -Dm 644 "$srcdir/greenbone-scapdata-sync.timer" \ | ||
-t "$pkgdir/usr/lib/systemd/system" | ||
} | ||
|
13 changes: 13 additions & 0 deletions
13
packages/greenbone-feed-sync/greenbone-certdata-sync.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon certdata | ||
Requires=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
Type=simple | ||
User=gvm | ||
Group=gvm | ||
ExecStart=/usr/bin/greenbone-certdata-sync --rsync | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon certdata daily | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon feed | ||
Requires=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
Type=simple | ||
User=gvm | ||
Group=gvm | ||
ExecStart=/usr/bin/greenbone-feed-sync --type GVMD_DATA | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon feed daily | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon nvt entries | ||
Requires=network-online.target | ||
After=network-online.target | ||
After=redis.service | ||
|
||
[Service] | ||
Type=simple | ||
User=gvm | ||
Group=gvm | ||
ExecStart=/usr/bin/sh -c '/usr/bin/greenbone-nvt-sync && sudo openvas --update-vt-info' | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon nvts daily | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
13 changes: 13 additions & 0 deletions
13
packages/greenbone-feed-sync/greenbone-scapdata-sync.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon scapdata | ||
Requires=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
Type=simple | ||
User=gvm | ||
Group=gvm | ||
ExecStart=/usr/bin/greenbone-scapdata-sync --rsync | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=Synchronize the greenbon scapdata daily | ||
|
||
[Timer] | ||
OnCalendar=daily | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
# | ||
# from AUR - adapted to you style | ||
# | ||
# Contributor: Matthias Fulz < mfulz [at] olznet [dot] de > | ||
|
||
pkgname=gsa | ||
pkgver=24.0.1 | ||
pkgrel=1 | ||
pkgdesc='Greenbone Security Assistant - The web frontend for the Greenbone Community Edition.' | ||
arch=('any') | ||
url='https://github.com/greenbone/gsa' | ||
license=('AGPL-3.0-only') | ||
depends=('gsad' 'openvas-scanner') | ||
source=("https://github.com/greenbone/gsa/releases/download/v$pkgver/$pkgname-dist-$pkgver.tar.gz") | ||
sha512sums=('6b3527d574e0e4379cba1054ab6fffd33cfdb992520c2da88ed31e7ba1f09e5e3b6081aa41a8acbc01d36123b1ef6358108be7d3733a22525a88f7eff568bed3') | ||
|
||
package() { | ||
install -d $pkgdir/usr/share/gvm/gsad/web | ||
|
||
for i in {assets/,img/,index.html,locales/,robots.txt}; do | ||
cp -dpr --no-preserve=ownership ${i} $pkgdir/usr/share/gvm/gsad/web/ | ||
done | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- a/gsad-22.12.0/src/CMakeLists.txt | ||
+++ b/gsad-22.12.0/src/CMakeLists.txt | ||
@@ -34,18 +34,7 @@ | ||
pkg_check_modules (BROTLI libbrotlienc) | ||
|
||
message (STATUS "Looking for libgcrypt...") | ||
-find_library (LIBGCRYPT gcrypt) | ||
-if (NOT LIBGCRYPT) | ||
- message (SEND_ERROR "The libgcrypt library is required.") | ||
-else (NOT LIBGCRYPT) | ||
- message (STATUS "Looking for libgcrypt... ${LIBGCRYPT}") | ||
- execute_process (COMMAND libgcrypt-config --libs | ||
- OUTPUT_VARIABLE LIBGCRYPT_LDFLAGS | ||
- OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
- execute_process (COMMAND libgcrypt-config --cflags | ||
- OUTPUT_VARIABLE LIBGCRYPT_CFLAGS | ||
- OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
-endif (NOT LIBGCRYPT) | ||
+pkg_check_modules (LIBGCRYPT REQUIRED libgcrypt) | ||
|
||
if (NOT LIBMICROHTTPD_FOUND OR NOT LIBXML_FOUND OR NOT GLIB_FOUND OR | ||
(GTHREAD_REQUIRED AND NOT GTHREAD_FOUND) OR NOT | ||
|
||
--- a/gsad-22.12.0/src/CMakeLists.txt | ||
+++ b/gsad-22.12.0/src/CMakeLists.txt | ||
@@ -39,13 +39,13 @@ | ||
if (NOT LIBMICROHTTPD_FOUND OR NOT LIBXML_FOUND OR NOT GLIB_FOUND OR | ||
(GTHREAD_REQUIRED AND NOT GTHREAD_FOUND) OR NOT | ||
LIBGVM_GMP_FOUND OR NOT GNUTLS_FOUND OR NOT | ||
- LIBGCRYPT OR NOT ZLIB_FOUND) | ||
+ ZLIB_FOUND) | ||
message (FATAL_ERROR "One or more required libraries was not found " | ||
"(see message above), please install the missing " | ||
"libraries and run cmake again.") | ||
endif (NOT LIBMICROHTTPD_FOUND OR NOT LIBXML_FOUND OR NOT GLIB_FOUND OR | ||
(GTHREAD_REQUIRED AND NOT GTHREAD_FOUND) OR NOT | ||
- LIBGVM_GMP_FOUND OR NOT GNUTLS_FOUND OR NOT LIBGCRYPT OR NOT ZLIB_FOUND) | ||
+ LIBGVM_GMP_FOUND OR NOT GNUTLS_FOUND OR NOT ZLIB_FOUND) | ||
|
||
## Program | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/gvmd-23.10.0/config/CMakeLists.txt | ||
+++ b/gvmd-23.10.0/config/CMakeLists.txt | ||
@@ -17,7 +17,7 @@ | ||
|
||
|
||
if (NOT SYSTEMD_SERVICE_DIR) | ||
- set (SYSTEMD_SERVICE_DIR "/lib/systemd/system") | ||
+ set (SYSTEMD_SERVICE_DIR "${LIBDIR}/systemd/system") | ||
endif (NOT SYSTEMD_SERVICE_DIR) | ||
|
||
if (NOT LOGROTATE_DIR) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
# | ||
# from AUR - adapted to you style | ||
# | ||
# Old Contributor: Lex Black <[email protected]> | ||
|
||
pkgname=gsad | ||
pkgver=24.0.0 | ||
pkgrel=1 | ||
pkgdesc='Greenbone Security Assistant HTTP Server - The server talking to the Greenbone Vulnerability Management daemon (gvmd).' | ||
arch=('x86_64' 'aarch64') | ||
url='https://github.com/greenbone/gsad' | ||
license=('AGPL-3.0-only') | ||
depends=('gvmd' 'gvm-libs' 'gnutls' 'libgcrypt' 'libmicrohttpd' 'libglib-2.0.so' | ||
'libxml2.so' 'zlib') | ||
makedepends=('cmake' 'xmltoman') | ||
optdepends=('logrotate: for rotating logs') | ||
source=("https://github.com/greenbone/gsad/archive/refs/tags/v$pkgver.tar.gz" | ||
'0001-libgcrypt-config.patch' | ||
'0002-fix-unit-path.patch') | ||
sha512sums=('27b6f27e1da5c587c60b0d9afc4f912f174fd4438a93ad23cf538a4424ce6a5b5ae3dbb6f47a10a9e6f163c67047ad193d7a57210675aa75d7a382d586ec5220' | ||
'a063e3caccb3a24f3bc164cb03e8ff27cdfbd5f2275158a00a6a1b49d920a99d663e0616d344b3dee3e640329b7e74667861c7c24bc5fd6f3d51ab4ec4c7c7b8' | ||
'3d86dfd288dcf1ab91454c0fefcb33e2bf9cdc20638804fd524ebee5ff5783a21c67e9d6b5b575a2d009c2f97828d3866513b00d02d18665ecf3f1ca91c99c41') | ||
|
||
prepare() { | ||
cd "$pkgname-$pkgver" | ||
|
||
sed -i '/-Werror/d' CMakeLists.txt | ||
|
||
# libgcrypt-config got replaced | ||
# ToDo: issue @ upstream (same as done with openvas-scanner) | ||
patch -Np2 -i "$srcdir/0001-libgcrypt-config.patch" | ||
|
||
# fix install path for unit file | ||
# ToDo: issue @ upstream (similar currently open for gvmd) | ||
patch -Np2 -i "$srcdir/0002-fix-unit-path.patch" | ||
} | ||
|
||
build() { | ||
cmake \ | ||
-B build \ | ||
-S "$pkgname-$pkgver" \ | ||
-DCMAKE_BUILD_TYPE=None \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DSBINDIR=/usr/bin \ | ||
-DLIBDIR=/usr/lib \ | ||
-DSYSCONFDIR=/etc \ | ||
-DLOCALSTATEDIR=/var | ||
|
||
make -C build | ||
} | ||
|
||
package() { | ||
make DESTDIR="$pkgdir" -C build install | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
# | ||
# from AUR - adapted to you style | ||
# | ||
# Old Contributor: Luis Martinez <luis dot martinez at disroot dot org> | ||
# Old Contributor: Christian Rebischke <[email protected]> | ||
# Old Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org> | ||
# Old Contributor : Daniel Micay <[email protected]> | ||
|
||
pkgname=gvm-libs | ||
pkgver=22.14.0 | ||
pkgrel=1 | ||
pkgdesc='Greenbone Vulnerability Management Libraries.' | ||
arch=('x86_64' 'aarch64') | ||
url='https://github.com/greenbone/gvm-libs' | ||
license=('GPL') | ||
depends=('cjson' 'gnutls' 'hiredis' 'libgcrypt' 'libgio-2.0.so' 'libglib-2.0.so' | ||
'libgpgme.so' 'libldap' 'libnet' 'libssh.so' 'libuuid.so' 'libxml2.so' | ||
'paho-mqtt-c' 'zlib' 'libpcap') | ||
makedepends=('cmake') | ||
provides=( | ||
"libgvm_base.so=${pkgver::2}-64" | ||
"libgvm_boreas.so=${pkgver::2}-64" | ||
"libgvm_gmp.so=${pkgver::2}-64" | ||
"libgvm_osp.so=${pkgver::2}-64" | ||
"libgvm_util.so=${pkgver::2}-64") | ||
replaces=('openvas-libraries') | ||
source=("https://github.com/greenbone/gvm-libs/archive/v$pkgver.tar.gz") | ||
sha256sums=('23fd9dcc0b26f7156a065d1e71046696698e66b43eb756c10af86124f9b9523c') | ||
|
||
PURGE_TARGETS=('var/run') | ||
|
||
prepare() { | ||
cd "$pkgname-$pkgver" | ||
|
||
sed -i '/-Werror/d' CMakeLists.txt | ||
} | ||
|
||
build() { | ||
cmake \ | ||
-B build \ | ||
-S "$pkgname-$pkgver" \ | ||
-DCMAKE_BUILD_TYPE=None \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DLIBDIR=/usr/lib \ | ||
-DSYSCONFDIR=/etc \ | ||
-DLOCALSTATEDIR=/var | ||
|
||
make -C build | ||
} | ||
|
||
package() { | ||
make DESTDIR="${pkgdir}/" -C build install | ||
|
||
rm -rf "$pkgdir/run" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/gvmd-23.10.0/config/CMakeLists.txt | ||
+++ b/gvmd-23.10.0/config/CMakeLists.txt | ||
@@ -17,7 +17,7 @@ | ||
|
||
|
||
if (NOT SYSTEMD_SERVICE_DIR) | ||
- set (SYSTEMD_SERVICE_DIR "/lib/systemd/system") | ||
+ set (SYSTEMD_SERVICE_DIR "${LIBDIR}/systemd/system") | ||
endif (NOT SYSTEMD_SERVICE_DIR) | ||
|
||
if (NOT LOGROTATE_DIR) | ||
|
Oops, something went wrong.