1 |
commit: be32350c37465d1c618a0acdee200cbe950e5ad9 |
2 |
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
3 |
AuthorDate: Mon Oct 4 19:53:54 2021 +0000 |
4 |
Commit: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> |
5 |
CommitDate: Mon Oct 4 20:01:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=be32350c |
7 |
|
8 |
app-backup/timeshift-autosnap: changed postinst to a massage to the user |
9 |
|
10 |
Package-Manager: Portage-3.0.26, Repoman-3.0.3 |
11 |
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> |
12 |
|
13 |
app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild | 9 +++++---- |
14 |
1 file changed, 5 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild |
17 |
index 2f2de478e..00aa5efc9 100644 |
18 |
--- a/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild |
19 |
+++ b/app-backup/timeshift-autosnap/timeshift-autosnap-0.9.ebuild |
20 |
@@ -3,7 +3,7 @@ |
21 |
|
22 |
EAPI=8 |
23 |
|
24 |
-DESCRIPTION="Automatically creats a snapshot everytime before portage installs a package" |
25 |
+DESCRIPTION="Automatically creates a timeshift-snapshot when executed" |
26 |
HOMEPAGE="https://gitlab.com/gobonja/timeshift-autosnap" |
27 |
SRC_URI="https://gitlab.com/gobonja/timeshift-autosnap/-/archive/${PV}/{$P}.tar.gz -> ${P}.tar.gz" |
28 |
|
29 |
@@ -37,7 +37,8 @@ src_install(){ |
30 |
} |
31 |
|
32 |
pkg_postinst() { |
33 |
- touch /etc/portage/bashrc |
34 |
- grep -q '#!/bin/' /etc/portage/bashrc || awk -i inplace 'BEGINFILE{print "#!/bin/sh"}{print}' /etc/portage/bashrc |
35 |
- grep -q 'timeshift-autosnap' /etc/portage/bashrc || echo 'function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }' >> /etc/portage/bashrc |
36 |
+ echo "to run timeshift-autosnap everytime you emerge a package run: |
37 |
+'touch /etc/portage/bashrc' |
38 |
+'grep -q '#!/bin/' /etc/portage/bashrc || awk -i inplace 'BEGINFILE{print "#!/bin/sh"}{print}' /etc/portage/bashrc |
39 |
+'grep -q 'timeshift-autosnap' /etc/portage/bashrc || echo 'function pre_pkg_setup() { /usr/bin/timeshift-autosnap ; }' >> /etc/portage/bashrc'" |
40 |
} |