# Copyright 1999-2004 Gentoo Technologies, Inc.; acid.punk@gmx.net # Distributed under the terms of the GNU General Public License v2 # $Header: /usr/local/cvs/gbd/ebuild/gbd-1.2.8.ebuild,v 1.1 2004/08/14 16:30:49 dma147 Exp $ DESCRIPTION="Gentoo buildtime database client" HOMEPAGE="http://www.gentoo-stats.org" SRC_URI="http://www.gentoo-stats.org/download/${P}.tar.gz" KEYWORDS="~x86 ~sparc ~mips ~hppa ~ppc ~amd64 ~arm" SLOT="0" LICENSE="GPL-2" IUSE="" RESTRICT="nomirror" RDEPEND="app-portage/gentoolkit >=app-portage/uhinv-0.3" src_compile() { sed -i "s:/usr/local:/usr:g" client/gbd sed -i "s:/usr/local:/usr:g" smt-detect/smt-detect.sh cd smt-detect gcc -pipe -o smt-detect smt-detect.c || die "compiling smt-detect.c failed" } src_install() { exeinto /usr/bin doexe client/gbd client/ce.sh \ smt-detect/smt-detect smt-detect/smt-detect.sh } pkg_postinst() { einfo einfo einfo "We will now start the client for the first time." einfo "If you've already installed an older version, that does not matter." einfo "You will keep your UNIQUE_KEY." einfo einfo "If you want to automatically start the client every 24h, you must" einfo "set up a cronjob as root. For example:" einfo "0 0 * * * /usr/bin/gbd -q >/dev/null 2>&1" einfo "This will start the client every day at 00:00am" einfo einfo /usr/bin/gbd -u }