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 C2DB9158018 for ; Mon, 4 Oct 2021 20:02:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD743E08A2; Mon, 4 Oct 2021 20:02:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B45EAE08A2 for ; Mon, 4 Oct 2021 20:02:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45B55342DB3 for ; Mon, 4 Oct 2021 20:01:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C05B3129 for ; Mon, 4 Oct 2021 20:01:57 +0000 (UTC) From: "Pascal Jäger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pascal Jäger" Message-ID: <1633377716.be32350c37465d1c618a0acdee200cbe950e5ad9.pascal.jaeger@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-backup/timeshift-autosnap/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild X-VCS-Directories: app-backup/timeshift-autosnap/ X-VCS-Committer: pascal.jaeger X-VCS-Committer-Name: Pascal Jäger X-VCS-Revision: be32350c37465d1c618a0acdee200cbe950e5ad9 X-VCS-Branch: dev Date: Mon, 4 Oct 2021 20:01:57 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7347d449-e8ce-48b4-95fd-48c00e0c6086 X-Archives-Hash: 18fb59f3d9617b7634f0d661c5f1a475 commit: be32350c37465d1c618a0acdee200cbe950e5ad9 Author: Pascal Jäger leimstift de> AuthorDate: Mon Oct 4 19:53:54 2021 +0000 Commit: Pascal Jäger leimstift de> CommitDate: Mon Oct 4 20:01:56 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=be32350c app-backup/timeshift-autosnap: changed postinst to a massage to the user Package-Manager: Portage-3.0.26, Repoman-3.0.3 Signed-off-by: Pascal Jäger leimstift.de> app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild index 2f2de478e..00aa5efc9 100644 --- a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild +++ b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild @@ -3,7 +3,7 @@ EAPI=8 -DESCRIPTION="Automatically creats a snapshot everytime before portage installs a package" +DESCRIPTION="Automatically creates a timeshift-snapshot when executed" HOMEPAGE="https://gitlab.com/gobonja/timeshift-autosnap" SRC_URI="https://gitlab.com/gobonja/timeshift-autosnap/-/archive/${PV}/{$P}.tar.gz -> ${P}.tar.gz" @@ -37,7 +37,8 @@ src_install(){ } pkg_postinst() { - touch /etc/portage/bashrc - grep -q '#!/bin/' /etc/portage/bashrc || awk -i inplace 'BEGINFILE{print "#!/bin/sh"}{print}' /etc/portage/bashrc - grep -q 'timeshift-autosnap' /etc/portage/bashrc || echo 'function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }' >> /etc/portage/bashrc + echo "to run timeshift-autosnap everytime you emerge a package run: +'touch /etc/portage/bashrc' +'grep -q '#!/bin/' /etc/portage/bashrc || awk -i inplace 'BEGINFILE{print "#!/bin/sh"}{print}' /etc/portage/bashrc +'grep -q 'timeshift-autosnap' /etc/portage/bashrc || echo 'function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }' >> /etc/portage/bashrc'" }