Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 102825 | Differences between
and this patch

Collapse All | Expand All

(-)acid-0.9.6_beta23.ebuild (-17 / +16 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/acid-0.9.6_beta23.ebuild,v 1.13 2005/09/08 23:16:04 vanquirius Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/acid-0.9.6_beta23.ebuild,v 1.12 2005/07/09 18:41:59 swegener Exp $
4
4
5
inherit webapp versionator eutils depend.php
5
inherit webapp versionator eutils depend.php depend.apache
6
6
7
MY_P=${P/_beta/b}
7
MY_P="${P/_beta/b}"
8
S=${WORKDIR}/${PN}
8
S="${WORKDIR}/${PN}"
9
DESCRIPTION="Snort ACID - Analysis Console for Intrusion Databases"
9
DESCRIPTION="Snort ACID - Analysis Console for Intrusion Databases"
10
HOMEPAGE="http://acidlab.sourceforge.net"
10
HOMEPAGE="http://acidlab.sourceforge.net"
11
SRC_URI="http://acidlab.sourceforge.net/${MY_P}.tar.gz"
11
SRC_URI="http://acidlab.sourceforge.net/${MY_P}.tar.gz"
Lines 14-39 Link Here
14
KEYWORDS="~amd64 ~ppc ~x86"
14
KEYWORDS="~amd64 ~ppc ~x86"
15
IUSE="apache2"
15
IUSE="apache2"
16
16
17
# TODO: check for php-5 support
17
# Note: jpgraph is an unstable package
18
RDEPEND="apache2? ( >=net-www/apache-2 )
18
RDEPEND=">=dev-php/adodb-4.65-r1
19
	!apache2? ( =net-www/apache-1* )
19
	dev-php4/jpgraph
20
	>=dev-php/adodb-4.0.5
20
	media-libs/gd"
21
	>=dev-php/jpgraph-1.12.2
22
	media-libs/gd
23
	=virtual/httpd-php-4*"
24
DEPEND="${RDEPEND}
21
DEPEND="${RDEPEND}
25
	>=sys-apps/sed-4"
22
	>=sys-apps/sed-4"
26
23
27
pkg_setup() {
24
need_php4
28
	webapp_pkg_setup
25
need_apache
29
26
30
	need_php4
27
pkg_setup() {
31
	require_php_with_use gd session
28
        webapp_pkg_setup
29
        require_gd
30
        require_php_with_use session
32
}
31
}
33
32
34
src_unpack() {
33
src_unpack() {
35
	unpack ${A}
34
	unpack ${A}
36
	cd ${S}
35
	cd "${S}"
37
	sed -i '12s:^$DBlib_path =.*:$DBlib_path = "/usr/lib/php/adodb";:' \
36
	sed -i '12s:^$DBlib_path =.*:$DBlib_path = "/usr/lib/php/adodb";:' \
38
		acid_conf.php || die "sed acid_conf.php failed"
37
		acid_conf.php || die "sed acid_conf.php failed"
39
	sed -i '67s/($version\[0\] >= 4)/($version[0] >= 5) || &/' \
38
	sed -i '67s/($version\[0\] >= 4)/($version[0] >= 5) || &/' \
Lines 43-49 Link Here
43
src_install () {
42
src_install () {
44
	webapp_src_preinst
43
	webapp_src_preinst
45
44
46
	insinto ${MY_HTDOCSDIR}
45
	insinto "${MY_HTDOCSDIR}"
47
	doins *
46
	doins *
48
47
49
	webapp_src_install
48
	webapp_src_install

Return to bug 102825