app-backup/portage-snapper: new package, add 0.3.0

Signed-off-by: Keita Urashima <ursm@ursm.jp>
This commit is contained in:
Keita Urashima
2026-07-22 21:36:34 +09:00
parent 72f04ac9df
commit a324cf3abb
3 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST portage-snapper-0.3.0.tar.gz 5283 BLAKE2B 386d81ec247073f67aab3a07ab3cc045db9436bd4e6744106a412900fc2fd736392a8eac4243b0a7e9b45f5cb8250ba4cd8c006b77f0806722f8ee0ba9c923be SHA512 1dad1cd274223a69bbcb10481986568b50b9c8ffda0267fa4c53ea0b53e451ff0bf0280bc478681e4f34cdc788d47c341c6f8d0f3e24394a3eed43dc4a6379ce

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ursm@ursm.jp</email>
<name>Keita Urashima</name>
</maintainer>
<upstream>
<remote-id type="github">ursm/portage-snapper</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,34 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Snapper snapshots around Portage transactions, snap-pac style"
HOMEPAGE="https://github.com/ursm/portage-snapper"
SRC_URI="https://github.com/ursm/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="app-backup/snapper"
src_install() {
emake DESTDIR="${D}" install
einstalldocs
}
pkg_postinst() {
elog "The scripts are installed, but /etc/portage/ is left untouched."
elog "Enable portage-snapper manually:"
elog
elog " 1. Add to /etc/portage/bashrc:"
elog " source /usr/share/portage-snapper/hook.bash"
elog
elog " 2. Point /etc/portage/bin/post_emerge at it, e.g. as a symlink:"
elog " ln -s /usr/share/portage-snapper/post_emerge /etc/portage/bin/post_emerge"
elog " or call it from your own post_emerge wrapper."
elog
elog "Tune behavior in /etc/portage-snapper.conf. A configured snapper config"
elog "is required (default: root)."
}