# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="network-cron" DESCRIPTION="CHRiSNEW's SigInfo Updater" SRC_URI="http://siginfo.verfriemelt.org/download/linux/siginfoupdater-${PV}.tar.gz" HOMEPAGE="http://www.siginfo.de/" LICENSE="as-is" KEYWORDS="~x86 ~amd64 -*" SLOT="0" src_compile() { gcc ${CFLAGS} -o ${WORKDIR}/${PN} ${WORKDIR}/src/${P}.c } src_install() { dobin ${WORKDIR}/${PN} dodoc ${WORKDIR}/src/README use network-cron || return 0 exeinto /etc/cron.hourly newexe "${FILESDIR}"/siginfoupdater.cron siginfoupdater || die } pkg_postinst() { einfo "Start /usr/bin/siginfoupdater to create /etc/siginfo.conf" einfo "Just follow the instructions ..." if !use network-cron; then einfo "If you want to create every hour a new dynamic signature" einfo "enable the use flag network-cron to create a cron file" fi }