# Copyright 1999-2008 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" }