summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild')
-rw-r--r--net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild b/net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild
index 68c3cfe22b69..acf7e10d129e 100644
--- a/net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild
+++ b/net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild,v 1.1 2014/09/28 15:15:10 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libraries/openvas-libraries-7.0.4.ebuild,v 1.2 2014/09/28 16:48:59 jlec Exp $
EAPI=5
@@ -13,7 +13,7 @@ SRC_URI="http://wald.intevation.org/frs/download.php/1722/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
-IUSE=""
+IUSE="ldap"
RDEPEND="
>=dev-libs/glib-2.12
@@ -21,8 +21,8 @@ RDEPEND="
net-libs/libpcap
app-crypt/gpgme
!net-analyzer/openvas-libnasl
- net-nds/openldap
- net-libs/libssh"
+ net-libs/libssh
+ ldap? ( net-nds/openldap )"
DEPEND="${RDEPEND}
sys-devel/bison
sys-devel/flex
@@ -31,10 +31,16 @@ DEPEND="${RDEPEND}
DOCS="ChangeLog CHANGES README"
+PATCHES=(
+ "${FILESDIR}"/${P}-libssh.patch
+ "${FILESDIR}"/${P}-bsdsource.patch
+ )
+
src_configure() {
local mycmakeargs=(
"-DLOCALSTATEDIR=${EPREFIX}/var"
"-DSYSCONFDIR=${EPREFIX}/etc"
+ $(cmake-utils_use_build ldap WITH_LDAP)
)
cmake-utils_src_configure
}