2018-03-18 22:43:10 +00:00
|
|
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
|
|
|
# Contributor: Tom Kuther <gimpel@sonnenkinder.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - pass LIBS="-lboost_thread -lboost_system" to configure to fix linking on ARM
|
|
|
|
|
|
|
|
pkgname=snapper
|
2018-07-31 18:16:47 +00:00
|
|
|
pkgver=0.5.6
|
2018-09-21 19:05:17 +00:00
|
|
|
pkgrel=2
|
2018-03-18 22:43:10 +00:00
|
|
|
pkgdesc="A tool for managing BTRFS and LVM snapshots. It can create, diff and restore snapshots and provides timelined auto-snapping."
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://snapper.io"
|
|
|
|
license=('GPL2')
|
|
|
|
depends=('btrfs-progs' 'libxml2' 'dbus' 'boost-libs' 'acl')
|
|
|
|
makedepends=('boost' 'lvm2' 'libxslt' 'docbook-xsl' 'pam' 'git' 'systemd')
|
|
|
|
optdepends=('pam: pam_snapper')
|
|
|
|
backup=('etc/conf.d/snapper')
|
2018-07-31 18:16:47 +00:00
|
|
|
source=("ftp://ftp.suse.com/pub/projects/$pkgname/$pkgname-$pkgver.tar.bz2")
|
|
|
|
sha256sums=('12bec02f1b1b1b8e88a44083312cba1971e2af3f79df94af59430db7e31ba78b')
|
2018-03-18 22:43:10 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
# cron names
|
|
|
|
sed -e 's@suse.de-snapper@snapper@g' -i scripts/Makefile.am
|
|
|
|
|
|
|
|
# fix sysconf dir
|
|
|
|
sed -e 's@/etc/sysconfig@/etc/conf.d@g' -i scripts/*snapper*
|
|
|
|
|
|
|
|
# fix pam plugin install location
|
|
|
|
sed -i -e 's@shell echo /@shell echo /usr/@g' pam/Makefile.am
|
|
|
|
|
|
|
|
# all in /usr/bin
|
|
|
|
sed -i -e 's@/usr/sbin@/usr/bin@g' data/org.opensuse.Snapper.service
|
|
|
|
|
2018-06-08 05:05:52 +00:00
|
|
|
# NTP drift file location
|
2018-03-18 22:43:10 +00:00
|
|
|
sed -i -e 's@/var/lib/ntp/drift/ntp.drift@/var/lib/ntp/ntp.drift@' data/base.txt
|
|
|
|
|
|
|
|
# man pages sysconfig location
|
|
|
|
sed -i -e 's@/etc/sysconfig@/etc/conf.d@g' doc/*
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
libtoolize --force --automake --copy
|
|
|
|
autoheader
|
|
|
|
automake --add-missing --copy
|
|
|
|
autoconf
|
|
|
|
LIBS="-lboost_thread -lboost_system" ./configure --prefix=/usr \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--with-conf=/etc/conf.d \
|
|
|
|
--disable-zypp \
|
|
|
|
--disable-silent-rules
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 data/sysconfig.snapper \
|
|
|
|
"$pkgdir"/etc/conf.d/snapper
|
|
|
|
}
|