# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod eutils DESCRIPTION="Cron with ATX power-up capability." HOMEPAGE="http://tcron.sf.net" SRC_URI="mirror://sourceforge/tcron/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="" src_unpack() { if ! linux_chkconfig_module RTC then if ! linux_chkconfig_present RTC then eerror "${PN} requires support for /dev/rtc" eerror "In your .config: CONFIG_RTC=y or CONFIG_RTC=m" eerror "Through 'make menuconfig':" eerror "Device Drivers -> Character devices -> Enhanced Real Time Clock Support [*]" eerror "If compiled as modules add rtc to /etc/modules.autoload/kernel-2.6" die fi fi if linux_chkconfig_present APM_RTC_IS_GMT then eerror "You must disable RTC stores time in GMT" eerror "In your .config uncoment lines starting with CONFIG_APM_RTC_IS_GMT" eerror "Through 'make menuconfig':" eerror "Power management options (ACPI, APM) -> APM (Advanced Power Management) BIOS Support -> RTC stores time in GMT [ ]" die fi unpack ${A} cd ${S} } src_compile() { emake || die "Make failed!" } src_install() { exeinto /usr/bin/ doexe idle-halt tcrontab exeinto /usr/sbin doexe tcrond insinto /usr/include doins tcron.h insinto /usr/lib doins *.so *.a tcrontab-ap fperms 755 /usr/lib/tcrontab-ap /usr/lib/libtcrontab-api.so fperms 633 /usr/lib/libtcrontab-api.a exeinto /etc/init.d/ newexe ${FILESDIR}/tcrond.init tcrond dodoc AUTHORS Changelog README README.api } pkg_postinst() { einfo "Remeber to add tcrond to your default init level" }