summaryrefslogtreecommitdiff
blob: ddafd3939e03595a9629aed0bfd0159f6f839be8 (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
45
46
47
48
49
50
51
52
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_V="19-Jul-2007"
MY_P="${PN}-${MY_V}"
DESCRIPTION="message board and file sharing client for freenet network"
HOMEPAGE="http://jtcfrost.sourceforge.net/"
SRC_URI=" mirror://sourceforge/jtcfrost/${MY_P}-source.zip
	mirror://sourceforge/jtcfrost/${MY_P}.zip"

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

DEPEND=">=virtual/jdk-1.5
	dev-java/ant
	app-arch/unzip"
RDEPEND=">=virtual/jdk-1.5
	|| ( net-p2p/freenet
	net-p2p/freenet-bin )"

S="${WORKDIR}/${PN}-wot"

RESTRICT="userpriv mirror"

pkg_setup() {
	enewgroup frost
}

src_unpack() {
	unpack ${A}
	cp -R lib "${S}"/
}

src_compile() {
	ant release
}

src_install() {
	into /opt/frost
	cp -R "${S}"/build/dist/* "${D}"/opt/frost/
	fowners :frost /opt/frost /opt/frost/config /opt/frost/downloads /opt/frost/store /opt/frost/exec
}

pkg_postinst() {
	chmod  g+w -R /opt/frost/config /opt/frost/downloads /opt/frost/store /opt/frost/exec
	einfo "Start frost with sh /opt/frost/frost.sh (you have to be in the frost-group)."
}