diff options
Diffstat (limited to 'app-backup')
-rw-r--r-- | app-backup/Manifest.gz | bin | 7868 -> 7867 bytes | |||
-rw-r--r-- | app-backup/snapper/Manifest | 3 | ||||
-rw-r--r-- | app-backup/snapper/files/snapper-0.11.0-cron-confd.patch | 18 | ||||
-rw-r--r-- | app-backup/snapper/snapper-0.11.0.ebuild | 90 |
4 files changed, 111 insertions, 0 deletions
diff --git a/app-backup/Manifest.gz b/app-backup/Manifest.gz Binary files differindex 3b39de935f68..26ce4bb2e7ec 100644 --- a/app-backup/Manifest.gz +++ b/app-backup/Manifest.gz diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest index 26535e58d133..7405b7dfc7e7 100644 --- a/app-backup/snapper/Manifest +++ b/app-backup/snapper/Manifest @@ -1,7 +1,10 @@ AUX cron-confd.patch 916 BLAKE2B 52672e59ebbfde9dd120516d9c0fb80443b8bfe38d08ec943956005a3d07aa1ed3e9273c572730722a02d3b841859dbc8d3fa81e89e87d6958251abec016716c SHA512 7f0872b14f1fa6b3c7990a9b219a0b2c0b941b1376fb89eda6e4fdf4b3b37818d0114febdb21d2432f5b1c08f1ba4354936d556c1c26953a0fe0f3196d699aa7 AUX snapper-0.10.1-testsuite.patch 2525 BLAKE2B 0ece146356113d456ef0a56e46e76eae1f9509e3b454459499fa457119c75a9e5fecb85d5530caaab340cea7f4deba0f155ac9e31706ab3899372c45e381cf77 SHA512 e0e1a4ed7c9ef069bc0bc5449f784c2deda1ce6851e98ca6d04c03988361f00e06b6a4f347671ee905f496dba19f8dffa64e5bdcba89f547292fc9c8d276ecd7 +AUX snapper-0.11.0-cron-confd.patch 424 BLAKE2B beb358e0405a680963fc5776dc2bdd6de36958c53579d4097dd43655a4e4abd1dba0eaeff789da435b7f6fd13993e2dca29f07dd0b29e9bfcb29fa31c3623848 SHA512 1ac7ed0de6be97219282bcff82ebb0c62a9ae1a8869fd8e1246dc06b20aac81e3f95d306198d29d69223226b4efd5b1f4555b3280935f09c1c374803236c1bee DIST snapper-0.10.6.tar.gz 423867 BLAKE2B a7d0f8c62c60c0d03bf108a8c0692dd209f170cf8227512cbc3b80eb9f58ecca845aa585859032bc6582d67e4c6ff15b75443a9ee9291d1b970efec15513571f SHA512 6eedfb9408260331f042f0a429a1104136cb88dac450f320641b0941cd06faf52f67cad2397cf4122f919876bb994455da0cfd3bb099f82217050e07b4c77d2e DIST snapper-0.10.7.tar.gz 428482 BLAKE2B 43c48d978296901f6584cef258ec3723de97b1d6b4b4a5b6bc39649f28b3300919616c65b8fcdb97b3ebcab08d04e4583713eef146721367de24513e80113b45 SHA512 bf098c941735b60554ff0711fa43b30ef3634e01178f5ee8ad44c65b757c3366bd5bf568cef3a787b2ddcc2fc63090056109250480e6bd360ebf27a8343373b8 +DIST snapper-0.11.0.tar.gz 445685 BLAKE2B 301e6d745d8d6d7acc6ca0c9fc431a0e46700aabd9882785bb2be38152693f9dbe897f85f6ad724c9529a0754b6146b53dda0a24141b386e59e7737855bc5da2 SHA512 fe86be4ceb1439b5be3fa61f5bc037bc51a5fe47451d0698851f83e2783d6c245ef8d40a33f79b03e8d1d8b63433743c35938ad7dca0747e0e1f650a5a766c40 EBUILD snapper-0.10.6.ebuild 2047 BLAKE2B 2edd21d85fbc8d3a750ae08a9961dcb8b6470d46095208dfd0b1c1b024b05db281118fd60697305b3f449ad4967e199acb8862faa8f84eb649cd196fd569c971 SHA512 c71f9432028a102fbfc5d0dc47194f3714e5834514bf3a7c0a2e2a9452824c5ae751de5b777bf6c6840edf73b63331f1f850b67f84283cf5241cef9abf16b45b EBUILD snapper-0.10.7.ebuild 2049 BLAKE2B 795e6947da7d2d2c68d24e612ce442fdec03c22584c1d4b85a8d36413b2e555ca4719c6223591cf92e441c15b6069cd29bd869519c99b2f23d54fd0fbb4225e0 SHA512 101ad55fd0be1fa87923bb57114280e626cf84ac22c0a7056f002276b71061e2ad0b3573e9d56dd500bff4b419a180a6c9c70b6be7d44340953f863249dfe93b +EBUILD snapper-0.11.0.ebuild 2054 BLAKE2B c58e9c9ae9dc006221778c50c6d0727b384d32d4390e280e474e1496fb8155a3cd4448ed725b2dbd679ee7dd90d6bf42b4baa321a74f99290be036374b4d5eec SHA512 ce00a62a1848d756c5174ce4ac3b29ff042494ff5644f4618d2777dde9708b1a89018bbd4a78d4a6c203801e2775a7e4fdb98ec5a30ce6dc8bb375650827b500 MISC metadata.xml 1331 BLAKE2B 891a27fbae2ed364a26952def66b3e9e62be7025580d7b89f559f284888efed53476f4a8f5bcd7209c3c4de8494913a05354059004ef6c3aa6c1829a3e093efb SHA512 add8dffdf453f079d09f06608cae732ce61e04a5fac1988afb0733c8d60a943efe054a4973e54ca1cf304ad3d3778fd8aa6b01fc16815a1f42f83048d58adb63 diff --git a/app-backup/snapper/files/snapper-0.11.0-cron-confd.patch b/app-backup/snapper/files/snapper-0.11.0-cron-confd.patch new file mode 100644 index 000000000000..c1fc5c692c71 --- /dev/null +++ b/app-backup/snapper/files/snapper-0.11.0-cron-confd.patch @@ -0,0 +1,18 @@ +diff --git a/scripts/snapper-hourly b/scripts/snapper-hourly +index 36a41f5..f36d8ec 100755 +--- a/scripts/snapper-hourly ++++ b/scripts/snapper-hourly +@@ -9,10 +9,10 @@ export PATH + + + # +-# get information from /etc/sysconfig/snapper ++# get information from /etc/conf.d/snapper + # +-if [ -f /etc/sysconfig/snapper ] ; then +- . /etc/sysconfig/snapper ++if [ -f /etc/conf.d/snapper ] ; then ++ . /etc/conf.d/snapper + fi + + diff --git a/app-backup/snapper/snapper-0.11.0.ebuild b/app-backup/snapper/snapper-0.11.0.ebuild new file mode 100644 index 000000000000..0e9331554272 --- /dev/null +++ b/app-backup/snapper/snapper-0.11.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 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="lvm pam test systemd xattr" +RESTRICT="test" + +BDEPEND="app-text/docbook-xsl-stylesheets + dev-libs/libxslt + sys-devel/gettext + virtual/pkgconfig" + +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}" + +PATCHES=( + "${FILESDIR}"/${P}-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 + --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" +} |