wok-next annotate openvas-libraries/receipt @ rev 21695
updated gob2 (2.0.17 -> 2.0.20)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 30 15:37:32 2020 +0100 (2020-06-30) |
parents | d43bf7aae921 |
children |
rev | line source |
---|---|
pascal@20368 | 1 # SliTaz package receipt v2. |
pascal@4648 | 2 |
pascal@4648 | 3 PACKAGE="openvas-libraries" |
pascal@20368 | 4 VERSION="8.0.9" |
pascal@4648 | 5 CATEGORY="network" |
al@20384 | 6 SHORT_DESC="Network security scanner" |
pascal@4648 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL2 LGPL2 BSD" |
al@20384 | 9 WEB_SITE="http://www.openvas.org/" |
al@20384 | 10 |
pascal@4648 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20368 | 12 WGET_URL="https://wald.intevation.org/frs/download.php/2433/$TARBALL" |
pascal@20368 | 13 |
al@20513 | 14 BUILD_DEPENDS="gpgme-dev libgcrypt-dev glib-dev gnutls-dev \ |
pascal@20368 | 15 libpcap-dev bison flex cmake util-linux-uuid-dev zlib-dev libssh-dev \ |
pascal@20368 | 16 hiredis-dev" |
al@21020 | 17 SPLIT="$PACKAGE-dev" |
pascal@4648 | 18 |
al@20384 | 19 compile_rules() { |
pascal@20368 | 20 sed -i '/builtin_functions_ntlmssp/{NNNNNd}' nasl/iconv.c |
pascal@20368 | 21 sed -i '/islocalhost/{Ns/\n/ /}' nasl/nasl_builtin_synscan.c |
al@20384 | 22 |
al@20384 | 23 mkdir -p build |
al@20384 | 24 cd build |
al@20384 | 25 cmake \ |
al@20384 | 26 -DCMAKE_INSTALL_PREFIX=/usr \ |
pascal@20368 | 27 -DSYSCONF_INSTALL_DIR=/etc \ |
pascal@20368 | 28 -DLOCALSTATEDIR=/var \ |
al@20384 | 29 -DBUILD_STATIC=0 \ |
al@20384 | 30 -DBUILD_SHARED=1 \ |
al@20384 | 31 -DCMAKE_BUILD_TYPE=Release \ |
al@20384 | 32 .. && |
pascal@4648 | 33 make && |
al@20384 | 34 make install || return 1 |
al@20384 | 35 |
al@20384 | 36 rm -r $install/usr/share/openvas/ |
pascal@4648 | 37 } |
pascal@4648 | 38 |
al@20384 | 39 genpkg_rules() { |
pascal@20368 | 40 case $PACKAGE in |
al@20384 | 41 openvas-libraries) |
al@20384 | 42 copy @std |
al@20384 | 43 CAT="network|libraries" |
al@20384 | 44 DEPENDS="glib gpgme hiredis libassuan libgcrypt libgnutls \ |
al@20384 | 45 libgpg-error libpcap libssh util-linux-uuid zlib" |
al@20384 | 46 ;; |
al@20384 | 47 openvas-libraries-dev) |
al@20384 | 48 copy @dev |
al@20384 | 49 DEPENDS="openvas-libraries glib-dev gnutls-dev libgcrypt-dev" |
al@20384 | 50 ;; |
pascal@20368 | 51 esac |
pascal@4648 | 52 } |