From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 779CE139357 for ; Mon, 10 Aug 2015 08:00:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 708FD1426D; Mon, 10 Aug 2015 08:00:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6B9514272 for ; Mon, 10 Aug 2015 08:00:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 08FAA340836 for ; Mon, 10 Aug 2015 08:00:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F072214B for ; Mon, 10 Aug 2015 08:00:15 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1439193586.53d6602802df3a14d37b3ece87348de708e3e4a2.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/anacron/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/anacron/anacron-2.3-r3.ebuild X-VCS-Directories: sys-process/anacron/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 53d6602802df3a14d37b3ece87348de708e3e4a2 X-VCS-Branch: master Date: Mon, 10 Aug 2015 08:00:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6b6687a6-4cde-4569-bd5d-d67ff2c60c47 X-Archives-Hash: 5928a5788f5719ce501389f95cc5c669 commit: 53d6602802df3a14d37b3ece87348de708e3e4a2 Author: Mike Frysinger gentoo org> AuthorDate: Mon Aug 10 07:26:12 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Aug 10 07:59:46 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53d66028 anacron: EAPI: update to 5 This allows us to show the elog messages only once on initial install. sys-process/anacron/anacron-2.3-r3.ebuild | 32 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/sys-process/anacron/anacron-2.3-r3.ebuild b/sys-process/anacron/anacron-2.3-r3.ebuild index 22fd43f..d68bb79 100644 --- a/sys-process/anacron/anacron-2.3-r3.ebuild +++ b/sys-process/anacron/anacron-2.3-r3.ebuild @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +EAPI="5" + inherit eutils DESCRIPTION="a periodic command scheduler" @@ -17,17 +19,11 @@ DEPEND="sys-process/cronbase" RDEPEND="${RDEPEND} virtual/mta" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch sed -i "s:^CFLAGS =:CFLAGS = $CFLAGS:" Makefile } -src_compile() { - emake || die -} - src_install() { #this does not work if the directory exists already diropts -m0750 -o root -g cron @@ -47,14 +43,16 @@ src_install() { } pkg_postinst() { - elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably" - elog "at some early morning hour). This will make sure that jobs are run" - elog "when the systems is left running for a night." - echo - elog "Update /etc/anacrontab to include what you want anacron to run." - - echo - elog "You may wish to read the Gentoo Linux Cron Guide, which can be" - elog "found online at:" - elog " http://www.gentoo.org/doc/en/cron-guide.xml" + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "Schedule the command \"anacron -s\" as a daily cron-job (preferably" + elog "at some early morning hour). This will make sure that jobs are run" + elog "when the systems is left running for a night." + echo + elog "Update /etc/anacrontab to include what you want anacron to run." + + echo + elog "You may wish to read the Gentoo Linux Cron Guide, which can be" + elog "found online at:" + elog " http://www.gentoo.org/doc/en/cron-guide.xml" + fi }