blob: 49fb26312398c63b3902e78954ac54dcc6a56f52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libprelude/libprelude-0.9.0_rc11.ebuild,v 1.1 2005/08/03 03:49:12 vanquirius Exp $
inherit versionator perl-module flag-o-matic
MY_P="${PN}-$(replace_version_separator 3 '-')"
DESCRIPTION="Prelude-IDS Framework Library"
HOMEPAGE="http://www.prelude-ids.org/"
SRC_URI="http://www.prelude-ids.org/download/releases/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc-macos ~sparc ~x86"
IUSE="perl python"
DEPEND=">=net-libs/gnutls-1.0.17
!net-analyzer/prelude-nids"
# doc? ( dev-util/gtk-doc )"
# Doc disabled as per bug 77575
S="${WORKDIR}/${MY_P}"
pkg_setup() {
use perl && perl-module_pkg_setup
}
src_unpack() {
unpack ${A}
cd "${S}"
# grep -qs 'include.*fts.h' prelude-adduser/prelude-adduser.c || die "remove lfs filter"
filter-lfs-flags
}
src_compile() {
econf \
$(use_enable perl) \
$(use_enable python) \
|| die "econf failed"
emake -j1 || die "emake failed"
# -j1 may not be necessary in the future
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
use perl && fixlocalpod
}
pkg_preinst() { use perl && perl-module_pkg_preinst ; }
pkg_postinst() { use perl && perl-module_pkg_postinst ; }
pkg_prerm() { use perl && perl-module_pkg_prerm ; }
pkg_postrm() { use perl && perl-module_pkg_postrm ; }
|