wok-next rev 20368

Up openvas-libraries (8.0.9)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 24 15:28:12 2017 +0100 (2017-11-24)
parents e5892b770c3a
children df06598bc52a
files get-sublime-text-3/stuff/get-sublime-text-3 openvas-libraries-dev/receipt openvas-libraries/receipt
line diff
     1.1 --- a/openvas-libraries-dev/receipt	Fri Nov 24 15:34:52 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,20 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="openvas-libraries-dev"
     1.7 -VERSION="3.1.4"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="Network security scanner (development libraries)."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -LICENSE="GPL2 LGPL2 BSD"
    1.12 -WEB_SITE="http://www.openvas.org/"
    1.13 -WANTED="openvas-libraries"
    1.14 -
    1.15 -DEPENDS="openvas-libraries"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 -	mkdir -p $fs/usr/lib
    1.21 -	cp -a $install/usr/include $fs/usr
    1.22 -	cp -a $install/usr/lib/*a $fs/usr/lib
    1.23 -}
     2.1 --- a/openvas-libraries/receipt	Fri Nov 24 15:34:52 2017 +0200
     2.2 +++ b/openvas-libraries/receipt	Fri Nov 24 15:28:12 2017 +0100
     2.3 @@ -1,27 +1,31 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="openvas-libraries"
     2.8 -VERSION="3.1.4"
     2.9 +VERSION="8.0.9"
    2.10  CATEGORY="network"
    2.11  SHORT_DESC="Network security scanner (libraries)."
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13  LICENSE="GPL2 LGPL2 BSD"
    2.14  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.15  WEB_SITE="http://www.openvas.org/"
    2.16 -WGET_URL="http://wald.intevation.org/frs/download.php/784/$TARBALL"
    2.17 -DEPENDS="glib gnutls libgcrypt zlib libgpg-error gpgme libtasn1"
    2.18 -BUILD_DEPENDS="gpgme-dev libgcrypt-dev pkg-config glib-dev gnutls-dev libpcap-dev \
    2.19 -bison flex cmake util-linux-uuid-dev"
    2.20 +WGET_URL="https://wald.intevation.org/frs/download.php/2433/$TARBALL"
    2.21 +
    2.22 +BUILD_DEPENDS="gpgme-dev libgcrypt-dev pkg-config glib-dev gnutls-dev \
    2.23 +libpcap-dev bison flex cmake util-linux-uuid-dev zlib-dev libssh-dev \
    2.24 +hiredis-dev"
    2.25 +SPLIT="openvas-libraries openvas-libraries-dev"
    2.26  
    2.27  # Rules to configure and make the package.
    2.28  compile_rules()
    2.29  {
    2.30 -	sed -i 's/.*gnutls_transport_set_lowat.*/#if GNUTLS_VERSION_NUMBER < 0x020c00\n&\n#endif/' misc/network.c
    2.31 -	# gnutls_connection_end_t depredicated for gnutls >= 3.0.18
    2.32 -	sed -i 's/gnutls_connection_end_t/unsigned int/' misc/openvas_server.h misc/openvas_server.c
    2.33 -	./configure --prefix=/usr --localstatedir=/var \
    2.34 -	--mandir=/usr/share/man \
    2.35 -	$CONFIGURE_ARGS &&
    2.36 +	sed -i '/builtin_functions_ntlmssp/{NNNNNd}' nasl/iconv.c
    2.37 +	sed -i '/islocalhost/{Ns/\n/ /}' nasl/nasl_builtin_synscan.c
    2.38 +	[ -d build ] || mkdir build
    2.39 +	cd build &&
    2.40 +	cmake	-DCMAKE_INSTALL_PREFIX=/usr \
    2.41 +		-DSYSCONF_INSTALL_DIR=/etc \
    2.42 +		-DLOCALSTATEDIR=/var \
    2.43 +		-DBUILD_STATIC=0 -DBUILD_SHARED=1 .. &&
    2.44  	make &&
    2.45  	make DESTDIR=$DESTDIR install
    2.46  }
    2.47 @@ -29,8 +33,22 @@
    2.48  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.49  genpkg_rules()
    2.50  {
    2.51 -	mkdir -p $fs/usr/lib $fs/usr/share $fs/usr/bin
    2.52 -	cp -a $install/usr/share/openvas $fs/usr/share
    2.53 -	cp -a $install/usr/bin $fs/usr
    2.54 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.55 +	case $PACKAGE in
    2.56 +	openvas-libraries)
    2.57 +		DEPENDS="glib gnutls libgcrypt zlib libgpg-error gpgme \
    2.58 +			libtasn1 libpcap libssh hiredis util-linux-uuid"
    2.59 +		mkdir -p $fs/usr/lib $fs/usr/share $fs/usr/bin
    2.60 +		cp -a $install/usr/share/openvas $fs/usr/share
    2.61 +		cp -a $install/etc $fs
    2.62 +		cp -a $install/var $fs
    2.63 +		cp -a $install/usr/bin $fs/usr
    2.64 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.65 +		;;
    2.66 +	openvas-libraries-dev)
    2.67 +		DEPENDS="openvas-libraries pkg-config"
    2.68 +		mkdir -p $fs/usr/lib
    2.69 +		cp -a $install/usr/include $fs/usr
    2.70 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    2.71 +		;;
    2.72 +	esac
    2.73  }