2008-01-19 17:56:15 +01:00
|
|
|
# Copyright 1999-2008 Gentoo Foundation
|
2007-10-07 14:40:45 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2008-01-19 16:57:22 +01:00
|
|
|
inherit java-pkg-2 eutils java-ant-2
|
2007-10-07 14:40:45 +02:00
|
|
|
|
2008-01-19 17:56:15 +01:00
|
|
|
MY_V=1.1.1
|
2007-10-07 14:40:45 +02:00
|
|
|
|
2008-08-21 08:39:26 +02:00
|
|
|
DESCRIPTION="A Java based remote management console used for Managing Fedora Administration / Directory Server."
|
2007-10-07 14:40:45 +02:00
|
|
|
HOMEPAGE="http://directory.fedoraproject.org/"
|
2008-01-19 16:57:22 +01:00
|
|
|
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
|
2007-10-07 14:40:45 +02:00
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="1.1"
|
2008-08-21 08:39:26 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2007-10-07 14:40:45 +02:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
COMMON_DEP="=dev-java/jss-4*
|
|
|
|
>=dev-java/ldapsdk-4.0
|
|
|
|
>=dev-java/idm-console-framework-1.1"
|
|
|
|
RDEPEND="=virtual/jre-1.5*
|
|
|
|
${COMMON_DEP}"
|
|
|
|
DEPEND=">=virtual/jdk-1.5
|
|
|
|
${COMMON_DEP}"
|
2008-08-21 08:39:26 +02:00
|
|
|
|
2007-10-07 14:40:45 +02:00
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
2008-08-21 08:39:26 +02:00
|
|
|
cd "${S}"
|
2007-10-07 14:40:45 +02:00
|
|
|
java-pkg_jarfrom ldapsdk-4.1 ldapjdk.jar
|
|
|
|
java-pkg_jarfrom jss-3.4 xpclass.jar jss4.jar
|
|
|
|
java-pkg_jarfrom idm-console-framework-1.1
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2008-08-21 08:39:26 +02:00
|
|
|
eant -Dbuilt.dir="${S}"/build \
|
|
|
|
-Dldapjdk.local.location="${S}" \
|
|
|
|
-Djss.local.location="${S}" \
|
|
|
|
-Dconsole.local.location="${S}" ${antflags}
|
2007-10-07 14:40:45 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2008-08-21 08:39:26 +02:00
|
|
|
java-pkg_newjar "${S}"/build/fedora-idm-console-${MY_V}_en.jar fedora-idm-console_en.jar
|
2007-10-07 14:40:45 +02:00
|
|
|
java-pkg_dolauncher ${PN} --main com.netscape.management.client.console.Console \
|
2007-10-16 15:11:44 +02:00
|
|
|
--pwd "/usr/share/dirsrv/java/" \
|
2007-10-07 14:40:45 +02:00
|
|
|
--pkg_args "-Djava.util.prefs.systemRoot=\"\$HOME/.${PN}\" -Djava.util.prefs.userRoot=\"\$HOME/.${PN}\""
|
|
|
|
|
2008-08-21 08:39:26 +02:00
|
|
|
newicon "${S}"/com/netscape/management/client/theme/images/logo32.gif fedora.gif
|
|
|
|
make_desktop_entry ${PN} "Fedora Management Console" fedora.gif Network
|
2007-10-07 14:40:45 +02:00
|
|
|
}
|