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 805EC1395E2 for ; Tue, 13 Dec 2016 01:43:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6471FE0CF2; Mon, 12 Dec 2016 08:52:52 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 2FD2BE0CF1 for ; Mon, 12 Dec 2016 08:52:52 +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 01565341063 for ; Mon, 12 Dec 2016 08:52:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6110524C1 for ; Mon, 12 Dec 2016 08:52:49 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1481532756.97a0d0ae0af66fc9dbe869678ddd2ff763329ea5.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/mlocate/files/, sys-apps/mlocate/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/mlocate/files/mlocate.cron-r2 sys-apps/mlocate/mlocate-0.26-r1.ebuild X-VCS-Directories: sys-apps/mlocate/files/ sys-apps/mlocate/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 97a0d0ae0af66fc9dbe869678ddd2ff763329ea5 X-VCS-Branch: master Date: Mon, 12 Dec 2016 08:52:49 +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: 37c9ce19-c81f-44f1-a45c-c405c8c349c3 X-Archives-Hash: 0d9c61841d74418065ca75a5b5d3ba5d commit: 97a0d0ae0af66fc9dbe869678ddd2ff763329ea5 Author: Lars Wendler gentoo org> AuthorDate: Mon Dec 12 08:52:36 2016 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Dec 12 08:52:36 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a0d0ae sys-apps/mlocate: Removed old. Package-Manager: Portage-2.3.3, Repoman-2.3.1 sys-apps/mlocate/files/mlocate.cron-r2 | 48 ------------------------- sys-apps/mlocate/mlocate-0.26-r1.ebuild | 63 --------------------------------- 2 files changed, 111 deletions(-) diff --git a/sys-apps/mlocate/files/mlocate.cron-r2 b/sys-apps/mlocate/files/mlocate.cron-r2 deleted file mode 100644 index cf42104..00000000 --- a/sys-apps/mlocate/files/mlocate.cron-r2 +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/sh -set -e - -# check if we run on battery and if so then don't run -if which on_ac_power >/dev/null 2>&1; then - ON_BATTERY=0 - on_ac_power >/dev/null 2>&1 || ON_BATTERY=$? - if [ "${ON_BATTERY}" -eq 1 ]; then - exit 0 - fi -fi - -# check if we are already running (lockfile) -LOCKFILE="/var/lock/mlocate.daily.lock" -if [ -e "${LOCKFILE}" ]; then - echo >&2 "Warning: \"${LOCKFILE}\" already present, not running updatedb." - exit 1 -fi -touch "${LOCKFILE}" -# trap the lockfile only if we really run the updatedb -trap "rm -f ${LOCKFILE}" EXIT - -# source the user specified variables -if [ -f /etc/mlocate-cron.conf ]; then - . /etc/mlocate-cron.conf -fi - -# check the config file -NODEVS="" -if [ ! -f /etc/updatedb.conf ]; then - NODEVS=$(awk '$1 == "nodev" && $2 != "rootfs" { print $2 }' /proc/filesystems) -fi - -# alter the priority of the updatedb process -if [ -x /usr/bin/renice ]; then - /usr/bin/renice +${NICE:-19} -p $$ > /dev/null 2>&1 -fi -if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then - /usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ > /dev/null 2>&1 -fi - -# run the updatedb if possible -if [ -x /usr/bin/updatedb ]; then - /usr/bin/updatedb -f "${NODEVS}" -else - echo >&2 "Warning: \"/usr/bin/updatedb\" is not executable, unable to run updatedb." - exit 0 -fi diff --git a/sys-apps/mlocate/mlocate-0.26-r1.ebuild b/sys-apps/mlocate/mlocate-0.26-r1.ebuild deleted file mode 100644 index a0895671..00000000 --- a/sys-apps/mlocate/mlocate-0.26-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=4 -inherit eutils user toolchain-funcs - -DESCRIPTION="Merging locate is an utility to index and quickly search for files" -HOMEPAGE="https://fedorahosted.org/mlocate/" -SRC_URI="https://fedorahosted.org/releases/m/l/mlocate/${P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" -IUSE="nls selinux" - -RDEPEND="!sys-apps/slocate - !sys-apps/rlocate - selinux? ( sec-policy/selinux-slocate )" -DEPEND="app-arch/xz-utils - nls? ( sys-devel/gettext ) -" - -pkg_setup() { - enewgroup locate -} - -src_configure() { - econf $(use_enable nls) -} - -src_compile() { - emake groupname=locate AR="$(tc-getAR)" -} - -src_install() { - emake groupname=locate DESTDIR="${D}" install - dodoc AUTHORS ChangeLog README NEWS - - insinto /etc - doins "${FILESDIR}"/updatedb.conf - doins "${FILESDIR}"/mlocate-cron.conf - fperms 0644 /etc/{updatedb,mlocate-cron}.conf - - insinto /etc/cron.daily - newins "${FILESDIR}"/mlocate.cron-r2 mlocate - fperms 0755 /etc/cron.daily/mlocate - - fowners 0:locate /usr/bin/locate - fperms go-r,g+s /usr/bin/locate - - keepdir /var/lib/mlocate - chown -R 0:locate "${ED}"/var/lib/mlocate - fperms 0750 /var/lib/mlocate -} - -pkg_postinst() { - elog "The database for the locate command is generated daily by a cron job," - elog "if you install for the first time you can run the updatedb command manually now." - elog - elog "Note that the /etc/updatedb.conf file is generic," - elog "please customize it to your system requirements." -}