summaryrefslogtreecommitdiff
blob: f04b3cbc98c3243f5552e1303df7b64708457a52 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils java-pkg-2 java-ant-2 eutils

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

pkg_setup() {
	enewgroup frost
}

src_compile() {
	eant distro
}

src_install() {
	echo "sh /opt/frost/frost.sh" >frost
	dobin frost
	cd build/dist
	insinto /opt/frost
	dodoc *txt doc/authors.txt
	doins frost.sh frost.jar
	doins -r config downloads exec lib
	dodir -p /opt/frost/store
	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' do remove everything"
}