wok-next view openvas-libraries/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | db12822e1407 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openvas-libraries"
4 VERSION="8.0.9"
5 CATEGORY="network"
6 SHORT_DESC="Network security scanner"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 LGPL2 BSD"
9 WEB_SITE="http://www.openvas.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://wald.intevation.org/frs/download.php/2433/$TARBALL"
14 BUILD_DEPENDS="gpgme-dev libgcrypt-dev glib-dev gnutls-dev \
15 libpcap-dev bison flex cmake util-linux-uuid-dev zlib-dev libssh-dev \
16 hiredis-dev"
17 SPLIT="openvas-libraries openvas-libraries-dev"
19 compile_rules() {
20 sed -i '/builtin_functions_ntlmssp/{NNNNNd}' nasl/iconv.c
21 sed -i '/islocalhost/{Ns/\n/ /}' nasl/nasl_builtin_synscan.c
23 mkdir -p build
24 cd build
25 cmake \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DSYSCONF_INSTALL_DIR=/etc \
28 -DLOCALSTATEDIR=/var \
29 -DBUILD_STATIC=0 \
30 -DBUILD_SHARED=1 \
31 -DCMAKE_BUILD_TYPE=Release \
32 .. &&
33 make &&
34 make install || return 1
36 rm -r $install/usr/share/openvas/
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 openvas-libraries)
42 copy @std
43 CAT="network|libraries"
44 DEPENDS="glib gpgme hiredis libassuan libgcrypt libgnutls \
45 libgpg-error libpcap libssh util-linux-uuid zlib"
46 ;;
47 openvas-libraries-dev)
48 copy @dev
49 DEPENDS="openvas-libraries glib-dev gnutls-dev libgcrypt-dev"
50 ;;
51 esac
52 }