summaryrefslogtreecommitdiff
blob: 443ae01cff1ec5cb58d4c93f561aa94e59b5653e (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
53
54
55
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="message board and file sharing client for freenet network"
HOMEPAGE="http://jtcfrost.sourceforge.net/"
SRC_URI="http://dev.gentooexperimental.org/~tommy/frost-sources-${PV}.tar.bz2"
LICENSE="GPL-2"
IUSE=""
SLOT="0"
KEYWORDS="~x86"
RDEPEND=">=virtual/jdk-1.5
	|| ( net-p2p/freenet
	net-p2p/freenet-bin )"
DEPEND=">=virtual/jdk-1.5
	dev-java/ant"
S="${WORKDIR}/frost-wot"

pkg_setup() {
	enewgroup frost
}

src_compile() {
	ant
}

src_install() {
	cd build/dist
	rm *.bat doc/gpl.txt
	insinto /opt/frost
	dodoc help/* doc/* *txt
	rm -r help doc *txt
	doins -r *
	mkdir -p "${D}"opt/frost/{downloads,store,exec}
	echo "sh /opt/frost/frost.sh" >frost
	dobin frost
	fowners :frost /usr/bin/frost
	fperms o-rx /usr/bin/frost
	fowners -R :frost /opt/frost
}

pkg_postinst() {
	chmod  g+rw /opt/frost
	chmod  -R g+rw /opt/frost/config /opt/frost/downloads /opt/frost/store /opt/frost/exec
	elog "You have to be in the frost-group to start frost."
	elog "use 'gpasswd -a user frost' to add user to the frost-group."
}

pkg_postrm() {
	elog "If you dont want to use frost any more"
	elog "and dont want to keep your identities/other stuff"
	elog "remember to do 'rm -rf /opt/frost' to remove everything"
}