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