# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Cricket is a high performance, extremely flexible system for monitoring trends in time-series data." HOMEPAGE="http://cricket.sourceforge.org" SRC_URI="mirror://sourceforge/cricket/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64 ~sparc ~ppc ~alpha ~mips ~hppa ~ia64 ~ppc64 ~s390" #should work everywhere where perl does DEPEND=">=dev-lang/perl-5.0.4" # the configure script ist a perl one :) RDEPEND="net-analyzer/rrdtool dev-perl/Digest-MD5 dev-perl/libwww-perl dev-perl/DB_File dev-perl/TimeDate dev-perl/Time-HiRes dev-perl/SNMP_Session" pkg_setup() { enewgroup cricket enewuser cricket -1 /bin/false /dev/null cricket } src_compile() { econf || die "./configure failed :/" } src_install() { diropts -m0750 dodir /var/lib/cricket dodir /var/lib/cricket/cricket-config mv ${WORKDIR}/${P} ${D}/var/lib/cricket dosym /var/lib/cricket/${P} /var/lib/cricket/cricket #dirty command follows now coz fowners won't accept -R #and I did not find similar command :) chown cricket:cricket -Rf ${D}/var/lib/cricket* } pkg_postinst() { einfo "cricket has been installed to /var/lib/cricket/${P} and a symlink has been set." einfo "check doc/beginner.html for your first steps :)" einfo "add something like" einfo "*/5 * * * * /var/lib/cricket/cricket/collect-subtrees normal >/dev/null 2>&1" einfo "to your cricket user and do not forget to run ./compile before you do so .)" }