wok-6.x view openvas-libraries/receipt @ rev 20668

Up pjsip (2.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 21 10:25:55 2019 +0100 (2019-01-21)
parents 033140d646db
children df98a48adee2
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"
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 -i 's/.*gnutls_transport_set_lowat.*/#if GNUTLS_VERSION_NUMBER < 0x020c00\n&\n#endif/' misc/network.c
21 # gnutls_connection_end_t depredicated for gnutls >= 3.0.18
22 sed -i 's/gnutls_connection_end_t/unsigned int/' misc/openvas_server.h misc/openvas_server.c
23 ./configure --prefix=/usr --localstatedir=/var \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/usr/share $fs/usr/bin
34 cp -a $install/usr/share/openvas $fs/usr/share
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 }