# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-5.37.ebuild,v 1.1 2007/02/10 19:51:08 vapier Exp $ inherit flag-o-matic cvs autotools ECVS_SERVER="smartmontools.cvs.sourceforge.net:/cvsroot/smartmontools" ECVS_MODULE="sm5" S=${WORKDIR}/${ECVS_MODULE} DESCRIPTION="control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.)" HOMEPAGE="http://smartmontools.sourceforge.net/" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="-*" IUSE="static" RDEPEND="" DEPEND="" src_compile() { use static && append-ldflags -static eautoreconf || die econf || die emake || die } src_install() { dosbin smart{ctl,d} || die "dosbin" doman *.[58] dodoc AUTHORS CHANGELOG NEWS README TODO WARNINGS newdoc smartd.conf smartd.conf.example docinto examplescripts dodoc examplescripts/* rm -f "${D}"/usr/share/doc/${PF}/examplescripts/Makefile* insinto /etc doins smartd.conf newinitd "${FILESDIR}"/smartd.rc smartd newconfd "${FILESDIR}"/smartd.confd smartd } pkg_postinst() { elog "You need the 'mail' command if you configured smartd to send reports" elog "via email, 'emerge virtual/mailx' to get a mailer" }