mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
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@leimstift.de>
This commit is contained in:
@@ -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'"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user