# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A Gentoo Linux per-package message logger/reader" HOMEPAGE="http://www.fmp.com/enotice/" SRC_URI="mirror://gentoo/${P}_alpha.tar.gz http://www.fmp.com/enotice/${P}_alpha.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="" DEPEND=">=dev-lang/python-2.3 sys-libs/readline" src_install() { cd "${WORKDIR}/${P}_alpha" dodir /var/tmp/portage/enotice insinto /etc/portage/profile doins profile.bashrc exeinto /usr/sbin doexe enotice fperms 500 /usr/sbin/enotice doman enotice.1 dodoc README CHANGELOG } pkg_postinst() { if [[ -z "$PORT_ENOTICE_DIR" ]]; then ewarn 'PORT_ENOTICE_DIR is not defined in make.conf' ewarn 'You need to add the following to your make.conf:' ewarn 'PORT_ENOTICE_DIR="/var/tmp/portage/enotice/"' elog '' elog '"man enotice" for more config settings.' fi }