2 # Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
3 # Contributor: Thorsten Tasch <tht@thorstentasch.de>
4 # Contributor: JJDaNiMoTh <jjdanimoth@gmail.com>
5 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
10 pkgdesc="A remote filesystem snapshot utility"
12 url="https://www.rsnapshot.org"
14 depends=('perl' 'rsync' 'openssh' 'perl-lchown')
15 backup=('etc/rsnapshot.conf')
16 source=("$pkgname-$pkgver.tar.gz::https://github.com/rsnapshot/rsnapshot/archive/$pkgver.tar.gz"
18 '0001-added-missing-back.patch'
20 sha256sums=('8ef500e2eaee85a37fb8000f73b3b1325569fcfe940a7e8ea66a8f243cb289a3'
21 'ab98a605b8c8fe3d99dcd6c5d74ec3bc3c19dcf95766290ae697594fa881122f'
22 '8b89cb048b5b52b2fe748ec14e9d092e79fc2bd24e9cd5c0877bac535466cc8e'
23 '9f89badd3c3dbea6c03883ae269f7759b869a3c981eff699353dce7d19becb47')
26 cd "${srcdir}/${pkgname}-${pkgver}"
28 patch -p1 -i "$srcdir/0001-added-missing-back.patch"
29 patch -p1 -i "$srcdir/pod-fix.patch"
31 # SSH testing requires a local SSH daemon with a specific user and won't
32 # work reliably on different build hosts.
33 rm t/ssh_args/ssh_args.t.in
37 cd "${srcdir}/${pkgname}-${pkgver}"
39 ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
40 sed -i 's:/usr/bin/pod2man:/usr/bin/core_perl/pod2man:' Makefile
45 cd "${srcdir}/${pkgname}-${pkgver}"
50 cd "${srcdir}/${pkgname}-${pkgver}"
52 make DESTDIR=${pkgdir} install
53 install -Dm755 utils/rsnapreport.pl "$pkgdir/usr/bin/rsnapreport.pl"
54 mv "${pkgdir}/etc/rsnapshot.conf.default" "${pkgdir}/etc/rsnapshot.conf"
55 install -Dm644 "${srcdir}/rsnapshot" "${pkgdir}/etc/logrotate.d/rsnapshot"