wok-current annotate openvas-libraries/receipt @ rev 25425
updated xa (2.3.10 -> 2.3.13)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 16:31:57 2022 +0100 (2022-08-18) |
parents | 33ed869afff2 |
children |
rev | line source |
---|---|
pascal@4648 | 1 # SliTaz package receipt. |
pascal@4648 | 2 |
pascal@4648 | 3 PACKAGE="openvas-libraries" |
slaxemulator@7172 | 4 VERSION="3.1.4" |
pascal@4648 | 5 CATEGORY="network" |
pascal@4648 | 6 SHORT_DESC="Network security scanner (libraries)." |
pascal@4648 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL2 LGPL2 BSD" |
pascal@4648 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22812 | 10 WEB_SITE="https://www.openvas.org/" |
pascal@25102 | 11 WGET_URL="https://web.archive.org/web/20111102191640if_/http://wald.intevation.org/frs/download.php/784/$TARBALL" |
pascal@20579 | 12 |
pascal@5031 | 13 DEPENDS="glib gnutls libgcrypt zlib libgpg-error gpgme libtasn1" |
slaxemulator@7172 | 14 BUILD_DEPENDS="gpgme-dev libgcrypt-dev pkg-config glib-dev gnutls-dev libpcap-dev \ |
pascal@20579 | 15 bison flex cmake util-linux-uuid-dev libgnutls" |
pascal@4648 | 16 |
pascal@4648 | 17 # Rules to configure and make the package. |
pascal@4648 | 18 compile_rules() |
pascal@4648 | 19 { |
pascal@22816 | 20 sed 's/.*set_lowat.*/#if GNUTLS_VERSION_NUMBER < 0x020c00\n&\n#endif/' \ |
pascal@22816 | 21 -i misc/network.c |
pascal@22816 | 22 |
pascal@17405 | 23 # gnutls_connection_end_t depredicated for gnutls >= 3.0.18 |
pascal@22816 | 24 sed -i 's/gnutls_connection_end_t/unsigned int/' misc/openvas_server.? |
pascal@22814 | 25 |
pascal@22814 | 26 # Update for bison 3 |
pascal@22816 | 27 sed -e 's|_parser$|-parser\n%parse-param {naslctxt * parm}\n%lex-param {naslctxt * parm}|' \ |
pascal@22816 | 28 -e 's|naslerror(|&naslctxt *parm, |' -i nasl/nasl_grammar.y |
pascal@22816 | 29 |
pascal@25064 | 30 # Update for gnutls |
pascal@25064 | 31 patch -p1 -i $stuff/gnutls.2.2.u |
pascal@25064 | 32 |
pascal@4657 | 33 ./configure --prefix=/usr --localstatedir=/var \ |
pascal@4648 | 34 --mandir=/usr/share/man \ |
pascal@4648 | 35 $CONFIGURE_ARGS && |
pascal@4648 | 36 make && |
pascal@15602 | 37 make DESTDIR=$DESTDIR install |
pascal@4648 | 38 } |
pascal@4648 | 39 |
pascal@4648 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4648 | 41 genpkg_rules() |
pascal@4648 | 42 { |
pascal@4648 | 43 mkdir -p $fs/usr/lib $fs/usr/share $fs/usr/bin |
pascal@15603 | 44 cp -a $install/usr/share/openvas $fs/usr/share |
pascal@15603 | 45 cp -a $install/usr/bin $fs/usr |
pascal@15603 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@4648 | 47 } |