# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils java-pkg-2 java-ant-2 DESCRIPTION="Free P2P software that dramatically reduces the bandwidth needed to host large files" HOMEPAGE="http://dijjer.org/" SRC_URI="http://dijjer.jk3.us/releases/dijjer-src-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND=">=virtual/jre-1.4" DEPEND=">=virtual/jdk-1.4 ${RDEPEND} dev-java/ant-core" MY_P=${PN/dijjer/Dijjer} S=${WORKDIR}/${MY_P} src_compile() { eant jar } src_install() { java-pkg_dojar dist/lib/${PN}.jar exeinto /etc/init.d newexe ${FILESDIR}/dijjer-pkg-2.initd dijjer insinto /etc/conf.d newins ${FILESDIR}/dijjer-pkg-2.confd dijjer java-pkg_dolauncher ${PN} --jar ${PN}.jar exeinto /usr/bin newexe ${FILESDIR}/dijjer-config dijjer-config } pkg_preinst() { enewuser dijjer || die "problem adding user dijjer" } pkg_postinst() { einfo "You probably want to set Dijjer to start at boot by running" einfo " rc-update add dijjer default" einfo "To set Dijjer as the primary mirror for distfiles run" einfo " /usr/bin/dijjer-config gentoo-mirror" }