Install this version:
emerge -a =app-backup/timeshift-autosnap-0.9
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-backup/timeshift-autosnap-0.9
Or alternatively:
emerge --autounmask-write -a =app-backup/timeshift-autosnap-0.9
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature readme.gentoo-r1
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.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="app-backup/timeshift"
PATCHES=( "${FILESDIR}/${PN}-remove-arch-specific.patch" )
bashrc=/etc/portage/bashrc
DISABLE_AUTOFORMATTING=1
DOC_CONTENTS="to run timeshift-autosnap everytime you emerge a package run:
# touch ${bashrc}
# grep -q '#!/bin/' ${bashrc} || awk -i inplace 'BEGINFILE{print '#!/bin/sh'}{print}' ${bashrc}
# grep -q timeshift-autosnap ${bashrc} || echo '
function pre_pkg_setup() {
/usr/bin/timeshift-autosnap ;
}' >> ${bashrc}"
src_install(){
dobin timeshift-autosnap
insinto /etc
doins timeshift-autosnap.conf
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
optfeature "grub-btrfs snapshot support" app-backup/grub-btrfs
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | timeshift-autosnap-0.9.tar.bz2 | 2916 bytes | https://gitlab.com/gobonja/timeshift-autosnap/-/archive/0.9/timeshift-autosnap-0.9.tar.bz2 |