From: "Pascal Jäger" <pascal.jaeger@leimstift.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-backup/timeshift-autosnap/
Date: Mon, 4 Oct 2021 20:01:57 +0000 (UTC) [thread overview]
Message-ID: <1633377716.be32350c37465d1c618a0acdee200cbe950e5ad9.pascal.jaeger@gentoo> (raw)
commit: be32350c37465d1c618a0acdee200cbe950e5ad9
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Mon Oct 4 19:53:54 2021 +0000
Commit: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> 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 <pascal.jaeger <AT> 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'"
}
next reply other threads:[~2021-10-04 20:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-04 20:01 Pascal Jäger [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-05 19:24 [gentoo-commits] repo/proj/guru:dev commit in: app-backup/timeshift-autosnap/ Pascal Jäger
2021-10-08 19:06 Arthur Zamarin
2021-10-08 19:06 Arthur Zamarin
2021-11-03 11:28 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-11-03 11:28 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2024-06-06 9:07 Lucio Sauer
2024-06-06 12:55 Lucio Sauer
2024-07-18 17:25 Vitaly Zdanevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1633377716.be32350c37465d1c618a0acdee200cbe950e5ad9.pascal.jaeger@gentoo \
--to=pascal.jaeger@leimstift.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox