summaryrefslogtreecommitdiff
path: root/app-backup/snapper
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-18 01:46:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-18 01:46:36 +0100
commit81ab1a4db30480fdfb51d6e784b0f3ad9bbe2432 (patch)
tree5c2bb8712bddd53ef4c66cd7179cc7840e8c778f /app-backup/snapper
parent59fb6ea4eff116f078307a57217645762b78aba7 (diff)
gentoo auto-resync : 18:06:2023 - 01:46:36
Diffstat (limited to 'app-backup/snapper')
-rw-r--r--app-backup/snapper/Manifest2
-rw-r--r--app-backup/snapper/snapper-0.10.5.ebuild89
2 files changed, 91 insertions, 0 deletions
diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest
index a4ad29705733..0af2d3a099bb 100644
--- a/app-backup/snapper/Manifest
+++ b/app-backup/snapper/Manifest
@@ -3,6 +3,8 @@ AUX snapper-0.10.1-testsuite.patch 2525 BLAKE2B 0ece146356113d456ef0a56e46e76eae
AUX snapper-0.10.3-boost-1.81.patch 505 BLAKE2B 51111b4a6738efd7b9604c54dbb5754d3bef45ce5559d47902ea11cc4e550e5d14b41f5a65db19e631f0a3911fcba4149f153b527c2056cbf7186d41cd44bbc6 SHA512 b9d98ba08aef66b9ecefb4c9781569c71d198116e035307f96b02feb94a5284cf4aa963a11459e3f7d1c2519bc91f6214eac363d32ee129730f971f12ad0662e
DIST snapper-0.10.3.tar.gz 409277 BLAKE2B bc4963081a24572015ff888b5cb85f3afa071e487a89e89f1a72d5b96391be69ad982c79ddfd71f020203d0c50ca07d67cbeb535cd6e57bc3d6ee269ef5c788e SHA512 74cb04d045304021564a0452769fdcde1764595a52e30947396c37fe4c36b3fba08d10505734bc0bd631986e933ee2bfaf67c871cba93a96e498fbfe5e2c6985
DIST snapper-0.10.4.tar.gz 409357 BLAKE2B c2b33d917647118848dfd02315435d9dab21bcaade22b9da5a2d4d628c00731ecd9bbc7cedba223f618f336535ccba0ca92b065d572aab328337858dba76275f SHA512 f42bcfa541e1fff23f5057c9b38d93f31a28980ce1cd37e07bcf622ff9151bd98c42975610d59da0c33a9bee7d83290edbdd05e013839e4ca23f02e9a9f8c793
+DIST snapper-0.10.5.tar.gz 422114 BLAKE2B 35c4772fc84920755d5fe87cad4a73792692ab7a55bcbcae65f20bf2e0cbcfb79429a423a5b55a89dbfeba1ff0474741c884bc632daa997fbb86cec52b68e3ef SHA512 e710069374b805394d691f8060d2852e35960a965fd49bb59768ebcc53a615af1f36269adac2d916b5e3f1b3e42fb2a53049d8f1b8a6a8430e992fa0de49c235
EBUILD snapper-0.10.3.ebuild 2083 BLAKE2B 78d21c76ce6f1cc5e2e852a4c9d0ec89d7f408e508abe0822614980b3407c9cd6cdd4f584e71e1009a3fc3b7e8f65195188a068672b443d8912e4b137879aca7 SHA512 994e79d4db8a382919a22088bfb7c79a2793d73a62be1bd12c6dcd1c30fe68149a054306cc002fdad356005d50bd5865700122f27ede96d4df5bdd5d269b0a85
EBUILD snapper-0.10.4.ebuild 2048 BLAKE2B d730c1ea04297deeb262f9eba342bb54a93245575406ae913bd6d9b462ddbd25fe2f0afa0680bae2590f1dabb0d1a2b65076e6996d117839adfd926129eda5b1 SHA512 323eed8186bb058cd02eeccaa46efdbb4235f447a37aa5eacbb81095dbf40539284d22e88681985ad1799c410aff02b269e2970099b663d6e546627d76d67146
+EBUILD snapper-0.10.5.ebuild 2048 BLAKE2B 81d1af74eaf0c0154a8548f9752158a63e950317495100b70fb8eaf6aec6c0bc45888292e9215fa82891fd293c81652abf924527dd8bfb7d6640d73445e4a582 SHA512 3c2ec838a10edbbd9a3a7ff396d8b80cc56e5313f7fa0d995abab6c65c207d31ef86e550a7b419502042571beeda3472f3d3a55a9119aa44b8a1687844052962
MISC metadata.xml 1331 BLAKE2B 891a27fbae2ed364a26952def66b3e9e62be7025580d7b89f559f284888efed53476f4a8f5bcd7209c3c4de8494913a05354059004ef6c3aa6c1829a3e093efb SHA512 add8dffdf453f079d09f06608cae732ce61e04a5fac1988afb0733c8d60a943efe054a4973e54ca1cf304ad3d3778fd8aa6b01fc16815a1f42f83048d58adb63
diff --git a/app-backup/snapper/snapper-0.10.5.ebuild b/app-backup/snapper/snapper-0.10.5.ebuild
new file mode 100644
index 000000000000..1a6c2c9abb0c
--- /dev/null
+++ b/app-backup/snapper/snapper-0.10.5.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools systemd
+
+DESCRIPTION="Command-line program for btrfs and lvm snapshot management"
+HOMEPAGE="http://snapper.io/"
+SRC_URI="https://github.com/openSUSE/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE="doc lvm pam test systemd xattr"
+RESTRICT="test"
+
+RDEPEND="dev-libs/boost:=
+ dev-libs/json-c:=
+ dev-libs/libxml2
+ dev-libs/icu:=
+ sys-apps/acl
+ sys-apps/dbus
+ sys-apps/util-linux
+ >=sys-fs/btrfs-progs-3.17.1
+ sys-libs/zlib
+ virtual/libintl
+ lvm? ( sys-fs/lvm2 )
+ pam? ( sys-libs/pam )
+ xattr? ( sys-apps/attr )"
+
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/cron-confd.patch
+ "${FILESDIR}"/${PN}-0.10.1-testsuite.patch
+)
+
+src_prepare() {
+ default
+
+ sed -e "s,/usr/lib/systemd/system,$(systemd_get_systemunitdir),g" \
+ -i data/Makefile.* \
+ || die "Failed to fix systemd services and timers installation path"
+ eautoreconf
+}
+
+src_configure() {
+ # ext4 code does not work anymore
+ # snapper does not build without btrfs
+ local myeconfargs=(
+ --disable-silent-rules
+ --with-conf="/etc/conf.d"
+ --enable-zypp
+ --enable-rollback
+ --enable-btrfs-quota
+ --disable-ext4
+ --enable-btrfs
+ $(use_enable doc)
+ $(use_enable lvm)
+ $(use_enable pam)
+ $(use_enable test tests)
+ $(use_enable systemd)
+ $(use_enable xattr xattrs)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ # Existing configuration file required to function
+ keepdir /etc/snapper/configs
+ newconfd data/sysconfig.snapper snapper
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ elog "In order to use Snapper, you need to set up"
+ elog "at least one config first. To do this, run:"
+ elog "snapper create-config <subvolume>"
+ elog "For more information, see man (8) snapper or"
+ elog "http://snapper.io/documentation.html and"
+ elog "https://wiki.gentoo.org/wiki/Snapper"
+}