# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Library for ebox (SOHO LDAP/Samba/PDC-server, firewall, ...)"
HOMEPAGE="http://ebox-platform.com/"
SRC_URI="http://ebox-platform.com/releases/${PV}/${P}.tar.gz"

LICENSE="gpl2"
SLOT="0"
KEYWORDS="~x86"

IUSE=""
DEPEND="dev-lang/perl
	app-admin/sudo
	dev-perl/log-dispatch
	dev-perl/Log-Log4perl
	dev-perl/Locale-gettext
	dev-perl/Net-IP
	dev-perl/Error
	dev-perl/Devel-StackTrace
	dev-perl/HTML-Mason
	sys-devel/gettext"

src_compile() {
	econf --localstatedir=${ROOT}/var/ || die "Configure died"
	emake || die "Make failed"
}

src_install() {
	make install DESTDIR=${D} || die "Install failed"
}