wok-6.x view openvas-libraries/receipt @ rev 20472
Up perl-io-socket-ssl (2.060)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 12 19:21:44 2018 +0200 (2018-10-12) |
parents | 05a0cbbb07b4 |
children | 0886cc0a9c77 |
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="http://www.openvas.org/"
11 WGET_URL="http://wald.intevation.org/frs/download.php/784/$TARBALL"
12 DEPENDS="glib gnutls libgcrypt zlib libgpg-error gpgme libtasn1"
13 BUILD_DEPENDS="gpgme-dev libgcrypt-dev pkg-config glib-dev gnutls-dev libpcap-dev \
14 bison flex cmake util-linux-uuid-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's/.*gnutls_transport_set_lowat.*/#if GNUTLS_VERSION_NUMBER < 0x020c00\n&\n#endif/' misc/network.c
20 # gnutls_connection_end_t depredicated for gnutls >= 3.0.18
21 sed -i 's/gnutls_connection_end_t/unsigned int/' misc/openvas_server.h misc/openvas_server.c
22 ./configure --prefix=/usr --localstatedir=/var \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib $fs/usr/share $fs/usr/bin
33 cp -a $install/usr/share/openvas $fs/usr/share
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 }