summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatthias Fulz2021-02-16 23:16:15 +0100
committerMatthias Fulz2021-02-16 23:16:15 +0100
commit1ce81a6c4556dc5326bc77fbdf8851e91f8b433f (patch)
treecf858bcd78edb53eb4deaaa701d04f699cafd529 /PKGBUILD
downloadaur-1ce81a6c4556dc5326bc77fbdf8851e91f8b433f.tar.gz
openvas-scanner 20.8.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..769b4ebbfa4d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer : Matthias Fulz < mfulz [at] olznet [dot] de >
+
+pkgname=openvas-scanner
+pkgver=20.8.1
+pkgrel=1
+pkgdesc='Vulnerability scanning Daemon'
+arch=('x86_64')
+url="https://github.com/greenbone/openvas-scanner"
+license=('GPL')
+depends=('gvm-libs' 'redis')
+makedepends=('cmake' 'doxygen')
+groups=('greenbone-vulnerability-manager')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/greenbone/openvas-scanner/archive/v${pkgver}.tar.gz"
+ "greenbone-nvt-sync.timer"
+ "greenbone-nvt-sync.service")
+sha512sums=('6114f37a91a3dd42c3693f10548a7727fb88fbe535ce511b164a440d5ace1c736d4c8a45db9a7e83b9abbd376c4d6b13afd3d23a995a5d089329a2bb8bd71cec'
+ '2df63297cd9bd1cfb7b774152b1791ff946a1a410e563e54212652d847063b3c22b5362cd287b1bd73684be1fbd66464a2f8bb79b92cd086ba58e9a801d675ec'
+ '1ef913c24721533b0f779047532de63d195e8498885b90972a7bbbfb734444c0f7cbdcc52c437b2ce773881d45eadfcec03fcd00886e02962cb06d318d0c7c96')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ cmake -DCMAKE_BUILD_TYPE=Release -DSBINDIR=/usr/bin \
+ -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var -DLIBDIR=/usr/lib \
+ -DOPENVAS_FEED_LOCK_PATH=/run/gvm/feed-update.lock .
+ make
+}
+
+package() {
+ install=openvas.install
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}/" install
+
+ install -m 755 -d $pkgdir/usr/lib/systemd/system
+ install -m 644 ${srcdir}/greenbone-nvt-sync.service $pkgdir/usr/lib/systemd/system
+ install -m 644 ${srcdir}/greenbone-nvt-sync.timer $pkgdir/usr/lib/systemd/system
+}