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 (-16 / +14 lines)
Lines 1-39 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"
12
12
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
KEYWORDS="~amd64 ~ppc ~x86"
14
KEYWORDS="~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
24
need_php4
25
need_apache
26
27
pkg_setup() {
27
pkg_setup() {
28
	webapp_pkg_setup
28
	webapp_pkg_setup
29
30
	need_php4
31
	require_php_with_use gd session
29
	require_php_with_use gd session
32
}
30
}
33
31
34
src_unpack() {
32
src_unpack() {
35
	unpack ${A}
33
	unpack ${A}
36
	cd ${S}
34
	cd "${S}"
37
	sed -i '12s:^$DBlib_path =.*:$DBlib_path = "/usr/lib/php/adodb";:' \
35
	sed -i '12s:^$DBlib_path =.*:$DBlib_path = "/usr/lib/php/adodb";:' \
38
		acid_conf.php || die "sed acid_conf.php failed"
36
		acid_conf.php || die "sed acid_conf.php failed"
39
	sed -i '67s/($version\[0\] >= 4)/($version[0] >= 5) || &/' \
37
	sed -i '67s/($version\[0\] >= 4)/($version[0] >= 5) || &/' \
Lines 43-49 Link Here
43
src_install () {
41
src_install () {
44
	webapp_src_preinst
42
	webapp_src_preinst
45
43
46
	insinto ${MY_HTDOCSDIR}
44
	insinto "${MY_HTDOCSDIR}"
47
	doins *
45
	doins *
48
46
49
	webapp_src_install
47
	webapp_src_install

Return to bug 102825