summaryrefslogtreecommitdiff
blob: 9dc86632e1a8d0e5933f5d6f25e2eaccd4f0272c (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/prewikka/prewikka-0.9.0_rc5.ebuild,v 1.3 2005/07/19 10:08:27 dragonheart Exp $

inherit versionator distutils eutils

MY_P="${PN}-$(replace_version_separator 3 '-')"
DESCRIPTION="Prelude-IDS Frontend"
HOMEPAGE="http://www.prelude-ids.org/"
SRC_URI="mirror://gentoo/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=dev-lang/python-2.3
	dev-python/cheetah"

RDEPEND="${DEPEND}
	>=dev-libs/libprelude-0.9.0_rc5
	>=dev-libs/libpreludedb-0.9.0_rc5"

S="${WORKDIR}/${MY_P}"

pkg_setup() {
	if ! built_with_use dev-libs/libprelude python || \
		! built_with_use dev-libs/libprelude python;
	then
		die 'requires dev-libs/libprelude and dev-libs/libprelude to be build with "python" use flag'
	fi
}

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-pathfix.patch
}

pkg_postinst() {
	einfo "For additional installation instructions go to"
	einfo "https://trac.prelude-ids.org/wiki/InstallingPrewikka"
}