summaryrefslogtreecommitdiff
path: root/community/snapper/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/snapper/PKGBUILD')
-rw-r--r--community/snapper/PKGBUILD21
1 files changed, 17 insertions, 4 deletions
diff --git a/community/snapper/PKGBUILD b/community/snapper/PKGBUILD
index 21089c7c9..656441fa7 100644
--- a/community/snapper/PKGBUILD
+++ b/community/snapper/PKGBUILD
@@ -3,16 +3,20 @@
pkgname=snapper
pkgver=0.2.3
-pkgrel=1
+pkgrel=2
pkgdesc="A tool for managing BTRFS and LVM snapshots. It can create, diff and restore snapshots and provides timelined auto-snapping."
arch=('i686' 'x86_64')
url="http://snapper.io"
license=('GPL2')
depends=('btrfs-progs' 'libxml2' 'dbus' 'boost-libs' 'acl')
-makedepends=('boost' 'lvm2' 'libxslt' 'docbook-xsl' 'pam' 'git')
+makedepends=('boost' 'lvm2' 'libxslt' 'docbook-xsl' 'pam' 'git' 'systemd')
optdepends=('pam: pam_snapper')
backup=('etc/conf.d/snapper')
-source=("ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$pkgver.tar.bz2")
+source=("ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$pkgver.tar.bz2"
+ cleanup.timer
+ cleanup.service
+ timeline.timer
+ timeline.service)
prepare() {
cd "$srcdir/$pkgname-$pkgver"
@@ -62,9 +66,18 @@ package() {
make DESTDIR="$pkgdir" install
install -Dm644 data/sysconfig.snapper "$pkgdir"/etc/conf.d/snapper
+ install -Dm755 client/.libs/systemd-helper "$pkgdir"/usr/lib/snapper/systemd-helper
rm -f "$pkgdir"/etc/snapper/zypp-plugin.conf
rm -f "$pkgdir"/usr/share/man/man*/snapper-zypp-plugin.*.gz
+
+ for unit in {cleanup,timeline}.{timer,service}; do
+ install -Dm644 "$srcdir"/$unit "$pkgdir"/usr/lib/systemd/system/snapper-$unit
+ done
}
-sha256sums=('6c78fc57ac018f7536a03971927f2b17f1f048f87e26689609028f51500c9c6a')
+sha256sums=('6c78fc57ac018f7536a03971927f2b17f1f048f87e26689609028f51500c9c6a'
+ '7c0a695b4d70b3d6aa25789b478ceca86ac3dab6f678045df4907b2c020341f9'
+ 'd2f2571e92ffe612529d69a96bd725b4bd040fc36043d98dc1e09b6efcb65894'
+ 'b62f61261e45587a38bcbe6468b8932259740984151db1636d299ddafbe3f7a9'
+ 'fb01465a6ba7c202c5b1aecb92b99bfcbcd7cdceb0448d84224a108481805bd5')