From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3FF7A13832E for ; Tue, 26 Jul 2016 11:36:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D63C3E08C5; Tue, 26 Jul 2016 11:36:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6AA24E08C5 for ; Tue, 26 Jul 2016 11:36:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE648340BBF for ; Tue, 26 Jul 2016 11:36:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E6EF7D5 for ; Tue, 26 Jul 2016 11:35:52 +0000 (UTC) From: "José María Alonso" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "José María Alonso" Message-ID: <1469532943.bc23def39c3c70c8ee0eae0f0d9ce77dfb4169d8.nimiux@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/logrotate/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/logrotate/logrotate-3.9.2-r1.ebuild X-VCS-Directories: app-admin/logrotate/ X-VCS-Committer: nimiux X-VCS-Committer-Name: José María Alonso X-VCS-Revision: bc23def39c3c70c8ee0eae0f0d9ce77dfb4169d8 X-VCS-Branch: master Date: Tue, 26 Jul 2016 11:35:52 +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: 3febbe40-2b45-43b1-af76-855d8fb27157 X-Archives-Hash: 8eb7586f19abd03ea152ab3457fd21ed commit: bc23def39c3c70c8ee0eae0f0d9ce77dfb4169d8 Author: Chema Alonso Josa gentoo org> AuthorDate: Tue Jul 26 11:35:43 2016 +0000 Commit: José María Alonso gentoo org> CommitDate: Tue Jul 26 11:35:43 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc23def3 app-admin/logrotate: Bump to install binary under /usr/bin Fixes bug #588156 Package-Manager: portage-2.2.28 app-admin/logrotate/logrotate-3.9.2-r1.ebuild | 86 +++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/app-admin/logrotate/logrotate-3.9.2-r1.ebuild b/app-admin/logrotate/logrotate-3.9.2-r1.ebuild new file mode 100644 index 0000000..62b75e9 --- /dev/null +++ b/app-admin/logrotate/logrotate-3.9.2-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Rotates, compresses, and mails system logs" +HOMEPAGE="https://fedorahosted.org/logrotate/" +SRC_URI="https://github.com/logrotate/logrotate/archive/${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="acl +cron selinux" + +CDEPEND=" + >=dev-libs/popt-1.5 + selinux? ( + sys-libs/libselinux + ) + acl? ( virtual/acl )" + +DEPEND="${CDEPEND} + >=sys-apps/sed-4" + +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-logrotate ) + cron? ( virtual/cron )" + +install_cron_file() { + exeinto /etc/cron.daily + newexe "${S}"/examples/logrotate.cron "${PN}" +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ignore-hidden.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-noasprintf.patch \ + "${FILESDIR}"/${P}-atomic-create.patch \ + "${FILESDIR}"/${P}-Werror.patch \ + "${FILESDIR}"/${P}-lfs.patch + eautoreconf +} + +src_configure() { + econf $(use_with acl) $(use_with selinux) +} + +src_compile() { + emake ${myconf} RPM_OPT_FLAGS="${CFLAGS}" +} + +src_test() { + emake test +} + +src_install() { + insinto /usr + dobin logrotate + doman logrotate.8 + dodoc CHANGES examples/logrotate* + + insinto /etc + doins "${FILESDIR}"/logrotate.conf + + use cron && install_cron_file + + keepdir /etc/logrotate.d +} + +pkg_postinst() { + elog "The ${PN} binary is now installed under /usr/bin. Please" + elog "update your links" + elog + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog "If you wish to have logrotate e-mail you updates, please" + elog "emerge virtual/mailx and configure logrotate in" + elog "/etc/logrotate.conf appropriately" + elog + elog "Additionally, /etc/logrotate.conf may need to be modified" + elog "for your particular needs. See man logrotate for details." + fi +}